上传文件至 /
This commit is contained in:
commit
db70d27460
19
xmake.lua
Normal file
19
xmake.lua
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
package("test-string")
|
||||||
|
set_kind("binary")
|
||||||
|
set_description("The test-string package")
|
||||||
|
|
||||||
|
add_urls("https://github.com/myrepo/foo.git")
|
||||||
|
add_versions("1.0", "<shasum256 or gitcommit>")
|
||||||
|
|
||||||
|
on_install(function (package)
|
||||||
|
local configs = {}
|
||||||
|
if package:config("shared") then
|
||||||
|
configs.kind = "shared"
|
||||||
|
end
|
||||||
|
import("package.tools.xmake").install(package, configs)
|
||||||
|
end)
|
||||||
|
|
||||||
|
on_test(function (package)
|
||||||
|
-- TODO check includes and interfaces
|
||||||
|
-- assert(package:has_cfuncs("foo", {includes = "foo.h"})
|
||||||
|
end)
|
Loading…
Reference in New Issue
Block a user