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

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

Issue 343503003: Finish modules build in GN. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add config Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/modules.gni ('k') | Source/web/BUILD.gn » ('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 17 matching lines...) Expand all
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 'includes': [ 31 'includes': [
32 '../build/scripts/scripts.gypi', 32 '../build/scripts/scripts.gypi',
33 '../build/win/precompile.gypi', 33 '../build/win/precompile.gypi',
34 '../bindings/modules/modules.gypi', # modules can depend on bindings/module s, but not on bindings 34 '../bindings/modules/modules.gypi', # modules can depend on bindings/module s, but not on bindings
35 'modules.gypi', 35 'modules.gypi',
36 ], 36 ],
37 'targets': [{ 37 'targets': [{
38 # GN version: //third_party/WebKit/Source/modules:modules
38 'target_name': 'modules', 39 'target_name': 'modules',
39 'type': 'static_library', 40 'type': 'static_library',
40 'dependencies': [ 41 'dependencies': [
41 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib', 42 '<(DEPTH)/third_party/zlib/zlib.gyp:zlib',
42 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite', 43 '<(DEPTH)/third_party/sqlite/sqlite.gyp:sqlite',
43 '../config.gyp:config', 44 '../config.gyp:config',
44 '../core/core.gyp:webcore', 45 '../core/core.gyp:webcore',
45 'make_modules_generated', 46 'make_modules_generated',
46 ], 47 ],
47 'defines': [ 48 'defines': [
48 'BLINK_IMPLEMENTATION=1', 49 'BLINK_IMPLEMENTATION=1',
49 'INSIDE_BLINK', 50 'INSIDE_BLINK',
50 ], 51 ],
51 'include_dirs': [ 52 'include_dirs': [
52 # FIXME: Remove these once scripts generate qualified 53 # FIXME: Remove these once scripts generate qualified
53 # includes correctly: http://crbug.com/380054 54 # includes correctly: http://crbug.com/380054
54 '<(blink_core_output_dir)', 55 '<(blink_core_output_dir)',
55 '<(blink_modules_output_dir)', 56 '<(blink_modules_output_dir)',
56 ], 57 ],
57 'sources': [ 58 'sources': [
58 '<@(modules_files)', 59 '<@(modules_files)',
59 '<@(bindings_modules_v8_generated_aggregate_files)', 60 '<@(bindings_modules_v8_generated_aggregate_files)',
60 ], 61 ],
61 'actions': [ 62 'actions': [
62 { 63 {
64 # GN version: //third_party/WebKit/Source/modules:modules_fetch_polyfill
63 'action_name': 'FetchPolyfill', 65 'action_name': 'FetchPolyfill',
64 'process_outputs_as_sources': 1, 66 'process_outputs_as_sources': 1,
65 'variables': { 67 'variables': {
66 'resources': [ 68 'resources': [
67 'serviceworkers/polyfills/fetchPolyfill.js', 69 'serviceworkers/polyfills/fetchPolyfill.js',
68 ], 70 ],
69 }, 71 },
70 'inputs': [ 72 'inputs': [
71 '../build/scripts/make-file-arrays.py', 73 '../build/scripts/make-file-arrays.py',
72 '<@(resources)', 74 '<@(resources)',
73 ], 75 ],
74 'outputs': [ 76 'outputs': [
75 '<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.h', 77 '<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.h',
76 '<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.cpp', 78 '<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.cpp',
77 ], 79 ],
78 'action': [ 80 'action': [
79 'python', 81 'python',
80 '../build/scripts/make-file-arrays.py', 82 '../build/scripts/make-file-arrays.py',
81 '--out-h=<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.h', 83 '--out-h=<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.h',
82 '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.cpp', 84 '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/blink/FetchPolyfill.cpp',
83 '--namespace=WebCore', 85 '--namespace=WebCore',
84 '<@(resources)', 86 '<@(resources)',
85 ], 87 ],
86 }, 88 },
87 { 89 {
90 # GN version: //third_party/WebKit/Source/modules:modules_cache_polyfill
88 'action_name': 'CachePolyfill', 91 'action_name': 'CachePolyfill',
89 'process_outputs_as_sources': 1, 92 'process_outputs_as_sources': 1,
90 'variables': { 93 'variables': {
91 'resources': [ 94 'resources': [
92 'serviceworkers/polyfills/cachePolyfill.js', 95 'serviceworkers/polyfills/cachePolyfill.js',
93 ], 96 ],
94 }, 97 },
95 'inputs': [ 98 'inputs': [
96 '../build/scripts/make-file-arrays.py', 99 '../build/scripts/make-file-arrays.py',
97 '<@(resources)', 100 '<@(resources)',
98 ], 101 ],
99 'outputs': [ 102 'outputs': [
100 '<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.h', 103 '<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.h',
101 '<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.cpp', 104 '<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.cpp',
102 ], 105 ],
103 'action': [ 106 'action': [
104 'python', 107 'python',
105 '../build/scripts/make-file-arrays.py', 108 '../build/scripts/make-file-arrays.py',
106 '--out-h=<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.h', 109 '--out-h=<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.h',
107 '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.cpp', 110 '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/blink/CachePolyfill.cpp',
108 '--namespace=WebCore', 111 '--namespace=WebCore',
109 '<@(resources)', 112 '<@(resources)',
110 ], 113 ],
111 }, 114 },
112 { 115 {
116 # GN version: //third_party/WebKit/Source/modules:modules_cache_storage_ polyfill
113 'action_name': 'CacheStoragePolyfill', 117 'action_name': 'CacheStoragePolyfill',
114 'process_outputs_as_sources': 1, 118 'process_outputs_as_sources': 1,
115 'variables': { 119 'variables': {
116 'resources': [ 120 'resources': [
117 'serviceworkers/polyfills/cacheStoragePolyfill.js', 121 'serviceworkers/polyfills/cacheStoragePolyfill.js',
118 ], 122 ],
119 }, 123 },
120 'inputs': [ 124 'inputs': [
121 '../build/scripts/make-file-arrays.py', 125 '../build/scripts/make-file-arrays.py',
122 '<@(resources)', 126 '<@(resources)',
123 ], 127 ],
124 'outputs': [ 128 'outputs': [
125 '<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.h', 129 '<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.h',
126 '<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.cpp', 130 '<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.cpp',
127 ], 131 ],
128 'action': [ 132 'action': [
129 'python', 133 'python',
130 '../build/scripts/make-file-arrays.py', 134 '../build/scripts/make-file-arrays.py',
131 '--out-h=<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.h', 135 '--out-h=<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.h',
132 '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.cpp ', 136 '--out-cpp=<(SHARED_INTERMEDIATE_DIR)/blink/CacheStoragePolyfill.cpp ',
133 '--namespace=WebCore', 137 '--namespace=WebCore',
134 '<@(resources)', 138 '<@(resources)',
135 ], 139 ],
136 }, 140 },
137 ], 141 ],
138 # Disable c4267 warnings until we fix size_t to int truncations. 142 # Disable c4267 warnings until we fix size_t to int truncations.
139 'msvs_disabled_warnings': [ 4267, 4334, ] 143 'msvs_disabled_warnings': [ 4267, 4334, ]
140 }, 144 },
141 { 145 {
146 # GN version: //third_party/WebKit/Source/modules:modules_testing
142 'target_name': 'modules_testing', 147 'target_name': 'modules_testing',
143 'type': 'static_library', 148 'type': 'static_library',
144 'dependencies': [ 149 'dependencies': [
145 '../config.gyp:config', 150 '../config.gyp:config',
146 '../core/core.gyp:webcore', 151 '../core/core.gyp:webcore',
147 ], 152 ],
148 'defines': [ 153 'defines': [
149 'BLINK_IMPLEMENTATION=1', 154 'BLINK_IMPLEMENTATION=1',
150 'INSIDE_BLINK', 155 'INSIDE_BLINK',
151 ], 156 ],
152 'sources': [ 157 'sources': [
153 '<@(modules_testing_files)', 158 '<@(modules_testing_files)',
154 ], 159 ],
155 160
156 }, 161 },
157 { 162 {
158 # FIXME: should be in modules_generated.gyp 163 # FIXME: should be in modules_generated.gyp
164 # GN version: //third_party/WebKit/Source/modules:make_modules_generated
159 'target_name': 'make_modules_generated', 165 'target_name': 'make_modules_generated',
160 'type': 'none', 166 'type': 'none',
161 'hard_dependency': 1, 167 'hard_dependency': 1,
162 'dependencies': [ 168 'dependencies': [
163 #'generated_testing_idls', 169 #'generated_testing_idls',
164 '../core/core_generated.gyp:core_event_interfaces', 170 '../core/core_generated.gyp:core_event_interfaces',
165 '../bindings/modules/generated.gyp:modules_event_generated', 171 '../bindings/modules/generated.gyp:modules_event_generated',
166 '../config.gyp:config', 172 '../config.gyp:config',
167 ], 173 ],
168 'sources': [ 174 'sources': [
169 # bison rule 175 # bison rule
170 '../core/css/CSSGrammar.y', 176 '../core/css/CSSGrammar.y',
171 '../core/xml/XPathGrammar.y', 177 '../core/xml/XPathGrammar.y',
172 ], 178 ],
173 'actions': [ 179 'actions': [
174 ], 180 ],
175 }], 181 }],
176 } 182 }
OLDNEW
« no previous file with comments | « Source/modules/modules.gni ('k') | Source/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698