Changeset 143604 in webkit
- Timestamp:
- Feb 21, 2013 8:19:47 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r143505 r143604 1 2013-02-21 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Move feature overriding to the configure phase 4 https://bugs.webkit.org/show_bug.cgi?id=110293 5 6 Reviewed by Gustavo Noronha Silva. 7 8 Rework the feature overrides logic so all feature defines go into a 9 header rather than the command line. This has a few benefits. Most 10 notably, we can reuse the header in the gyp build. Another nice result 11 is that changes to the configuration automatically result in a full 12 rebuild and Debug and Release builds can have different configurations. 13 14 All feature define processing happens now during the configuration phase, 15 instead of when running autogen.sh. This means that we need to distribute 16 the feature processing script. 17 18 * GNUmakefile.am: Read feature defines from WebKitFeatures.txt when kicking 19 off a build. Also include generate-feature-defines-files in the distribution. 20 * Source/autotools/SetupAutoconfHeader.m4: Remove an extra ENABLE_3D_RENDERING 21 from the autoconf header, as it is already provided by the feature configuration. 22 * Source/autotools/SetupWebKitFeatures.m4: Added. 23 * Source/autotools/webkitfeature.m4: Removed. The functionality has been moved 24 to SetupWebKitFeatures.m4. 25 * autogen.sh: Remove the call to override-feature-defines. 26 * configure.ac: Now include SetupWebKitFeatures. 27 1 28 2013-02-20 Dirk Schulze <krit@webkit.org> 2 29 -
trunk/GNUmakefile.am
r142179 r143604 61 61 MOFILES := 62 62 ALL_MOFILES := 63 feature_defines_defaults :=64 feature_defines_overrides :=65 feature_defines :=66 63 dom_binding_idls := 67 64 wtf_sources := … … 152 149 -fno-rtti 153 150 151 # Read the feature defines file, that's created by generate-feature-defines-files 152 # during configuration (SetupWebKitFeatures.m4). 153 feature_defines := $(shell cat WebKitFeatures.txt) 154 154 155 # -no-undefined required for building DLLs on Windows 155 156 # It breaks the build on other platforms, so we use it conditionally … … 171 172 EXTRA_DIST += \ 172 173 $(srcdir)/Source/autotools/symbols.filter \ 174 $(srcdir)/Tools/generate-feature-defines-files \ 173 175 $(srcdir)/Source/WebKit/LICENSE 174 176 -
trunk/Source/WebCore/ChangeLog
r143603 r143604 1 2013-02-21 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Move feature overriding to the configure phase 4 https://bugs.webkit.org/show_bug.cgi?id=110293 5 6 Reviewed by Gustavo Noronha Silva. 7 8 * GNUmakefile.am: No longer include GNUmakefile.features.am. We don't 9 have to process the result of this file or do any modification of 10 feature_defines_override, because this variable is gone. 11 1 12 2013-02-21 Andrey Adaikin <aandrey@chromium.org> 2 13 -
trunk/Source/WebCore/GNUmakefile.am
r142179 r143604 1 include $(srcdir)/Source/WebCore/GNUmakefile.features.am2 1 include $(srcdir)/Source/WebCore/GNUmakefile.list.am 3 2 … … 138 137 endif # END TARGET_WIN32 139 138 140 # ----141 # Gamepad support142 # ---143 if ENABLE_GAMEPAD144 feature_defines_overrides += ENABLE_GAMEPAD=1145 else146 feature_defines_overrides += ENABLE_GAMEPAD=0147 endif # END ENABLE_GAMEPAD148 149 # ----150 # Video Support151 # ----152 if ENABLE_VIDEO153 feature_defines_overrides += ENABLE_VIDEO=1154 else155 feature_defines_overrides += ENABLE_VIDEO=0 ENABLE_VIDEO_TRACK=0156 endif # END ENABLE_VIDEO157 158 # ----159 # Filters160 # ----161 if ENABLE_CSS_FILTERS162 feature_defines_overrides += ENABLE_CSS_FILTERS=1163 else164 feature_defines_overrides += ENABLE_CSS_FILTERS=0165 endif # END ENABLE_CSS_FILTERS166 167 # ----168 # Media Stream Support169 # ----170 if ENABLE_MEDIA_STREAM171 feature_defines_overrides += ENABLE_MEDIA_STREAM=1172 else173 feature_defines_overrides += ENABLE_MEDIA_STREAM=0174 endif # END ENABLE_MEDIA_STREAM175 176 139 # XPath grammar 177 140 $(GENSOURCES_WEBCORE)/XPathGrammar.h: $(GENSOURCES_WEBCORE)/XPathGrammar.cpp … … 179 142 $(AM_V_GEN) 180 143 $(AM_V_at)perl $(WebCore)/css/makegrammar.pl --outputDir $(GENSOURCES_WEBCORE) --bison "$(BISON)" --symbolsPrefix xpathyy $< 181 182 # ----183 # XSLT Support184 # ----185 if ENABLE_XSLT186 feature_defines_overrides += ENABLE_XSLT=1187 else188 feature_defines_overrides += ENABLE_XSLT=0189 endif # END ENABLE_XSLT190 191 # ----192 # Shaders193 # ----194 if ENABLE_CSS_SHADERS195 feature_defines_overrides += ENABLE_CSS_SHADERS=1196 else197 feature_defines_overrides += ENABLE_CSS_SHADERS=0198 endif # END ENABLE_CSS_SHADERS199 200 # ----201 # Geolocation202 # ----203 if ENABLE_GEOLOCATION204 feature_defines_overrides += ENABLE_GEOLOCATION=1205 else206 feature_defines_overrides += ENABLE_GEOLOCATION=0207 endif # END ENABLE_GEOLOCATION208 144 209 145 # MathML tag and attribute names, and element factory … … 246 182 $(UNICODE_CFLAGS) 247 183 248 feature_defines_overrides += ENABLE_SVG=1249 184 WEBCORE_CSS_PROPERTY_NAMES += $(WebCore)/css/SVGCSSPropertyNames.in 250 185 WEBCORE_CSS_VALUE_KEYWORDS += $(WebCore)/css/SVGCSSValueKeywords.in 251 # SVG Features 252 if ENABLE_SVG_FONTS 253 feature_defines_overrides += ENABLE_SVG_FONTS=1 254 else 255 feature_defines_overrides += ENABLE_SVG_FONTS=0 256 endif 257 else 258 feature_defines_overrides += ENABLE_SVG=0 ENABLE_SVG_FONTS=0 259 endif # END ENABLE_SVG 186 187 endif # END_ENABLE_SVG 260 188 261 189 # SVG tag and attribute names (need to pass an extra flag if svg experimental features are enabled) … … 271 199 $(AM_V_GEN)$(PERL) -I$(WebCore)/bindings/scripts $< --attrs $(WebCore)/svg/xlinkattrs.in --outputDir "$(GENSOURCES_WEBCORE)" 272 200 273 # ----274 # Web Audio Support275 # ----276 if ENABLE_WEB_AUDIO277 feature_defines_overrides += ENABLE_WEB_AUDIO=1278 else279 feature_defines_overrides += ENABLE_WEB_AUDIO=0280 endif281 282 # ---283 # 3D canvas (WebGL) support284 # ---285 if ENABLE_WEBGL286 feature_defines_overrides += ENABLE_WEBGL=1287 else288 feature_defines_overrides += ENABLE_WEBGL=0289 endif # END ENABLE_WEBGL290 291 # ---292 # Accelerated compositing support293 # ---294 if USE_ACCELERATED_COMPOSITING295 feature_defines_overrides += ENABLE_3D_RENDERING=1296 else297 feature_defines_overrides += ENABLE_3D_RENDERING=0298 endif # END USE_ACCELERATED_COMPOSITING299 300 201 if USE_TEXTURE_MAPPER_CAIRO 301 202 webcore_cppflags += \ … … 313 214 -I$(srcdir)/Source/WebCore/platform/graphics/clutter 314 215 endif # END USE_CLUTTER 315 316 # ---317 # Spell check support318 # ---319 if ENABLE_SPELLCHECK320 feature_defines_overrides += ENABLE_SPELLCHECK=1321 else322 feature_defines_overrides += ENABLE_SPELLCHECK=0323 endif # END ENABLE_SPELLCHECK324 216 325 217 if ENABLE_INDEXED_DATABASE … … 329 221 -I$(srcdir)/Source/ThirdParty/leveldb/include 330 222 endif 331 332 # Fill the feature_defines variable with all the defines, making it possible333 # to override the default define value (as set in feature_defines_defaults)334 # through adding the feature define with the desired value to either335 # feature_defines_unstable or feature_defines_overrides.336 feature_defines += $(strip $(foreach bare_define, \337 $(foreach define,$(feature_defines_defaults), \338 $(foreach fvalue,0 1, \339 $(if $(findstring =$(fvalue),$(define)),$(patsubst %=$(fvalue),%,$(define))) \340 ) \341 ), \342 $(if $(findstring $(bare_define)=, $(feature_defines_overrides)), \343 $(filter $(bare_define)=%,$(feature_defines_overrides)), \344 $(filter $(bare_define)=%,$(feature_defines_defaults)) \345 ) \346 ))347 348 # Add the feature defines to webcore_cppflags in macro form.349 webcore_cppflags += $(foreach define,$(feature_defines),-D$(define))350 351 223 352 224 $(WEBCORE_CSS_PROPERTY_NAMES): $(srcdir)/configure.ac $(srcdir)/Source/WebCore/GNUmakefile.am -
trunk/Source/autotools/SetupAutoconfHeader.m4
r142818 r143604 80 80 if test "$enable_accelerated_compositing" = "yes"; then 81 81 AC_DEFINE([WTF_USE_ACCELERATED_COMPOSITING], [1], [ ]) 82 AC_DEFINE([ENABLE_3D_RENDERING], [1], [ ])83 82 84 83 if test "$with_acceleration_backend" = "none"; then 85 AC_DEFINE([ DWTF_USE_TEXTURE_MAPPER], [1], [ ])86 AC_DEFINE([ DWTF_USE_TEXTURE_MAPPER_CAIRO], [1], [ ])84 AC_DEFINE([WTF_USE_TEXTURE_MAPPER], [1], [ ]) 85 AC_DEFINE([WTF_USE_TEXTURE_MAPPER_CAIRO], [1], [ ]) 87 86 fi 88 87 -
trunk/Tools/ChangeLog
r143572 r143604 1 2013-02-21 Martin Robinson <mrobinson@igalia.com> 2 3 [GTK] Move feature overriding to the configure phase 4 https://bugs.webkit.org/show_bug.cgi?id=110293 5 6 Reviewed by Gustavo Noronha Silva. 7 8 * Scripts/webkitdirs.pm: 9 (runAutogenForAutotoolsProjectIfNecessary): Rename the feature file to 10 WebKitFeatureOverrides.txt to better match the other filenames used in 11 the new feature processing. 12 * gtk/generate-feature-defines-files: Added. A script which takes as an argument 13 the default features, overrides them with the contents of WebKitFeatureOverrrides.txt 14 and writes WebKitFeatures.txt and WebKitFeatures.h. 15 * gtk/override-feature-defines: Removed. 16 1 17 2013-02-21 Oswald Buddenhagen <oswald.buddenhagen@digia.com> 2 18 -
trunk/Tools/Scripts/webkitdirs.pm
r142692 r143604 2005 2005 2006 2006 # Run autogen.sh again if either the features overrided by build-webkit or build arguments have changed. 2007 if (!mustReRunAutogen($sourceDir, " feature-defines-overriding.txt", $joinedOverridableFeatures)2007 if (!mustReRunAutogen($sourceDir, "WebKitFeatureOverrides.txt", $joinedOverridableFeatures) 2008 2008 && !mustReRunAutogen($sourceDir, "previous-autogen-arguments.txt", $joinedBuildArgs)) { 2009 2009 return; … … 2017 2017 # when they change and automatically re-run it. 2018 2018 if ($project eq 'WebKit') { 2019 open(OVERRIDABLE_FEATURES, "> feature-defines-overriding.txt");2019 open(OVERRIDABLE_FEATURES, ">WebKitFeatureOverrides.txt"); 2020 2020 print OVERRIDABLE_FEATURES $joinedOverridableFeatures; 2021 2021 close(OVERRIDABLE_FEATURES); -
trunk/autogen.sh
r137270 r143604 13 13 touch README INSTALL 14 14 15 Tools/gtk/override-feature-defines $ORIGDIR16 17 15 if test -z `which autoreconf`; then 18 16 echo "Error: autoreconf not found, please install it." -
trunk/configure.ac
r142284 r143604 27 27 m4_include([Source/autotools/SetupCompilerFlags.m4]) 28 28 m4_include([Source/autotools/SetupAutoconfHeader.m4]) 29 m4_include([Source/autotools/SetupWebKitFeatures.m4]) 29 30 30 31 # We would put AM_INIT_AUTOMAKE into SetupAutomake.m4, but seems to cause autoconf errors.
Note: See TracChangeset
for help on using the changeset viewer.