OLD | NEW |
| (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 'includes': [ | |
32 '../build/features.gypi', | |
33 '../build/scripts/scripts.gypi', | |
34 '../build/win/precompile.gypi', | |
35 '../bindings/modules/modules.gypi', # modules can depend on bindings/module
s, but not on bindings | |
36 'modules.gypi', | |
37 ], | |
38 'targets': [{ | |
39 # GN version: //third_party/WebKit/Source/modules:modules | |
40 'target_name': 'modules', | |
41 'dependencies': [ | |
42 '<(DEPTH)/device/battery/battery.gyp:device_battery_mojo_bindings_for_blin
k', | |
43 '<(DEPTH)/device/nfc/nfc.gyp:device_nfc_mojo_bindings_for_blink', | |
44 '<(DEPTH)/device/usb/usb.gyp:device_usb_mojo_bindings_for_blink', | |
45 '<(DEPTH)/device/vibration/vibration.gyp:device_vibration_mojo_bindings_fo
r_blink', | |
46 '<(DEPTH)/device/vr/vr.gyp:device_vr_mojo_bindings_for_blink', | |
47 '<(DEPTH)/media/mojo/interfaces/mojo_bindings.gyp:image_capture_mojo_bindi
ngs_for_blink', | |
48 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl', | |
49 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings', | |
50 '<(DEPTH)/third_party/icu/icu.gyp:icui18n', | |
51 '<(DEPTH)/third_party/icu/icu.gyp:icuuc', | |
52 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite', | |
53 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', | |
54 '../config.gyp:config', | |
55 'modules_generated.gyp:make_modules_generated', | |
56 '../../public/blink.gyp:mojo_bindings', | |
57 ], | |
58 'defines': [ | |
59 'BLINK_IMPLEMENTATION=1', | |
60 'INSIDE_BLINK', | |
61 ], | |
62 'sources': [ | |
63 '<@(modules_files)', | |
64 '<@(bindings_modules_v8_files)', | |
65 '<@(bindings_modules_v8_generated_aggregate_files)', | |
66 '<@(bindings_modules_v8_generated_partial_aggregate_files)', | |
67 '<@(bindings_modules_v8_generated_union_type_files)', | |
68 '<(bindings_modules_v8_output_dir)/initPartialInterfacesInModules.cpp', | |
69 ], | |
70 'conditions': [ | |
71 ['component=="shared_library"', { | |
72 'type': 'shared_library', | |
73 'defines': [ | |
74 'BLINK_MODULES_IMPLEMENTATION=1', | |
75 ], | |
76 'dependencies': [ | |
77 '../core/core.gyp:webcore_shared', # modules depends on core. | |
78 '../platform/blink_platform.gyp:blink_common', | |
79 '../platform/blink_platform.gyp:blink_platform', | |
80 '../bindings/modules/generated.gyp:modules_event_generated', | |
81 '../bindings/modules/v8/generated.gyp:bindings_modules_v8_generated', | |
82 '../wtf/wtf.gyp:wtf', | |
83 '<(DEPTH)/base/base.gyp:base', | |
84 '<(DEPTH)/skia/skia.gyp:skia', | |
85 '<(DEPTH)/url/url.gyp:url_lib', | |
86 '<(DEPTH)/v8/src/v8.gyp:v8', | |
87 ], | |
88 }, { | |
89 'type': 'static_library', | |
90 'dependencies': [ | |
91 '../core/core.gyp:webcore', | |
92 ], | |
93 'conditions': [ | |
94 # Shard this target into parts to work around linker limitations. | |
95 ['OS=="win" and (buildtype=="Official" or (fastbuild==0 and win_z7==1)
)', { | |
96 'msvs_shard': 4, | |
97 }], | |
98 ], | |
99 }] | |
100 ], | |
101 # Disable c4267 warnings until we fix size_t to int truncations. | |
102 'msvs_disabled_warnings': [ 4267, 4334, ], | |
103 }, | |
104 { | |
105 # GN version: //third_party/WebKit/Source/modules:modules_testing | |
106 'target_name': 'modules_testing', | |
107 'type': 'static_library', | |
108 'dependencies': [ | |
109 'modules', | |
110 '../config.gyp:config', | |
111 ], | |
112 'defines': [ | |
113 'BLINK_IMPLEMENTATION=1', | |
114 'INSIDE_BLINK', | |
115 ], | |
116 'sources': [ | |
117 '<@(modules_testing_files)', | |
118 '<(bindings_modules_v8_output_dir)/V8InternalsPartial.cpp', | |
119 '<(bindings_modules_v8_output_dir)/V8InternalsPartial.h', | |
120 ], | |
121 'conditions': [ | |
122 ['component=="shared_library"', { | |
123 'dependencies': [ | |
124 '../core/core.gyp:webcore_shared', | |
125 '<(DEPTH)/gin/gin.gyp:gin', | |
126 ], | |
127 }, { | |
128 'dependencies': [ | |
129 '../core/core.gyp:webcore', | |
130 ], | |
131 }], | |
132 ], | |
133 }], | |
134 } | |
OLD | NEW |