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")
|
2018-09-09 16:43:04 +08:00
|
|
|
if has_config("with-demo") then
|
|
|
|
set_kind("binary")
|
|
|
|
else
|
|
|
|
set_kind("phony")
|
|
|
|
end
|
2018-08-19 16:51:10 +08:00
|
|
|
|
|
|
|
if is_plat("windows") then
|
|
|
|
add_cxflags("-wd4267")
|
|
|
|
end
|
|
|
|
|
|
|
|
if is_plat("windows") then
|
|
|
|
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 16:43:04 +08:00
|
|
|
target_end()
|
2018-08-19 16:51:10 +08:00
|
|
|
|