From 2c23cf4b3968a2c4f86253dcadba9779bc00e6ff Mon Sep 17 00:00:00 2001 From: Mole Shang <135e2@135e2.dev> Date: Fri, 1 Mar 2024 21:51:47 +0800 Subject: xmake: move deps to third_party dir --- third_party/packages/n/nuklear_fonts/xmake.lua | 11 +++++++++++ third_party/packages/n/nuklear_glfw_gl3/xmake.lua | 14 ++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 third_party/packages/n/nuklear_fonts/xmake.lua create mode 100644 third_party/packages/n/nuklear_glfw_gl3/xmake.lua (limited to 'third_party/packages/n') diff --git a/third_party/packages/n/nuklear_fonts/xmake.lua b/third_party/packages/n/nuklear_fonts/xmake.lua new file mode 100644 index 0000000..70d6fe9 --- /dev/null +++ b/third_party/packages/n/nuklear_fonts/xmake.lua @@ -0,0 +1,11 @@ +package("nuklear_fonts") + +add_urls( + "https://gist.github.com/135e2/656614a4a86cf6f8e9aea9f0de850634/archive/8d1dc2a079cef20d97acbc2a9874b1b77b25070b.zip") + +add_versions("8d1dc2a", "3dedfd45900cf68fed49ee50963c37c59af01c7f8deb327224f710c010565f87") + +on_install(function(package) + os.cp("unifont.h", package:installdir("include")) + os.cp("NotoSansCJK.h", package:installdir("include")) +end) \ No newline at end of file diff --git a/third_party/packages/n/nuklear_glfw_gl3/xmake.lua b/third_party/packages/n/nuklear_glfw_gl3/xmake.lua new file mode 100644 index 0000000..8789dbb --- /dev/null +++ b/third_party/packages/n/nuklear_glfw_gl3/xmake.lua @@ -0,0 +1,14 @@ +package("nuklear_glfw_gl3") + +set_homepage("https://github.com/Immediate-Mode-UI/Nuklear") +set_description("A single-header ANSI C immediate mode cross-platform GUI library (GLFW OpenGL 3 Binding)") +set_license("MIT") + +add_urls("https://github.com/Immediate-Mode-UI/Nuklear/archive/refs/tags/$(version).tar.gz", + "https://github.com/Immediate-Mode-UI/Nuklear.git") + +add_versions("4.10.5", "6c80cbd0612447421fa02ad92f4207da2cd019a14d94885dfccac1aadc57926a") + +on_install(function(package) + os.cp("demo/glfw_opengl3/nuklear_glfw_gl3.h", package:installdir("include")) +end) -- cgit v1.2.3