package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
487 B
19 lines
487 B
option("boost_asio", {showmenu = true, default = false}) |
|
|
|
add_rules("mode.debug", "mode.release") |
|
set_languages("c++11") |
|
|
|
if has_config("boost_asio") then |
|
add_requires("boost") |
|
add_packages("boost") |
|
end |
|
|
|
target("promise-cpp") |
|
set_kind("$(kind)") |
|
add_files("src/*.cpp") |
|
add_includedirs(".", "include") |
|
add_headerfiles("include/(**.hpp)", "(add_ons/**.hpp)") |
|
|
|
if is_plat("windows") and is_kind("shared") then |
|
add_defines("PROMISE_BUILD_SHARED") |
|
end
|
|
|