2018-09-09 16:43:04 +08:00
|
|
|
option("with-demo")
|
|
|
|
set_default(false)
|
|
|
|
set_showmenu(true)
|
|
|
|
set_category("hikyuu")
|
|
|
|
set_description("Complie with demo")
|
|
|
|
option_end()
|
|
|
|
|
2018-08-19 16:51:10 +08:00
|
|
|
target("demo")
|
2020-04-08 00:24:12 +08:00
|
|
|
set_kind("binary")
|
|
|
|
if is_mode("debug") then
|
|
|
|
set_default(false)
|
2018-09-09 16:43:04 +08:00
|
|
|
end
|
2018-08-19 16:51:10 +08:00
|
|
|
|
2020-04-08 00:24:12 +08:00
|
|
|
add_packages("spdlog", "fmt")
|
2019-06-04 23:13:32 +08:00
|
|
|
add_includedirs("..")
|
|
|
|
|
2018-08-19 16:51:10 +08:00
|
|
|
if is_plat("windows") then
|
|
|
|
add_cxflags("-wd4267")
|
|
|
|
end
|
2020-04-08 00:24:12 +08:00
|
|
|
|
|
|
|
if is_plat("windows") and is_mode("release") then
|
2018-08-19 16:51:10 +08:00
|
|
|
add_defines("HKU_API=__declspec(dllimport)")
|
|
|
|
add_defines("SQLITE_API=__declspec(dllimport)")
|
|
|
|
end
|
|
|
|
|
|
|
|
-- add files
|
|
|
|
add_files("./*.cpp")
|
|
|
|
|
2018-08-21 01:56:29 +08:00
|
|
|
add_deps("hikyuu")
|
2018-09-09 17:45:22 +08:00
|
|
|
|
2018-09-09 16:43:04 +08:00
|
|
|
target_end()
|
2018-08-19 16:51:10 +08:00
|
|
|
|