OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/bash |
| 2 |
| 3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 # This file just sets some paths then defers file creation to |
| 8 # DerivedSources.make. |
| 9 # This file is almost the same as the one found in webkit. The only |
| 10 # difference is that some paths have changed and we don't try to detect |
| 11 # the number of CPUs. |
| 12 |
| 13 NUMCPUS=1 |
| 14 |
| 15 XSRCROOT="`pwd`/../.." |
| 16 XSRCROOT=`realpath "$XSRCROOT"` |
| 17 # Do a little dance to get the path into 8.3 form to make it safe for gnu make |
| 18 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 |
| 19 XSRCROOT=`cygpath -m -s "$XSRCROOT"` |
| 20 XSRCROOT=`cygpath -u "$XSRCROOT"` |
| 21 export XSRCROOT |
| 22 export SOURCE_ROOT=$XSRCROOT |
| 23 |
| 24 XDSTROOT="$1" |
| 25 export XDSTROOT |
| 26 # Do a little dance to get the path into 8.3 form to make it safe for gnu make |
| 27 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 |
| 28 XDSTROOT=`cygpath -m -s "$XDSTROOT"` |
| 29 XDSTROOT=`cygpath -u "$XDSTROOT"` |
| 30 export XDSTROOT |
| 31 |
| 32 SDKROOT="$2" |
| 33 export SDKROOT |
| 34 # Do a little dance to get the path into 8.3 form to make it safe for gnu make |
| 35 # http://bugzilla.opendarwin.org/show_bug.cgi?id=8173 |
| 36 SDKROOT=`cygpath -m -s "$SDKROOT"` |
| 37 SDKROOT=`cygpath -u "$SDKROOT"` |
| 38 export SDKROOT |
| 39 |
| 40 export BUILT_PRODUCTS_DIR="$XDSTROOT" |
| 41 |
| 42 mkdir -p "${BUILT_PRODUCTS_DIR}/DerivedSources" |
| 43 cd "${BUILT_PRODUCTS_DIR}/DerivedSources" |
| 44 |
| 45 export JavaScriptCore="${XSRCROOT}/../third_party/WebKit/JavaScriptCore" |
| 46 export DFTABLES_EXTENSION=".exe" |
| 47 make -f "$JavaScriptCore/DerivedSources.make" -j ${NUMCPUS} || exit 1 |
OLD | NEW |