]> git.cameronkatri.com Git - ldid.git/blobdiff - make.sh
Sort of support signing bundles with entitlements.
[ldid.git] / make.sh
diff --git a/make.sh b/make.sh
index da019ac9b3c53615408423c17974bc25913c3087..404c3d2ad31789c8e3146a08268435528b344331 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -7,6 +7,7 @@ if [[ $# == 0 ]]; then
     ios=false
 else
     ios=$1
+    shift
 fi
 
 if "${ios}"; then
@@ -40,6 +41,8 @@ flags+=(-I"${sdk}"/usr/include/libxml2)
 flags+=(-Ilibplist/include)
 flags+=(-Ilibplist/libcnary/include)
 
+flags+=("$@")
+
 mkdir -p "${out}"
 os=()
 
@@ -54,8 +57,10 @@ done
 
 set -x
 
+plist=(-Llibplist/src/.libs -lplist)
+
 "${flags[@]}" -c -std=c++11 -o "${out}"/ldid.o ldid.cpp
-"${flags[@]}" -o "${out}"/ldid "${out}"/ldid.o "${os[@]}" -x c lookup2.c -x c sha1.c -lxml2
+"${flags[@]}" -o "${out}"/ldid "${out}"/ldid.o "${os[@]}" -x c lookup2.c -lxml2 -lcrypto "${plist[@]}"
 
 if ! "${ios}"; then
     ln -sf out/ldid .