Permalink
Browse files

build config for BB10 simulator

  • Loading branch information...
1 parent 8a05b24 commit e6fa82456e14835f726951dec2a57493d4a5ab22 @singpolyma committed Nov 17, 2012
Showing with 54 additions and 0 deletions.
  1. +20 −0 blackberry-tablet.xml
  2. +34 −0 config.bb10-x86.mk
View
@@ -0,0 +1,20 @@
+<qnx>
+ <id>net.singpolyma.st-sdl</id>
+ <name>st-sdl</name>
+ <category>core.games</category>
+ <versionNumber>0.1.0</versionNumber>
+ <buildId>1</buildId>
+ <description>A terminal that sucks less (SDL)</description>
+ <filename>st</filename>
+ <initialWindow>
+ <systemChrome>none</systemChrome>
+ <transparent>false</transparent>
+ </initialWindow>
+ <permission system="true">run_native</permission>
+ <asset path="lib/libSDL-1.2.so.11" type="Qnx/Elf">libSDL-1.2.so.11</asset>
+ <asset path="lib/libSDL_ttf-2.0.so.10" type="Qnx/Elf">libSDL_ttf-2.0.so.10</asset>
+ <asset path="lib/libTouchControlOverlay.so" type="Qnx/Elf">libTouchControlOverlay.so</asset>
+ <asset path="LiberationMono-Regular.ttf">LiberationMono-Regular.ttf</asset>
+ <asset path="LiberationMono-Bold.ttf">LiberationMono-Bold.ttf</asset>
+ <env var="LD_LIBRARY_PATH" value="app/native/lib"/>
+</qnx>
View
@@ -0,0 +1,34 @@
+# st version
+VERSION = 0.3
+
+# Customize below to fit your system
+
+# paths
+PREFIX = /usr/local
+MANPREFIX = ${PREFIX}/share/man
+
+# includes and libs
+INCS = -I. -I./SDL_ttf/bb10_simulator_prefix/include/SDL
+LIBS = -lc -L./SDL_ttf/bb10_simulator_prefix/lib
+
+# flags
+CPPFLAGS = -DVERSION=\"${VERSION}\"
+CFLAGS += -g -pedantic -Wall -Os ${INCS} ${CPPFLAGS} ${MAKEFLAGS} `./SDL/bb10_simulator_prefix/bin/sdl-config --cflags`
+LDFLAGS += -g ${LIBS} `./SDL/bb10_simulator_prefix/bin/sdl-config --libs` -lSDL_ttf
+
+# compiler and linker
+CC ?= cc
+
+st.bar: st
+ mkdir -p lib/
+ cp -p SDL/bb10_simulator_prefix/lib/libSDL-1.2.so.11 lib/
+ cp -p SDL_ttf/bb10_simulator_prefix/lib/libSDL_ttf-2.0.so.10 lib/
+ cp -p ${QNX_TARGET}/x86/lib/libTouchControlOverlay.so.1 lib/
+ blackberry-nativepackager -package -devMode -target bar st.bar blackberry-tablet.xml st lib/libSDL-1.2.so.11 lib/libSDL_ttf-2.0.so.10 lib/libTouchControlOverlay.so.1 LiberationMono-Regular.ttf LiberationMono-Bold.ttf
+
+.PHONY: clean bb10clean
+
+clean: bb10clean
+
+bb10clean:
+ $(RM) -r lib st.bar

0 comments on commit e6fa824

Please sign in to comment.