2013-05-17 22:39:08 -04:00
--
2015-01-02 17:43:11 -05:00
-- Copyright 2010-2015 Branimir Karadzic. All rights reserved.
2013-05-17 22:39:08 -04:00
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
2013-06-05 00:43:43 -04:00
project ( " example-common " )
2013-05-17 22:39:08 -04:00
uuid ( " 21cc0e26-bf62-11e2-a01e-0291bd4c8125 " )
kind " StaticLib "
includedirs {
2015-02-27 18:44:24 -05:00
path.join ( BX_DIR , " include " ) ,
path.join ( BGFX_DIR , " include " ) ,
path.join ( BGFX_DIR , " 3rdparty " ) ,
2013-05-17 22:39:08 -04:00
}
files {
2015-02-27 18:44:24 -05:00
path.join ( BGFX_DIR , " 3rdparty/ib-compress/**.cpp " ) ,
path.join ( BGFX_DIR , " 3rdparty/ib-compress/**.h " ) ,
path.join ( BGFX_DIR , " 3rdparty/ocornut-imgui/**.cpp " ) ,
path.join ( BGFX_DIR , " 3rdparty/ocornut-imgui/**.h " ) ,
path.join ( BGFX_DIR , " examples/common/**.cpp " ) ,
path.join ( BGFX_DIR , " examples/common/**.h " ) ,
2013-05-17 22:39:08 -04:00
}
2014-08-23 07:24:39 -04:00
2015-06-08 20:07:35 -04:00
if _OPTIONS [ " with-scintilla " ] then
defines {
" SCI_NAMESPACE " ,
2015-06-09 17:05:26 -04:00
" SCI_LEXER " ,
2015-06-08 20:07:35 -04:00
}
2015-06-10 02:56:30 -04:00
buildoptions {
-- "-Wno-missing-field-initializers",
}
2015-06-08 20:07:35 -04: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 00:55:24 -04:00
if _OPTIONS [ " with-sdl " ] then
defines {
" ENTRY_CONFIG_USE_SDL=1 " ,
}
2014-10-12 12:58:06 -04:00
includedirs {
" $(SDL2_DIR)/include " ,
}
2014-10-12 00:55:24 -04:00
end
2015-03-25 01:19:21 -04:00
if _OPTIONS [ " with-glfw " ] then
defines {
" ENTRY_CONFIG_USE_GLFW=1 " ,
}
end
2015-10-12 16:32:39 -04:00
configuration { " osx or ios* or tvos* " }
2015-08-27 23:27:03 -04:00
files {
path.join ( BGFX_DIR , " examples/common/**.mm " ) ,
2015-03-07 07:11:45 -05:00
}
2014-11-09 18:24:22 -05:00
2015-05-24 13:16:18 -04:00
configuration { " winphone8* or winstore8* " }
2014-11-09 18:24:22 -05: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 13:16:18 -04:00
premake.vstudio . splashpath = " ../../../examples/runtime/images/SplashScreen.png "