]>
git.saurik.com Git - ldid.git/blob - make.sh
13 export DEVELOPER_DIR
=/Applications
/Xcode
-5.1
.1.app
20 flags
=(cycc
-- -miphoneos-version-min=2.0 -arch armv6
-arch arm64
)
22 flags
+=(-Xarch_armv6 -Isysroot32/usr
/include
)
23 flags
+=(-Xarch_arm64 -Isysroot64/usr
/include
)
25 flags
+=(-Xarch_armv6 -Lsysroot32/usr
/lib
)
26 flags
+=(-Xarch_arm64 -Lsysroot64/usr
/lib
)
29 flags
+=(-framework CoreFoundation
)
38 if which xcrun
&>/dev
/null
; then
39 flags
=(xcrun
-sdk macosx g
++)
40 flags
+=(-mmacosx-version-min=10.4)
42 for arch
in i386 x86_64
; do
43 flags
+=(-arch "${arch}")
49 #flags+=(-L../../lib-osx/openssl)
51 # XXX: cannot redistribute
53 flags
+=(-Isysroot64/usr
/include
)
55 #flags+=(-Wl,/usr/lib/libcrypto.42.dylib)
59 sdk
=$(xcodebuild -sdk iphoneos -version Path)
65 flags
+=(-I"${sdk}"/usr
/include
/libxml2
)
66 flags
+=(-Ilibplist/include
)
67 flags
+=(-Ilibplist/libcnary
/include
)
69 for c
in libplist
/libcnary
/!(cnary
).c libplist
/src
/*.c
; do
73 if [[ "${c}" -nt "${o}" ]]; then
74 "${flags[@]}" -c -o "${o}" -x c
"${c}"
85 "${flags[@]}" -O3 -g0 -c -std=c
++11 -o "${out}"/ldid.o ldid.cpp
86 "${flags[@]}" -O3 -g0 -o "${out}"/ldid
"${out}"/ldid.o
"${os[@]}" -x c lookup2.c
-lxml2 -framework Security