-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (63 loc) · 3.23 KB
/
Makefile
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
69
70
71
72
VERSION=1.29.5
CONFIGURATION=Release
all: build/AirTestFairy.ane
# Check https://helpx.adobe.com/ca/air/kb/archived-air-sdk-version.html for latest versions
airsdk/bin/adt:
# rm -rf airsdk
# mkdir airsdk
# wget -P airsdk https://airdownload.adobe.com/air/mac/download/31.0/AIRSDK_Compiler.dmg
# hdiutil attach airsdk/AIRSDK_Compiler.dmg
# cp -R /Volumes/AIR\ SDK/* airsdk/.
ls -lsrt airsdk
ios/AirTestFairy/AirTestFairy/libTestFairy.a:
curl -L -s -o ./ios/AirTestFairy/AirTestFairy/sdk.zip "http://app.testfairy.com/ios-sdk/TestFairySDK-${VERSION}.zip"
unzip -q -o -d ./ios/AirTestFairy/AirTestFairy ./ios/AirTestFairy/AirTestFairy/sdk.zip libTestFairy.a TestFairy.h
-rm -f ./ios/AirTestFairy/AirTestFairy/sdk.zip
build/ios/libAirTestFairy.a: ios/AirTestFairy/AirTestFairy/libTestFairy.a
xcodebuild -project ./ios/AirTestFairy/AirTestFairy.xcodeproj -configuration $(CONFIGURATION) -sdk iphoneos
xcodebuild -project ./ios/AirTestFairy/AirTestFairy.xcodeproj -configuration $(CONFIGURATION) -sdk iphonesimulator
mkdir -p ios/build/$(CONFIGURATION)-universal
file ios/AirTestFairy/build/$(CONFIGURATION)-iphonesimulator/libAirTestFairy.a
file ios/AirTestFairy/build/$(CONFIGURATION)-iphoneos/libAirTestFairy.a
lipo -create ios/AirTestFairy/build/$(CONFIGURATION)-iphoneos/libAirTestFairy.a \
ios/AirTestFairy/build/$(CONFIGURATION)-iphonesimulator/libAirTestFairy.a \
-output ios/build/$(CONFIGURATION)-universal/libAirTestFairy.a
mkdir -p build/ios
cp -f ios/build/$(CONFIGURATION)-universal/libAirTestFairy.a build/ios/libAirTestFairy.a
cp -f ./ios/AirTestFairy/AirTestFairy/libTestFairy.a build/ios/libTestFairy.a
file build/ios/libAirTestFairy.a
build/android/libAirTestFairy.jar:
ant clean -file android/build.xml
ant jar -file android/build.xml
mkdir -p build/android
cp -f android/bin/libAirTestFairy.jar build/android/libAirTestFairy.jar
cp -f android/libs/testfairy-sdk.jar build/android/testfairy-sdk.jar
build/AirTestFairy.swc: build/ios/libAirTestFairy.a build/android/libAirTestFairy.jar
airsdk/bin/compc -source-path actionscript/src \
-output build/AirTestFairy.swc \
-swf-version=26 \
-external-library-path+=airsdk/frameworks/libs/air/airglobal.swc \
-include-classes com.testfairy.AirTestFairy
build/AirTestFairy.ane: airsdk/bin/adt build/AirTestFairy.swc
mkdir -p build/ios
mkdir -p build/android
mkdir -p build/default
unzip -o -d build build/AirTestFairy.swc
cp -f build/library.swf build/ios/library.swf
cp -f build/library.swf build/android/library.swf
cp -f build/library.swf build/default/library.swf
cp -f actionscript/extension.xml build/extension.xml
cp -f actionscript/platform-ios.xml build/platform-ios.xml
cp -f actionscript/platform-android.xml build/platform-android.xml
airsdk/bin/adt -package \
-target ane build/AirTestFairy.ane build/extension.xml \
-swc build/AirTestFairy.swc \
-platform iPhone-ARM -platformoptions build/platform-ios.xml -C build/ios . \
-platform Android-ARM -platformoptions build/platform-android.xml -C build/android . \
-platform Android-x86 -platformoptions build/platform-android.xml -C build/android . \
-platform default -C build/default .
clean:
-rm -rf build
-rm ios/AirTestFairy/AirTestFairy/TestFairy.h
-rm ios/AirTestFairy/AirTestFairy/libTestFairy.a
# -rm -rf airsdk