Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1246)

Side by Side Diff: webkit/webkit.xcodeproj/webcore_prebuild.sh

Issue 1925: Put all prebuild scripts in external files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/webkit.xcodeproj/project.pbxproj ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Name: svn:executable
+ *
Name: svn:eol-style
+ LF
OLDNEW
(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 # Generate the webkit version header
12 mkdir -p "${GENERATED_DIR}/include/v8/new"
13 python build/webkit_version.py \
14 ../third_party/WebKit/WebCore/Configurations/Version.xcconfig \
15 "${GENERATED_DIR}/include/v8/new"
16
17 # Only use new the file if it's different from the existing file (if any),
18 # preserving the existing file's timestamp when there are no changes. This
19 # minimizes unnecessary build activity for a no-change build.
20 if ! diff -q "${GENERATED_DIR}/include/v8/new/webkit_version.h" \
21 "${GENERATED_DIR}/include/v8/webkit_version.h" >& /dev/null ; then
22 mv "${GENERATED_DIR}/include/v8/new/webkit_version.h" \
23 "${GENERATED_DIR}/include/v8/webkit_version.h"
24 else
25 rm "${GENERATED_DIR}/include/v8/new/webkit_version.h"
26 fi
27
28 rmdir "${GENERATED_DIR}/include/v8/new"
29
30 # TODO(mmentovai): fix this to not be so hokey - the Apple build expects
31 # JavaScriptCore to be in a framework This belongs in the JSConfig target,
32 # which already does something similar
33 mkdir -p "${GENERATED_DIR}/include/v8/JavaScriptCore"
34 cp -p "${SRCROOT}/../third_party/WebKit/JavaScriptCore/bindings/npruntime.h" \
35 "${GENERATED_DIR}/include/v8/JavaScriptCore"
36
37 export DerivedSourcesDir="${GENERATED_DIR}/DerivedSources/v8/WebCore"
38 mkdir -p "${GENERATED_DIR}/DerivedSources/v8/WebCore"
39 cd "${GENERATED_DIR}/DerivedSources/v8/WebCore"
40
41 # export CREATE_HASH_TABLE="${SRCROOT}/../third_party/WebKit/JavaScriptCore/kjs/ create_hash_table"
42 # TODO(mmentovai): The above is normally correct, but create_hash_table wound
43 # up without the svn:executable property set in our repository. See the TODO
44 # in jsbindings_prebuild.sh.
45 export CREATE_HASH_TABLE="${GENERATED_DIR}/create_hash_table"
46
47 ln -sfh "${SRCROOT}/../third_party/WebKit/WebCore" WebCore
48 export WebCore="WebCore"
49 export SOURCE_ROOT="${WebCore}"
50 export PORTROOT="${SRCROOT}/port"
51
52 export PUBLICDOMINTERFACES="${PORTROOT}/../pending/PublicDOMInterfaces.h"
53 make -f "${SRCROOT}/pending/DerivedSources.make" \
54 -j $(/usr/sbin/sysctl -n hw.ncpu)
55
56 # Allow framework-style #imports of <WebCore/whatever.h> to find the right
57 # headers.
58 cd ..
59 mkdir -p ForwardingHeaders/loader
60 ln -sfh "${SRCROOT}/../third_party/WebKit/WebCore/loader" \
61 ForwardingHeaders/loader/WebCore
OLDNEW
« no previous file with comments | « webkit/webkit.xcodeproj/project.pbxproj ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698