File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ package (" dfdutils" )
2+ set_homepage (" https://github.com/KhronosGroup/dfdutils" )
3+ set_description (" Utilities for working with Khronos data format descriptors" )
4+ set_license (" Apache-2.0" )
5+
6+ add_urls (" https://github.com/KhronosGroup/dfdutils.git" )
7+ add_versions (" 2023.10.27" , " 854792a6ced4cb7cce64f26bf297bf7ea294a9b6" )
8+
9+ on_install (function (package )
10+ io .writefile (" xmake.lua" , [[
11+ add_rules("mode.release", "mode.debug")
12+ target("dfdutils")
13+ set_kind("$(kind)")
14+ add_files(
15+ "createdfd.c", "colourspaces.c", "interpretdfd.c",
16+ "printdfd.c", "queries.c", "vk2dfd.c"
17+ )
18+ add_headerfiles("dfd.h", {prefixdir = "dfdutils"})
19+ add_headerfiles("(vulkan/*.h)", "(KHR/*.h)")
20+ add_includedirs(".", "KHR")
21+ if is_plat("windows") and is_kind("shared") then
22+ add_rules("utils.symbols.export_all")
23+ end
24+ ]] )
25+ import (" package.tools.xmake" ).install (package )
26+ end )
27+
28+ on_test (function (package )
29+ assert (package :has_cfuncs (" vk2dfd" , {includes = " dfdutils/dfd.h" }))
30+ end )
You can’t perform that action at this time.
0 commit comments