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

Side by Side Diff: third_party/WebKit/Source/config.gyp

Issue 2036683002: [iOS] Remove dependency third_party/WebKit on iOS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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 | « mojo/mojo_public.gyp ('k') | third_party/WebKit/Source/wtf/wtf.gyp » ('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) 2013 Google Inc. All rights reserved. 2 # Copyright (C) 2013 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 10 matching lines...) Expand all
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 # 29 #
30 { 30 {
31 'variables': { 31 'targets': [],
32 # If set to 1, doesn't compile debug symbols into webcore reducing the 32 'conditions': [
33 # size of the binary and increasing the speed of gdb. gcc only. 33 # Normally target should exists unconditionally and only their content
34 'remove_webcore_debug_symbols%': 0, 34 # should be conditional. Those targets are intentionally only conditionally
35 # If set to 1 (default) and using clang, the Blink GC plugin will check the 35 # visible to make sure target using blink are not part of the iOS build (as
36 # usage of the garbage-collection infrastructure during compilation. 36 # iOS must not depends on blink). If you get an error about this target not
37 'blink_gc_plugin%': 1, 37 # existing, then you must make the target depending on blink condition on
38 # Additional flags for the Blink GC plugin. 38 # OS not being iOS.
39 'blink_gc_plugin_flags%': '', 39 ['OS!="ios"', {
40 # If set to 1, the Blink will use the base allocator instead of 40 'variables': {
41 # PartitionAlloc. so that the top of stack-unwinding becomes the caller 41 # If set to 1, doesn't compile debug symbols into webcore reducing the
42 # which requests memory allocation in blink. 42 # size of the binary and increasing the speed of gdb. gcc only.
43 'blink_disable_partition_allocator%': 0, 43 'remove_webcore_debug_symbols%': 0,
44 }, 44 # If set to 1 (default) and using clang, the Blink GC plugin will check the
45 'targets': [ 45 # usage of the garbage-collection infrastructure during compilation.
46 { 46 'blink_gc_plugin%': 1,
47 # GN version: //third_party/WebKit/Source:config 47 # Additional flags for the Blink GC plugin.
48 # (In GN this is a config rather than a target.) 48 'blink_gc_plugin_flags%': '',
49 'target_name': 'config', 49 # If set to 1, the Blink will use the base allocator instead of
50 'type': 'none', 50 # PartitionAlloc. so that the top of stack-unwinding becomes the caller
51 'direct_dependent_settings': { 51 # which requests memory allocation in blink.
52 'include_dirs': [ 52 'blink_disable_partition_allocator%': 0,
53 '.', 53 },
54 '..', 54 'targets': [
55 '<(SHARED_INTERMEDIATE_DIR)/third_party/WebKit', 55 {
56 # GN version: //third_party/WebKit/Source:config
57 # (In GN this is a config rather than a target.)
58 'target_name': 'config',
59 'type': 'none',
60 'direct_dependent_settings': {
61 'include_dirs': [
62 '.',
63 '..',
64 '<(SHARED_INTERMEDIATE_DIR)/third_party/WebKit',
65 ],
66 'msvs_disabled_warnings': [
67 4305, 4324, 4714, 4800, 4996,
68 ],
69 'variables': {
70 'chromium_code': 1,
71 'clang_warning_flags': [ '-Wglobal-constructors' ],
72 },
73 'conditions': [
74 ['OS=="win" and component=="shared_library"', {
75 'defines': [
76 'USING_V8_SHARED',
77 ],
78 }],
79 ['OS=="win"', {
80 'sources/': [
81 ['exclude', 'Posix\\.cpp$'],
82 ],
83 },{ # OS!="win"
84 'sources/': [
85 ['exclude', 'Win\\.cpp$'],
86 ],
87 }],
88 ['OS!="mac"', {
89 'sources/': [
90 ['exclude', 'Mac\\.mm$'],
91 ],
92 }],
93 ['OS!="android"', {
94 'sources/': [
95 ['exclude', 'Android\\.cpp$'],
96 ],
97 }],
98 ['OS!="win" and remove_webcore_debug_symbols==1', {
99 # Remove -g from all targets defined here.
100 'cflags!': ['-g'],
101 }],
102 # Only enable the blink_gc_plugin when using clang and chrome plugin s.
103 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', {
104 'cflags': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_plugi n_flags.py target_os=<(OS) <(blink_gc_plugin_flags))'],
105 'xcode_settings': {
106 'OTHER_CFLAGS': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_ gc_plugin_flags.py target_os=<(OS) <(blink_gc_plugin_flags))'],
107 },
108 'msvs_settings': {
109 'VCCLCompilerTool': {
110 'AdditionalOptions': ['<!@(python <(DEPTH)/tools/clang/scripts /blink_gc_plugin_flags.py target_os=<(OS) <(blink_gc_plugin_flags))'],
111 },
112 },
113 }],
114 ['blink_disable_partition_allocator==1', {
115 'defines': [
116 'MEMORY_TOOL_REPLACES_ALLOCATOR',
117 ],
118 }],
119 ['use_system_icu==1', {
120 'defines': [
121 'USING_SYSTEM_ICU',
122 ],
123 }],
124 ],
125 },
126 },
127 {
128 'target_name': 'unittest_config',
129 'type': 'none',
130 'dependencies': [
131 'config',
132 '<(DEPTH)/testing/gmock.gyp:gmock',
133 '<(DEPTH)/testing/gtest.gyp:gtest',
134 ],
135 'export_dependent_settings': [
136 'config',
137 '<(DEPTH)/testing/gmock.gyp:gmock',
138 '<(DEPTH)/testing/gtest.gyp:gtest',
139 ],
140 'direct_dependent_settings': {
141 'variables': {
142 'chromium_code': 1,
143 'clang_warning_flags_unset': [ '-Wglobal-constructors' ],
144 },
145 },
146 }
56 ], 147 ],
57 'msvs_disabled_warnings': [ 148 }],
58 4305, 4324, 4714, 4800, 4996,
59 ],
60 'variables': {
61 'chromium_code': 1,
62 'clang_warning_flags': [ '-Wglobal-constructors' ],
63 },
64 'conditions': [
65 ['OS=="win" and component=="shared_library"', {
66 'defines': [
67 'USING_V8_SHARED',
68 ],
69 }],
70 ['OS=="win"', {
71 'sources/': [
72 ['exclude', 'Posix\\.cpp$'],
73 ],
74 },{ # OS!="win"
75 'sources/': [
76 ['exclude', 'Win\\.cpp$'],
77 ],
78 }],
79 ['OS!="mac"', {
80 'sources/': [
81 ['exclude', 'Mac\\.mm$'],
82 ],
83 }],
84 ['OS!="android"', {
85 'sources/': [
86 ['exclude', 'Android\\.cpp$'],
87 ],
88 }],
89 ['OS!="win" and remove_webcore_debug_symbols==1', {
90 # Remove -g from all targets defined here.
91 'cflags!': ['-g'],
92 }],
93 # Only enable the blink_gc_plugin when using clang and chrome plugins.
94 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', {
95 'cflags': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_plugin_fl ags.py <(blink_gc_plugin_flags))'],
96 'xcode_settings': {
97 'OTHER_CFLAGS': ['<!@(python <(DEPTH)/tools/clang/scripts/blink_gc_p lugin_flags.py <(blink_gc_plugin_flags))'],
98 },
99 'msvs_settings': {
100 'VCCLCompilerTool': {
101 'AdditionalOptions': ['<!@(python <(DEPTH)/tools/clang/scripts/bli nk_gc_plugin_flags.py <(blink_gc_plugin_flags))'],
102 },
103 },
104 }],
105 ['blink_disable_partition_allocator==1', {
106 'defines': [
107 'MEMORY_TOOL_REPLACES_ALLOCATOR',
108 ],
109 }],
110 ['use_system_icu==1', {
111 'defines': [
112 'USING_SYSTEM_ICU',
113 ],
114 }],
115 ],
116 },
117 },
118 {
119 'target_name': 'unittest_config',
120 'type': 'none',
121 'dependencies': [
122 'config',
123 '<(DEPTH)/testing/gmock.gyp:gmock',
124 '<(DEPTH)/testing/gtest.gyp:gtest',
125 ],
126 'export_dependent_settings': [
127 'config',
128 '<(DEPTH)/testing/gmock.gyp:gmock',
129 '<(DEPTH)/testing/gtest.gyp:gtest',
130 ],
131 'direct_dependent_settings': {
132 'variables': {
133 'chromium_code': 1,
134 'clang_warning_flags_unset': [ '-Wglobal-constructors' ],
135 },
136 },
137 }
138 ], 149 ],
139 } 150 }
OLDNEW
« no previous file with comments | « mojo/mojo_public.gyp ('k') | third_party/WebKit/Source/wtf/wtf.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698