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

Side by Side Diff: Source/core/core.gyp

Issue 907303002: Added behind link_core_modules_separately flag to gyp files. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved link_core_modules_separetely to features.gypi Created 5 years, 10 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
« no previous file with comments | « Source/build/features.gypi ('k') | Source/core/core_generated.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # Copyright (C) 2009 Google Inc. All rights reserved. 2 # Copyright (C) 2009 Google Inc. All rights reserved.
3 # 3 #
4 # Redistribution and use in source and binary forms, with or without 4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are 5 # modification, are permitted provided that the following conditions are
6 # met: 6 # met:
7 # 7 #
8 # * Redistributions of source code must retain the above copyright 8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer. 9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above 10 # * Redistributions in binary form must reproduce the above
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 '<@(webcore_include_dirs)', 196 '<@(webcore_include_dirs)',
197 ], 197 ],
198 'sources': [ 198 'sources': [
199 # FIXME: should be bindings_core_v8_files http://crbug.com/358074 199 # FIXME: should be bindings_core_v8_files http://crbug.com/358074
200 '<@(bindings_core_v8_files)', 200 '<@(bindings_core_v8_files)',
201 # These files include all the .cpp files generated from the .idl files 201 # These files include all the .cpp files generated from the .idl files
202 # in webcore_files. 202 # in webcore_files.
203 '<@(bindings_core_v8_generated_aggregate_files)', 203 '<@(bindings_core_v8_generated_aggregate_files)',
204 '<@(bindings_core_v8_generated_union_type_files)', 204 '<@(bindings_core_v8_generated_union_type_files)',
205 205
206 # Additional .cpp files for HashTools.h 206 '<@(generated_core_additional_files)',
207 '<(blink_core_output_dir)/CSSPropertyNames.cpp',
208 '<(blink_core_output_dir)/CSSValueKeywords.cpp',
209
210 # Additional .cpp files from make_core_generated actions.
211 '<(blink_core_output_dir)/Event.cpp',
212 '<(blink_core_output_dir)/EventHeaders.h',
213 '<(blink_core_output_dir)/EventNames.cpp',
214 '<(blink_core_output_dir)/EventNames.h',
215 '<(blink_core_output_dir)/EventTargetNames.cpp',
216 '<(blink_core_output_dir)/EventTargetNames.h',
217 '<(blink_core_output_dir)/EventTypeNames.cpp',
218 '<(blink_core_output_dir)/EventTypeNames.h',
219 '<(blink_core_output_dir)/FetchInitiatorTypeNames.cpp',
220 '<(blink_core_output_dir)/HTMLElementFactory.cpp',
221 '<(blink_core_output_dir)/HTMLElementFactory.h',
222 '<(blink_core_output_dir)/HTMLElementLookupTrie.cpp',
223 '<(blink_core_output_dir)/HTMLElementLookupTrie.h',
224 '<(blink_core_output_dir)/HTMLNames.cpp',
225 '<(blink_core_output_dir)/HTMLTokenizerNames.cpp',
226 '<(blink_core_output_dir)/InputTypeNames.cpp',
227 '<(blink_core_output_dir)/MathMLNames.cpp',
228 '<(blink_core_output_dir)/SVGNames.cpp',
229 '<(blink_core_output_dir)/XLinkNames.cpp',
230 '<(blink_core_output_dir)/XMLNSNames.cpp',
231 '<(blink_core_output_dir)/XMLNames.cpp',
232
233 # Generated from HTMLEntityNames.in
234 '<(blink_core_output_dir)/HTMLEntityTable.cpp',
235
236 # Generated from MediaFeatureNames.in
237 '<(blink_core_output_dir)/MediaFeatureNames.cpp',
238
239 # Generated from MediaTypeNames.in
240 '<(blink_core_output_dir)/MediaTypeNames.cpp',
241
242 # Generated from BisonCSSTokenizer-in.cpp
243 '<(blink_core_output_dir)/BisonCSSTokenizer.cpp',
244
245 # Generated from BisonCSSParser-in.cpp
246 '<(blink_core_output_dir)/BisonCSSParser.cpp',
247
248 # Generated from HTMLMetaElement-in.cpp
249 '<(blink_core_output_dir)/HTMLMetaElement.cpp',
250
251 # Additional .cpp files from the make_core_generated rules.
252 '<(blink_core_output_dir)/CSSGrammar.cpp',
253 '<(blink_core_output_dir)/XPathGrammar.cpp',
254
255 # Additional .cpp files from the inspector_protocol_sources list.
256 '<(blink_core_output_dir)/InspectorFrontend.cpp',
257 '<(blink_core_output_dir)/InspectorBackendDispatcher.cpp',
258 '<(blink_core_output_dir)/InspectorTypeBuilder.cpp',
259
260 # Additional .cpp files from the inspector_instrumentation_sources list.
261 '<(blink_core_output_dir)/InspectorCanvasInstrumentationInl.h',
262 '<(blink_core_output_dir)/InspectorConsoleInstrumentationInl.h',
263 '<(blink_core_output_dir)/InspectorInstrumentationInl.h',
264 '<(blink_core_output_dir)/InspectorOverridesInl.h',
265 '<(blink_core_output_dir)/InstrumentingAgentsInl.h',
266 '<(blink_core_output_dir)/InspectorInstrumentationImpl.cpp',
267
268 # Additional .cpp files for SVG.
269 '<(blink_core_output_dir)/SVGElementFactory.cpp',
270
271 # Generated from make_style_shorthands.py
272 '<(blink_core_output_dir)/StylePropertyShorthand.cpp',
273
274 # Generated from make_style_builder.py
275 '<(blink_core_output_dir)/StyleBuilder.cpp',
276 '<(blink_core_output_dir)/StyleBuilderFunctions.cpp',
277
278 # Generated from make_css_property_metadata.py
279 '<(blink_core_output_dir)/CSSPropertyMetadata.cpp',
280 207
281 # IDL dictionary impl files generated by IDL compiler 208 # IDL dictionary impl files generated by IDL compiler
282 '<@(generated_core_dictionary_files)', 209 '<@(generated_core_dictionary_files)',
283 ], 210 ],
284 'conditions': [ 211 'conditions': [
285 ['OS=="win" and component=="shared_library"', { 212 ['OS=="win" and component=="shared_library"', {
286 'defines': [ 213 'defines': [
287 'USING_V8_SHARED', 214 'USING_V8_SHARED',
288 ], 215 ],
289 }], 216 }],
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 'INSIDE_BLINK', 657 'INSIDE_BLINK',
731 ], 658 ],
732 'include_dirs': [ 659 'include_dirs': [
733 'testing', 660 'testing',
734 'testing/v8', 661 'testing/v8',
735 ], 662 ],
736 'sources': [ 663 'sources': [
737 # Note: file list duplicated in GN build. 664 # Note: file list duplicated in GN build.
738 '<@(generated_core_testing_dictionary_files)', 665 '<@(generated_core_testing_dictionary_files)',
739 '<@(webcore_testing_files)', 666 '<@(webcore_testing_files)',
740 '<(bindings_core_v8_output_dir)/V8DictionaryTest.cpp', 667 '<@(generated_bindings_core_testing_files)',
741 '<(bindings_core_v8_output_dir)/V8DictionaryTest.h',
742 '<(bindings_core_v8_output_dir)/V8GarbageCollectedScriptWrappable.cpp',
743 '<(bindings_core_v8_output_dir)/V8GarbageCollectedScriptWrappable.h',
744 '<(bindings_core_v8_output_dir)/V8GCObservation.cpp',
745 '<(bindings_core_v8_output_dir)/V8GCObservation.h',
746 '<(bindings_core_v8_output_dir)/V8PrivateScriptTest.cpp',
747 '<(bindings_core_v8_output_dir)/V8PrivateScriptTest.h',
748 '<(bindings_core_v8_output_dir)/V8TypeConversions.cpp',
749 '<(bindings_core_v8_output_dir)/V8TypeConversions.h',
750 '<(bindings_core_v8_output_dir)/V8UnionTypesTest.cpp',
751 '<(bindings_core_v8_output_dir)/V8UnionTypesTest.h',
752 '<(bindings_core_v8_output_dir)/V8Internals.cpp',
753 '<(bindings_core_v8_output_dir)/V8Internals.h',
754 '<(bindings_core_v8_output_dir)/V8InternalSettings.cpp',
755 '<(bindings_core_v8_output_dir)/V8InternalSettings.h',
756 '<(bindings_core_v8_output_dir)/V8InternalSettingsGenerated.cpp',
757 '<(bindings_core_v8_output_dir)/V8InternalSettingsGenerated.h',
758 '<(bindings_core_v8_output_dir)/V8InternalRuntimeFlags.cpp',
759 '<(bindings_core_v8_output_dir)/V8InternalRuntimeFlags.h',
760 '<(bindings_core_v8_output_dir)/V8LayerRect.cpp',
761 '<(bindings_core_v8_output_dir)/V8LayerRect.h',
762 '<(bindings_core_v8_output_dir)/V8LayerRectList.cpp',
763 '<(bindings_core_v8_output_dir)/V8LayerRectList.h',
764 '<(bindings_core_v8_output_dir)/V8RefCountedScriptWrappable.cpp',
765 '<(bindings_core_v8_output_dir)/V8RefCountedScriptWrappable.h',
766 '<(bindings_core_v8_output_dir)/V8InternalDictionary.cpp',
767 '<(bindings_core_v8_output_dir)/V8InternalDictionary.h',
768 '<(bindings_core_v8_output_dir)/V8InternalDictionaryDerived.cpp',
769 '<(bindings_core_v8_output_dir)/V8InternalDictionaryDerived.h',
770 '<(bindings_core_v8_output_dir)/V8PluginPlaceholderOptions.cpp',
771 '<(bindings_core_v8_output_dir)/V8PluginPlaceholderOptions.h',
772 ], 668 ],
773 'sources/': [ 669 'sources/': [
774 ['exclude', 'testing/js'], 670 ['exclude', 'testing/js'],
775 ], 671 ],
776 }, 672 },
673 {
674 # GN version: //third_party/WebKit/Source/core:core
675 'target_name': 'webcore_shared',
676 'type': 'shared_library',
677 'hard_dependency': 1,
678 'dependencies': [
679 'webcore_prerequisites',
680
681 '../platform/blink_platform.gyp:blink_common',
682 '../platform/blink_platform.gyp:blink_platform',
683
684 # webcore_generated dependency
685 'core_generated.gyp:make_core_generated',
686 'inspector_protocol_sources',
687 'inspector_instrumentation_sources',
688 '../bindings/core/v8/generated.gyp:bindings_core_v8_generated',
689 # FIXME: don't depend on bindings_modules http://crbug.com/358074
690 '../bindings/modules/generated.gyp:modules_event_generated',
691 '../bindings/modules/v8/generated.gyp:bindings_modules_v8_generated',
692 '../platform/platform_generated.gyp:make_platform_generated',
693
694 '../wtf/wtf.gyp:wtf',
695 '<(DEPTH)/gin/gin.gyp:gin',
696 '<(DEPTH)/skia/skia.gyp:skia',
697 '<(DEPTH)/third_party/libxml/libxml.gyp:libxml',
698 '<(DEPTH)/third_party/libxslt/libxslt.gyp:libxslt',
699 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
700 '<(DEPTH)/third_party/qcms/qcms.gyp:qcms',
701 '<(DEPTH)/third_party/snappy/snappy.gyp:snappy',
702 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
703 '<(DEPTH)/url/url.gyp:url_lib',
704 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
705 ],
706 'export_dependent_settings': [
707 '../platform/blink_platform.gyp:blink_platform',
708 '../wtf/wtf.gyp:wtf',
709 '<(DEPTH)/skia/skia.gyp:skia',
710 '<(DEPTH)/third_party/npapi/npapi.gyp:npapi',
711 '<(DEPTH)/third_party/qcms/qcms.gyp:qcms',
712 '<(DEPTH)/url/url.gyp:url_lib',
713 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8',
714 ],
715 'direct_dependent_settings': {
716 'include_dirs': [
717 '<@(webcore_include_dirs)',
718 ],
719 },
720 'conditions': [
721 ['component!="shared_library" or link_core_modules_separately==0', {
722 }, {
723 'defines': [
724 'BLINK_CORE_IMPLEMENTATION=1',
725 'BLINK_IMPLEMENTATION=1',
726 'INSIDE_BLINK',
727 ],
728 'sources': [
729 # webcore_generated
730 '<@(bindings_core_v8_files)',
731 '<@(bindings_core_v8_generated_aggregate_files)',
732 '<@(bindings_core_v8_generated_union_type_files)',
733 '<@(generated_core_additional_files)',
734 '<@(generated_core_dictionary_files)',
735
736 # webcore_non_rendering, webcore_rendering
737 '<@(webcore_rendering_files)',
738 '<@(webcore_non_rendering_files)',
739 # webcore_dom
740 '<@(webcore_dom_files)',
741 # webcore_svg
742 '<@(webcore_svg_files)',
743 # webcore_html
744 '<@(webcore_html_files)',
745 # webcore_testing
746 '<@(generated_core_testing_dictionary_files)',
747 '<@(webcore_testing_files)',
748 '<@(generated_bindings_core_testing_files)',
749 ],
750 'include_dirs': [
751 '<@(webcore_include_dirs)',
752 '../..', # WebKit
753 # for testing_files
754 'testing',
755 'testing/v8',
756 ],
757 'conditions': [
758 ['use_default_render_theme==0 and OS != "android"', {
759 'sources!': [
760 'layout/LayoutThemeChromiumDefault.cpp',
761 'layout/LayoutThemeChromiumDefault.h',
762 ],
763 }],
764 ['OS=="win"', {
765 # In generated bindings code: 'switch contains default but no
766 # case'.
767 # Disable c4267 warnings until we fix size_t to int truncations.
768 # 4701 and 4702 are disabled because of issues in Bison-generated
769 # XPathGrammar.cpp and CSSGrammar.cpp.
770 # Disable c4267 warnings until we fix size_t to int truncations.
771 'msvs_disabled_warnings': [ 4065, 4267, 4305, 4334, 4701, 4702 ],
772 }, {
773 'sources!': [
774 'layout/LayoutThemeChromiumFontProviderWin.cpp',
775 'layout/LayoutThemeChromiumWin.cpp',
776 'layout/LayoutThemeChromiumWin.h',
777 ],
778 'libraries': [
779 '-lm -lstdc++',
780 ],
781 }],
782 ['OS=="win" and chromium_win_pch==1', {
783 'sources/': [
784 ['include', '<(DEPTH)/third_party/WebKit/Source/build/win/Precom pile.cpp'],
785 ],
786 }],
787 ['OS=="mac"', {
788 'sources!': [
789 # LayoutThemeChromiumSkia is not used on mac since LayoutThemeCh romiumMac
790 # does not reference the Skia code that is used by Windows, Linu x and Android.
791 'layout/LayoutThemeChromiumSkia.cpp',
792 'layout/LayoutThemeChromiumSkia.h',
793
794 # LayoutThemeChromiumFontProvider is used by LayoutThemeChromium Skia.
795 'layout/LayoutThemeChromiumFontProvider.cpp',
796 'layout/LayoutThemeChromiumFontProvider.h',
797 ],
798 'link_settings': {
799 'libraries': [
800 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
801 ],
802 },
803 },{ # OS!="mac"
804 'sources!': [
805 'editing/SmartReplaceCF.cpp',
806 'layout/LayoutThemeChromiumMac.h',
807 'layout/LayoutThemeChromiumMac.mm',
808 ],
809 }],
810 ['OS == "android" and target_arch == "ia32" and gcc_version == 46', {
811 # Due to a bug in gcc 4.6 in android NDK, we get warnings about un initialized variable.
812 'cflags': ['-Wno-uninitialized'],
813 }],
814 ['OS != "linux"', {
815 'sources!': [
816 'layout/LayoutThemeChromiumLinux.cpp',
817 'layout/LayoutThemeChromiumLinux.h',
818 ],
819 }],
820 ['OS != "linux" and OS != "android"', {
821 'sources!': [
822 'layout/LayoutThemeChromiumFontProviderLinux.cpp',
823 ],
824 }],
825 ['OS=="android"', {
826 'cflags': [
827 # WebCore does not work with strict aliasing enabled.
828 # https://bugs.webkit.org/show_bug.cgi?id=25864
829 '-fno-strict-aliasing',
830 ],
831 }, {
832 'sources!': [
833 'layout/LayoutThemeChromiumAndroid.cpp',
834 'layout/LayoutThemeChromiumAndroid.h',
835 ],
836 }],
837 ],
838 }],
839 ['OS=="linux" and "WTF_USE_WEBAUDIO_IPP=1" in feature_defines', {
840 'link_settings': {
841 'ldflags': [
842 '<!@(pkg-config --libs-only-L ipp)',
843 ],
844 'libraries': [
845 '-lipps -lippcore',
846 ],
847 },
848 }],
849 # Use IPP static libraries for x86 Android.
850 ['OS=="android" and "WTF_USE_WEBAUDIO_IPP=1" in feature_defines', {
851 'link_settings': {
852 'libraries': [
853 '<!@(pkg-config --libs ipp|sed s/-L//)/libipps_l.a',
854 '<!@(pkg-config --libs ipp|sed s/-L//)/libippcore_l.a',
855 ]
856 },
857 }],
858 ],
859 },
777 ], # targets 860 ], # targets
778 } 861 }
OLDNEW
« no previous file with comments | « Source/build/features.gypi ('k') | Source/core/core_generated.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698