Skip to content
Browse files

- Adds QNX makefile build support and instructions.

  • Loading branch information...
1 parent f4ed21f commit 3afda5c71a8d77f6bfb9cf5a326f010446baab59 @chrisculy chrisculy committed Oct 4, 2011
Showing with 48 additions and 0 deletions.
  1. +7 −0 Building.txt
  2. +8 −0 Makefile
  3. +8 −0 arm/Makefile
  4. +1 −0 arm/a-le-v7-g/Makefile
  5. +1 −0 arm/a-le-v7/Makefile
  6. +23 −0 common.mk
View
7 Building.txt
@@ -1,5 +1,12 @@
The Build folder contains custom made project files for Visual Studio 2010 and XCode4.
+To build for the QNX platform on Windows, Run cmd.exe and execute the following commands:
+> cd [bbndk] where [bbndk] is where the QNX NDK was installed (i.e. C:\bbndk)
+> NativeSDK-env.bat
+> cd [box2d] where [box2d] is the directory where Box2D was extracted to
+> make
+Following this, the relevant binaries should reside in the arm/ subdirectory.
+
For other platforms you need to run premake in this directory. You can get premake here:
http://industriousone.com/premake
View
8 Makefile
@@ -0,0 +1,8 @@
+LIST=CPU
+ifndef QRECURSE
+QRECURSE=recurse.mk
+ifdef QCONFIG
+QRDIR=$(dir $(QCONFIG))
+endif
+endif
+include $(QRDIR)$(QRECURSE)
View
8 arm/Makefile
@@ -0,0 +1,8 @@
+LIST=VARIANT
+ifndef QRECURSE
+QRECURSE=recurse.mk
+ifdef QCONFIG
+QRDIR=$(dir $(QCONFIG))
+endif
+endif
+include $(QRDIR)$(QRECURSE)
View
1 arm/a-le-v7-g/Makefile
@@ -0,0 +1 @@
+include ../../common.mk
View
1 arm/a-le-v7/Makefile
@@ -0,0 +1 @@
+include ../../common.mk
View
23 common.mk
@@ -0,0 +1,23 @@
+ifndef QCONFIG
+QCONFIG=qconfig.mk
+endif
+include $(QCONFIG)
+
+NAME=Box2D
+
+#===== CCFLAGS - add the flags to the C compiler command line.
+CCFLAGS+=-Y_gpp
+
+#===== EXTRA_SRCVPATH - a space-separated list of directories to search for source files.
+EXTRA_SRCVPATH+=$(PROJECT_ROOT)/Box2D/Collision \
+ $(PROJECT_ROOT)/Box2D/Collision/Shapes \
+ $(PROJECT_ROOT)/Box2D/Common \
+ $(PROJECT_ROOT)/Box2D/Dynamics \
+ $(PROJECT_ROOT)/Box2D/Dynamics/Contacts \
+ $(PROJECT_ROOT)/Box2D/Dynamics/Joints \
+ $(PROJECT_ROOT)/Box2D/Rope
+
+include $(MKFILES_ROOT)/qtargets.mk
+
+OPTIMIZE_TYPE_g=none
+OPTIMIZE_TYPE=$(OPTIMIZE_TYPE_$(filter g, $(VARIANTS)))

0 comments on commit 3afda5c

Please sign in to comment.
Something went wrong with that request. Please try again.