This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 62
/
build-unix.yaml
142 lines (125 loc) · 8.5 KB
/
build-unix.yaml
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
steps:
- script: |
echo $OSTYPE
displayName: Determining OSTYPE
- script: |
export PKG_CONFIG_PATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/pkgconfig:$PKG_CONFIG_PATH"
cd libplist
./autogen.sh --prefix=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID --host=$TARGET --without-cython --enable-static=no --enable-shared=yes
make
make install
displayName: Build libplist
- script: |
export PKG_CONFIG_PATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/pkgconfig:$PKG_CONFIG_PATH"
cd libusbmuxd
./autogen.sh --prefix=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID --host=$TARGET --without-cython --enable-static=no --enable-shared=yes
make
make install
displayName: Build libusbmuxd
- script: |
export PKG_CONFIG_PATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/pkgconfig:$PKG_CONFIG_PATH"
if [[ "$OSTYPE" == "darwin"* ]]; then
export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
fi
cd libimobiledevice
./autogen.sh --prefix=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID --host=$TARGET --without-cython --enable-static=no --enable-shared=yes
make
make install
displayName: Build libimobiledevice
- script: |
export PKG_CONFIG_PATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/pkgconfig:$PKG_CONFIG_PATH"
if [[ "$OSTYPE" == "darwin"* ]]; then
export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
fi
cd libideviceactivation
./autogen.sh --prefix=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID --host=$TARGET --without-cython --enable-static=no --enable-shared=yes
make
make install
displayName: Build libideviceactivation
- script: |
export PKG_CONFIG_PATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/pkgconfig:$PKG_CONFIG_PATH"
if [[ "$OSTYPE" == "darwin"* ]]; then
export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
fi
cd ideviceinstaller
./autogen.sh --prefix=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID --host=$TARGET --without-cython --enable-static=no --enable-shared=yes
make
make install
displayName: Build ideviceinstaller
- script: |
export PKG_CONFIG_PATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/pkgconfig:$PKG_CONFIG_PATH"
if [[ "$OSTYPE" == "darwin"* ]]; then
export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
fi
cd libirecovery
./autogen.sh --prefix=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID --without-udev --host=$TARGET --without-cython --enable-static=no --enable-shared=yes
make
make install
displayName: Build libirecovery
- script: |
export PKG_CONFIG_PATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/pkgconfig:$PKG_CONFIG_PATH"
if [[ "$OSTYPE" == "darwin"* ]]; then
export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
fi
cd idevicerestore
./autogen.sh --prefix=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID --host=$TARGET --without-cython --enable-static=no --enable-shared=yes
make
make install
displayName: Build idevicerestore
- script: |
export CPATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/include"
export PKG_CONFIG_PATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/pkgconfig:$PKG_CONFIG_PATH"
if [[ "$OSTYPE" == "darwin"* ]]; then
export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
fi
cd usbmuxd
./autogen.sh --prefix=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID --host=$TARGET --with-udevrulesdir=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/udev --without-systemd
make
make install
displayName: Build usbmuxd
- script: |
export CPATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/include"
export PKG_CONFIG_PATH="$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/lib/pkgconfig:$PKG_CONFIG_PATH"
if [[ "$OSTYPE" == "darwin"* ]]; then
export PKG_CONFIG_PATH="$(brew --prefix)/opt/openssl/lib/pkgconfig:$PKG_CONFIG_PATH"
fi
cd ios-webkit-debug-proxy
./autogen.sh --prefix=$BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID --host=$TARGET
make
make install
displayName: Build ios-webkit-debug-proxy
- script: |
mkdir -p $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/
git -C libplist rev-parse HEAD >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libplist
git -C libplist config --get remote.origin.url >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libplist
git -C libusbmuxd rev-parse HEAD >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libusbmuxd
git -C libusbmuxd config --get remote.origin.url >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libusbmuxd
git -C libimobiledevice rev-parse HEAD >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libimobiledevice
git -C libimobiledevice config --get remote.origin.url >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libimobiledevice
git -C usbmuxd rev-parse HEAD >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/usbmuxd
git -C usbmuxd config --get remote.origin.url >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/usbmuxd
git -C libideviceactivation rev-parse HEAD >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libideviceactivation
git -C libideviceactivation config --get remote.origin.url >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libideviceactivation
git -C ideviceinstaller rev-parse HEAD >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/ideviceinstaller
git -C ideviceinstaller config --get remote.origin.url >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/ideviceinstaller
git -C libirecovery rev-parse HEAD >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libirecovery
git -C libirecovery config --get remote.origin.url >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/libirecovery
git -C idevicerestore rev-parse HEAD >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/idevicerestore
git -C idevicerestore config --get remote.origin.url >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/idevicerestore
git -C ios-webkit-debug-proxy rev-parse HEAD >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/ios-webkit-debug-proxy
git -C ios-webkit-debug-proxy config --get remote.origin.url >> $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/gitinfo/ios-webkit-debug-proxy
displayName: Get Git revision information
condition: not(eq(variables['rid'], 'centos.7-x64'))
- script: |
mkdir -p $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/
git -C libplist archive --prefix=libplist/ --format tar.gz -o $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/libplist.orig.tar.gz HEAD
git -C libusbmuxd archive --prefix=libusbmuxd/ --format tar.gz -o $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/libusbmuxd.orig.tar.gz HEAD
git -C libimobiledevice archive --prefix=libimobiledevice/ --format tar.gz -o $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/libimobiledevice.orig.tar.gz HEAD
git -C usbmuxd archive --prefix=usbmuxd/ --format tar.gz -o $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/usbmuxd.orig.tar.gz HEAD
git -C libideviceactivation archive --prefix=libideviceactivation/ --format tar.gz -o $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/libideviceactivation.orig.tar.gz HEAD
git -C ideviceinstaller archive --prefix=ideviceinstaller/ --format tar.gz -o $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/ideviceinstaller.orig.tar.gz HEAD
git -C libirecovery archive --prefix=libirecovery/ --format tar.gz -o $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/libirecovery.orig.tar.gz HEAD
git -C idevicerestore archive --prefix=idevicerestore/ --format tar.gz -o $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/idevicerestore.orig.tar.gz HEAD
git -C ios-webkit-debug-proxy archive --prefix=ios-webkit-debug-proxy/ --format tar.gz -o $BUILD_ARTIFACTSTAGINGDIRECTORY/libimobiledevice/$RID/sources/ios-webkit-debug-proxy.orig.tar.gz HEAD
displayName: Archive sources
condition: not(eq(variables['rid'], 'centos.7-x64'))