Skip to content
This repository was archived by the owner on Sep 4, 2019. It is now read-only.

Commit 5484b49

Browse files
Initial Commit.
1 parent 8945198 commit 5484b49

File tree

415 files changed

+284011
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

415 files changed

+284011
-0
lines changed

.cproject

+617
Large diffs are not rendered by default.

.project

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>quake3</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
10+
<triggers>clean,full,incremental,</triggers>
11+
<arguments>
12+
<dictionary>
13+
<key>?children?</key>
14+
<value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|\||</value>
15+
</dictionary>
16+
<dictionary>
17+
<key>?name?</key>
18+
<value></value>
19+
</dictionary>
20+
<dictionary>
21+
<key>org.eclipse.cdt.make.core.append_environment</key>
22+
<value>true</value>
23+
</dictionary>
24+
<dictionary>
25+
<key>org.eclipse.cdt.make.core.buildArguments</key>
26+
<value></value>
27+
</dictionary>
28+
<dictionary>
29+
<key>org.eclipse.cdt.make.core.buildCommand</key>
30+
<value>make</value>
31+
</dictionary>
32+
<dictionary>
33+
<key>org.eclipse.cdt.make.core.buildLocation</key>
34+
<value>${workspace_loc:/quake3/Device-Debug}</value>
35+
</dictionary>
36+
<dictionary>
37+
<key>org.eclipse.cdt.make.core.contents</key>
38+
<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
39+
</dictionary>
40+
<dictionary>
41+
<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
42+
<value>false</value>
43+
</dictionary>
44+
<dictionary>
45+
<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
46+
<value>true</value>
47+
</dictionary>
48+
<dictionary>
49+
<key>org.eclipse.cdt.make.core.enableFullBuild</key>
50+
<value>true</value>
51+
</dictionary>
52+
<dictionary>
53+
<key>org.eclipse.cdt.make.core.stopOnError</key>
54+
<value>true</value>
55+
</dictionary>
56+
<dictionary>
57+
<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
58+
<value>true</value>
59+
</dictionary>
60+
</arguments>
61+
</buildCommand>
62+
<buildCommand>
63+
<name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name>
64+
<triggers>full,incremental,</triggers>
65+
<arguments>
66+
</arguments>
67+
</buildCommand>
68+
<buildCommand>
69+
<name>com.qnx.tools.bbt.xml.core.bbtXMLValidationBuilder</name>
70+
<arguments>
71+
</arguments>
72+
</buildCommand>
73+
</buildSpec>
74+
<natures>
75+
<nature>org.eclipse.cdt.core.cnature</nature>
76+
<nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature>
77+
<nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature>
78+
<nature>com.qnx.tools.ide.bbt.core.bbtnature</nature>
79+
<nature>org.eclipse.cdt.core.ccnature</nature>
80+
</natures>
81+
</projectDescription>
+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#Mon Jan 23 12:10:14 EST 2012
2+
eclipse.preferences.version=1
3+
org.eclipse.cdt.codan.checkers.errnoreturn=Warning
4+
org.eclipse.cdt.codan.checkers.errnoreturn.params={implicit\=>false}
5+
org.eclipse.cdt.codan.checkers.errreturnvalue=Error
6+
org.eclipse.cdt.codan.checkers.errreturnvalue.params={}
7+
org.eclipse.cdt.codan.checkers.noreturn=Error
8+
org.eclipse.cdt.codan.checkers.noreturn.params={implicit\=>false}
9+
org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation=Error
10+
org.eclipse.cdt.codan.internal.checkers.AbstractClassCreation.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
11+
org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem=Error
12+
org.eclipse.cdt.codan.internal.checkers.AmbiguousProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
13+
org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem=Warning
14+
org.eclipse.cdt.codan.internal.checkers.AssignmentInConditionProblem.params={}
15+
org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem=Error
16+
org.eclipse.cdt.codan.internal.checkers.AssignmentToItselfProblem.params={}
17+
org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem=Warning
18+
org.eclipse.cdt.codan.internal.checkers.CaseBreakProblem.params={no_break_comment\=>"no break",last_case_param\=>true,empty_case_param\=>false}
19+
org.eclipse.cdt.codan.internal.checkers.CatchByReference=Warning
20+
org.eclipse.cdt.codan.internal.checkers.CatchByReference.params={unknown\=>false,exceptions\=>()}
21+
org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem=Error
22+
org.eclipse.cdt.codan.internal.checkers.CircularReferenceProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
23+
org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem=Error
24+
org.eclipse.cdt.codan.internal.checkers.FieldResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
25+
org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem=Error
26+
org.eclipse.cdt.codan.internal.checkers.FunctionResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
27+
org.eclipse.cdt.codan.internal.checkers.InvalidArguments=Error
28+
org.eclipse.cdt.codan.internal.checkers.InvalidArguments.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
29+
org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem=Error
30+
org.eclipse.cdt.codan.internal.checkers.InvalidTemplateArgumentsProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
31+
org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem=Error
32+
org.eclipse.cdt.codan.internal.checkers.LabelStatementNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
33+
org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem=Error
34+
org.eclipse.cdt.codan.internal.checkers.MemberDeclarationNotFoundProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
35+
org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem=Error
36+
org.eclipse.cdt.codan.internal.checkers.MethodResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
37+
org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker=-Info
38+
org.eclipse.cdt.codan.internal.checkers.NamingConventionFunctionChecker.params={pattern\=>"^[a-z]",macro\=>true,exceptions\=>()}
39+
org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem=Warning
40+
org.eclipse.cdt.codan.internal.checkers.NonVirtualDestructorProblem.params={}
41+
org.eclipse.cdt.codan.internal.checkers.OverloadProblem=Error
42+
org.eclipse.cdt.codan.internal.checkers.OverloadProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
43+
org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem=Error
44+
org.eclipse.cdt.codan.internal.checkers.RedeclarationProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
45+
org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem=Error
46+
org.eclipse.cdt.codan.internal.checkers.RedefinitionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
47+
org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem=-Warning
48+
org.eclipse.cdt.codan.internal.checkers.ReturnStyleProblem.params={}
49+
org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem=-Warning
50+
org.eclipse.cdt.codan.internal.checkers.ScanfFormatStringSecurityProblem.params={}
51+
org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem=Warning
52+
org.eclipse.cdt.codan.internal.checkers.StatementHasNoEffectProblem.params={macro\=>true,exceptions\=>()}
53+
org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem=Warning
54+
org.eclipse.cdt.codan.internal.checkers.SuggestedParenthesisProblem.params={paramNot\=>false}
55+
org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem=Warning
56+
org.eclipse.cdt.codan.internal.checkers.SuspiciousSemicolonProblem.params={else\=>false,afterelse\=>false}
57+
org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem=Error
58+
org.eclipse.cdt.codan.internal.checkers.TypeResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}
59+
org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem=Warning
60+
org.eclipse.cdt.codan.internal.checkers.UnusedFunctionDeclarationProblem.params={}
61+
org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem=Warning
62+
org.eclipse.cdt.codan.internal.checkers.UnusedStaticFunctionProblem.params={}
63+
org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem=Warning
64+
org.eclipse.cdt.codan.internal.checkers.UnusedVariableDeclarationProblem.params={exceptions\=>("@(\#)","$Id")}
65+
org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem=Error
66+
org.eclipse.cdt.codan.internal.checkers.VariableResolutionProblem.params={launchModes\=>{RUN_ON_FULL_BUILD\=>false,RUN_ON_INC_BUILD\=>false,RUN_AS_YOU_TYPE\=>true,RUN_ON_DEMAND\=>true}}

