2013-03-28 00:18:29 -04:00
|
|
|
#
|
|
|
|
# Copyright 2011-2013 Branimir Karadzic. All rights reserved.
|
|
|
|
# License: http://www.opensource.org/licenses/BSD-2-Clause
|
|
|
|
#
|
|
|
|
|
|
|
|
all:
|
|
|
|
premake4 --file=premake/premake4.lua vs2008
|
|
|
|
premake4 --file=premake/premake4.lua vs2010
|
2013-04-16 02:10:32 -04:00
|
|
|
premake4 --file=premake/premake4.lua --gcc=android-arm gmake
|
2013-11-09 13:52:19 -05:00
|
|
|
premake4 --file=premake/premake4.lua --gcc=android-mips gmake
|
|
|
|
premake4 --file=premake/premake4.lua --gcc=android-x86 gmake
|
2013-03-28 00:18:29 -04:00
|
|
|
premake4 --file=premake/premake4.lua --gcc=nacl gmake
|
|
|
|
premake4 --file=premake/premake4.lua --gcc=nacl-arm gmake
|
|
|
|
premake4 --file=premake/premake4.lua --gcc=pnacl gmake
|
|
|
|
premake4 --file=premake/premake4.lua --gcc=mingw gmake
|
|
|
|
premake4 --file=premake/premake4.lua --gcc=linux gmake
|
|
|
|
premake4 --file=premake/premake4.lua --gcc=osx gmake
|
2013-07-21 17:44:53 -04:00
|
|
|
premake4 --file=premake/premake4.lua --gcc=ios-arm gmake
|
|
|
|
premake4 --file=premake/premake4.lua --gcc=ios-simulator gmake
|
2013-04-13 02:43:46 -04:00
|
|
|
premake4 --file=premake/premake4.lua --gcc=qnx-arm gmake
|
2013-03-28 00:18:29 -04:00
|
|
|
premake4 --file=premake/premake4.lua xcode4
|
|
|
|
|
2013-04-16 02:10:32 -04:00
|
|
|
android-arm-debug:
|
|
|
|
make -R -C .build/projects/gmake-android-arm config=debug
|
|
|
|
android-arm-release:
|
|
|
|
make -R -C .build/projects/gmake-android-arm config=release
|
|
|
|
android-arm: android-arm-debug android-arm-release
|
|
|
|
|
2013-11-09 13:52:19 -05:00
|
|
|
android-mips-debug:
|
|
|
|
make -R -C .build/projects/gmake-android-mips config=debug
|
|
|
|
android-mips-release:
|
|
|
|
make -R -C .build/projects/gmake-android-mips config=release
|
|
|
|
android-mips: android-mips-debug android-mips-release
|
|
|
|
|
|
|
|
android-x86-debug:
|
|
|
|
make -R -C .build/projects/gmake-android-x86 config=debug
|
|
|
|
android-x86-release:
|
|
|
|
make -R -C .build/projects/gmake-android-x86 config=release
|
|
|
|
android-x86: android-x86-debug android-x86-release
|
|
|
|
|
2013-03-28 00:18:29 -04:00
|
|
|
linux-debug32:
|
|
|
|
make -R -C .build/projects/gmake-linux config=debug32
|
|
|
|
linux-release32:
|
|
|
|
make -R -C .build/projects/gmake-linux config=release32
|
|
|
|
linux-debug64:
|
|
|
|
make -R -C .build/projects/gmake-linux config=debug64
|
|
|
|
linux-release64:
|
|
|
|
make -R -C .build/projects/gmake-linux config=release64
|
|
|
|
linux: linux-debug32 linux-release32 linux-debug64 linux-release64
|
|
|
|
|
|
|
|
mingw-debug32:
|
|
|
|
make -R -C .build/projects/gmake-mingw config=debug32
|
|
|
|
mingw-release32:
|
|
|
|
make -R -C .build/projects/gmake-mingw config=release32
|
|
|
|
mingw-debug64:
|
|
|
|
make -R -C .build/projects/gmake-mingw config=debug64
|
|
|
|
mingw-release64:
|
|
|
|
make -R -C .build/projects/gmake-mingw config=release64
|
|
|
|
mingw: mingw-debug32 mingw-release32 mingw-debug64 mingw-release64
|
|
|
|
|
|
|
|
vs2008-debug32:
|
|
|
|
devenv .build/projects/vs2008/bgfx.sln /Build "Debug|Win32"
|
|
|
|
vs2008-release32:
|
|
|
|
devenv .build/projects/vs2008/bgfx.sln /Build "Release|Win32"
|
|
|
|
vs2008-debug64:
|
|
|
|
devenv .build/projects/vs2008/bgfx.sln /Build "Debug|x64"
|
|
|
|
vs2008-release64:
|
|
|
|
devenv .build/projects/vs2008/bgfx.sln /Build "Release|x64"
|
|
|
|
vs2008: vs2008-debug32 vs2008-release32 vs2008-debug64 vs2008-release64
|
|
|
|
|
|
|
|
nacl-debug32:
|
|
|
|
make -R -C .build/projects/gmake-nacl config=debug32
|
|
|
|
nacl-release32:
|
|
|
|
make -R -C .build/projects/gmake-nacl config=release32
|
|
|
|
nacl-debug64:
|
|
|
|
make -R -C .build/projects/gmake-nacl config=debug64
|
|
|
|
nacl-release64:
|
|
|
|
make -R -C .build/projects/gmake-nacl config=release64
|
|
|
|
nacl: nacl-debug32 nacl-release32 nacl-debug64 nacl-release64
|
|
|
|
|
2013-04-13 03:26:41 -04:00
|
|
|
nacl-arm-debug:
|
|
|
|
make -R -C .build/projects/gmake-nacl-arm config=debug
|
|
|
|
nacl-arm-release:
|
|
|
|
make -R -C .build/projects/gmake-nacl-arm config=release
|
2013-03-28 00:18:29 -04:00
|
|
|
nacl-arm: nacl-arm-debug32 nacl-arm-release32
|
|
|
|
|
|
|
|
pnacl-debug:
|
2013-04-13 03:26:41 -04:00
|
|
|
make -R -C .build/projects/gmake-pnacl config=debug
|
2013-03-28 00:18:29 -04:00
|
|
|
pnacl-release:
|
2013-04-13 03:26:41 -04:00
|
|
|
make -R -C .build/projects/gmake-pnacl config=release
|
2013-03-28 00:18:29 -04:00
|
|
|
pnacl: pnacl-debug pnacl-release
|
|
|
|
|
|
|
|
osx-debug32:
|
|
|
|
make -C .build/projects/gmake-osx config=debug32
|
|
|
|
osx-release32:
|
|
|
|
make -C .build/projects/gmake-osx config=release32
|
|
|
|
osx-debug64:
|
|
|
|
make -C .build/projects/gmake-osx config=debug64
|
|
|
|
osx-release64:
|
|
|
|
make -C .build/projects/gmake-osx config=release64
|
|
|
|
osx: osx-debug32 osx-release32 osx-debug64 osx-release64
|
|
|
|
|
2013-07-21 17:44:53 -04:00
|
|
|
ios-arm-debug:
|
|
|
|
make -R -C .build/projects/gmake-ios-arm config=debug
|
|
|
|
ios-arm-release:
|
|
|
|
make -R -C .build/projects/gmake-ios-arm config=release
|
|
|
|
ios-arm: ios-arm-debug ios-arm-release
|
|
|
|
|
|
|
|
ios-simulator-debug:
|
|
|
|
make -R -C .build/projects/gmake-ios-simulator config=debug
|
|
|
|
ios-simulator-release:
|
|
|
|
make -R -C .build/projects/gmake-ios-simulator config=release
|
|
|
|
ios-simulator: ios-simulator-debug ios-simulator-release
|
2013-07-14 16:14:48 -04:00
|
|
|
|
2013-04-13 03:26:41 -04:00
|
|
|
qnx-arm-debug:
|
|
|
|
make -R -C .build/projects/gmake-qnx-arm config=debug
|
|
|
|
qnx-arm-release:
|
|
|
|
make -R -C .build/projects/gmake-qnx-arm config=release
|
|
|
|
qnx-arm: qnx-arm-debug qnx-arm-release
|
2013-04-13 02:43:46 -04:00
|
|
|
|
2013-03-28 00:18:29 -04:00
|
|
|
rebuild-shaders:
|
2013-04-13 03:26:41 -04:00
|
|
|
make -R -C examples rebuild
|
2013-03-28 00:18:29 -04:00
|
|
|
|
2013-08-11 22:01:17 -04:00
|
|
|
analyze:
|
|
|
|
cppcheck src/
|
|
|
|
cppcheck examples/
|
|
|
|
|
2013-03-28 00:18:29 -04:00
|
|
|
docs:
|
2013-05-05 13:47:30 -04:00
|
|
|
doxygen premake/bgfx.doxygen
|
2013-03-28 00:18:29 -04:00
|
|
|
markdown README.md > .build/docs/readme.html
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@echo Cleaning...
|
2013-10-18 11:29:11 -04:00
|
|
|
-@rm -rf .build
|