IOS-2882 build nettle 4 iOS works
parent
af4e9d4728
commit
c6b8d47cb3
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1250"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "NO"
|
||||
buildImplicitDependencies = "NO">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "152E499926A9BC94009BD3CE"
|
||||
BuildableName = "build_nettle_iOS"
|
||||
BlueprintName = "build_nettle_iOS"
|
||||
ReferencedContainer = "container:CommonPEPDependencies.xcodeproj">
|
||||
</BuildableReference>
|
||||
</BuildActionEntry>
|
||||
</BuildActionEntries>
|
||||
</BuildAction>
|
||||
<TestAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
</Testables>
|
||||
</TestAction>
|
||||
<LaunchAction
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
debugDocumentVersioning = "YES"
|
||||
debugServiceExtension = "internal"
|
||||
allowLocationSimulation = "YES">
|
||||
</LaunchAction>
|
||||
<ProfileAction
|
||||
buildConfiguration = "Release"
|
||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
||||
savedToolIdentifier = ""
|
||||
useCustomWorkingDirectory = "NO"
|
||||
debugDocumentVersioning = "YES">
|
||||
<MacroExpansion>
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "152E499926A9BC94009BD3CE"
|
||||
BuildableName = "build_nettle_iOS"
|
||||
BlueprintName = "build_nettle_iOS"
|
||||
ReferencedContainer = "container:CommonPEPDependencies.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
@ -0,0 +1,30 @@
|
||||
NETTLE_VERSION=$(sh "${SCRIPT_DIR}"/get-pEp-version.sh "NETTLE_VERSION")
|
||||
NETTLE_NAME="nettle-${NETTLE_VERSION}"
|
||||
|
||||
OUTPUT_DIR=${SCRIPT_DIR}/build
|
||||
|
||||
# Exit on errors
|
||||
set -e
|
||||
|
||||
if [ -f "${LIB_DIR}/libnettle.a" ]; then
|
||||
echo "lib exists already in ${LIB_DIR}. If you want to rebuild it, delete the existing one."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
GMP_DIR="${TMP_DIR}/${NETTLE_NAME}"
|
||||
if [ ! -d "${GMP_DIR}" ]; then
|
||||
wget -nc https://ftp.gnu.org/gnu/nettle/${NETTLE_NAME}.tar.gz
|
||||
tar xvf ${NETTLE_NAME}.tar.gz
|
||||
fi
|
||||
|
||||
export LDFLAGS="-arch ${ARCH}"
|
||||
export CC="$(xcrun --sdk ${SDK} -f clang) -arch ${ARCH} -isysroot ${SDK_PATH}"
|
||||
|
||||
pushd ${NETTLE_NAME}
|
||||
PKG_CONFIG_ALLOW_CROSS=1 PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig CC_FOR_BUILD="$(whereis gcc)" ./configure --host=${HOST} --prefix=${CURRENT_LIB_DIR} --with-lib-path=${PREFIX}/lib --with-include-path=${PREFIX}/include --disable-assembler --disable-arm-neon --disable-documentation --verbose
|
||||
make clean
|
||||
make -j4
|
||||
make install
|
||||
popd
|
||||
|
||||
rm -rf *.gz
|
Loading…
Reference in New Issue