| 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("//build/split_static_library.gni") | 5 import("//build/split_static_library.gni") |
| 6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
| 7 import("//third_party/WebKit/Source/bindings/bindings.gni") | 7 import("//third_party/WebKit/Source/bindings/bindings.gni") |
| 8 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") | 8 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") |
| 9 import("//third_party/WebKit/Source/bindings/modules/v8/v8.gni") | 9 import("//third_party/WebKit/Source/bindings/modules/v8/v8.gni") |
| 10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 10 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 defines = [ "BLINK_MODULES_IMPLEMENTATION=1" ] | 26 defines = [ "BLINK_MODULES_IMPLEMENTATION=1" ] |
| 27 | 27 |
| 28 if (is_chromecast) { | 28 if (is_chromecast) { |
| 29 defines += [ | 29 defines += [ |
| 30 "BLINK_MSLOG=VLOG(2)", | 30 "BLINK_MSLOG=VLOG(2)", |
| 31 "BLINK_SBLOG=VLOG(2)", | 31 "BLINK_SBLOG=VLOG(2)", |
| 32 ] | 32 ] |
| 33 } | 33 } |
| 34 } | 34 } |
| 35 | 35 |
| 36 make_names("module_names") { |
| 37 in_files = [ "indexeddb/IndexedDBNames.in" ] |
| 38 outputs = [ |
| 39 "$blink_modules_output_dir/IndexedDBNames.cpp", |
| 40 "$blink_modules_output_dir/IndexedDBNames.h", |
| 41 ] |
| 42 deps = [] # Don't use default deps (otherwise it will be circular). |
| 43 } |
| 44 |
| 36 target(modules_target_type, "modules") { | 45 target(modules_target_type, "modules") { |
| 37 output_name = "blink_modules" | 46 output_name = "blink_modules" |
| 38 | 47 |
| 39 if (modules_target_type == "split_static_library") { | 48 if (modules_target_type == "split_static_library") { |
| 40 split_count = 5 | 49 split_count = 5 |
| 41 } | 50 } |
| 42 | 51 |
| 43 visibility = [] # Allow re-assignment of list. | 52 visibility = [] # Allow re-assignment of list. |
| 44 visibility = [ "//third_party/WebKit/*" ] | 53 visibility = [ "//third_party/WebKit/*" ] |
| 45 | 54 |
| 46 sources = rebase_path(modules_files, ".", "//") | 55 sources = [ |
| 56 "ModulesInitializer.cpp", |
| 57 "ModulesInitializer.h", |
| 58 ] |
| 59 |
| 60 # These are the files that still need to be moved to separate BUILD files. |
| 61 sources += rebase_path(modules_files, ".", "//") |
| 62 |
| 63 sources += generated_modules_dictionary_files |
| 64 |
| 65 # Compile sources generated by module_names script. |
| 66 sources += get_target_outputs(":module_names") |
| 67 |
| 47 sources += bindings_modules_v8_files | 68 sources += bindings_modules_v8_files |
| 48 sources += rebase_path(bindings_modules_generated_aggregate_files, ".", "//") | 69 sources += rebase_path(bindings_modules_generated_aggregate_files, ".", "//") |
| 49 sources += rebase_path(bindings_modules_generated_union_type_files, ".", "//") | 70 sources += rebase_path(bindings_modules_generated_union_type_files, ".", "//") |
| 50 sources += | 71 sources += |
| 51 rebase_path(bindings_modules_generated_partial_aggregate_files, ".", "//") | 72 rebase_path(bindings_modules_generated_partial_aggregate_files, ".", "//") |
| 52 sources += | 73 sources += |
| 53 rebase_path([ bindings_modules_generated_init_partial_interfaces_file ], | 74 rebase_path([ bindings_modules_generated_init_partial_interfaces_file ], |
| 54 ".", | 75 ".", |
| 55 "//") | 76 "//") |
| 56 | 77 |
| 57 configs += [ | 78 configs += [ |
| 58 ":modules_implementation", | 79 ":modules_implementation", |
| 59 | 80 |
| 60 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 81 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 61 "//build/config/compiler:no_size_t_to_int_warning", | 82 "//build/config/compiler:no_size_t_to_int_warning", |
| 62 "//third_party/WebKit/Source:config", | 83 "//third_party/WebKit/Source:config", |
| 63 "//third_party/WebKit/Source:non_test_config", | 84 "//third_party/WebKit/Source:non_test_config", |
| 64 "//third_party/WebKit/Source:inside_blink", | 85 "//third_party/WebKit/Source:inside_blink", |
| 65 ] | 86 ] |
| 66 | 87 |
| 67 deps = [ | 88 deps = [ |
| 68 ":make_modules_generated", | 89 ":make_modules_generated", |
| 90 ":module_names", |
| 69 "//device/battery:mojo_bindings_blink", | 91 "//device/battery:mojo_bindings_blink", |
| 70 "//device/geolocation/public/interfaces:interfaces_blink", | 92 "//device/geolocation/public/interfaces:interfaces_blink", |
| 71 "//device/nfc:mojo_bindings_blink", | 93 "//device/nfc:mojo_bindings_blink", |
| 72 "//media/mojo/interfaces:image_capture_blink", | 94 "//media/mojo/interfaces:image_capture_blink", |
| 95 "//third_party/WebKit/Source/bindings/modules:generated", |
| 73 "//third_party/WebKit/Source/core", | 96 "//third_party/WebKit/Source/core", |
| 74 "//third_party/WebKit/Source/modules/sensor", | 97 "//third_party/WebKit/Source/modules/sensor", |
| 75 "//third_party/WebKit/Source/modules/serviceworkers", | 98 "//third_party/WebKit/Source/modules/serviceworkers", |
| 76 "//third_party/WebKit/Source/modules/speech", | 99 "//third_party/WebKit/Source/modules/speech", |
| 77 "//third_party/WebKit/Source/modules/srcobject", | 100 "//third_party/WebKit/Source/modules/srcobject", |
| 78 "//third_party/WebKit/Source/modules/storage", | 101 "//third_party/WebKit/Source/modules/storage", |
| 79 "//third_party/WebKit/Source/modules/vibration", | 102 "//third_party/WebKit/Source/modules/vibration", |
| 80 "//third_party/WebKit/Source/modules/vr", | 103 "//third_party/WebKit/Source/modules/vr", |
| 81 "//third_party/WebKit/Source/modules/wake_lock", | 104 "//third_party/WebKit/Source/modules/wake_lock", |
| 82 "//third_party/WebKit/Source/modules/webaudio", | 105 "//third_party/WebKit/Source/modules/webaudio", |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 "//third_party/WebKit/Source:config", | 153 "//third_party/WebKit/Source:config", |
| 131 "//third_party/WebKit/Source:inside_blink", | 154 "//third_party/WebKit/Source:inside_blink", |
| 132 ] | 155 ] |
| 133 | 156 |
| 134 deps = [ | 157 deps = [ |
| 135 "//third_party/WebKit/Source/core", | 158 "//third_party/WebKit/Source/core", |
| 136 "//third_party/WebKit/Source/modules", | 159 "//third_party/WebKit/Source/modules", |
| 137 ] | 160 ] |
| 138 } | 161 } |
| 139 | 162 |
| 140 action("module_names") { | |
| 141 script = "../build/scripts/make_names.py" | |
| 142 | |
| 143 module_names_in = "indexeddb/IndexedDBNames.in" | |
| 144 inputs = make_names_files + [ module_names_in ] | |
| 145 | |
| 146 outputs = [ | |
| 147 "$blink_modules_output_dir/IndexedDBNames.cpp", | |
| 148 "$blink_modules_output_dir/IndexedDBNames.h", | |
| 149 ] | |
| 150 | |
| 151 args = [ | |
| 152 rebase_path(module_names_in, root_build_dir), | |
| 153 "--output_dir", | |
| 154 rebase_path(blink_modules_output_dir, root_build_dir), | |
| 155 ] | |
| 156 } | |
| 157 | |
| 158 # GYP version: WebKit/Source/modules/modules_generated.gyp:make_modules_generate
d | |
| 159 group("make_modules_generated") { | 163 group("make_modules_generated") { |
| 160 public_deps = [ | 164 public_deps = [ |
| 161 ":module_names", | 165 ":module_names", |
| 162 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated", | 166 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated", |
| 163 "//third_party/WebKit/Source/core:core_event_interfaces", | 167 "//third_party/WebKit/Source/core:core_event_interfaces", |
| 164 ] | 168 ] |
| 165 } | 169 } |
| 166 | 170 |
| 167 source_set("unit_tests") { | 171 source_set("unit_tests") { |
| 168 testonly = true | 172 testonly = true |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 ":modules", | 242 ":modules", |
| 239 ":modules_testing", | 243 ":modules_testing", |
| 240 "//skia", | 244 "//skia", |
| 241 "//testing/gmock", | 245 "//testing/gmock", |
| 242 "//testing/gtest", | 246 "//testing/gtest", |
| 243 "//third_party/WebKit/Source/core", | 247 "//third_party/WebKit/Source/core", |
| 244 "//third_party/WebKit/Source/wtf", | 248 "//third_party/WebKit/Source/wtf", |
| 245 "//v8", | 249 "//v8", |
| 246 ] | 250 ] |
| 247 } | 251 } |
| OLD | NEW |