.settings/org.eclipse.cdt.core.prefs

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#Tue Jan 24 11:54:19 EST 2012
2+
eclipse.preferences.version=1
3+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/AS/delimiter=;
4+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/AS/operation=replace
5+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/AS/value=qcc -Vgcc_ntoarmv7
6+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/CC/delimiter=;
7+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/CC/operation=replace
8+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/CC/value=qcc -Vgcc_ntoarmv7
9+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/CXX/delimiter=;
10+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/CXX/operation=replace
11+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/CXX/value=qcc -Vgcc_ntoarmv7
12+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/LD/delimiter=;
13+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/LD/operation=replace
14+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/LD/value=qcc -Vgcc_ntoarmv7
15+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/append=true
16+
environment/project/com.qnx.qcc.configuration.exe.debug.513359716/appendContributed=true

Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
LIST=CPU
2+
ifndef QRECURSE
3+
QRECURSE=recurse.mk
4+
ifdef QCONFIG
5+
QRDIR=$(dir $(QCONFIG))
6+
endif
7+
endif
8+
include $(QRDIR)$(QRECURSE)

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
Building using BlackBerry NDK 2.0
2+
=================================
3+
- Either copy the .pk3 files from your official Quake3 CD(testing only) or any custom packages (pk3 files) you have made to the resource/baseq3 directory.
4+
5+
Building from Momentics IDE
6+
--------------------------------------
7+
- Run BlackBerry Momentics IDE.
8+
- Import the project from the Quake3 directory.
9+
- Change to Project->Build Configurations -> Set Active-> Device-Debug
10+
- Build the project.
11+
- Debug or Run the project.
12+
13+
Build from Makefile
14+
-------------------------------
15+
- Run cmd.exe and execute the following commands:
16+
> cd [bbndk] where [bbndk] is where the QNX NDK was installed (i.e. C:\bbndk-2.0.0)
17+
> Run bbndk-env.bat/.sh
18+
> cd [Quake3]/qnx where [Quake3] is the directory where Quake3 was extracted to
19+
> make
20+
21+
- Following this, the relevant binaries should reside in the following subdirectories:
22+
[quake3]/qnx/nto/arm/o.le.v7/quake3 (ARM release)
23+
[quake3]/qnx/nto/arm/o.le.v7.g/quake3_g (ARM debug)
24+
25+
- Run the following to build the Quake3 bar file. Add the additional parameters for signing keys and debug tokens.
26+
> blackberry-nativepackager -package Quake3.bar bar-descriptor.xml -e qnx/nto/arm/o.le.v7/quake3 quake3 -e resource/baseq3/pak0.pk3 baseq3/pak0.pk3 icon.png
27+

