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

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

Issue 28305: GYP it, GYP it good (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 9 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
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): If I'm still needed, can I move to jsbindings_prebuild.sh?
31 cd "${GENERATED_DIR}/DerivedSources/v8"
32 mkdir -p ForwardingHeaders/loader
33 ln -sfh "${SRCROOT}/../third_party/WebKit/WebCore/loader" \
34 ForwardingHeaders/loader/WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698