-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.sh
executable file
·41 lines (34 loc) · 1.49 KB
/
build.sh
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
#!/bin/sh
# Type './build.sh' to make iOS libraries.
# Type './build.sh -arch arm64' to make iOS libraries for iOS 64-bit.
# Type './build.sh clean' to remove object files.
if [ ! -f ../vgcore/ios/build.sh ] ; then
git clone https://github.com/rhcad/vgcore ../vgcore
fi
if [ ! -f ../vgios/build.sh ] ; then
git clone https://github.com/rhcad/vgios ../vgios
fi
if [ ! -f ../DemoCmds/ios/build.sh ] ; then
git clone https://github.com/rhcad/DemoCmds ../DemoCmds
fi
if [ ! -f ../SVGKit/SVGKit.podspec ] ; then
git clone https://github.com/SVGKit/SVGKit ../SVGKit
fi
vgiospath=../vgios
corepath=../vgcore/ios/TouchVGCore
demopath=../DemoCmds/ios/DemoCmds
SVG_path=../SVGKit
xcodebuild -project $vgiospath/TouchVG.xcodeproj $1 $2 -configuration Release -alltargets
xcodebuild -project $demopath/DemoCmds.xcodeproj $1 $2 -configuration Release
xcodebuild -project $corepath/TouchVGCore.xcodeproj $1 $2 -configuration Release
xcodebuild -project $SVG_path/SVGKit-iOS.xcodeproj $1 $2 -configuration Release
mkdir -p output/TouchVG
cp -R $vgiospath/build/Release-universal/*.a output
cp -R $vgiospath/build/Release-universal/include/TouchVG output
mkdir -p output/DemoCmds
cp -R $demopath/build/Release-universal/libDemoCmds.a output
cp -R $demopath/build/Release-universal/include/DemoCmds output
mkdir -p output/TouchVGCore
cp -R $corepath/build/Release-universal/libTouchVGCore.a output
cp -R $corepath/build/Release-universal/include/TouchVGCore output
cp -R $SVG_path/build/Release-universal/*.a output