-
-
Notifications
You must be signed in to change notification settings - Fork 369
Expand file tree
/
Copy pathxmake.lua
More file actions
26 lines (24 loc) · 708 Bytes
/
xmake.lua
File metadata and controls
26 lines (24 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
set_project("libcss")
set_version("0.1.0-a")
target("libcss")
set_kind("$(kind)")
add_files("src/**.c")
set_configdir("include/css")
add_configfiles("src/config.h.in")
add_headerfiles("include/css.h", "include/(css/*.h)")
add_deps("yutil")
if is_kind("static") then
set_configvar("LIBCSS_STATIC_BUILD", 1)
elseif is_plat("windows") then
add_defines("LIBCSS_DLL_EXPORT")
end
target("libcss-tests")
set_default(false)
set_kind("binary")
set_group("tests")
set_rundir("tests")
add_includedirs("tests")
add_files("tests/*.c")
add_deps("ctest", "libcss")
add_rules("tests.runnable")
add_tests("default", {group = "tests"})