seanpaultaylor 11 лет назад
Родитель
Сommit
2ae7e5e6a2
2 измененных файлов с 51 добавлено и 3 удалено
  1. 2 2
      newproject.bat
  2. 49 1
      samples/browser/android/.project

+ 2 - 2
newproject.bat

@@ -93,7 +93,7 @@ echo    This can be a relative path, absolute path,
 echo    or empty for the current folder. Note that
 echo    a project folder named %projName% will also
 echo    be created inside this folder.
-echo    Ex. samples
+echo    Ex. ./samples
 echo.
 set /p location=Path: 
 if "%location%" == "" (
@@ -177,7 +177,7 @@ copy template\android\build.xml "%projPath%\android\build.xml"
 call:replace "%projPath%\android\build.xml" TEMPLATE_PROJECT "%projName%"
 call:replace "%projPath%\android\build.xml" GAMEPLAY_PATH "%gpPath%"
 
-copy template\project.properties "%projPath%\project.properties"
+copy template\android\project.properties "%projPath%\android\project.properties"
 
 mkdir "%projPath%\android\jni"
 

+ 49 - 1
samples/browser/android/.project

@@ -10,6 +10,54 @@
 			<name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name>
 			<triggers>clean,full,incremental,</triggers>
 			<arguments>
+				<dictionary>
+					<key>?children?</key>
+					<value>?name?=outputEntries\|?children?=?name?=entry\\\\\\\|\\\|?name?=entry\\\\\\\|\\\|\||</value>
+				</dictionary>
+				<dictionary>
+					<key>?name?</key>
+					<value></value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.append_environment</key>
+					<value>true</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.buildArguments</key>
+					<value>NDK_DEBUG=1 -j4</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.buildCommand</key>
+					<value>ndk-build</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.cleanBuildTarget</key>
+					<value>clean</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.contents</key>
+					<value>org.eclipse.cdt.make.core.activeConfigSettings</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.enableAutoBuild</key>
+					<value>false</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.enableCleanBuild</key>
+					<value>true</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.enableFullBuild</key>
+					<value>true</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.stopOnError</key>
+					<value>true</value>
+				</dictionary>
+				<dictionary>
+					<key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key>
+					<value>false</value>
+				</dictionary>
 			</arguments>
 		</buildCommand>
 		<buildCommand>
@@ -51,7 +99,7 @@
 		<link>
 			<name>src</name>
 			<type>2</type>
-			<location>$%7BPARENT-2-PROJECT_LOC%7D/browser/src</location>
+			<locationURI>$%257BPARENT-2-PROJECT_LOC%257D/browser/src</locationURI>
 		</link>
 	</linkedResources>
 </projectDescription>