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

Side by Side Diff: third_party/WebKit/public/BUILD.gn

Issue 1771743002: Move geolocation and permission mojoms into WebKit/public/platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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("//mojo/public/tools/bindings/mojom.gni")
5 import("//third_party/WebKit/Source/config.gni") 6 import("//third_party/WebKit/Source/config.gni")
6 import("//tools/grit/grit_rule.gni") 7 import("//tools/grit/grit_rule.gni")
7 8
8 blink_headers_values = exec_script("//build/gypi_to_gn.py", 9 blink_headers_values = exec_script("//build/gypi_to_gn.py",
9 [ rebase_path("blink_headers.gypi") ], 10 [ rebase_path("blink_headers.gypi") ],
10 "scope", 11 "scope",
11 [ "blink_headers.gypi" ]) 12 [ "blink_headers.gypi" ])
12 13
13 if (is_android) { 14 if (is_android) {
14 import("//build/config/android/rules.gni") 15 import("//build/config/android/rules.gni")
15 } 16 }
16 17
17 # GYP version: WebKit/public/blink.gyp:blink 18 # GYP version: WebKit/public/blink.gyp:blink
18 group("blink") { 19 group("blink") {
19 public_deps = [ 20 public_deps = [
20 ":blink_headers", 21 ":blink_headers",
21 ":blink_minimal", 22 ":blink_minimal",
23 ":mojo_bindings",
22 "//third_party/WebKit/Source/platform", 24 "//third_party/WebKit/Source/platform",
23 "//third_party/WebKit/Source/web", 25 "//third_party/WebKit/Source/web",
24 26
25 # public/platform/Platform.h in ':blink_headers' depends on Mojo APIs, and 27 # public/platform/Platform.h in ':blink_headers' depends on Mojo APIs, and
26 # the dependent of this target needs to link Mojo. 28 # the dependent of this target needs to link Mojo.
27 "//mojo/public/c/system:for_component", 29 "//mojo/public/c/system:for_component",
28 ] 30 ]
29 } 31 }
30 32
31 group("blink_for_unittests") { 33 group("blink_for_unittests") {
32 public_deps = [ 34 public_deps = [
33 ":blink", 35 ":blink",
34 36
35 # Since public/platform/Platform.h depends on Mojo APIs, unittests depending 37 # Since public/platform/Platform.h depends on Mojo APIs, unittests depending
36 # on :blink needs to link mojo/edk/system. 38 # on :blink needs to link mojo/edk/system.
37 "//mojo/edk/system", 39 "//mojo/edk/system",
38 ] 40 ]
39 } 41 }
40 42
43 mojom("mojo_bindings") {
44 sources = [
45 "platform/modules/geolocation/geolocation.mojom",
46 "platform/modules/permissions/permission.mojom",
47 ]
48 }
49
41 # This target provides a minimal set of Blink APIs such as WebString to use in 50 # This target provides a minimal set of Blink APIs such as WebString to use in
42 # places that cannot link against the full Blink library. FIXME: We really 51 # places that cannot link against the full Blink library. FIXME: We really
43 # shouldn't have this at all and should instead remove all uses of Blink's API 52 # shouldn't have this at all and should instead remove all uses of Blink's API
44 # types from places that can't link against Blink. crbug.com/248653 53 # types from places that can't link against Blink. crbug.com/248653
45 # 54 #
46 # GYP version: WebKit/public/blink.gyp:blink_minimal 55 # GYP version: WebKit/public/blink.gyp:blink_minimal
47 group("blink_minimal") { 56 group("blink_minimal") {
48 public_deps = [ 57 public_deps = [
49 "//third_party/WebKit/Source/platform:blink_common", 58 "//third_party/WebKit/Source/platform:blink_common",
50 ] 59 ]
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 grit("image_resources") { 171 grit("image_resources") {
163 output_dir = "$root_gen_dir/blink/public/resources" 172 output_dir = "$root_gen_dir/blink/public/resources"
164 use_qualified_include = true 173 use_qualified_include = true
165 source = "blink_image_resources.grd" 174 source = "blink_image_resources.grd"
166 outputs = [ 175 outputs = [
167 "grit/blink_image_resources.h", 176 "grit/blink_image_resources.h",
168 "blink_image_resources_100_percent.pak", 177 "blink_image_resources_100_percent.pak",
169 "blink_image_resources_200_percent.pak", 178 "blink_image_resources_200_percent.pak",
170 ] 179 ]
171 } 180 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698