Add a define for the new filters work.
<rdar://problem/10170378>
Created attachment 108417 [details] Patch
http://trac.webkit.org/changeset/95766
Don't you think it would be better to handle it via Platform.h? This is where such features are handled normally because it is a cleaner way than add logic to every build system. --css-filter need to be handled with an extra define in this case but I think build-webkit is able to set such defines (every platform knows how to transform the set of features to -Dxxx compile switches). I can create the patch if you agree on me.
(In reply to comment #4) > Don't you think it would be better to handle it via Platform.h? This is where such features are handled normally because it is a cleaner way than add logic to every build system. --css-filter need to be handled with an extra define in this case but I think build-webkit is able to set such defines (every platform knows how to transform the set of features to -Dxxx compile switches). I can create the patch if you agree on me. Can you explain why some features are in Platform.h and others are elsewhere? Platform seems to be for application-level stuff. I couldn't find anything in there that was similar to this feature. All the similar ones are done outside Platform (e.g. the existing ENABLE_FILTER)
(In reply to comment #5) > (In reply to comment #4) > > Don't you think it would be better to handle it via Platform.h? This is where such features are handled normally because it is a cleaner way than add logic to every build system. --css-filter need to be handled with an extra define in this case but I think build-webkit is able to set such defines (every platform knows how to transform the set of features to -Dxxx compile switches). I can create the patch if you agree on me. > > Can you explain why some features are in Platform.h and others are elsewhere? Platform seems to be for application-level stuff. I couldn't find anything in there that was similar to this feature. All the similar ones are done outside Platform (e.g. the existing ENABLE_FILTER) Sorry for letting the topic rot - I was on holiday last week. I have just written a mail to webkit-dev about this.