Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a05b24
commit e6fa824
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |