Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

isSimulator() call added to Device Info extension #208

Merged
merged 4 commits into from

2 participants

This page is out of date. Refresh to see the latest.
View
380 BB10/deviceInfo/NDK_project/.cproject
@@ -3,85 +3,6 @@
<cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage">
<storageModule moduleId="org.eclipse.cdt.core.settings">
- <cconfiguration id="com.qnx.qcc.configuration.sharedLib.debug.1877214659">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.configuration.sharedLib.debug.1877214659" moduleId="org.eclipse.cdt.core.settings" name="Device-Debug">
- <externalSettings>
- <externalSetting>
- <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Template/public"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Template"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/community.deviceInfo"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/Template/Device-Debug"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/community.deviceInfo/Device-Debug"/>
- <entry flags="" kind="libraryFile" name="Template" srcPrefixMapping="" srcRootPath=""/>
- <entry flags="RESOLVED" kind="libraryFile" name="Template" srcPrefixMapping="" srcRootPath=""/>
- <entry flags="RESOLVED" kind="libraryFile" name="community.deviceInfo" srcPrefixMapping="" srcRootPath=""/>
- </externalSetting>
- </externalSettings>
- <extensions>
- <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="com.qnx.tools.ide.qde.core.QDELinkerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- </extensions>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactExtension="so" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" description="" errorParsers="com.qnx.tools.ide.qde.core.QDELinkerErrorParser;org.eclipse.cdt.core.GCCErrorParser;org.eclipse.cdt.core.GLDErrorParser" id="com.qnx.qcc.configuration.sharedLib.debug.1877214659" name="Device-Debug" parent="com.qnx.qcc.configuration.sharedLib.debug" postannouncebuildStep="" postbuildStep="" preannouncebuildStep="" prebuildStep="">
- <folderInfo id="com.qnx.qcc.configuration.sharedLib.debug.1877214659." name="/" resourcePath="">
- <toolChain errorParsers="" id="com.qnx.qcc.toolChain.sharedLib.debug.191768618" name="QNX QCC" superClass="com.qnx.qcc.toolChain">
- <option id="com.qnx.qcc.option.cpu.1578303771" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
- <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.436831450" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
- <builder buildPath="${workspace_loc:/Template/Device-Debug}" errorParsers="" id="com.qnx.nto.606064165" keepEnvironmentInBuildfile="false" name="CDT Internal Builder" superClass="com.qnx.nto"/>
- <tool command="qcc" commandLinePattern="${COMMAND} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} ${FLAGS}" errorParsers="org.eclipse.cdt.core.GCCErrorParser" id="com.qnx.qcc.tool.compiler.1879271926" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
- <option id="com.qnx.qcc.option.compiler.shared.1417199508" name="Shared (-shared)" superClass="com.qnx.qcc.option.compiler.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.optlevel.970212540" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
- <option id="com.qnx.qcc.option.compile.debug.1460927572" name="Debug (-g)" superClass="com.qnx.qcc.option.compile.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.includePath.2099952700" name="Include Directories (-I)" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/bb/device"/>
- <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/public}"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
- </option>
- <option id="com.qnx.qcc.option.compiler.security.1666296795" name="Enhanced Security (-fstack-protector-strong)" superClass="com.qnx.qcc.option.compiler.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.defines.1549451068" name="Defines (-D)" superClass="com.qnx.qcc.option.compiler.defines" valueType="definedSymbols">
- <listOptionValue builtIn="false" value="_FORTIFY_SOURCE=2"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.compiler.710679926" superClass="com.qnx.qcc.inputType.compiler"/>
- </tool>
- <tool command="qcc" commandLinePattern="${COMMAND} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} ${FLAGS}" errorParsers="" id="com.qnx.qcc.tool.assembler.646317396" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
- <option id="com.qnx.qcc.option.assembler.debug.1334708386" name="Debug (-g)" superClass="com.qnx.qcc.option.assembler.debug" value="true" valueType="boolean"/>
- <inputType id="com.qnx.qcc.inputType.assembler.911447541" superClass="com.qnx.qcc.inputType.assembler"/>
- </tool>
- <tool command="qcc" commandLinePattern="${COMMAND} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} ${FLAGS}" errorParsers="com.qnx.tools.ide.qde.core.QDELinkerErrorParser;org.eclipse.cdt.core.GLDErrorParser" id="com.qnx.qcc.tool.linker.1892404701" name="QCC Linker" superClass="com.qnx.qcc.tool.linker">
- <option id="com.qnx.qcc.option.linker.debug.2066515291" name="Debug (-g)" superClass="com.qnx.qcc.option.linker.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.shared.935213389" name="Shared (-shared)" superClass="com.qnx.qcc.option.linker.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraryPaths.2116373961" name="Library Paths (-L)" superClass="com.qnx.qcc.option.linker.libraryPaths" valueType="libPaths">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/lib"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/${CPUVARDIR}/usr/lib/qt4/lib"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib"/>
- </option>
- <option id="com.qnx.qcc.option.linker.security.1764180006" name="Enhanced Security (-Wl,-z,relro -Wl,-z,now)" superClass="com.qnx.qcc.option.linker.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraries.227797113" name="Libraries (-l)" superClass="com.qnx.qcc.option.linker.libraries" valueType="libs">
- <listOptionValue builtIn="false" value="QtCore"/>
- <listOptionValue builtIn="false" value="bbdevice"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.linker.1025464239" superClass="com.qnx.qcc.inputType.linker">
- <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
- <additionalInput kind="additionalinput" paths="$(LIBS)"/>
- </inputType>
- </tool>
- <tool id="com.qnx.qcc.tool.archiver.847297905" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
- </toolChain>
- </folderInfo>
- <sourceEntries>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="public"/>
- </sourceEntries>
- </configuration>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
- </cconfiguration>
<cconfiguration id="com.qnx.qcc.configuration.sharedLib.release.608922875">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.configuration.sharedLib.release.608922875" moduleId="org.eclipse.cdt.core.settings" name="Device-Release">
<externalSettings>
@@ -158,157 +79,6 @@
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
- <cconfiguration id="com.qnx.qcc.configuration.sharedLib.profile.27502649">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.configuration.sharedLib.profile.27502649" moduleId="org.eclipse.cdt.core.settings" name="Device-Profile">
- <externalSettings>
- <externalSetting>
- <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Template/public"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/Template/Device-Profile"/>
- <entry flags="" kind="libraryFile" name="Template" srcPrefixMapping="" srcRootPath=""/>
- </externalSetting>
- </externalSettings>
- <extensions>
- <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="com.qnx.tools.ide.qde.core.QDELinkerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- </extensions>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactExtension="so" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=com.qnx.buildType.profile,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" description="Build for Profiling" id="com.qnx.qcc.configuration.sharedLib.profile.27502649" name="Device-Profile" parent="com.qnx.qcc.configuration.sharedLib.profile">
- <folderInfo id="com.qnx.qcc.configuration.sharedLib.profile.27502649." name="/" resourcePath="">
- <toolChain id="com.qnx.qcc.toolChain.sharedLib.profile.942439565" name="QNX QCC" superClass="com.qnx.qcc.toolChain">
- <option id="com.qnx.qcc.option.cpu.2055455815" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
- <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.1460803543" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
- <builder buildPath="${workspace_loc:/Template/Device-Profile}" id="com.qnx.nto.1317522383" keepEnvironmentInBuildfile="false" name="CDT Internal Builder" superClass="com.qnx.nto"/>
- <tool id="com.qnx.qcc.tool.compiler.445493654" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
- <option id="com.qnx.qcc.option.compiler.shared.1834537273" name="Shared (-shared)" superClass="com.qnx.qcc.option.compiler.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.optlevel.512579134" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
- <option id="com.qnx.qcc.option.compile.debug.1314888503" name="Debug (-g)" superClass="com.qnx.qcc.option.compile.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.profile2.1332239682" name="Build for Profiling (Function Instrumentation) (-finstrument-functions)" superClass="com.qnx.qcc.option.compiler.profile2" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.includePath.1232257233" name="Include Directories (-I)" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/bb/device"/>
- <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/public}"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
- </option>
- <option id="com.qnx.qcc.option.compiler.security.304610370" name="Enhanced Security (-fstack-protector-strong)" superClass="com.qnx.qcc.option.compiler.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.defines.961519137" name="Defines (-D)" superClass="com.qnx.qcc.option.compiler.defines" valueType="definedSymbols">
- <listOptionValue builtIn="false" value="_FORTIFY_SOURCE=2"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.compiler.139374714" superClass="com.qnx.qcc.inputType.compiler"/>
- </tool>
- <tool id="com.qnx.qcc.tool.assembler.84035750" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
- <option id="com.qnx.qcc.option.assembler.debug.964262814" name="Debug (-g)" superClass="com.qnx.qcc.option.assembler.debug" value="true" valueType="boolean"/>
- <inputType id="com.qnx.qcc.inputType.assembler.136780888" superClass="com.qnx.qcc.inputType.assembler"/>
- </tool>
- <tool id="com.qnx.qcc.tool.linker.1881786617" name="QCC Linker" superClass="com.qnx.qcc.tool.linker">
- <option id="com.qnx.qcc.option.linker.debug.1401962234" name="Debug (-g)" superClass="com.qnx.qcc.option.linker.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.profile2.1899497130" name="Build for Profiling (Function Instrumentation) (-lprofiling)" superClass="com.qnx.qcc.option.linker.profile2" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.shared.1169741529" name="Shared (-shared)" superClass="com.qnx.qcc.option.linker.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraryPaths.1458539142" name="Library Paths (-L)" superClass="com.qnx.qcc.option.linker.libraryPaths" valueType="libPaths">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/lib"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/${CPUVARDIR}/usr/lib/qt4/lib"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib"/>
- </option>
- <option id="com.qnx.qcc.option.linker.security.1708860491" name="Enhanced Security (-Wl,-z,relro -Wl,-z,now)" superClass="com.qnx.qcc.option.linker.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraries.2086313169" name="Libraries (-l)" superClass="com.qnx.qcc.option.linker.libraries" valueType="libs">
- <listOptionValue builtIn="false" value="bbdevice"/>
- <listOptionValue builtIn="false" value="QtCore"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.linker.802392274" superClass="com.qnx.qcc.inputType.linker">
- <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
- <additionalInput kind="additionalinput" paths="$(LIBS)"/>
- </inputType>
- </tool>
- <tool id="com.qnx.qcc.tool.archiver.2080729816" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
- </toolChain>
- </folderInfo>
- <sourceEntries>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="public"/>
- </sourceEntries>
- </configuration>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
- </cconfiguration>
- <cconfiguration id="com.qnx.qcc.configuration.sharedLib.coverage.1806890017">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.configuration.sharedLib.coverage.1806890017" moduleId="org.eclipse.cdt.core.settings" name="Device-Coverage">
- <externalSettings>
- <externalSetting>
- <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Template/public"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/Template/Device-Coverage"/>
- <entry flags="" kind="libraryFile" name="Template" srcPrefixMapping="" srcRootPath=""/>
- </externalSetting>
- </externalSettings>
- <extensions>
- <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="com.qnx.tools.ide.qde.core.QDELinkerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- </extensions>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactExtension="so" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=com.qnx.buildType.coverage,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" description="Build with Code Coverage" id="com.qnx.qcc.configuration.sharedLib.coverage.1806890017" name="Device-Coverage" parent="com.qnx.qcc.configuration.sharedLib.coverage">
- <folderInfo id="com.qnx.qcc.configuration.sharedLib.coverage.1806890017." name="/" resourcePath="">
- <toolChain id="com.qnx.qcc.toolChain.sharedLib.coverage.1658857194" name="QNX QCC" superClass="com.qnx.qcc.toolChain">
- <option id="com.qnx.qcc.option.cpu.1201722330" name="Target CPU:" superClass="com.qnx.qcc.option.cpu" value="com.qnx.qcc.option.gen.cpu.armle-v7" valueType="enumerated"/>
- <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.403898679" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
- <builder buildPath="${workspace_loc:/Template/Device-Coverage}" id="com.qnx.nto.1526448130" keepEnvironmentInBuildfile="false" name="CDT Internal Builder" superClass="com.qnx.nto"/>
- <tool id="com.qnx.qcc.tool.compiler.896107073" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
- <option id="com.qnx.qcc.option.compiler.shared.2016926234" name="Shared (-shared)" superClass="com.qnx.qcc.option.compiler.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.optlevel.571725797" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
- <option id="com.qnx.qcc.option.compile.debug.2099523193" name="Debug (-g)" superClass="com.qnx.qcc.option.compile.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.coverage.443259067" name="Build for Code Coverage (-Wc,-ftest-coverage -Wc,-fprofile-arcs)" superClass="com.qnx.qcc.option.compiler.coverage" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.includePath.78227312" name="Include Directories (-I)" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/bb/device"/>
- <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/public}"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
- </option>
- <option id="com.qnx.qcc.option.compiler.security.1756697867" name="Enhanced Security (-fstack-protector-strong)" superClass="com.qnx.qcc.option.compiler.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.defines.879955122" name="Defines (-D)" superClass="com.qnx.qcc.option.compiler.defines" valueType="definedSymbols">
- <listOptionValue builtIn="false" value="_FORTIFY_SOURCE=2"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.compiler.129340647" superClass="com.qnx.qcc.inputType.compiler"/>
- </tool>
- <tool id="com.qnx.qcc.tool.assembler.1895486171" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
- <option id="com.qnx.qcc.option.assembler.debug.1003882988" name="Debug (-g)" superClass="com.qnx.qcc.option.assembler.debug" value="true" valueType="boolean"/>
- <inputType id="com.qnx.qcc.inputType.assembler.1882679870" superClass="com.qnx.qcc.inputType.assembler"/>
- </tool>
- <tool id="com.qnx.qcc.tool.linker.1952361067" name="QCC Linker" superClass="com.qnx.qcc.tool.linker">
- <option id="com.qnx.qcc.option.linker.debug.1165823345" name="Debug (-g)" superClass="com.qnx.qcc.option.linker.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.coverage.1180137289" name="Build for Code Coverage (-ftest-coverage -fprofile-arcs)" superClass="com.qnx.qcc.option.linker.coverage" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.shared.1237324749" name="Shared (-shared)" superClass="com.qnx.qcc.option.linker.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraryPaths.1646505677" name="Library Paths (-L)" superClass="com.qnx.qcc.option.linker.libraryPaths" valueType="libPaths">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/lib"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib"/>
- </option>
- <option id="com.qnx.qcc.option.linker.security.565853353" name="Enhanced Security (-Wl,-z,relro -Wl,-z,now)" superClass="com.qnx.qcc.option.linker.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraries.152967788" name="Libraries (-l)" superClass="com.qnx.qcc.option.linker.libraries" valueType="libs">
- <listOptionValue builtIn="false" value="bbdevice"/>
- <listOptionValue builtIn="false" value="QtCore"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.linker.224554770" superClass="com.qnx.qcc.inputType.linker">
- <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
- <additionalInput kind="additionalinput" paths="$(LIBS)"/>
- </inputType>
- </tool>
- <tool id="com.qnx.qcc.tool.archiver.779497179" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
- </toolChain>
- </folderInfo>
- <sourceEntries>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="public"/>
- </sourceEntries>
- </configuration>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
- </cconfiguration>
<cconfiguration id="com.qnx.qcc.configuration.sharedLib.debug.193597202">
<storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.configuration.sharedLib.debug.193597202" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Debug">
<externalSettings>
@@ -382,156 +152,6 @@
</storageModule>
<storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
</cconfiguration>
- <cconfiguration id="com.qnx.qcc.configuration.sharedLib.profile.941124085">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.configuration.sharedLib.profile.941124085" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Profile">
- <externalSettings>
- <externalSetting>
- <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Template/public"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/Template/Simulator-Profile"/>
- <entry flags="" kind="libraryFile" name="Template" srcPrefixMapping="" srcRootPath=""/>
- </externalSetting>
- </externalSettings>
- <extensions>
- <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="com.qnx.tools.ide.qde.core.QDELinkerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- </extensions>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactExtension="so" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=com.qnx.buildType.profile,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" description="Build for Profiling" id="com.qnx.qcc.configuration.sharedLib.profile.941124085" name="Simulator-Profile" parent="com.qnx.qcc.configuration.sharedLib.profile">
- <folderInfo id="com.qnx.qcc.configuration.sharedLib.profile.941124085." name="/" resourcePath="">
- <toolChain id="com.qnx.qcc.toolChain.sharedLib.profile.2039571511" name="QNX QCC" superClass="com.qnx.qcc.toolChain">
- <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.2056186062" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
- <builder buildPath="${workspace_loc:/Template/Simulator-Profile}" id="com.qnx.nto.720646111" keepEnvironmentInBuildfile="false" name="CDT Internal Builder" superClass="com.qnx.nto"/>
- <tool id="com.qnx.qcc.tool.compiler.695327139" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
- <option id="com.qnx.qcc.option.compiler.shared.1333895577" name="Shared (-shared)" superClass="com.qnx.qcc.option.compiler.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.optlevel.1510595019" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
- <option id="com.qnx.qcc.option.compile.debug.2062656374" name="Debug (-g)" superClass="com.qnx.qcc.option.compile.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.profile2.310135966" name="Build for Profiling (Function Instrumentation) (-finstrument-functions)" superClass="com.qnx.qcc.option.compiler.profile2" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.includePath.1331825250" name="Include Directories (-I)" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/bb/device"/>
- <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/public}"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
- </option>
- <option id="com.qnx.qcc.option.compiler.security.106473584" name="Enhanced Security (-fstack-protector-strong)" superClass="com.qnx.qcc.option.compiler.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.defines.1623246779" name="Defines (-D)" superClass="com.qnx.qcc.option.compiler.defines" valueType="definedSymbols">
- <listOptionValue builtIn="false" value="_FORTIFY_SOURCE=2"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.compiler.445126053" superClass="com.qnx.qcc.inputType.compiler"/>
- </tool>
- <tool id="com.qnx.qcc.tool.assembler.2058477552" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
- <option id="com.qnx.qcc.option.assembler.debug.1334096638" name="Debug (-g)" superClass="com.qnx.qcc.option.assembler.debug" value="true" valueType="boolean"/>
- <inputType id="com.qnx.qcc.inputType.assembler.1607661608" superClass="com.qnx.qcc.inputType.assembler"/>
- </tool>
- <tool id="com.qnx.qcc.tool.linker.274526163" name="QCC Linker" superClass="com.qnx.qcc.tool.linker">
- <option id="com.qnx.qcc.option.linker.debug.1372838850" name="Debug (-g)" superClass="com.qnx.qcc.option.linker.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.profile2.1428522213" name="Build for Profiling (Function Instrumentation) (-lprofiling)" superClass="com.qnx.qcc.option.linker.profile2" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.shared.1357475130" name="Shared (-shared)" superClass="com.qnx.qcc.option.linker.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraryPaths.1309733103" name="Library Paths (-L)" superClass="com.qnx.qcc.option.linker.libraryPaths" valueType="libPaths">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/lib"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/${CPUVARDIR}/usr/lib/qt4/lib"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib"/>
- </option>
- <option id="com.qnx.qcc.option.linker.security.1422840260" name="Enhanced Security (-Wl,-z,relro -Wl,-z,now)" superClass="com.qnx.qcc.option.linker.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraries.203659667" name="Libraries (-l)" superClass="com.qnx.qcc.option.linker.libraries" valueType="libs">
- <listOptionValue builtIn="false" value="bbdevice"/>
- <listOptionValue builtIn="false" value="QtCore"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.linker.318181422" superClass="com.qnx.qcc.inputType.linker">
- <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
- <additionalInput kind="additionalinput" paths="$(LIBS)"/>
- </inputType>
- </tool>
- <tool id="com.qnx.qcc.tool.archiver.1706787374" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
- </toolChain>
- </folderInfo>
- <sourceEntries>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="public"/>
- </sourceEntries>
- </configuration>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
- </cconfiguration>
- <cconfiguration id="com.qnx.qcc.configuration.sharedLib.coverage.537092296">
- <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="com.qnx.qcc.configuration.sharedLib.coverage.537092296" moduleId="org.eclipse.cdt.core.settings" name="Simulator-Coverage">
- <externalSettings>
- <externalSetting>
- <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/Template/public"/>
- <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/Template/Simulator-Coverage"/>
- <entry flags="" kind="libraryFile" name="Template" srcPrefixMapping="" srcRootPath=""/>
- </externalSetting>
- </externalSettings>
- <extensions>
- <extension id="com.qnx.tools.ide.qde.core.QDEBynaryParser" point="org.eclipse.cdt.core.BinaryParser"/>
- <extension id="com.qnx.tools.ide.qde.core.QDELinkerErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- <extension id="org.eclipse.cdt.core.GLDErrorParser" point="org.eclipse.cdt.core.ErrorParser"/>
- </extensions>
- </storageModule>
- <storageModule moduleId="cdtBuildSystem" version="4.0.0">
- <configuration artifactExtension="so" artifactName="${ProjName}" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.sharedLib" buildProperties="org.eclipse.cdt.build.core.buildType=com.qnx.buildType.coverage,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.sharedLib" description="Build with Code Coverage" id="com.qnx.qcc.configuration.sharedLib.coverage.537092296" name="Simulator-Coverage" parent="com.qnx.qcc.configuration.sharedLib.coverage">
- <folderInfo id="com.qnx.qcc.configuration.sharedLib.coverage.537092296." name="/" resourcePath="">
- <toolChain id="com.qnx.qcc.toolChain.sharedLib.coverage.1409700437" name="QNX QCC" superClass="com.qnx.qcc.toolChain">
- <targetPlatform archList="all" binaryParser="com.qnx.tools.ide.qde.core.QDEBynaryParser" id="com.qnx.qcc.targetPlatform.123435356" osList="all" superClass="com.qnx.qcc.targetPlatform"/>
- <builder buildPath="${workspace_loc:/Template/Simulator-Coverage}" id="com.qnx.nto.540805157" keepEnvironmentInBuildfile="false" name="CDT Internal Builder" superClass="com.qnx.nto"/>
- <tool id="com.qnx.qcc.tool.compiler.595727552" name="QCC Compiler" superClass="com.qnx.qcc.tool.compiler">
- <option id="com.qnx.qcc.option.compiler.shared.1993375109" name="Shared (-shared)" superClass="com.qnx.qcc.option.compiler.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.optlevel.1636380900" name="Optimization Level" superClass="com.qnx.qcc.option.compiler.optlevel" value="com.qnx.qcc.option.compiler.optlevel.0" valueType="enumerated"/>
- <option id="com.qnx.qcc.option.compile.debug.249331101" name="Debug (-g)" superClass="com.qnx.qcc.option.compile.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.coverage.641010958" name="Build for Code Coverage (-Wc,-ftest-coverage -Wc,-fprofile-arcs)" superClass="com.qnx.qcc.option.compiler.coverage" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.includePath.344574432" name="Include Directories (-I)" superClass="com.qnx.qcc.option.compiler.includePath" valueType="includePath">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4/QtCore"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/qt4"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/bb/device"/>
- <listOptionValue builtIn="false" value="${workspace_loc:/${ProjName}/public}"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/usr/include/freetype2"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/usr/include"/>
- </option>
- <option id="com.qnx.qcc.option.compiler.security.1921643665" name="Enhanced Security (-fstack-protector-strong)" superClass="com.qnx.qcc.option.compiler.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.compiler.defines.453136796" name="Defines (-D)" superClass="com.qnx.qcc.option.compiler.defines" valueType="definedSymbols">
- <listOptionValue builtIn="false" value="_FORTIFY_SOURCE=2"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.compiler.622691546" superClass="com.qnx.qcc.inputType.compiler"/>
- </tool>
- <tool id="com.qnx.qcc.tool.assembler.1247332096" name="QCC Assembler" superClass="com.qnx.qcc.tool.assembler">
- <option id="com.qnx.qcc.option.assembler.debug.114306263" name="Debug (-g)" superClass="com.qnx.qcc.option.assembler.debug" value="true" valueType="boolean"/>
- <inputType id="com.qnx.qcc.inputType.assembler.138220427" superClass="com.qnx.qcc.inputType.assembler"/>
- </tool>
- <tool id="com.qnx.qcc.tool.linker.532570526" name="QCC Linker" superClass="com.qnx.qcc.tool.linker">
- <option id="com.qnx.qcc.option.linker.debug.1125589493" name="Debug (-g)" superClass="com.qnx.qcc.option.linker.debug" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.coverage.158579585" name="Build for Code Coverage (-ftest-coverage -fprofile-arcs)" superClass="com.qnx.qcc.option.linker.coverage" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.shared.1695519749" name="Shared (-shared)" superClass="com.qnx.qcc.option.linker.shared" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraryPaths.494101205" name="Library Paths (-L)" superClass="com.qnx.qcc.option.linker.libraryPaths" valueType="libPaths">
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/lib"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/${CPUVARDIR}/usr/lib/qt4/lib"/>
- <listOptionValue builtIn="false" value="${QNX_TARGET}/../target-override/${CPUVARDIR}/usr/lib"/>
- </option>
- <option id="com.qnx.qcc.option.linker.security.295270180" name="Enhanced Security (-Wl,-z,relro -Wl,-z,now)" superClass="com.qnx.qcc.option.linker.security" value="true" valueType="boolean"/>
- <option id="com.qnx.qcc.option.linker.libraries.433937596" name="Libraries (-l)" superClass="com.qnx.qcc.option.linker.libraries" valueType="libs">
- <listOptionValue builtIn="false" value="bbdevice"/>
- <listOptionValue builtIn="false" value="QtCore"/>
- </option>
- <inputType id="com.qnx.qcc.inputType.linker.1536810093" superClass="com.qnx.qcc.inputType.linker">
- <additionalInput kind="additionalinputdependency" paths="$(USER_OBJS)"/>
- <additionalInput kind="additionalinput" paths="$(LIBS)"/>
- </inputType>
- </tool>
- <tool id="com.qnx.qcc.tool.archiver.493567756" name="QCC Archiver" superClass="com.qnx.qcc.tool.archiver"/>
- </toolChain>
- </folderInfo>
- <sourceEntries>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="src"/>
- <entry flags="VALUE_WORKSPACE_PATH|RESOLVED" kind="sourcePath" name="public"/>
- </sourceEntries>
- </configuration>
- </storageModule>
- <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/>
- </cconfiguration>
</storageModule>
<storageModule moduleId="cdtBuildSystem" version="4.0.0">
<project id="Template.null.138005006" name="Template"/>
View
BIN  BB10/deviceInfo/NDK_project/Device-Debug/libDeviceInfo.so
Binary file not shown
View
BIN  BB10/deviceInfo/NDK_project/Device-Release/libDeviceInfo.so
Binary file not shown
View
BIN  BB10/deviceInfo/NDK_project/Simulator-Debug/libDeviceInfo.so
Binary file not shown
View
2  BB10/deviceInfo/NDK_project/src/template_js.cpp
@@ -85,5 +85,7 @@ string TemplateJS::InvokeMethod(const string& command) {
return m_pTemplateController->getRoamingStatus();
else if (strCommand == "getMNC")
return m_pTemplateController->getMNC();
+ else if (strCommand == "isSimulator")
+ return m_pTemplateController->isSimulator();
return "Unknown C++ method";
}
View
18 BB10/deviceInfo/NDK_project/src/template_ndk.cpp
@@ -16,6 +16,8 @@
#include <string>
#include <sstream>
+#include <bps/bps.h>
+#include <bps/deviceinfo.h>
#include <bb/device/SimCardInfo>
#include <bb/device/HardwareInfo>
#include <bb/device/CellularNetworkInfo>
@@ -29,6 +31,7 @@ namespace webworks {
DeviceInfo::DeviceInfo(TemplateJS *parent) {
m_pParent = parent;
+ bps_initialize();
}
std::string DeviceInfo::getModelNumber() {
@@ -52,7 +55,22 @@ std::string DeviceInfo::getMNC() {
return simInfo.mobileNetworkCode().toLocal8Bit().data();
}
+std::string DeviceInfo::isSimulator() {
+ deviceinfo_details_t *details;
+
+ if (BPS_SUCCESS == deviceinfo_get_details(&details)) {
+ if(deviceinfo_details_is_simulator(details)) {
+ return "true";
+ } else {
+ return "false";
+ }
+ deviceinfo_free_details(&details);
+ }
+ return "null";
+}
+
DeviceInfo::~DeviceInfo() {
+ bps_shutdown();
}
View
1  BB10/deviceInfo/NDK_project/src/template_ndk.hpp
@@ -32,6 +32,7 @@ class DeviceInfo {
std::string getRoamingStatus();
std::string getMCC();
std::string getMNC();
+ std::string isSimulator();
private:
TemplateJS *m_pParent;
View
5 BB10/deviceInfo/Readme.md
@@ -22,6 +22,11 @@ community.deviceInfo.getModelNumber()
</pre>
<pre>
+//returns whether the device is a Simulator - 'true' or 'false'
+community.deviceInfo.isSimulator()
+</pre>
+
+<pre>
//returns Roaming Status as 'true' or 'false'
community.deviceInfo.getRoamingStatus()
</pre>
View
6 BB10/deviceInfo/ext/community.deviceInfo/client.js
@@ -40,4 +40,10 @@ var _self = {},
_self.getMNC = function () {
return window.webworks.execSync(_ID, "getMNC", null);
};
+
+ //get Mobile Network Code
+ _self.isSimulator = function () {
+ return window.webworks.execSync(_ID, "isSimulator", null);
+ };
+
module.exports = _self;
View
BIN  BB10/deviceInfo/ext/community.deviceInfo/device/libDeviceInfo.so
Binary file not shown
View
4 BB10/deviceInfo/ext/community.deviceInfo/index.js
@@ -34,5 +34,9 @@ module.exports = {
getMNC: function (success, fail) {
success(template.getInstance().getMNC());
+ },
+
+ isSimulator: function (success, fail) {
+ success(template.getInstance().isSimulator());
}
};
View
BIN  BB10/deviceInfo/ext/community.deviceInfo/simulator/libDeviceInfo.so
Binary file not shown
View
4 BB10/deviceInfo/ext/community.deviceInfo/templateJNEXT.js
@@ -64,6 +64,10 @@ JNEXT.Template = function () {
return JNEXT.invoke(self.m_id, "getMNC");
};
+ self.isSimulator = function () {
+ return JNEXT.invoke(self.m_id, "isSimulator");
+ };
+
// ************************
// End of methods to edit
// ************************
Something went wrong with that request. Please try again.