package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.4 KiB

add_rules("mode.debug", "mode.release")
target("brotlienc")
set_kind("$(kind)")
add_deps("brotlicommon")
add_rules("utils.install.pkgconfig_importfiles", {filename = "libbrotlienc.pc"})
add_includedirs("c/include", {public = true})
add_files("c/enc/*.c")
if is_kind("shared") and is_plat("windows") then
add_defines("BROTLI_SHARED_COMPILATION", "BROTLIENC_SHARED_COMPILATION")
end
add_headerfiles("c/include/(brotli/*.h)")
target("brotlidec")
set_kind("$(kind)")
add_deps("brotlicommon")
add_rules("utils.install.pkgconfig_importfiles", {filename = "libbrotlidec.pc"})
add_includedirs("c/include", {public = true})
add_files("c/dec/*.c")
if is_kind("shared") and is_plat("windows") then
add_defines("BROTLI_SHARED_COMPILATION", "BROTLIDEC_SHARED_COMPILATION")
end
add_headerfiles("c/include/(brotli/*.h)")
target("brotlicommon")
set_kind("$(kind)")
add_rules("utils.install.pkgconfig_importfiles", {filename = "libbrotlicommon.pc"})
add_includedirs("c/include", {public = true})
add_files("c/common/*.c")
if is_kind("shared") and is_plat("windows") then
add_defines("BROTLI_SHARED_COMPILATION", "BROTLICOMMON_SHARED_COMPILATION")
end
add_headerfiles("c/include/(brotli/*.h)")
target("brotli")
set_kind("binary")
add_files("c/tools/brotli.c")
add_deps("brotlicommon", "brotlidec", "brotlienc")