Source/JavaScriptCore/ChangeLog

112011-03-04 Adam Barth <abarth@webkit.org>
22
 3 Reviewed by NOBODY (OOPS!).
 4
 5 Add Derived Sources to WebCore GYP build
 6 https://bugs.webkit.org/show_bug.cgi?id=55813
 7
 8 Rename the action to be friendlier.
 9
 10 * gyp/JavaScriptCore.gyp:
 11
 122011-03-04 Adam Barth <abarth@webkit.org>
 13
314 Reviewed by Dimitri Glazkov.
415
516 Add Copy Files step to JavaScriptCore GYP build for apitest and minidom

Source/JavaScriptCore/gyp/JavaScriptCore.gyp

134134 'target_name': 'Derived Sources',
135135 'type': 'none',
136136 'actions': [{
137  'action_name': 'generate_derived_sources',
 137 'action_name': 'Generate Derived Sources',
138138 'inputs': [],
139139 'outputs': [],
140140 'action': [

Source/WebCore/ChangeLog

22
33 Reviewed by NOBODY (OOPS!).
44
 5 Add Derived Sources to WebCore GYP build
 6 https://bugs.webkit.org/show_bug.cgi?id=55813
 7
 8 Adding the derived source action to the GYP file required tweaking
 9 DerivedSources.make. I'm not sure how DerivedSources.make worked
 10 before beause these paths were incorrectly based.
 11
 12 * DerivedSources.make:
 13 * gyp/generate-derived-sources.sh: Added.
 14 * gyp/WebCore.gyp:
 15
 162011-03-04 Adam Barth <abarth@webkit.org>
 17
 18 Reviewed by NOBODY (OOPS!).
 19
520 WebCore GYP build should generate fewer than 10,000 compile errors per file
621 https://bugs.webkit.org/show_bug.cgi?id=55810
722

Source/WebCore/DerivedSources.make

@@generator_script = perl $(addprefix -I $(WebCore)/, $(sort $(dir $(1)))) $(WebCo
862862
863863# JS bindings generator
864864
865 IDL_INCLUDES = dom fileapi html css page notifications xml svg
 865IDL_INCLUDES = \
 866 $(WebCore)/dom \
 867 $(WebCore)/fileapi \
 868 $(WebCore)/html \
 869 $(WebCore)/css \
 870 $(WebCore)/page \
 871 $(WebCore)/notifications \
 872 $(WebCore)/xml \
 873 $(WebCore)/svg
 874
866875IDL_COMMON_ARGS = $(IDL_INCLUDES:%=--include %) --write-dependencies --outputDir .
867876
868877JS_BINDINGS_SCRIPTS = $(GENERATE_SCRIPTS) bindings/scripts/CodeGeneratorJS.pm

Source/WebCore/gyp/WebCore.gyp

9090 'target_name': 'Derived Sources',
9191 'type': 'none',
9292 'actions': [{
93  'action_name': 'generate_derived_sources',
 93 'action_name': 'Generate Derived Sources',
9494 'inputs': [],
9595 'outputs': [],
9696 'action': [
97  # FIXME: Generate derived sources.
 97 'sh', 'generate-derived-sources.sh',
9898 ],
9999 }],
100100 },

Source/WebCore/gyp/generate-derived-sources.sh

 1#!/bin/sh
 2
 3mkdir -p "${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore"
 4cd "${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore"
 5
 6/bin/ln -sfh "${SRCROOT}/.." WebCore
 7export WebCore="WebCore"
 8
 9if [ "${ACTION}" = "build" -o "${ACTION}" = "install" -o "${ACTION}" = "installhdrs" ]; then
 10 make -f "WebCore/DerivedSources.make" -j `/usr/sbin/sysctl -n hw.availcpu`
 11fi