package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
756 B
23 lines
756 B
4 years ago
|
package("nanovg")
|
||
|
|
||
|
set_homepage("https://github.com/memononen/nanovg/")
|
||
|
set_description("Antialiased 2D vector drawing library on top of OpenGL for UI and visualizations.")
|
||
|
set_license("zlib")
|
||
|
|
||
|
add_urls("https://github.com/memononen/nanovg.git")
|
||
|
|
||
|
on_install("windows", "macosx", "linux", function (package)
|
||
|
io.writefile("xmake.lua", [[
|
||
|
add_rules("mode.debug", "mode.release")
|
||
|
target("nanovg")
|
||
|
set_kind("static")
|
||
|
add_files("src/*.c")
|
||
|
add_headerfiles("src/(*.h)")
|
||
|
]])
|
||
|
import("package.tools.xmake").install(package)
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:has_cfuncs("nvgBeginFrame", {includes = "nanovg.h"}))
|
||
|
end)
|