@@ -11,38 +11,38 @@ set_encodings("utf-8")
1111add_rules (" mode.debug" , " mode.releasedbg" )
1212
1313-- add options
14- option (" rex_ini " , function ()
14+ option (" commonlib_ini " , function ()
1515 set_default (false )
1616 set_description (" enable REX::INI settings support" )
17- add_defines (" REX_OPTION_INI =1" )
17+ add_defines (" COMMONLIB_OPTION_INI =1" )
1818end )
1919
20- option (" rex_json " , function ()
20+ option (" commonlib_json " , function ()
2121 set_default (false )
2222 set_description (" enable REX::JSON settings support" )
23- add_defines (" REX_OPTION_JSON =1" )
23+ add_defines (" COMMONLIB_OPTION_JSON =1" )
2424end )
2525
26- option (" rex_toml " , function ()
26+ option (" commonlib_toml " , function ()
2727 set_default (false )
2828 set_description (" enable REX::TOML settings support" )
29- add_defines (" REX_OPTION_TOML =1" )
29+ add_defines (" COMMONLIB_OPTION_TOML =1" )
3030end )
3131
32- option (" xse_xbyak " , function ()
32+ option (" commonlib_xbyak " , function ()
3333 set_default (false )
3434 set_description (" enable xbyak support for Trampoline" )
35- add_defines (" XSE_SUPPORT_XBYAK =1" )
35+ add_defines (" COMMONLIB_OPTION_XBYAK =1" )
3636end )
3737
3838-- add packages
3939add_requires (" spdlog" , { configs = { header_only = false , wchar = true , std_format = true } })
4040
4141-- add config packages
42- if has_config (" rex_ini " ) then add_requires (" simpleini" ) end
43- if has_config (" rex_json " ) then add_requires (" nlohmann_json" ) end
44- if has_config (" rex_toml " ) then add_requires (" toml11" ) end
45- if has_config (" xse_xbyak " ) then add_requires (" xbyak" ) end
42+ if has_config (" commonlib_ini " ) then add_requires (" simpleini" ) end
43+ if has_config (" commonlib_json " ) then add_requires (" nlohmann_json" ) end
44+ if has_config (" commonlib_toml " ) then add_requires (" toml11" ) end
45+ if has_config (" commonlib_xbyak " ) then add_requires (" xbyak" ) end
4646
4747target (" commonlib-shared" , function ()
4848 -- set target kind
@@ -52,13 +52,13 @@ target("commonlib-shared", function()
5252 add_packages (" spdlog" , { public = true })
5353
5454 -- add config packages
55- if has_config (" rex_ini " ) then add_packages (" simpleini" , { public = true }) end
56- if has_config (" rex_json " ) then add_packages (" nlohmann_json" , { public = true }) end
57- if has_config (" rex_toml " ) then add_packages (" toml11" , { public = true }) end
58- if has_config (" xse_xbyak " ) then add_packages (" xbyak" , { public = true }) end
55+ if has_config (" commonlib_ini " ) then add_packages (" simpleini" , { public = true }) end
56+ if has_config (" commonlib_json " ) then add_packages (" nlohmann_json" , { public = true }) end
57+ if has_config (" commonlib_toml " ) then add_packages (" toml11" , { public = true }) end
58+ if has_config (" commonlib_xbyak " ) then add_packages (" xbyak" , { public = true }) end
5959
6060 -- add options
61- add_options (" rex_ini " , " rex_json " , " rex_toml " , " xse_xbyak " , { public = true })
61+ add_options (" commonlib_ini " , " commonlib_json " , " commonlib_toml " , " commonlib_xbyak " , { public = true })
6262
6363 -- add system links
6464 add_syslinks (" advapi32" , " bcrypt" , " d3d11" , " d3dcompiler" , " dbghelp" , " dxgi" , " ole32" , " shell32" , " user32" , " version" , " ws2_32" )
0 commit comments