]> git.saurik.com Git - apple/javascriptcore.git/blame - JavaScriptCore.vcxproj/build-generated-files.sh
JavaScriptCore-1218.35.tar.gz
[apple/javascriptcore.git] / JavaScriptCore.vcxproj / build-generated-files.sh
CommitLineData
93a37866
A
1#!/usr/bin/bash
2
3NUMCPUS=`../../../Tools/Scripts/num-cpus`
4
5XSRCROOT="`pwd`/.."
6XSRCROOT=`realpath "$XSRCROOT"`
7# Do a little dance to get the path into 8.3 form to make it safe for gnu make
8# http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
9XSRCROOT=`cygpath -m "$XSRCROOT"`
10XSRCROOT=`cygpath -u "$XSRCROOT"`
11export XSRCROOT
12export SOURCE_ROOT=$XSRCROOT
13XDSTROOT="$1"
14export XDSTROOT
15# Do a little dance to get the path into 8.3 form to make it safe for gnu make
16# http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
17XDSTROOT=`cygpath -m -s "$XDSTROOT"`
18XDSTROOT=`cygpath -u "$XDSTROOT"`
19export XDSTROOT
20
21SDKROOT="$2"
22export SDKROOT
23# Do a little dance to get the path into 8.3 form to make it safe for gnu make
24# http://bugzilla.opendarwin.org/show_bug.cgi?id=8173
25SDKROOT=`cygpath -m -s "$SDKROOT"`
26SDKROOT=`cygpath -u "$SDKROOT"`
27export SDKROOT
28
29export BUILT_PRODUCTS_DIR="$XDSTROOT/obj32/JavaScriptCore"
30
31mkdir -p "${BUILT_PRODUCTS_DIR}/DerivedSources/docs"
32cd "${BUILT_PRODUCTS_DIR}/DerivedSources"
33
34export JavaScriptCore="${XSRCROOT}"
35export DFTABLES_EXTENSION=".exe"
36make -f "$JavaScriptCore/DerivedSources.make" -j ${NUMCPUS} || exit 1