forked from MagicFoundation/Alcinoe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSdkTransformIOS.bat
68 lines (52 loc) · 1.36 KB
/
SdkTransformIOS.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@echo off
REM ----------------------------------------------
REM Update the path below according to your system
REM ----------------------------------------------
set EMBARCADERO_BIN_DIR=c:\program files (x86)\embarcadero\studio\21.0\bin
set IOS_SDK_ROOT="C:\SDKs\iPhoneOS14.4.sdk"
set IOS_SDK_INCLUDE="C:\SDKs\iPhoneOS14.4.sdk\usr\include"
set IOS_SDK_CLANG="C:\SDKs\iPhoneOS14.4.sdk\usr\lib\clang"
set IOS_SDK_FRAMEWORKS="C:\SDKs\iPhoneOS14.4.sdk\System\Library\Frameworks"
REM ---------------
REM clean directory
REM ---------------
Set CurrDir="%CD%"
SET OutputDir="%CurrDir%\_outputsdktransform_ios"
IF EXIST %OutputDir% rmdir /s /q %OutputDir%
IF EXIST %OutputDir% goto ERROR
mkdir %OutputDir%
REM -----------------
REM call SdkTransform
REM -----------------
cd "%EMBARCADERO_BIN_DIR%"
"SdkTransform.exe" ^
-cc1 ^
-g ^
-w ^
-D TARGET_OS_IPHONE ^
-isysroot %IOS_SDK_ROOT% ^
-isystem %IOS_SDK_INCLUDE% ^
-isystem %IOS_SDK_CLANG% ^
-F %IOS_SDK_FRAMEWORKS% ^
-triple thumbv7-apple-ios ^
-fdiagnostics-show-option ^
-fexceptions ^
-fobjc-exceptions ^
-x objective-c ^
-std=gnu99 ^
-nobuiltininc ^
-nostdinc++ ^
-nostdsysteminc ^
-fblocks ^
--out:%OutputDir%
IF ERRORLEVEL 1 goto ERROR
cd "%CurrDir%"
REM ----
REM EXIT
REM ----
SET Filename=tempht.m
IF EXIST %Filename% del %Filename%
goto EXIT
:ERROR
pause
:EXIT