2017-11-29 13:06:06 +08:00
|
|
|
-- define target: acl_cpp
|
|
|
|
target("acl_cpp")
|
|
|
|
|
|
|
|
-- set kind: static/shared
|
|
|
|
set_kind("$(kind)")
|
|
|
|
|
|
|
|
-- add deps: protocol, acl
|
|
|
|
add_deps("protocol", "acl")
|
|
|
|
|
|
|
|
-- add source files
|
|
|
|
add_files("src/**.cpp|aliyun/**.cpp")
|
|
|
|
|
|
|
|
-- add include directories
|
|
|
|
add_includedirs("$(projectdir)/include")
|
|
|
|
add_includedirs("$(projectdir)/include/zlib")
|
|
|
|
add_includedirs("$(projectdir)/include/mysql")
|
|
|
|
add_includedirs("$(projectdir)/include/pgsql")
|
|
|
|
add_includedirs("$(projectdir)/include/sqlite")
|
2019-10-14 09:34:37 +08:00
|
|
|
add_includedirs("src")
|
|
|
|
add_includedirs("include", {public = true})
|
2017-11-29 13:06:06 +08:00
|
|
|
|
|
|
|
-- add headers
|
2019-10-08 16:36:16 +08:00
|
|
|
add_headerfiles("include/(**.h)", "include/(**.hpp)", "include/(**.ipp)")
|
2017-11-29 13:06:06 +08:00
|
|
|
|
|
|
|
-- set precompile header
|
|
|
|
set_pcxxheader("src/acl_stdafx.hpp")
|
|
|
|
|
|
|
|
-- add defines and links
|
2019-10-13 16:02:18 +08:00
|
|
|
-- add_defines("HAS_MYSQL_DLL", "HAS_PGSQL_DLL", "HAS_SQLITE_DLL", "HAS_POLARSSL_DLL")
|
2017-11-29 13:06:06 +08:00
|
|
|
if is_plat("windows") then
|
|
|
|
add_defines("HAS_ZLIB_DLL", "USE_WIN_ICONV")
|
|
|
|
else
|
2019-10-08 16:36:16 +08:00
|
|
|
-- add_links("iconv")
|
2017-11-29 13:06:06 +08:00
|
|
|
end
|
|
|
|
|