14 lines
		
	
	
		
			593 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			593 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
shared_module("vulkan","engine")
 | 
						|
    add_headerfiles("include/**.h")
 | 
						|
    add_files("src/**.cpp", "include/volk/volk.c", "include/imgui/*.cpp")
 | 
						|
    add_packages("vulkansdk", {public = true})
 | 
						|
    add_dependency("engine", {public = true})
 | 
						|
    on_load(function (target)
 | 
						|
        if is_plat("windows") then 
 | 
						|
            target:add("defines", "VK_USE_PLATFORM_WIN32_KHR=1")
 | 
						|
        elseif is_plat("linux") then 
 | 
						|
            target:add("defines", "VK_USE_PLATFORM_XLIB_KHR=1")
 | 
						|
        elseif is_plat("macosx") then 
 | 
						|
            target:add("defines", "VK_USE_PLATFORM_MACOS_MVK=1")
 | 
						|
        end
 | 
						|
    end) |