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.
27 lines
703 B
27 lines
703 B
add_rules("mode.debug", "mode.release") |
|
|
|
add_requires("gperf") |
|
add_packages("gperf") |
|
|
|
add_requires("libdom") |
|
add_packages("libdom") |
|
|
|
target("svgtiny") |
|
set_kind("$(kind)") |
|
add_files("src/*.c") |
|
add_includedirs("include") |
|
add_headerfiles("include/(*.h)") |
|
|
|
if is_plat("windows") and is_kind("shared") then |
|
add_rules("utils.symbols.export_all") |
|
end |
|
|
|
before_build(function (target) |
|
local gperf |
|
if is_subhost("windows") then |
|
gperf = path.join(target:pkg("gperf"):installdir(), "bin/gperf.exe") |
|
else |
|
gperf = "gperf" |
|
end |
|
os.vrunv(gperf, {"src/colors.gperf", "--output-file=src/autogenerated_colors.c"}) |
|
end)
|
|
|