a83543c6c8a403424ae28bdfbdd8ad31db6b2a26
[WebKit-https.git] / Source / WebCore / Scripts / generate-unified-sources.sh
1 #!/bin/sh
2
3 set -e
4
5 ARGS=("$@")
6
7 cd $SRCROOT
8
9 if [ -z "${BUILD_SCRIPTS_DIR}" ]; then
10     if [ "${DEPLOYMENT_LOCATION}" == "YES" ]; then
11         BUILD_SCRIPTS_DIR="${SDKROOT}${WK_ALTERNATE_WEBKIT_SDK_PATH}/usr/local/include/wtf/Scripts"
12     else
13         BUILD_SCRIPTS_DIR="${BUILT_PRODUCTS_DIR}/usr/local/include/wtf/Scripts"
14     fi
15 fi
16
17 UnifiedSourceCppFileCount=530
18 UnifiedSourceMmFileCount=62
19
20 if [ $# -eq 0 ]; then
21     echo "Using unified source list files: Sources.txt, SourcesCocoa.txt"
22 fi
23
24 /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" "${ARGS[@]}" > /dev/null