bar-descriptor.xml

+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
<?xml version="1.0" encoding="utf-8" standalone="no"?>
2+
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
3+
4+
<!-- BlackBerry Tablet OS application descriptor file.
5+
6+
Specifies parameters for identifying, installing, and launching native applications on BlackBerry Tablet OS.
7+
8+
-->
9+
10+
<!-- A universally unique application identifier. Must be unique across all BlackBerry Tablet OS applications.
11+
Using a reverse DNS-style name as the id is recommended. (Eg. com.example.ExampleApplication.) Required. -->
12+
<id>quake3</id>
13+
14+
<!-- The name that is displayed in the BlackBerry Tablet OS application installer.
15+
May have multiple values for each language. See samples or xsd schema file. Optional. -->
16+
<name>Quake 3</name>
17+
18+
<!-- A string value of the format <0-999>.<0-999>.<0-999> that represents application version which can be used to check for application upgrade.
19+
Values can also be 1-part or 2-part. It is not necessary to have a 3-part value.
20+
An updated version of application must have a versionNumber value higher than the previous version. Required. -->
21+
<versionNumber>1.3.2</versionNumber>
22+
23+
<!-- Fourth digit segment of the package version. First three segments are taken from the
24+
<versionNumber> element. Must be an integer from 0 to 2^16-1 -->
25+
<buildId>1</buildId>
26+
27+
<!-- A string value (such as "v1", "2.5", or "Alpha 1") that represents the version of the application, as it should be shown to users. Optional. -->
28+
<!-- <versionLabel></versionLabel> -->
29+
30+
<!-- Description, displayed in the BlackBerry Tablet OS application installer.
31+
May have multiple values for each language. See samples or xsd schema file. Optional. -->
32+
33+
<!-- Copyright information. Optional. -->
34+
<!-- <copyright></copyright> -->
35+
36+
<!-- Name of author which is used for signing. Must match the developer name of your development certificate. -->
37+
<author>id Software</author>
38+
<description>Quake 3</description>
39+
40+
<!-- Unique author ID assigned by signing authority. Required if using debug tokens. -->
41+
<!-- <authorId>ABC1234YjsnUk235h</authorId> -->
42+
43+
<initialWindow>
44+
<systemChrome>none</systemChrome>
45+
<transparent>false</transparent>
46+
</initialWindow>
47+
48+
<!-- The category where the application appears. Either core.games or core.media. -->
49+
<category>core.games</category>
50+
<asset path="icon.png">icon.png</asset>
51+
<asset path="resource/baseq3/pak0.pk3">baseq3/pak0.pk3</asset>
52+
<configuration id="com.qnx.qcc.configuration.exe.debug.513359716" name="Device-Debug">
53+
<platformArchitecture>armle-v7</platformArchitecture>
54+
<asset path="Device-Debug/quake3" entry="true" type="Qnx/Elf">quake3</asset>
55+
</configuration>
56+
<configuration id="com.qnx.qcc.configuration.exe.release.1191851318" name="Device-Release">
57+
<platformArchitecture>armle-v7</platformArchitecture>
58+
<asset path="Device-Release/Quake3" entry="true" type="Qnx/Elf">Quake3</asset>
59+
</configuration>
60+
<configuration id="com.qnx.qcc.configuration.exe.profile.2047434418" name="Device-Profile">
61+
<platformArchitecture>armle-v7</platformArchitecture>
62+
<asset path="Device-Profile/Quake3" entry="true" type="Qnx/Elf">Quake3</asset>
63+
</configuration>
64+
<configuration id="com.qnx.qcc.configuration.exe.profile.coverage.1968527117" name="Device-Coverage">
65+
<platformArchitecture>armle-v7</platformArchitecture>
66+
<asset path="Device-Coverage/Quake3" entry="true" type="Qnx/Elf">Quake3</asset>
67+
</configuration>
68+
<configuration id="com.qnx.qcc.configuration.exe.debug.1673080274" name="Simulator-Debug">
69+
<platformArchitecture>x86</platformArchitecture>
70+
<asset path="Simulator-Debug/Quake3" entry="true" type="Qnx/Elf">Quake3</asset>
71+
</configuration>
72+
<configuration id="com.qnx.qcc.configuration.exe.profile.1942537661" name="Simulator-Profile">
73+
<platformArchitecture>x86</platformArchitecture>
74+
<asset path="Simulator-Profile/Quake3" entry="true" type="Qnx/Elf">Quake3</asset>
75+
</configuration>
76+
<configuration id="com.qnx.qcc.configuration.exe.profile.coverage.725836059" name="Simulator-Coverage">
77+
<platformArchitecture>x86</platformArchitecture>
78+
<asset path="Simulator-Coverage/Quake3" entry="true" type="Qnx/Elf">Quake3</asset>
79+
</configuration>
80+
81+
<!-- The icon for the application, which should be 86x86. -->
82+
<icon>
83+
<image>icon.png</image>
84+
</icon>
85+
86+
<!-- The splash screen that will appear when your application is launching. Should be 1024x600. -->
87+
<!-- <splashscreen></splashscreen> -->
88+
89+
<!-- Request permission to execute native code. Required for native applications. -->
90+
<action system="true">run_native</action>
91+
<action>access_internet</action>
92+
93+
<!-- The permissions requested by your application. -->
94+
<!-- <action>access_shared</action> -->
95+
<!-- <action>record_audio</action> -->
96+
<!-- <action>read_geolocation</action> -->
97+
<!-- <action>use_camera</action> -->
98+
<!-- <action>access_internet</action> -->
99+
<!-- <action>play_audio</action> -->
100+
<!-- <action>post_notification</action> -->
101+
<!-- <action>set_audio_volume</action> -->
102+
<!-- <action>read_device_identifying_information</action> -->
103+
104+
<!-- Ensure that shared libraries in the package are found at run-time. -->
105+
<env var="LD_LIBRARY_PATH" value="app/native/lib"/>
106+
107+
</qnx>

0 commit comments

Comments
 (0)