]>
git.saurik.com Git - ldid.git/blob - make.sh
15 sudo xcode
-select --switch /Applications
/Xcode
-4.6
.3.app
16 flags
=(cycc
-- -miphoneos-version-min=2.0 -arch armv6
)
21 sudo xcode
-select --switch /Applications
/Xcode
-5.1
.1.app
23 if which xcrun
&>/dev
/null
; then
24 flags
=(xcrun
-sdk macosx g
++)
25 flags
+=(-mmacosx-version-min=10.4)
27 for arch
in i386 x86_64
; do
28 flags
+=(-arch "${arch}")
36 sdk
=$(xcodebuild -sdk iphoneos -version Path)
39 flags
+=(-I"${sdk}"/usr
/include
/libxml2
)
40 flags
+=(-Ilibplist/include
)
41 flags
+=(-Ilibplist/libcnary
/include
)
46 for c
in libplist
/libcnary
/!(cnary
).c libplist
/src
/*.c
; do
50 if [[ "${c}" -nt "${o}" ]]; then
51 "${flags[@]}" -c -o "${o}" -x c
"${c}"
57 "${flags[@]}" -c -std=c
++11 -o "${out}"/ldid.o ldid.cpp
58 "${flags[@]}" -o "${out}"/ldid
"${out}"/ldid.o
"${os[@]}" -x c lookup2.c
-x c sha1.c
-lxml2