Browse Source

add cleanup scripts & targets

IOS-2882
Andreas Buff 5 months ago
parent
commit
4244927070
3 changed files with 168 additions and 14 deletions
  1. +98
    -14
      CommonPEPDependencies/CommonPEPDependencies.xcodeproj/project.pbxproj
  2. +25
    -0
      clean_all.sh
  3. +45
    -0
      clean_pEp.sh

+ 98
- 14
CommonPEPDependencies/CommonPEPDependencies.xcodeproj/project.pbxproj View File

@ -105,7 +105,7 @@
1585EE97269ED57700B822E1 /* Build */,
);
dependencies = (
1585EEA0269ED5D900B822E1 /* PBXTargetDependency */,
1585F04026A1B5D400B822E1 /* PBXTargetDependency */,
1585EE9E269ED5B500B822E1 /* PBXTargetDependency */,
1585EEA2269ED5EC00B822E1 /* PBXTargetDependency */,
1585F03E26A1A14A00B822E1 /* PBXTargetDependency */,
@ -197,6 +197,19 @@
name = "build-downloadclient-dependencies_macOS";
productName = "build-pEpMIME-dependencies";
};
1585F04126A1C14C00B822E1 /* CLEAN_PEP */ = {
isa = PBXAggregateTarget;
buildConfigurationList = 1585F04726A1C14C00B822E1 /* Build configuration list for PBXAggregateTarget "CLEAN_PEP" */;
buildPhases = (
1585F04626A1C14C00B822E1 /* Build */,
);
dependencies = (
1585F04226A1C14C00B822E1 /* PBXTargetDependency */,
1585F04426A1C14C00B822E1 /* PBXTargetDependency */,
);
name = CLEAN_PEP;
productName = "libetpan-dependencies_macOS";
};
/* End PBXAggregateTarget section */
/* Begin PBXContainerItemProxy section */
@ -235,13 +248,6 @@
remoteGlobalIDString = 1585EE39269EC90100B822E1;
remoteInfo = build_boost_macOS;
};
1585EE9F269ED5D900B822E1 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1585EE0B269DC6DD00B822E1 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 1585EE27269DD87700B822E1;
remoteInfo = build_libiconv_macOS;
};
1585EEA1269ED5EC00B822E1 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1585EE0B269DC6DD00B822E1 /* Project object */;
@ -319,6 +325,27 @@
remoteGlobalIDString = 1585EEAA269EDAE200B822E1;
remoteInfo = build_pEpengine_macOS;
};
1585F03F26A1B5D400B822E1 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1585EE0B269DC6DD00B822E1 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 1585EE27269DD87700B822E1;
remoteInfo = build_libiconv_macOS;
};
1585F04326A1C14C00B822E1 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1585EE0B269DC6DD00B822E1 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 1585EEA5269EDA1E00B822E1;
remoteInfo = build_asn1cexecutable;
};
1585F04526A1C14C00B822E1 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 1585EE0B269DC6DD00B822E1 /* Project object */;
proxyType = 1;
remoteGlobalIDString = 1585EECA269EF0F100B822E1;
remoteInfo = build_sequoia_macOS;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
@ -373,6 +400,7 @@
1585EE16269DCEA600B822E1 /* build-pEpMIME-dependencies_macOS */,
1585EFAF26A178FE00B822E1 /* build-downloadclient-dependencies_macOS */,
1585EEFC26A0432A00B822E1 /* CLEAN_ALL */,
1585F04126A1C14C00B822E1 /* CLEAN_PEP */,
1585EF0526A0479800B822E1 /* build_sequoia_iOS */,
);
};
@ -604,7 +632,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
shellScript = "SCRIPTS_DIR=\"${PROJECT_DIR}/..\"\nTMP_DIR=\"${SCRIPTS_DIR}/tmp\"\nPREFIX=\"${PROJECT_DIR}/$(${SCRIPTS_DIR}/get-config-prefix.sh)\"\n\nrm -rf \"${PREFIX}\"\nrm -rf \"${TMP_DIR}\"\n";
shellScript = "SCRIPTS_DIR=\"${PROJECT_DIR}/..\"\nPREFIX=\"${PROJECT_DIR}/$(${SCRIPTS_DIR}/get-config-prefix.sh)\"\nBUILD_SCRIPT=\"${SCRIPTS_DIR}/clean_all.sh\" \nsh \"${BUILD_SCRIPT}\" \"${PREFIX}\"\n";
showEnvVarsInLog = 0;
};
1585EF0626A0479800B822E1 /* Build */ = {
@ -626,6 +654,25 @@
shellScript = "# Note: `-l`(login shell) needed to find `wget`\nSCRIPTS_DIR=\"${PROJECT_DIR}/..\"\nPREFIX=\"${PROJECT_DIR}/$(${SCRIPTS_DIR}/get-config-prefix.sh)\"\nBUILD_SCRIPT=\"${SCRIPTS_DIR}/build-sequoia-iOS.sh\" \nsh \"${BUILD_SCRIPT}\" \"${PREFIX}\"\n";
showEnvVarsInLog = 0;
};
1585F04626A1C14C00B822E1 /* Build */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
);
name = Build;
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/bash;
shellScript = "SCRIPTS_DIR=\"${PROJECT_DIR}/..\"\nPREFIX=\"${PROJECT_DIR}/$(${SCRIPTS_DIR}/get-config-prefix.sh)\"\nBUILD_SCRIPT=\"${SCRIPTS_DIR}/clean_pEp.sh\" \nsh \"${BUILD_SCRIPT}\" \"${PREFIX}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */
/* Begin PBXTargetDependency section */
@ -654,11 +701,6 @@
target = 1585EE39269EC90100B822E1 /* build_boost_macOS */;
targetProxy = 1585EE9D269ED5B500B822E1 /* PBXContainerItemProxy */;
};
1585EEA0269ED5D900B822E1 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 1585EE27269DD87700B822E1 /* build_libiconv_macOS */;
targetProxy = 1585EE9F269ED5D900B822E1 /* PBXContainerItemProxy */;
};
1585EEA2269ED5EC00B822E1 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 1585EE43269ECB2500B822E1 /* build_pEpwebserver_macOS */;
@ -714,6 +756,21 @@
target = 1585EEAA269EDAE200B822E1 /* build_pEpengine_macOS */;
targetProxy = 1585F03D26A1A14A00B822E1 /* PBXContainerItemProxy */;
};
1585F04026A1B5D400B822E1 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 1585EE27269DD87700B822E1 /* build_libiconv_macOS */;
targetProxy = 1585F03F26A1B5D400B822E1 /* PBXContainerItemProxy */;
};
1585F04226A1C14C00B822E1 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 1585EEA5269EDA1E00B822E1 /* build_asn1cexecutable */;
targetProxy = 1585F04326A1C14C00B822E1 /* PBXContainerItemProxy */;
};
1585F04426A1C14C00B822E1 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 1585EECA269EF0F100B822E1 /* build_sequoia_macOS */;
targetProxy = 1585F04526A1C14C00B822E1 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
@ -1017,6 +1074,24 @@
};
name = Release;
};
1585F04826A1C14C00B822E1 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = NQLYU6MGPN;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Debug;
};
1585F04926A1C14C00B822E1 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = NQLYU6MGPN;
PRODUCT_NAME = "$(TARGET_NAME)";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@ -1173,6 +1248,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
1585F04726A1C14C00B822E1 /* Build configuration list for PBXAggregateTarget "CLEAN_PEP" */ = {
isa = XCConfigurationList;
buildConfigurations = (
1585F04826A1C14C00B822E1 /* Debug */,
1585F04926A1C14C00B822E1 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 1585EE0B269DC6DD00B822E1 /* Project object */;


+ 25
- 0
clean_all.sh View File

@ -0,0 +1,25 @@
# Exit on errors
set -e
SCRIPT_DIR=$(dirname "$0")
PREFIX=$1
# Get Absolute Paths & Setup
SCRIPT_DIR=$(dirname "$0")
pushd "${SCRIPT_DIR}"
SCRIPT_DIR=$(pwd)
popd
if [ "${PREFIX}" = "" ]; then
PREFIX="${SCRIPT_DIR}/local"
fi
if [ -d "${PREFIX}" ]; then
pushd "${PREFIX}"
PREFIX=$(pwd)
popd
fi
TMP_DIR="${SCRIPT_DIR}/tmp"
rm -rf "${PREFIX}"
rm -rf "${TMP_DIR}"

+ 45
- 0
clean_pEp.sh View File

@ -0,0 +1,45 @@
# Exit on errors
set -e
SCRIPT_DIR=$(dirname "$0")
PREFIX=$1
# Get Absolute Paths & Setup
SCRIPT_DIR=$(dirname "$0")
pushd "${SCRIPT_DIR}"
SCRIPT_DIR=$(pwd)
popd
if [ "${PREFIX}" = "" ]; then
PREFIX="${SCRIPT_DIR}/local"
fi
if [ -d "${PREFIX}" ]; then
pushd "${PREFIX}"
PREFIX=$(pwd)
popd
fi
TMP_DIR="${SCRIPT_DIR}/tmp"
PARENT_DIR="${SCRIPT_DIR}/.."
# Whipe Repositories
rm -rf "${PARENT_DIR}/downloadclient"
rm -rf "${PARENT_DIR}/pEpEngine"
rm -rf "${PARENT_DIR}/pEpMacOSAdapter"
rm -rf "${TMP_DIR}/libpEpAdapter"
rm -rf "${TMP_DIR}/pEpJSONServerAdapter"
rm -rf "${TMP_DIR}/webserver"
# Whipes build artefacts
rm -rf "${PREFIX}/apps"
rm -rf "${PREFIX}/lib/"libasn1*
rm -rf "${PREFIX}/lib/"*sqlite*
rm -rf "${PREFIX}/lib/"*libetpan*
rm -rf "${PREFIX}/lib/"*pEp*
rm -rf "${PREFIX}/bin/"*pEp*
rm -rf "${PREFIX}/include/pEp"

Loading…
Cancel
Save