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.
29 lines
667 B
29 lines
667 B
4 years ago
|
add_rules("mode.debug", "mode.release")
|
||
|
|
||
|
option("threads")
|
||
|
set_default(true)
|
||
|
set_showmenu(true)
|
||
|
add_defines("SIMDJSON_THREADS_ENABLE")
|
||
|
if not is_plat("windows") then
|
||
|
add_syslinks("pthread")
|
||
|
end
|
||
|
|
||
|
option("noexceptions")
|
||
|
set_default(false)
|
||
|
set_showmenu(true)
|
||
|
add_defines("SIMDJSON_EXCEPTIONS=0")
|
||
|
|
||
|
option("logging")
|
||
|
set_default(false)
|
||
|
set_showmenu(true)
|
||
|
add_defines("SIMDJSON_VERBOSE_LOGGING")
|
||
|
|
||
|
|
||
|
target("simdjson")
|
||
|
set_languages("c++17")
|
||
|
set_kind("$(kind)")
|
||
|
add_options("threads", "noexceptions", "logging")
|
||
|
add_files("singleheader/simdjson.cpp")
|
||
|
add_headerfiles("singleheader/simdjson.h")
|
||
|
|