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

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

Issue 2319623003: Reorganize Blink IDL build, delete obsolete GYP files. (Closed)
Patch Set: Created 4 years, 3 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
OLDNEW
(Empty)
1 #
2 # Copyright (C) 2013 Google Inc. All rights reserved.
3 #
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
6 # met:
7 #
8 # * Redistributions of source code must retain the above copyright
9 # notice, this list of conditions and the following disclaimer.
10 # * Redistributions in binary form must reproduce the above
11 # copyright notice, this list of conditions and the following disclaimer
12 # in the documentation and/or other materials provided with the
13 # distribution.
14 # * Neither the name of Google Inc. nor the names of its
15 # contributors may be used to endorse or promote products derived from
16 # this software without specific prior written permission.
17 #
18 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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.
29 #
30 {
31 'targets': [],
32 'conditions': [
33 # Normally target should exists unconditionally and only their content
34 # should be conditional. Those targets are intentionally only conditionally
35 # visible to make sure target using blink are not part of the iOS build (as
36 # iOS must not depends on blink). If you get an error about this target not
37 # existing, then you must make the target depending on blink condition on
38 # OS not being iOS.
39 ['OS!="ios"', {
40 'variables': {
41 # If set to 1, doesn't compile debug symbols into webcore reducing the
42 # size of the binary and increasing the speed of gdb. gcc only.
43 'remove_webcore_debug_symbols%': 0,
44 # If set to 1 (default) and using clang, the Blink GC plugin will check the
45 # usage of the garbage-collection infrastructure during compilation.
46 'blink_gc_plugin%': 1,
47 # Additional flags for the Blink GC plugin.
48 'blink_gc_plugin_flags%': '',
49 # If set to 1, the Blink will use the base allocator instead of
50 # PartitionAlloc. so that the top of stack-unwinding becomes the caller
51 # which requests memory allocation in blink.
52 'blink_disable_partition_allocator%': 0,
53 },
54 'targets': [
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 }
147 ],
148 }],
149 ],
150 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/win/precompile.gypi ('k') | third_party/WebKit/Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698