build ok acl by xmake

This commit is contained in:
zhengshuxin 2022-06-14 15:35:33 +08:00
parent 78dfda9b79
commit 6309cc694f
4 changed files with 16 additions and 12 deletions

View File

@ -12,7 +12,7 @@ target("acl_cpp")
-- add include directories
add_includedirs("$(projectdir)/include")
add_includedirs("$(projectdir)/include/zlib")
add_includedirs("$(projectdir)/include/zlib-1.2.11")
add_includedirs("$(projectdir)/include/mysql")
add_includedirs("$(projectdir)/include/pgsql")
add_includedirs("$(projectdir)/include/sqlite")

View File

@ -16,5 +16,5 @@ target("fiber")
-- add flags
add_cxflags("-std=gnu99")
add_defines("USE_JMP")
add_defines("DUSE_BOOST_JMP")

View File

@ -8,7 +8,8 @@ target("fiber_cpp")
add_deps("fiber", "acl_cpp", "acl")
-- add source files
add_files("src/**.cpp")
add_files("src/*.cpp")
add_files("src/keeper/*.cpp")
-- add include directories
add_includedirs("src")
@ -16,6 +17,7 @@ target("fiber_cpp")
-- add headers
add_headerfiles("include/(**.h)", "include/(**.hpp)")
add_includedirs("$(projectdir)/lib_acl/src/master")

View File

@ -72,7 +72,7 @@ end
if not is_plat("windows") then
add_cflags("-Wshadow",
"-Wpointer-arith",
"-Waggregate-return",
--"-Waggregate-return",
"-Wmissing-prototypes",
"-Wno-long-long",
"-Wuninitialized",
@ -80,9 +80,9 @@ if not is_plat("windows") then
"-fdata-sections",
"-ffunction-sections",
"-fPIC",
"-fno-rtti",
"-fno-exceptions",
"-fomit-frame-pointer"
-- "-fno-rtti",
"-fomit-frame-pointer",
"-fno-exceptions"
)
add_cxxflags("-Wshadow",
"-Wpointer-arith",
@ -93,11 +93,13 @@ if not is_plat("windows") then
"-fPIC",
"-fno-rtti",
"-fno-exceptions",
"-fexceptions",
"-fpermissive",
"-fomit-frame-pointer"
)
if is_kind("static") then
add_cxflags("-fvisibility-inlines-hidden")
--add_cxflags("-fvisibility-inlines-hidden")
--add_cflags("-flto")
--add_cxxflags("-flto")
@ -115,14 +117,14 @@ if not is_plat("windows") then
add_defines("ANDROID")
add_defines("NDEBUG")
add_defines("acl_cpp_EXPORTS")
add_cflags("fno-addrsig")
add_cxxflags("fno-addrsig")
--add_cflags("fno-addrsig")
--add_cflags("-fno-addrsig")
--add_cxxflags("fno-addrsig")
--add_cxxflags("-fno-addrsig")
--add_cflags("-MD", "-MT", "-MF")
--add_cxxflags("-MD", "-MT", "-MF")
add_cflags("-no-canonical-prefixes")
add_cxxflags("-no-canonical-prefixes")
add_cflags("-fno-addrsig")
add_cxxflags("-fno-addrsig")
end
-- include project sources