| #!/bin/sh | |
| set -e | |
| ARGS=("$@") | |
| cd $SRCROOT | |
| if [ -z "${BUILD_SCRIPTS_DIR}" ]; then | |
| if [ "${DEPLOYMENT_LOCATION}" == "YES" ]; then | |
| BUILD_SCRIPTS_DIR="${SDKROOT}${WK_ALTERNATE_WEBKIT_SDK_PATH}/usr/local/include/wtf/Scripts" | |
| else | |
| BUILD_SCRIPTS_DIR="${BUILT_PRODUCTS_DIR}/usr/local/include/wtf/Scripts" | |
| fi | |
| fi | |
| UnifiedSourceCppFileCount=5 | |
| UnifiedSourceCFileCount=0 | |
| UnifiedSourceMmFileCount=0 | |
| UnifiedSourceNonARCMmFileCount=54 | |
| if [ $# -eq 0 ]; then | |
| echo "Using unified source list files: Sources.txt, SourcesCocoa.txt" | |
| fi | |
| /usr/bin/env python3 "${BUILD_SCRIPTS_DIR}/generate-unified-source-bundles.py" --derived-sources-path "${BUILT_PRODUCTS_DIR}/DerivedSources/TestWebKitAPI" --source-tree-path "${SRCROOT}" --max-cpp-bundle-count ${UnifiedSourceCppFileCount} --max-c-bundle-count ${UnifiedSourceCFileCount} --max-obj-c-bundle-count ${UnifiedSourceMmFileCount} --max-non-arc-obj-c-bundle-count ${UnifiedSourceNonARCMmFileCount} Sources.txt SourcesCocoa.txt "${ARGS[@]}" > /dev/null |