diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-09-27 20:50:12 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-09-27 20:50:12 -0700 |
commit | 23fff9c86513730660d22f5eba0c85873e8bef09 (patch) | |
tree | 1816f7ea148d2cce4acf8a2ae26c04479f47a1aa | |
parent | d4187e5371fa6a656531494ce54cdc43638c3d71 (diff) | |
download | ldid-23fff9c86513730660d22f5eba0c85873e8bef09.tar.gz ldid-23fff9c86513730660d22f5eba0c85873e8bef09.tar.zst ldid-23fff9c86513730660d22f5eba0c85873e8bef09.zip |
Link libplist and switch to their C++ wrapper API.
-rw-r--r-- | ldid.cpp | 2 | ||||
-rwxr-xr-x | make.sh | 4 | ||||
-rwxr-xr-x | plist.sh | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -43,7 +43,7 @@ #include <openssl/pkcs12.h> #include <openssl/sha.h> -#include <plist/plist.h> +#include <plist/plist++.h> #include "ldid.hpp" @@ -57,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 -lxml2 -lcrypto +"${flags[@]}" -o "${out}"/ldid "${out}"/ldid.o "${os[@]}" -x c lookup2.c -lxml2 -lcrypto "${plist[@]}" if ! "${ios}"; then ln -sf out/ldid . diff --git a/plist.sh b/plist.sh new file mode 100755 index 0000000..bda6327 --- /dev/null +++ b/plist.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./configure CC='clang -mmacosx-version-min=10.4 -arch i386 -arch x86_64' CXX='clang++ -mmacosx-version-min=10.4 -arch i386 -arch x86_64' CPP='clang -E' CXXCPP='clang++ -E' libxml2_LIBS=-lxml2 libxml2_CFLAGS=-I/usr/include/libxml2 --enable-static --disable-shared |