Skip to content

Commit

Permalink
Add xmake.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed May 15, 2024
1 parent cb987aa commit b9e449f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
set_project("json-parser")
set_version("1.2.2")

if is_mode("release") then
set_optimize("faster")
set_strip("all")
elseif is_mode("debug") then
set_symbols("debug")
set_optimize("none")
end

set_languages("c99")
set_warnings("all")

target("json-parser")
set_kind("$(kind)")
add_files("rbtree.c", "json_parser.c")

target("test_speed")
set_kind("binary")
add_files("test_speed.c")
add_deps("json-parser")

target("parse_json")
set_kind("binary")
add_files("test.c")
add_deps("json-parser")

0 comments on commit b9e449f

Please sign in to comment.