mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-06 05:49:34 +08:00
36 lines
1009 B
Lua
36 lines
1009 B
Lua
-- 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")
|
|
add_includedirs("src")
|
|
add_includedirs("include", {public = true})
|
|
|
|
-- add headers
|
|
add_headerfiles("include/(**.h)", "include/(**.hpp)", "include/(**.ipp)")
|
|
|
|
-- set precompile header
|
|
set_pcxxheader("src/acl_stdafx.hpp")
|
|
|
|
-- add defines and links
|
|
-- add_defines("HAS_MYSQL_DLL", "HAS_PGSQL_DLL", "HAS_SQLITE_DLL", "HAS_POLARSSL_DLL")
|
|
if is_plat("windows") then
|
|
add_defines("HAS_ZLIB_DLL", "USE_WIN_ICONV")
|
|
else
|
|
-- add_links("iconv")
|
|
end
|
|
|