You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

33 lines
935 B

if [ -f "${LIB_DIR}/libpEpAdapter.a" ]; then
echo "lib exists already in ${LIB_DIR}. If you want to rebuild it, delete the existing one."
exit 0
fi
VERSION=$(sh "${SCRIPT_DIR}/get-pEp-version.sh" "LIB_PEP_ADAPTER_VERSION")
LIB_PEP_ADAPTER_DIR="${TMP_DIR}/libpEpAdapter"
if [ ! -d "${LIB_PEP_ADAPTER_DIR}" ]; then
git clone -b "${VERSION}" https://gitea.pep.foundation/pEp.foundation/libpEpAdapter
fi
export CXXFLAGS="-arch ${ARCH} -isysroot ${SDK_PATH} -std=c++14 -fPIC"
export LDFLAGS="-arch ${ARCH}"
export CXX="$(xcrun --sdk ${SDK} -f clang++) -arch ${ARCH} -isysroot ${SDK_PATH}"
pushd ${LIB_PEP_ADAPTER_DIR}
LOCAL_CONF="\n
\n
DEBUG=0\n
\n
PREFIX=${CURRENT_LIB_DIR}\n
\n
ENGINE_LIB_PATH="${PREFIX}/lib"\n
\n
ENGINE_INC_PATH="${PREFIX}/include"\n
"
make clean
echo ${LOCAL_CONF} > local.conf
make all -j 4
make install
popd
unset CXXFLAGS
unset LDFLAGS
unset CXX