parent
55d5ac32c8
commit
0cade287bd
@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "1300"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
buildImplicitDependencies = "YES">
|
||||
<BuildActionEntries>
|
||||
<BuildActionEntry
|
||||
buildForTesting = "YES"
|
||||
buildForRunning = "YES"
|
||||
buildForProfiling = "YES"
|
||||
buildForArchiving = "YES"
|
||||
buildForAnalyzing = "YES">
|
||||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "15A75B6227469C4E006A33B8"
|
||||
BuildableName = "build_capnProto_macOS"
|
||||
BlueprintName = "build_capnProto_macOS"
|
||||
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 = "15A75B6227469C4E006A33B8"
|
||||
BuildableName = "build_capnProto_macOS"
|
||||
BlueprintName = "build_capnProto_macOS"
|
||||
ReferencedContainer = "container:CommonPEPDependencies.xcodeproj">
|
||||
</BuildableReference>
|
||||
</MacroExpansion>
|
||||
</ProfileAction>
|
||||
<AnalyzeAction
|
||||
buildConfiguration = "Debug">
|
||||
</AnalyzeAction>
|
||||
<ArchiveAction
|
||||
buildConfiguration = "Release"
|
||||
revealArchiveInOrganizer = "YES">
|
||||
</ArchiveAction>
|
||||
</Scheme>
|
@ -0,0 +1,33 @@
|
||||
VERSION=$(sh "${SCRIPT_DIR}"/get-pEp-version.sh "CAP_N_PROTO_VERSION")
|
||||
REPO_NAME="capnproto"
|
||||
LIB_NAME="libcapnp.a"
|
||||
|
||||
OUTPUT_DIR=${SCRIPT_DIR}/build
|
||||
|
||||
# Exit on errors
|
||||
set -e
|
||||
|
||||
if [ -f "${LIB_DIR}/${LIB_NAME}" ]; then
|
||||
echo "lib exists already in ${LIB_DIR}. If you want to rebuild it, delete the existing one."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# We must whipe the repo. It seems to hold capnp build dependencies used in build that have been build in previous runs of make (even we `make clean`), which causes "bad CPU type" building the 2nd time for arm64.
|
||||
rm -rf "${TMP_DIR}/${REPO_NAME}"
|
||||
|
||||
REPO_SRC_DIR="${TMP_DIR}/${REPO_NAME}/c++"
|
||||
#if [ ! -d "${REPO_SRC_DIR}" ]; then
|
||||
git clone -b "${VERSION}" https://github.com/capnproto/capnproto.git
|
||||
#fi
|
||||
|
||||
export LDFLAGS="-arch ${ARCH}"
|
||||
export CC="$(xcrun --sdk ${SDK} -f clang) -arch ${ARCH} -isysroot ${SDK_PATH}"
|
||||
export CXX="$(xcrun --sdk ${SDK} -f clang++) -arch ${ARCH} -isysroot ${SDK_PATH}"
|
||||
|
||||
pushd ${REPO_SRC_DIR}
|
||||
autoreconf -i
|
||||
./configure --host=${HOST} --prefix=${CURRENT_LIB_DIR} --enable-static=yes --enable-shared=no
|
||||
make clean
|
||||
make -j6
|
||||
make install
|
||||
popd
|
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue