15 lines
579 B
Lua
15 lines
579 B
Lua
|
-- 添加一个zlib包自动配置选项
|
|||
|
option("common")
|
|||
|
|
|||
|
-- 设置是否在xmake f -h配置菜单中显示
|
|||
|
-- 如果你想让你的包在工程项目中,可以提示用户手动禁用,那么就启用他吧
|
|||
|
set_showmenu(true)
|
|||
|
|
|||
|
-- 在xmake f -h中显示相关描述信息
|
|||
|
set_description("The common package")
|
|||
|
|
|||
|
-- 检测 #include 是否能编译通过
|
|||
|
add_cxxincludes("BlockingQueue.h")
|
|||
|
|
|||
|
-- 添加一些检测的头文件目录,默认会在common.pkg/include进行搜索,当然你也可以指定其他目录
|
|||
|
add_includedirs("include")
|