update xmake.lua: export public includedirs

This commit is contained in:
ruki 2019-10-14 09:34:37 +08:00
parent d5d33dede8
commit 1c0ff5d208
5 changed files with 10 additions and 20 deletions

View File

@ -8,11 +8,11 @@ target("acl")
add_files("src/**.c|*/bak/*.c")
-- add include directories
add_includedirs(".", "include")
add_includedirs(".")
add_includedirs("include", {public = true})
-- add headers
add_headerfiles("include/(**.h)")
-- set_headerdir("$(buildir)/include/acl")
-- add defines
add_defines("USE_REUSEPORT")

View File

@ -16,13 +16,11 @@ target("acl_cpp")
add_includedirs("$(projectdir)/include/mysql")
add_includedirs("$(projectdir)/include/pgsql")
add_includedirs("$(projectdir)/include/sqlite")
add_includedirs("$(projectdir)/lib_acl/include")
add_includedirs("$(projectdir)/lib_protocol/include")
add_includedirs("src", "include")
add_includedirs("src")
add_includedirs("include", {public = true})
-- add headers
add_headerfiles("include/(**.h)", "include/(**.hpp)", "include/(**.ipp)")
-- set_headerdir("$(buildir)/include/acl_cpp")
-- set precompile header
set_pcxxheader("src/acl_stdafx.hpp")

View File

@ -4,18 +4,15 @@ target("fiber")
-- set kind: static/shared
set_kind("$(kind)")
-- add deps: acl
-- add_deps("acl")
-- add source files
add_files("src/**.c")
-- add include directories
add_includedirs("src", "include")
add_includedirs("src")
add_includedirs("include", {public = true})
-- add headers
add_headerfiles("include/(**.h)")
-- set_headerdir("$(buildir)/include/fiber")
-- add flags
add_cxflags("-std=gnu99")

View File

@ -11,15 +11,11 @@ target("fiber_cpp")
add_files("src/**.cpp")
-- add include directories
add_includedirs("src", "include")
add_includedirs("$(projectdir)/lib_fiber/c/include")
add_includedirs("$(projectdir)/lib_acl/include")
add_includedirs("$(projectdir)/lib_acl_cpp/include")
add_includedirs("src")
add_includedirs("include", {public = true})
-- add headers
add_headerfiles("include/(**.h)", "include/(**.hpp)")
add_includedirs("src", "include", "../../lib_acl/src/master")
-- set_headerdir("$(buildir)/include/fiber_cpp")

View File

@ -11,12 +11,11 @@ target("protocol")
add_files("src/**.c")
-- add include directories
add_includedirs("src", "include")
add_includedirs("$(projectdir)/lib_acl/include")
add_includedirs("src")
add_includedirs("include", {public = true})
-- add headers
add_headerfiles("include/(**.h)")
-- set_headerdir("$(buildir)/include/protocol")