Révision | ce352ceb2739d3b9119a0854f465229dd7f821e2 (tree) |
---|---|
l'heure | 2024-01-18 04:10:02 |
Auteur | Hotshot5000 <sebastian_bugiu@yaho...> |
Commiter | Hotshot5000 |
Removed x86_64 and simulator builds since we only use a device.
@@ -97,113 +97,6 @@ | ||
97 | 97 | <mkdir dir="${libsDir}"/> |
98 | 98 | </target> |
99 | 99 | |
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 | - | |
207 | 100 | <!-- compiles all C and C++ files to object files in the build directory, for arm64 builds--> |
208 | 101 | <target name="compile-arm64" depends="create-build-dir"> |
209 | 102 | <apply failonerror="true" executable="${g++}" dest="${buildDir}/arm64" verbose="true"> |
@@ -257,13 +150,13 @@ | ||
257 | 150 | </exec> |
258 | 151 | </target> |
259 | 152 | |
260 | - <target name="archive-fat" depends="link-x86_64,link-arm64-simulator,link-arm64"> | |
153 | + <target name="archive-fat" depends="link-arm64"> | |
261 | 154 | <mkdir dir="${buildDir}/device/${libName}.framework/"/> |
262 | 155 | <copy file="${buildDir}/arm64/${libName}" tofile="${buildDir}/device/${libName}.framework/${libName}"/> |
263 | 156 | <mkdir dir="${buildDir}/simulator/${libName}.framework/"/> |
264 | - <exec executable="lipo" failonerror="true" dir="${buildDir}"> | |
157 | + <!--<exec executable="lipo" failonerror="true" dir="${buildDir}"> | |
265 | 158 | <arg line="-create -output simulator/${libName}.framework/${libName} x86_64/${libName} arm64-simulator/${libName}"/> |
266 | - </exec> | |
159 | + </exec>--> | |
267 | 160 | </target> |
268 | 161 | |
269 | 162 | <target name="build-plist-device" depends="archive-fat"> |
@@ -288,34 +181,10 @@ | ||
288 | 181 | </exec> |
289 | 182 | </target> |
290 | 183 | |
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> | |
312 | 184 | |
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 | + | |
319 | 188 | <exec executable="dsymutil" failonerror="true" dir="${buildDir}"> |
320 | 189 | <arg line="${absolute.buildDir}/device/${libName}.framework/${libName}"/> |
321 | 190 | <arg line="-o"/> |
@@ -325,10 +194,7 @@ | ||
325 | 194 | |
326 | 195 | |
327 | 196 | <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 | + | |
332 | 198 | <exec executable="strip" failonerror="true" dir="${buildDir}"> |
333 | 199 | <arg line="-x"/> |
334 | 200 | <arg line="${absolute.buildDir}/device/${libName}.framework/${libName}"/> |
@@ -344,11 +210,11 @@ | ||
344 | 210 | <arg line="-debug-symbols"/> |
345 | 211 | <arg line="${absolute.buildDir}/device/${libName}.framework.dSYM"/> |
346 | 212 | |
347 | - <arg line="-framework"/> | |
213 | + <!--<arg line="-framework"/> | |
348 | 214 | <arg line="${buildDir}/simulator/${libName}.framework"/> |
349 | 215 | <arg line="-debug-symbols"/> |
350 | 216 | <arg line="${absolute.buildDir}/simulator/${libName}.framework.dSYM"/> |
351 | - | |
217 | + --> | |
352 | 218 | <arg line="-output"/> |
353 | 219 | <arg line="${libsDir}/${xcframeworkName}.xcframework"/> |
354 | 220 | </exec> |