2016-04-22 08:12:35 +03:00
project ( " texturev " )
uuid ( os.uuid ( " texturev " ) )
2016-04-23 01:02:16 +03:00
kind " ConsoleApp "
2016-04-22 08:12:35 +03:00
configuration { }
includedirs {
2017-04-04 08:42:27 +03:00
path.join ( BIMG_DIR , " include " ) ,
2016-04-22 08:12:35 +03:00
path.join ( BGFX_DIR , " include " ) ,
path.join ( BGFX_DIR , " 3rdparty " ) ,
path.join ( BGFX_DIR , " examples/common " ) ,
path.join ( MODULE_DIR , " include " ) ,
path.join ( MODULE_DIR , " 3rdparty " ) ,
}
files {
path.join ( MODULE_DIR , " tools/texturev/** " ) ,
}
links {
" example-common " ,
2017-04-04 08:42:27 +03:00
" bimg_decode " ,
" bimg " ,
2016-04-22 08:12:35 +03:00
" bgfx " ,
}
2021-10-26 04:59:32 +03:00
using_bx ( )
2016-04-22 08:12:35 +03:00
if _OPTIONS [ " with-sdl " ] then
defines { " ENTRY_CONFIG_USE_SDL=1 " }
links { " SDL2 " }
2021-02-28 21:15:09 +03:00
configuration { " linux or freebsd " }
if _OPTIONS [ " with-wayland " ] then
links {
" wayland-egl " ,
}
end
2016-04-22 08:12:35 +03:00
configuration { " x32 " , " windows " }
libdirs { " $(SDL2_DIR)/lib/x86 " }
configuration { " x64 " , " windows " }
libdirs { " $(SDL2_DIR)/lib/x64 " }
configuration { }
end
if _OPTIONS [ " with-glfw " ] then
defines { " ENTRY_CONFIG_USE_GLFW=1 " }
2019-05-26 05:21:58 +03:00
links { " glfw3 " }
2016-04-22 08:12:35 +03:00
configuration { " linux or freebsd " }
2023-07-31 17:14:04 +03:00
if _OPTIONS [ " with-wayland " ] then
links {
" wayland-egl " ,
}
else
links {
" Xrandr " ,
" Xinerama " ,
" Xi " ,
" Xxf86vm " ,
" Xcursor " ,
}
end
2016-04-22 08:12:35 +03:00
2021-01-01 05:17:39 +03:00
configuration { " osx* " }
2016-04-22 08:12:35 +03:00
linkoptions {
" -framework CoreVideo " ,
}
configuration { }
end
configuration { " vs* " }
linkoptions {
" /ignore:4199 " , -- LNK4199: /DELAYLOAD:*.dll ignored; no imports found from *.dll
}
links { -- this is needed only for testing with GLES2/3 on Windows with VS2008
" DelayImp " ,
}
configuration { " vs201* " }
linkoptions { -- this is needed only for testing with GLES2/3 on Windows with VS201x
" /DELAYLOAD: \" libEGL.dll \" " ,
" /DELAYLOAD: \" libGLESv2.dll \" " ,
}
2016-04-30 21:08:56 +03:00
configuration { " mingw-* " }
2016-04-22 08:12:35 +03:00
targetextension " .exe "
configuration { " vs20* or mingw* " }
links {
2019-02-20 09:42:46 +03:00
" comdlg32 " ,
2016-04-22 08:12:35 +03:00
" gdi32 " ,
" psapi " ,
}
2017-12-15 07:40:30 +03:00
configuration { " winstore* " }
2016-04-22 08:12:35 +03:00
removelinks {
" DelayImp " ,
" gdi32 " ,
" psapi "
}
links {
" d3d11 " ,
2017-12-14 10:40:39 +03:00
" d3d12 " ,
2016-04-22 08:12:35 +03:00
" dxgi "
}
linkoptions {
" /ignore:4264 " -- LNK4264: archiving object file compiled with /ZW into a static library; note that when authoring Windows Runtime types it is not recommended to link with a static library that contains Windows Runtime metadata
}
-- WinRT targets need their own output directories are build files stomp over each other
targetdir ( path.join ( BGFX_BUILD_DIR , " arm_ " .. _ACTION , " bin " , _name ) )
objdir ( path.join ( BGFX_BUILD_DIR , " arm_ " .. _ACTION , " obj " , _name ) )
configuration { " mingw-clang " }
kind " ConsoleApp "
configuration { " android* " }
kind " ConsoleApp "
targetextension " .so "
linkoptions {
" -shared " ,
}
links {
" EGL " ,
" GLESv2 " ,
}
2020-05-17 05:45:55 +03:00
configuration { " wasm* " }
2016-04-22 08:12:35 +03:00
kind " ConsoleApp "
configuration { " linux-* or freebsd " }
links {
" X11 " ,
" GL " ,
" pthread " ,
}
configuration { " rpi " }
links {
" X11 " ,
" GLESv2 " ,
" EGL " ,
" bcm_host " ,
" vcos " ,
" vchiq_arm " ,
" pthread " ,
}
2021-01-01 05:17:39 +03:00
configuration { " osx* " }
2016-04-22 08:12:35 +03:00
linkoptions {
" -framework Cocoa " ,
2021-12-20 10:11:33 +03:00
" -framework IOKit " ,
2016-04-22 08:12:35 +03:00
" -framework Metal " ,
" -framework OpenGL " ,
2021-12-20 10:11:33 +03:00
" -framework QuartzCore " ,
2016-04-22 08:12:35 +03:00
}
configuration { " ios* " }
kind " ConsoleApp "
linkoptions {
" -framework CoreFoundation " ,
" -framework Foundation " ,
2021-12-20 10:11:33 +03:00
" -framework IOKit " ,
2016-04-22 08:12:35 +03:00
" -framework OpenGLES " ,
" -framework QuartzCore " ,
2021-12-20 10:11:33 +03:00
" -framework UIKit " ,
2016-04-22 08:12:35 +03:00
}
2019-05-13 19:09:59 +03:00
configuration { " xcode* " , " ios " }
2016-04-22 08:12:35 +03:00
kind " WindowedApp "
configuration { " qnx* " }
targetextension " "
links {
" EGL " ,
" GLESv2 " ,
}
configuration { }
strip ( )