Sol2: Add includes_lua option to be able to ship a custom Lua library (#140)

pull/146/head
Jérôme Leclercq 4 years ago committed by GitHub
parent 81671e99a4
commit e73972acca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      packages/s/sol2/xmake.lua

@ -8,7 +8,15 @@ package("sol2")
add_versions("v3.2.1", "b10f88dc1246f74a10348faef7d2c06e2784693307df74dcd87c4641cf6a6828") add_versions("v3.2.1", "b10f88dc1246f74a10348faef7d2c06e2784693307df74dcd87c4641cf6a6828")
add_deps("cmake", "lua") add_configs("includes_lua", {description = "Should this package includes the Lua package (set to false if you're shipping a custom Lua)", default = true, type = "boolean"})
add_deps("cmake")
on_load(function (package)
if package:config("includes_lua") then
package:add("deps", "lua")
end
end)
on_install("linux", "macosx", "windows", function (package) on_install("linux", "macosx", "windows", function (package)
local configs = {} local configs = {}

Loading…
Cancel
Save