| OLD | NEW |
| (Empty) |
| 1 #!/bin/sh | |
| 2 | |
| 3 # Copyright (c) 2008 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 set -ex | |
| 8 GENERATED_DIR="${CONFIGURATION_TEMP_DIR}/generated" | |
| 9 mkdir -p "${GENERATED_DIR}" | |
| 10 | |
| 11 export PORTROOT="${SRCROOT}/port" | |
| 12 | |
| 13 # export CREATE_HASH_TABLE="${SRCROOT}/../third_party/WebKit/JavaScriptCore/crea
te_hash_table" | |
| 14 # TODO(mmentovai): The above is normally correct, but create_hash_table wound | |
| 15 # up without the svn:executable property set in our repository. Until that's | |
| 16 # fixed - it should be fixed at the next WebKit merge following 2008-09-08 - | |
| 17 # make a copy of create_hash_table, set the executable bit on it, and use that. | |
| 18 # See also the TODO in webcore_prebuild.sh. | |
| 19 export CREATE_HASH_TABLE="${GENERATED_DIR}/create_hash_table" | |
| 20 cp -p "${SRCROOT}/../third_party/WebKit/JavaScriptCore/create_hash_table" \ | |
| 21 "${CREATE_HASH_TABLE}" | |
| 22 chmod a+x "${CREATE_HASH_TABLE}" | |
| 23 | |
| 24 export DerivedSourcesDir="${GENERATED_DIR}/DerivedSources/v8/bindings" | |
| 25 mkdir -p "${DerivedSourcesDir}" | |
| 26 cd "${DerivedSourcesDir}" | |
| 27 | |
| 28 ln -sfh "${SRCROOT}/../third_party/WebKit/WebCore" WebCore | |
| 29 export WebCore="${DerivedSourcesDir}/WebCore" | |
| 30 export SOURCE_ROOT="${WebCore}" | |
| 31 export ENCODINGS_FILE="${WebCore}/platform/text/mac/mac-encodings.txt"; | |
| 32 export ENCODINGS_PREFIX="kTextEncoding" | |
| 33 | |
| 34 export PUBLICDOMINTERFACES="${PORTROOT}/PublicDOMInterfaces.h" | |
| 35 make -f "${PORTROOT}/DerivedSources.make" -j $(/usr/sbin/sysctl -n hw.ncpu) | |
| 36 | |
| 37 # Allow framework-style #imports of <WebCore/whatever.h> to find the right | |
| 38 # headers | |
| 39 cd .. | |
| 40 mkdir -p ForwardingHeaders/Derived \ | |
| 41 ForwardingHeaders/dom \ | |
| 42 ForwardingHeaders/editing \ | |
| 43 ForwardingHeaders/ObjC \ | |
| 44 ForwardingHeaders/page_mac \ | |
| 45 ForwardingHeaders/svg | |
| 46 ln -sfh "${DerivedSourcesDir}" ForwardingHeaders/Derived/WebCore | |
| 47 ln -sfh "${SRCROOT}/../third_party/WebKit/WebCore/dom" \ | |
| 48 ForwardingHeaders/dom/WebCore | |
| 49 ln -sfh "${SRCROOT}/../third_party/WebKit/WebCore/editing" \ | |
| 50 ForwardingHeaders/editing/WebCore | |
| 51 ln -sfh "${SRCROOT}/../third_party/WebKit/WebCore/bindings/objc" \ | |
| 52 ForwardingHeaders/ObjC/WebCore | |
| 53 ln -sfh "${SRCROOT}/../third_party/WebKit/WebCore/page/mac" \ | |
| 54 ForwardingHeaders/page_mac/WebCore | |
| 55 ln -sfh "${SRCROOT}/../third_party/WebKit/WebCore/svg" \ | |
| 56 ForwardingHeaders/svg/WebCore | |
| OLD | NEW |