]>
git.saurik.com Git - ldid.git/blob - make.sh
16 sudo xcode
-select --switch /Applications
/Xcode
-4.6
.3.app
17 flags
=(cycc
-- -miphoneos-version-min=2.0 -arch armv6
)
22 sudo xcode
-select --switch /Applications
/Xcode
-5.1
.1.app
24 if which xcrun
&>/dev
/null
; then
25 flags
=(xcrun
-sdk macosx g
++)
26 flags
+=(-mmacosx-version-min=10.4)
28 for arch
in i386 x86_64
; do
29 flags
+=(-arch "${arch}")
37 sdk
=$(xcodebuild -sdk iphoneos -version Path)
40 flags
+=(-I"${sdk}"/usr
/include
/libxml2
)
41 flags
+=(-Ilibplist/include
)
42 flags
+=(-Ilibplist/libcnary
/include
)
49 for c
in libplist
/libcnary
/!(cnary
).c libplist
/src
/*.c
; do
53 if [[ "${c}" -nt "${o}" ]]; then
54 "${flags[@]}" -c -o "${o}" -x c
"${c}"
60 plist
=(-Llibplist/src
/.libs
-lplist)
62 "${flags[@]}" -c -std=c
++11 -o "${out}"/ldid.o ldid.cpp
63 "${flags[@]}" -o "${out}"/ldid
"${out}"/ldid.o
"${os[@]}" -x c lookup2.c
-lxml2 -lcrypto "${plist[@]}"