• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1##
2##
3## Copyright 2007, The Android Open Source Project
4##
5## Licensed under the Apache License, Version 2.0 (the "License");
6## you may not use this file except in compliance with the License.
7## You may obtain a copy of the License at
8##
9##     http://www.apache.org/licenses/LICENSE-2.0
10##
11## Unless required by applicable law or agreed to in writing, software
12## distributed under the License is distributed on an "AS IS" BASIS,
13## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14## See the License for the specific language governing permissions and
15## limitations under the License.
16##
17
18# This comment block is read by tools/webkitsync/diff.cpp
19# Don't remove it or move it.
20#
21# The following files are intentionally not included
22# LOCAL_SRC_FILES_EXCLUDED := \
23#	css/RGBColor.idl \
24#	dom/EventListener.idl \
25#	dom/EventTarget.idl \
26#	dom/Worker*.idl \
27#	html/CanvasPixelArray.idl \
28#	page/AbstractView.idl \
29#	page/Worker*.idl \
30#	svg/ElementTimeControl.idl \
31#	svg/SVGAnimatedPathData.idl \
32#	svg/SVGAnimatedPoints.idl \
33#	svg/SVGExternalResourcesRequired.idl \
34#	svg/SVGFilterPrimitiveStandardAttributes.idl \
35#	svg/SVGFitToViewBox.idl \
36#	svg/SVGLangSpace.idl \
37#	svg/SVGLocatable.idl \
38#	svg/SVGStylable.idl \
39#	svg/SVGTests.idl \
40#	svg/SVGTransformable.idl \
41#	svg/SVGURIReference.idl \
42#	svg/SVGViewSpec.idl \
43#	svg/SVGZoomAndPan.idl \
44
45# This comment block is read by tools/webkitsync/diff.cpp
46# Don't remove it or move it.
47#
48# The following files are intentionally not generated
49# LOCAL_GENERATED_FILES_EXCLUDED := \
50#	JSWorkerContextBase.lut.h \
51#	WMLElementFactory.cpp \
52#	WMLNames.cpp \
53#	XLinkNames.cpp \
54
55# This comment block is read by tools/webkitsync/diff.cpp
56# Don't remove it or move it.
57#
58# The following directory wildcard matches are intentionally not included
59# If an entry starts with '/', any subdirectory may match
60# If an entry starts with '^', the first directory must match
61# LOCAL_DIR_WILDCARD_EXCLUDED := \
62
63# This comment block is read by tools/webkitsync/diff.cpp
64# Don't remove it or move it.
65# If you edit it, keep it in alphabetical order
66#
67# These files are Android extensions
68# LOCAL_ANDROID_SRC_FILES_INCLUDED := \
69#	dom/Touch*.idl \
70
71LOCAL_SRC_FILES :=
72# CSS property names and value keywords
73
74GEN := $(intermediates)/css/CSSPropertyNames.h
75$(GEN): SCRIPT := $(LOCAL_PATH)/css/makeprop.pl
76$(GEN): $(intermediates)/%.h : $(LOCAL_PATH)/%.in $(LOCAL_PATH)/css/SVGCSSPropertyNames.in
77	@echo "Generating CSSPropertyNames.h <= CSSPropertyNames.in"
78	@mkdir -p $(dir $@)
79	@cat $< > $(dir $@)/$(notdir $<)
80ifeq ($(ENABLE_SVG),true)
81	@cat $^ > $(@:%.h=%.in)
82endif
83	@cp -f $(SCRIPT) $(dir $@)
84	@cd $(dir $@) ; perl ./$(notdir $(SCRIPT))
85LOCAL_GENERATED_SOURCES += $(GEN)
86
87GEN := $(intermediates)/css/CSSValueKeywords.h
88$(GEN): SCRIPT := $(LOCAL_PATH)/css/makevalues.pl
89$(GEN): $(intermediates)/%.h : $(LOCAL_PATH)/%.in $(LOCAL_PATH)/css/SVGCSSValueKeywords.in
90	@echo "Generating CSSValueKeywords.h <= CSSValueKeywords.in"
91	@mkdir -p $(dir $@)
92	@cp -f $(SCRIPT) $(dir $@)
93ifeq ($(ENABLE_SVG),true)
94	@perl -ne 'print lc' $^ > $(@:%.h=%.in)
95else
96	@perl -ne 'print lc' $< > $(@:%.h=%.in)
97endif
98	@cd $(dir $@); perl makevalues.pl
99LOCAL_GENERATED_SOURCES += $(GEN)
100
101
102# DOCTYPE strings
103
104GEN := $(intermediates)/html/DocTypeStrings.cpp
105$(GEN): PRIVATE_CUSTOM_TOOL = gperf -CEot -L ANSI-C -k "*" -N findDoctypeEntry -F ,PubIDInfo::eAlmostStandards,PubIDInfo::eAlmostStandards $< > $@
106$(GEN): $(LOCAL_PATH)/html/DocTypeStrings.gperf
107	$(transform-generated-source)
108# we have to do this dep by hand:
109$(intermediates)/html/HTMLDocument.o : $(GEN)
110
111
112# HTML entity names
113
114GEN := $(intermediates)/html/HTMLEntityNames.c
115$(GEN): PRIVATE_CUSTOM_TOOL = gperf -a -L ANSI-C -C -G -c -o -t -k '*' -N findEntity -D -s 2 $< > $@
116$(GEN): $(LOCAL_PATH)/html/HTMLEntityNames.gperf
117	$(transform-generated-source)
118LOCAL_GENERATED_SOURCES += $(GEN)
119
120
121# color names
122
123GEN := $(intermediates)/platform/ColorData.c
124$(GEN): PRIVATE_CUSTOM_TOOL = gperf -CDEot -L ANSI-C -k '*' -N findColor -D -s 2 $< > $@
125$(GEN): $(LOCAL_PATH)/platform/ColorData.gperf
126	$(transform-generated-source)
127LOCAL_GENERATED_SOURCES += $(GEN)
128
129
130# CSS tokenizer
131
132GEN := $(intermediates)/css/tokenizer.cpp
133$(GEN): PRIVATE_CUSTOM_TOOL = $(OLD_FLEX) -t $< | perl $(dir $<)/maketokenizer > $@
134$(GEN): $(LOCAL_PATH)/css/tokenizer.flex $(LOCAL_PATH)/css/maketokenizer
135	$(transform-generated-source)
136# we have to do this dep by hand:
137$(intermediates)/css/CSSParser.o : $(GEN)
138
139# CSS grammar
140
141GEN := $(intermediates)/CSSGrammar.cpp
142$(GEN) : PRIVATE_YACCFLAGS := -p cssyy
143$(GEN): $(LOCAL_PATH)/css/CSSGrammar.y
144	$(call local-transform-y-to-cpp,.cpp)
145$(GEN): $(LOCAL_BISON)
146
147LOCAL_GENERATED_SOURCES += $(GEN)
148
149# XPath grammar
150
151GEN := $(intermediates)/XPathGrammar.cpp
152$(GEN) : PRIVATE_YACCFLAGS := -p xpathyy
153$(GEN): $(LOCAL_PATH)/xml/XPathGrammar.y
154	$(call local-transform-y-to-cpp,.cpp)
155$(GEN): $(LOCAL_BISON)
156
157LOCAL_GENERATED_SOURCES += $(GEN)
158
159# user agent style sheets
160
161style_sheets := $(LOCAL_PATH)/css/html.css $(LOCAL_PATH)/css/quirks.css $(LOCAL_PATH)/css/view-source.css $(LOCAL_PATH)/css/mediaControls.css
162ifeq ($(ENABLE_SVG), true)
163style_sheets := $(style_sheets) $(LOCAL_PATH)/css/svg.css
164endif
165GEN := $(intermediates)/css/UserAgentStyleSheets.h
166make_css_file_arrays := $(LOCAL_PATH)/css/make-css-file-arrays.pl
167$(GEN): PRIVATE_CUSTOM_TOOL = $< $@ $(basename $@).cpp $(filter %.css,$^)
168$(GEN): $(make_css_file_arrays) $(style_sheets)
169	$(transform-generated-source)
170LOCAL_GENERATED_SOURCES += $(GEN) $(GEN:%.h=%.cpp)
171
172# XML attribute names
173
174GEN:= $(intermediates)/XMLNames.cpp
175$(GEN): PRIVATE_PATH := $(LOCAL_PATH)
176$(GEN): PRIVATE_CUSTOM_TOOL = perl -I $(PRIVATE_PATH)/bindings/scripts $< --attrs $(xml_attrs) --output $(dir $@)
177$(GEN): xml_attrs := $(LOCAL_PATH)/xml/xmlattrs.in
178$(GEN): $(LOCAL_PATH)/dom/make_names.pl $(xml_attrs)
179	$(transform-generated-source)
180LOCAL_GENERATED_SOURCES += $(GEN)
181
182# character set name table
183
184#gen_inputs := \
185		$(LOCAL_PATH)/platform/make-charset-table.pl \
186		$(LOCAL_PATH)/platform/character-sets.txt \
187		$(LOCAL_PATH)/platform/android/android-encodings.txt
188#GEN := $(intermediates)/platform/CharsetData.cpp
189#$(GEN): PRIVATE_CUSTOM_TOOL = $^ "android::Encoding::ENCODING_" > $@
190#$(GEN): $(gen_inputs)
191#	$(transform-generated-source)
192#LOCAL_GENERATED_SOURCES += $(GEN)
193
194# the above rule will make this build too
195$(intermediates)/css/UserAgentStyleSheets.cpp : $(GEN)
196