2013-05-18 06:39:08 +04:00
--
2018-01-01 22:16:06 +03:00
-- Copyright 2010-2018 Branimir Karadzic. All rights reserved.
2016-01-01 11:11:04 +03:00
-- License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
2013-05-18 06:39:08 +04:00
--
2017-06-27 07:04:16 +03:00
project ( " example-glue " )
kind " StaticLib "
includedirs {
path.join ( BX_DIR , " include " ) ,
path.join ( BIMG_DIR , " include " ) ,
path.join ( BGFX_DIR , " include " ) ,
path.join ( BGFX_DIR , " 3rdparty " ) ,
}
files {
path.join ( BGFX_DIR , " examples/common/example-glue.cpp " ) ,
}
2013-06-05 08:43:43 +04:00
project ( " example-common " )
2013-05-18 06:39:08 +04:00
kind " StaticLib "
includedirs {
2017-04-04 08:42:27 +03:00
path.join ( BX_DIR , " include " ) ,
path.join ( BIMG_DIR , " include " ) ,
2015-02-28 02:44:24 +03:00
path.join ( BGFX_DIR , " include " ) ,
path.join ( BGFX_DIR , " 3rdparty " ) ,
2013-05-18 06:39:08 +04:00
}
files {
2015-02-28 02:44:24 +03:00
path.join ( BGFX_DIR , " 3rdparty/ib-compress/**.cpp " ) ,
path.join ( BGFX_DIR , " 3rdparty/ib-compress/**.h " ) ,
2018-05-06 18:57:48 +03:00
path.join ( BGFX_DIR , " 3rdparty/dear-imgui/**.cpp " ) ,
path.join ( BGFX_DIR , " 3rdparty/dear-imgui/**.h " ) ,
2015-02-28 02:44:24 +03:00
path.join ( BGFX_DIR , " examples/common/**.cpp " ) ,
2016-04-26 05:17:42 +03:00
path.join ( BGFX_DIR , " examples/common/**.cpp " ) ,
2015-02-28 02:44:24 +03:00
path.join ( BGFX_DIR , " examples/common/**.h " ) ,
2013-05-18 06:39:08 +04:00
}
2014-08-23 15:24:39 +04:00
2017-06-27 07:04:16 +03:00
removefiles {
path.join ( BGFX_DIR , " examples/common/example-glue.cpp " ) ,
}
2015-06-09 03:07:35 +03:00
if _OPTIONS [ " with-scintilla " ] then
defines {
" SCI_NAMESPACE " ,
2015-06-10 00:05:26 +03:00
" SCI_LEXER " ,
2015-06-09 03:07:35 +03:00
}
2015-06-10 09:56:30 +03:00
buildoptions {
-- "-Wno-missing-field-initializers",
}
2015-06-09 03:07:35 +03:00
includedirs {
path.join ( BGFX_DIR , " 3rdparty/scintilla/include " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/lexlib " ) ,
}
files {
path.join ( BGFX_DIR , " 3rdparty/scintilla/src/**.cxx " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/src/**.h " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/lexlib/**.cxx " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/lexlib/**.h " ) ,
path.join ( BGFX_DIR , " 3rdparty/scintilla/lexers/**.cxx " ) ,
}
end
2014-10-12 08:55:24 +04:00
if _OPTIONS [ " with-sdl " ] then
defines {
" ENTRY_CONFIG_USE_SDL=1 " ,
}
2014-10-12 20:58:06 +04:00
includedirs {
" $(SDL2_DIR)/include " ,
}
2014-10-12 08:55:24 +04:00
end
2015-03-25 08:19:21 +03:00
if _OPTIONS [ " with-glfw " ] then
defines {
" ENTRY_CONFIG_USE_GLFW=1 " ,
}
end
2016-04-26 05:17:42 +03:00
2016-02-15 21:45:58 +03:00
configuration { " linux-steamlink " }
defines {
" EGL_API_FB " ,
}
2015-03-25 08:19:21 +03:00
2015-10-12 23:32:39 +03:00
configuration { " osx or ios* or tvos* " }
2015-08-28 06:27:03 +03:00
files {
path.join ( BGFX_DIR , " examples/common/**.mm " ) ,
2015-03-07 15:11:45 +03:00
}
2014-11-10 02:24:22 +03:00
2017-12-15 07:40:30 +03:00
configuration { " winstore* or durango " }
2016-04-26 05:17:42 +03:00
files {
path.join ( BGFX_DIR , " examples/common/**.cx " ) ,
}
2014-11-10 02:24:22 +03:00
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
}
2015-05-24 20:16:18 +03:00
premake.vstudio . splashpath = " ../../../examples/runtime/images/SplashScreen.png "