Skip to content

Commit db8d257

Browse files
committed
improve xmake.lua
1 parent 98368da commit db8d257

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

packages/d/dynareadout/port/xmake.lua

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,10 @@ if has_config("build_python") then
4646
add_deps("dynareadout_cpp")
4747
add_packages("python", "pybind11")
4848
add_rules("python.module")
49+
set_basename("dynareadout" .. (is_mode("debug") and "_d" or ""))
4950
add_options("profiling")
5051
add_files("src/python/*.cpp")
5152
add_headerfiles("src/python/*.hpp")
5253
add_includedirs("src", "src/cpp")
5354
add_rpathdirs("@executable_path")
54-
55-
on_load(function (target)
56-
target:set("filename", "dynareadout" .. (is_mode("debug") and "_d" or ""))
57-
end)
5855
end

packages/d/dynareadout/xmake.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ package("dynareadout")
66
add_urls("https://github.com/xmake-mirror/dynareadout/releases/download/$(version)/$(version).tar.gz")
77
add_versions("24.07", "11138c1236f44434adf99ad86dc3315fcba17e59dd4b0ae0e6564972e2de12c5")
88

9-
add_configs("cpp_bind", {description = "Build the C++ bindings", default = true, type = "boolean"})
10-
add_configs("profiling", {description = "Build with profiling features", default = true, type = "boolean"})
11-
add_configs("python_bind", {description = "Build the python bindings", default = true, type = "boolean"})
9+
add_configs("cpp_bind", {description = "Build the C++ bindings", default = true, type = "boolean"})
10+
add_configs("profiling", {description = "Build with profiling features", default = true, type = "boolean"})
11+
add_configs("python_bind", {description = "Build the python bindings", default = true, type = "boolean"})
1212

1313
on_load(function (package)
1414
if package:config("cpp_bind") then

0 commit comments

Comments
 (0)