Move scripts for Derived and Unified Sources to external files
[WebKit-https.git] / Source / WebCore / Scripts / generate-unified-sources.sh
1 #!/bin/sh
2
3 set -e
4
5 cd $SRCROOT
6
7 if [ "${DEPLOYMENT_LOCATION}" == "YES" ]; then
8     BUILD_SCRIPTS_DIR="${SDKROOT}${WK_ALTERNATE_WEBKIT_SDK_PATH}/usr/local/include/wtf/Scripts"
9 else
10     BUILD_SCRIPTS_DIR="${BUILT_PRODUCTS_DIR}/usr/local/include/wtf/Scripts"
11 fi
12
13 UnifiedSourceCppFileCount=530
14 UnifiedSourceMmFileCount=62
15
16 echo "Using unified source list files: Sources.txt, SourcesCocoa.txt"
17
18 /usr/bin/env ruby "${BUILD_SCRIPTS_DIR}/generate-unified-source-bundles.rb" "--derived-sources-path" "${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore" "--source-tree-path" "${SRCROOT}" "--feature-flags" "${FEATURE_DEFINES}" "--max-cpp-bundle-count" "${UnifiedSourceCppFileCount}" "--max-obj-c-bundle-count" "${UnifiedSourceMmFileCount}" "Sources.txt" "SourcesCocoa.txt" > /dev/null