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

Side by Side Diff: content/public/common/BUILD.gn

Issue 1423043002: Fix missing dependencies for //components/crash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sigh. add content_descriptors target Created 5 years, 1 month 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
« no previous file with comments | « components/crash/core/browser/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//content/common/common.gni") 6 import("//content/common/common.gni")
7 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 7 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
8 8
9 # See //content/BUILD.gn for how this works. 9 # See //content/BUILD.gn for how this works.
10 group("common") { 10 group("common") {
11 if (is_component_build) { 11 if (is_component_build) {
12 public_deps = [ 12 public_deps = [
13 "//content", 13 "//content",
14 ] 14 ]
15 } else { 15 } else {
16 public_deps = [ 16 public_deps = [
17 ":common_sources", 17 ":common_sources",
18 ] 18 ]
19 } 19 }
20 } 20 }
21 21
22 # This target allows other targets to depend on result_codes.h which is a 22 # This target allows other targets to depend on result_codes.h which is a
23 # header-only dependency, without bringing in all of content. 23 # header-only dependency, without bringing in all of content.
24 source_set("result_codes") { 24 source_set("result_codes") {
25 sources = [ 25 sources = [
26 "result_codes.h", 26 "result_codes.h",
27 ] 27 ]
28 } 28 }
29 29
30 # This target allows other targets to depend on content_descriptors.h which is
31 # a header-only dependency, without bringing in all of content.
32 source_set("content_descriptors") {
33 sources = [
34 "content_descriptors.h",
jam 2015/10/29 16:11:44 can you explain to me what this accomplishes? i.e
Dirk Pranke 2015/10/29 21:27:46 Argh! You're right. This change is wrong. This nee
35 ]
36 }
37
30 # Forces static linking for targets using the static_switches constants, even 38 # Forces static linking for targets using the static_switches constants, even
31 # in the component build. This config makes it impossible to use the static 39 # in the component build. This config makes it impossible to use the static
32 # switches target and use the rest of content at the same time, because the 40 # switches target and use the rest of content at the same time, because the
33 # component export flags won't be consistent. 41 # component export flags won't be consistent.
34 config("static_switches_defines") { 42 config("static_switches_defines") {
35 defines = [ "COMPILE_CONTENT_STATICALLY" ] 43 defines = [ "COMPILE_CONTENT_STATICALLY" ]
36 } 44 }
37 45
38 # This target allows you to use the content_switches constants and statically 46 # This target allows you to use the content_switches constants and statically
39 # link to it, without depending on the rest of content. This is only for use 47 # link to it, without depending on the rest of content. This is only for use
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 } 94 }
87 95
88 mojom("mojo_bindings") { 96 mojom("mojo_bindings") {
89 sources = [ 97 sources = [
90 "background_sync.mojom", 98 "background_sync.mojom",
91 "mojo_geoposition.mojom", 99 "mojo_geoposition.mojom",
92 "permission_status.mojom", 100 "permission_status.mojom",
93 "service_worker_event_status.mojom", 101 "service_worker_event_status.mojom",
94 ] 102 ]
95 } 103 }
OLDNEW
« no previous file with comments | « components/crash/core/browser/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698