improve deps (#3973)

* improve deps

* update nmd

* fix deps
pull/3978/head
ruki 7 months ago committed by GitHub
parent 0b208e3a5f
commit fdd7ef24c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/n/nmd/xmake.lua
  2. 4
      packages/r/rcmp/xmake.lua

@ -7,6 +7,8 @@ package("nmd")
add_urls("https://github.com/Nomade040/nmd.git")
add_versions("2021.03.28", "33ac3b62c7d1eb28ae6b71d4dd78aa133ef96488")
add_includedirs("include", "include/nmd")
on_install(function (package)
os.cp("nmd_assembly.h", package:installdir("include/nmd"))
os.cp("nmd_graphics.h", package:installdir("include/nmd"))

@ -9,12 +9,14 @@ package("rcmp")
add_versions("v0.2.2", "accbf1d2c72b169857900ce816ca3c1718c63c9f67ded413613c236455a331d5")
add_deps("cmake")
add_deps("nmd")
on_install("linux", "windows", function (package)
local configs = {}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs, {buildir = "build"})
os.rm("external/nmd")
import("package.tools.cmake").install(package, configs, {packagedeps = "nmd", buildir = "build"})
local version = package:version()
if version then
package:add("defines", "RCMP_VERSION_MAJOR=" .. version:major())

Loading…
Cancel
Save