• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Révisionce352ceb2739d3b9119a0854f465229dd7f821e2 (tree)
l'heure2024-01-18 04:10:02
AuteurHotshot5000 <sebastian_bugiu@yaho...>
CommiterHotshot5000

Message de Log

Removed x86_64 and simulator builds since we only use a device.

Change Summary

Modification

--- a/gdx-jnigen/src/main/resources/com/badlogic/gdx/jnigen/resources/scripts/build-ios.xml.template
+++ b/gdx-jnigen/src/main/resources/com/badlogic/gdx/jnigen/resources/scripts/build-ios.xml.template
@@ -97,113 +97,6 @@
9797 <mkdir dir="${libsDir}"/>
9898 </target>
9999
100- <!-- compiles all C and C++ files to object files in the build directory, for x86_64 builds-->
101- <target name="compile-x86_64" depends="create-build-dir">
102- <apply failonerror="false" executable="${g++}" dest="${buildDir}/x86_64" verbose="true">
103- <arg line="-isysroot ${iphonesimulator-sdk} -arch x86_64 -mios-simulator-version-min=${minIOSVersion} ${g++-opts}"/>
104- <arg value="-Ijni-headers"/>
105- <arg value="-Ijni-headers/${jniPlatform}"/>
106- <arg value="-I."/>
107- <arg value="-g"/>
108- %headerDirs%
109- <srcfile/>
110- <arg value="-o"/>
111- <targetfile/>
112- <fileset refid="g++-files"/>
113- <compositemapper>
114- <mapper type="glob" from="*.cpp" to="*.o"/>
115- <mapper type="glob" from="*.mm" to="*.o"/>
116- </compositemapper>
117- </apply>
118- <apply failonerror="false" executable="${gcc}" dest="${buildDir}/x86_64" verbose="true">
119- <arg line="-isysroot ${iphonesimulator-sdk} -arch x86_64 -mios-simulator-version-min=${minIOSVersion} ${gcc-opts}"/>
120- <arg value="-Ijni-headers"/>
121- <arg value="-Ijni-headers/${jniPlatform}"/>
122- <arg value="-I."/>
123- <arg value="-g"/>
124- %headerDirs%
125- <srcfile/>
126- <arg value="-o"/>
127- <targetfile/>
128- <fileset refid="gcc-files"/>
129- <compositemapper>
130- <mapper type="glob" from="*.c" to="*.o"/>
131- </compositemapper>
132- </apply>
133- </target>
134-
135- <!-- links the shared library based on the previously compiled object files -->
136- <target name="link-x86_64" depends="compile-x86_64">
137- <fileset dir="${buildDir}/x86_64" id="objFileSet">
138- <patternset>
139- <include name="**/*.o" />
140- </patternset>
141- </fileset>
142- <pathconvert pathsep=" " property="objFiles" refid="objFileSet" />
143- <mkdir dir="${libsDir}" />
144- <exec executable="${linker}" failonerror="false" dir="${buildDir}/x86_64">
145- <arg line="-isysroot ${iphonesimulator-sdk} -arch x86_64 -mios-simulator-version-min=${minIOSVersion} ${linker-opts}"/>
146- <arg value="-o" />
147- <arg path="${buildDir}/x86_64/${libName}" />
148- <arg line="${objFiles}"/>
149- <arg line="${libraries}" />
150- </exec>
151- </target>
152-
153-
154- <!-- compiles all C and C++ files to object files in the build directory, for arm64 simulator builds-->
155- <target name="compile-arm64-simulator" depends="create-build-dir">
156- <apply failonerror="false" executable="${g++}" dest="${buildDir}/arm64-simulator" verbose="true">
157- <arg line="-isysroot ${iphonesimulator-sdk} -arch arm64 -mios-simulator-version-min=${minIOSVersion} ${g++-opts}"/>
158- <arg value="-Ijni-headers"/>
159- <arg value="-Ijni-headers/${jniPlatform}"/>
160- <arg value="-I."/>
161- <arg value="-g"/>
162- %headerDirs%
163- <srcfile/>
164- <arg value="-o"/>
165- <targetfile/>
166- <fileset refid="g++-files"/>
167- <compositemapper>
168- <mapper type="glob" from="*.cpp" to="*.o"/>
169- <mapper type="glob" from="*.mm" to="*.o"/>
170- </compositemapper>
171- </apply>
172- <apply failonerror="false" executable="${gcc}" dest="${buildDir}/arm64-simulator" verbose="true">
173- <arg line="-isysroot ${iphonesimulator-sdk} -arch arm64 -mios-simulator-version-min=${minIOSVersion} ${gcc-opts}"/>
174- <arg value="-Ijni-headers"/>
175- <arg value="-Ijni-headers/${jniPlatform}"/>
176- <arg value="-I."/>
177- <arg value="-g"/>
178- %headerDirs%
179- <srcfile/>
180- <arg value="-o"/>
181- <targetfile/>
182- <fileset refid="gcc-files"/>
183- <compositemapper>
184- <mapper type="glob" from="*.c" to="*.o"/>
185- </compositemapper>
186- </apply>
187- </target>
188-
189- <!-- links the shared library based on the previously compiled object files -->
190- <target name="link-arm64-simulator" depends="compile-arm64-simulator">
191- <fileset dir="${buildDir}/arm64-simulator" id="objFileSetArm64Simulator">
192- <patternset>
193- <include name="**/*.o" />
194- </patternset>
195- </fileset>
196- <pathconvert pathsep=" " property="objFilesArm64Simulator" refid="objFileSetArm64Simulator" />
197- <mkdir dir="${libsDir}" />
198- <exec executable="${linker}" failonerror="false" dir="${buildDir}/arm64-simulator">
199- <arg line="-isysroot ${iphonesimulator-sdk} -arch arm64 -mios-simulator-version-min=${minIOSVersion} ${linker-opts}"/>
200- <arg value="-o" />
201- <arg path="${buildDir}/arm64-simulator/${libName}" />
202- <arg line="${objFilesArm64Simulator}"/>
203- <arg line="${libraries}" />
204- </exec>
205- </target>
206-
207100 <!-- compiles all C and C++ files to object files in the build directory, for arm64 builds-->
208101 <target name="compile-arm64" depends="create-build-dir">
209102 <apply failonerror="true" executable="${g++}" dest="${buildDir}/arm64" verbose="true">
@@ -257,13 +150,13 @@
257150 </exec>
258151 </target>
259152
260- <target name="archive-fat" depends="link-x86_64,link-arm64-simulator,link-arm64">
153+ <target name="archive-fat" depends="link-arm64">
261154 <mkdir dir="${buildDir}/device/${libName}.framework/"/>
262155 <copy file="${buildDir}/arm64/${libName}" tofile="${buildDir}/device/${libName}.framework/${libName}"/>
263156 <mkdir dir="${buildDir}/simulator/${libName}.framework/"/>
264- <exec executable="lipo" failonerror="true" dir="${buildDir}">
157+ <!--<exec executable="lipo" failonerror="true" dir="${buildDir}">
265158 <arg line="-create -output simulator/${libName}.framework/${libName} x86_64/${libName} arm64-simulator/${libName}"/>
266- </exec>
159+ </exec>-->
267160 </target>
268161
269162 <target name="build-plist-device" depends="archive-fat">
@@ -288,34 +181,10 @@
288181 </exec>
289182 </target>
290183
291- <target name="build-plist-simulator" depends="archive-fat">
292- <copy file="Info.plist" tofile="${buildDir}/simulator/${libName}.framework/Info.plist"/>
293- <exec executable="/usr/libexec/PlistBuddy" failonerror="true" dir="${buildDir}">
294- <arg value="-c"/>
295- <arg value="Set :CFBundleName ${libName}"/>
296- <arg value="-c"/>
297- <arg value="Set :CFBundleExecutable ${libName}"/>
298- <arg value="-c"/>
299- <arg value="Set :DTPlatformName iphonesimulator"/>
300- <arg value="-c"/>
301- <arg value="Set :CFBundleIdentifier ${xcframeworkBundleIdentifier}"/>
302- <arg value="-c"/>
303- <arg value="Set :MinimumOSVersion ${minIOSVersion}"/>
304- <arg value="${absolute.buildDir}/simulator/${libName}.framework/Info.plist"/>
305- </exec>
306- <exec executable="plutil" failonerror="true" dir="${buildDir}">
307- <arg line="-convert"/>
308- <arg line="binary1"/>
309- <arg line="${absolute.buildDir}/simulator/${libName}.framework/Info.plist"/>
310- </exec>
311- </target>
312184
313- <target name="generate-dsyms" depends="build-plist-device,build-plist-simulator">
314- <exec executable="dsymutil" failonerror="true" dir="${buildDir}">
315- <arg line="${absolute.buildDir}/simulator/${libName}.framework/${libName}"/>
316- <arg line="-o"/>
317- <arg line="${absolute.buildDir}/simulator/${libName}.framework.dSYM"/>
318- </exec>
185+
186+ <target name="generate-dsyms" depends="build-plist-device">
187+
319188 <exec executable="dsymutil" failonerror="true" dir="${buildDir}">
320189 <arg line="${absolute.buildDir}/device/${libName}.framework/${libName}"/>
321190 <arg line="-o"/>
@@ -325,10 +194,7 @@
325194
326195
327196 <target name="strip" depends="generate-dsyms">
328- <exec executable="strip" failonerror="true" dir="${buildDir}">
329- <arg line="-x"/>
330- <arg line="${absolute.buildDir}/simulator/${libName}.framework/${libName}"/>
331- </exec>
197+
332198 <exec executable="strip" failonerror="true" dir="${buildDir}">
333199 <arg line="-x"/>
334200 <arg line="${absolute.buildDir}/device/${libName}.framework/${libName}"/>
@@ -344,11 +210,11 @@
344210 <arg line="-debug-symbols"/>
345211 <arg line="${absolute.buildDir}/device/${libName}.framework.dSYM"/>
346212
347- <arg line="-framework"/>
213+ <!--<arg line="-framework"/>
348214 <arg line="${buildDir}/simulator/${libName}.framework"/>
349215 <arg line="-debug-symbols"/>
350216 <arg line="${absolute.buildDir}/simulator/${libName}.framework.dSYM"/>
351-
217+ -->
352218 <arg line="-output"/>
353219 <arg line="${libsDir}/${xcframeworkName}.xcframework"/>
354220 </exec>