1234567891011121314151617181920212223242526272829303132333435363738394041 |
- set_project("proto_demo")
- set_xmakever("2.6.0")
- set_version("0.0.1", {build = "%Y%m%d%H%M"})
- add_rules("mode.debug", "mode.release")
- includes("3rdparty/GmSSL")
- target("proto_demo")
- set_kind("shared")
- set_languages("c11", "c++17")
- if is_host("windows") then
- add_files("./*.cpp")
- else
- add_files("./*.cpp|dllmain.cpp")
- end
- add_defines("FMT_HEADER_ONLY=1")
- add_includedirs(
- "./",
- "../deps/cmndev/include",
- "../deps/cmnsdk.proto/include",
- "../deps/cppapp.toollib/include",
- "../deps/ncpp.external.bizkit/include",
- "../deps/MemeString/include",
- "../deps/filesystem/include",
- "./3rdparty/spdlog-1.13.0/include",
- "./3rdparty/fmt-10.2.1/include",
- "./3rdparty/json-3.11.2/include"
- )
- add_deps("gmssl")
- add_syslinks("pthread", "dl", "rt")
- add_rpathdirs("$ORIGIN")
- add_rpathdirs("$ORIGIN/../lib")
- if is_host("linux") then
- add_cxxflags("-fPIC", "-fexceptions")
- add_ldflags ("-fPIC", "-fexceptions")
- end
- target_end()
|