OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//third_party/WebKit/Source/bindings/bindings.gni") | 5 import("//third_party/WebKit/Source/bindings/bindings.gni") |
| 6 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") |
| 7 import("//third_party/WebKit/Source/build/make_file_arrays.gni") |
6 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 8 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
7 import("//third_party/WebKit/Source/modules/modules.gni") | 9 import("//third_party/WebKit/Source/modules/modules.gni") |
8 | 10 |
| 11 # GYP version: WebKit/Source/modules/modules.gyp:modules |
9 source_set("modules") { | 12 source_set("modules") { |
10 sources = rebase_path(modules_files, ".", "//") | 13 sources = rebase_path(modules_files, ".", "//") |
11 sources += rebase_path(bindings_modules_generated_aggregate_files, ".", "//") | 14 sources += rebase_path(bindings_modules_generated_aggregate_files, ".", "//") |
12 | 15 |
13 if (!is_win) { | 16 if (!is_win) { |
14 sources -= [ | 17 sources -= [ |
15 "webdatabase/sqlite/SQLiteFileSystemWin.cpp", | 18 "webdatabase/sqlite/SQLiteFileSystemWin.cpp", |
16 ] | 19 ] |
17 } | 20 } |
18 if (!is_posix) { | 21 if (!is_posix) { |
19 sources -= [ | 22 sources -= [ |
20 "webdatabase/sqlite/SQLiteFileSystemPosix.cpp", | 23 "webdatabase/sqlite/SQLiteFileSystemPosix.cpp", |
21 ] | 24 ] |
22 } | 25 } |
23 | 26 |
24 configs += [ | 27 configs += [ |
25 "//third_party/WebKit/Source:config", | 28 "//third_party/WebKit/Source:config", |
26 "//third_party/WebKit/Source:inside_blink", | 29 "//third_party/WebKit/Source:inside_blink", |
27 ] | 30 ] |
28 | 31 |
29 deps = [ | 32 deps = [ |
30 ":make_modules_generated", | 33 ":make_modules_generated", |
| 34 ":modules_fetch_polyfill", |
| 35 ":modules_cache_polyfill", |
| 36 ":modules_cache_storage_polyfill", |
31 "//third_party/WebKit/Source/core", | 37 "//third_party/WebKit/Source/core", |
32 "//third_party/sqlite", | 38 "//third_party/sqlite", |
33 "//third_party/zlib", | 39 "//third_party/zlib", |
34 ] | 40 ] |
35 | 41 |
36 if (is_win) { | 42 if (is_win) { |
37 cflags = [ | 43 cflags = [ |
38 "/wd4267", # Size to int truncations. | 44 "/wd4267", # Size to int truncations. |
39 "/wd4334", # Result of 32-bit shift implicitly converted to 64 bits. | 45 "/wd4334", # Result of 32-bit shift implicitly converted to 64 bits. |
40 ] | 46 ] |
41 } | 47 } |
42 } | 48 } |
43 | 49 |
| 50 # GYP version: WebKit/Source/modules/modules.gyp:modules (FetchPolyfill action) |
| 51 make_file_arrays("modules_fetch_polyfill") { |
| 52 filename = "FetchPolyfill" |
| 53 resources = [ |
| 54 "serviceworkers/polyfills/fetchPolyfill.js", |
| 55 ] |
| 56 namespace = "WebCore" |
| 57 } |
| 58 |
| 59 # GYP version: WebKit/Source/modules/modules.gyp:modules (CachePolyfill action) |
| 60 make_file_arrays("modules_cache_polyfill") { |
| 61 filename = "CachePolyfill" |
| 62 resources = [ |
| 63 "serviceworkers/polyfills/cachePolyfill.js", |
| 64 ] |
| 65 namespace = "WebCore" |
| 66 } |
| 67 |
| 68 # GYP version: WebKit/Source/modules/modules.gyp:modules (CacheStoragePolyfill a
ction) |
| 69 make_file_arrays("modules_cache_storage_polyfill") { |
| 70 filename = "CacheStoragePolyfill" |
| 71 resources = [ |
| 72 "serviceworkers/polyfills/cacheStoragePolyfill.js", |
| 73 ] |
| 74 namespace = "WebCore" |
| 75 } |
| 76 |
| 77 # GYP version: WebKit/Source/modules/modules.gyp:modules_testing |
44 source_set("modules_testing") { | 78 source_set("modules_testing") { |
45 sources = modules_testing_files | 79 sources = modules_testing_files |
46 | 80 |
47 configs += [ | 81 configs += [ |
48 "//third_party/WebKit/Source:config", | 82 "//third_party/WebKit/Source:config", |
49 "//third_party/WebKit/Source:inside_blink", | 83 "//third_party/WebKit/Source:inside_blink", |
50 ] | 84 ] |
51 | 85 |
52 deps = [ | 86 deps = [ |
53 "//third_party/WebKit/Source/core", | 87 "//third_party/WebKit/Source/core", |
54 ] | 88 ] |
55 } | 89 } |
56 | 90 |
| 91 # GYP version: WebKit/Source/modules/modules.gyp:make_modules_generated |
| 92 group("make_modules_generated") { |
| 93 deps = [ |
| 94 "//third_party/WebKit/Source/core:core_event_interfaces", |
| 95 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated", |
| 96 ] |
| 97 } |
OLD | NEW |