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/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//content/common/common.gni") | 6 import("//content/common/common.gni") |
7 import("//mojo/public/tools/bindings/mojom.gni") | 7 import("//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") { |
(...skipping 26 matching lines...) Expand all Loading... |
37 } | 37 } |
38 | 38 |
39 # Forces static linking for targets using the static_switches constants, even | 39 # Forces static linking for targets using the static_switches constants, even |
40 # in the component build. This config makes it impossible to use the static | 40 # in the component build. This config makes it impossible to use the static |
41 # switches target and use the rest of content at the same time, because the | 41 # switches target and use the rest of content at the same time, because the |
42 # component export flags won't be consistent. | 42 # component export flags won't be consistent. |
43 config("static_switches_defines") { | 43 config("static_switches_defines") { |
44 defines = [ "COMPILE_CONTENT_STATICALLY" ] | 44 defines = [ "COMPILE_CONTENT_STATICALLY" ] |
45 } | 45 } |
46 | 46 |
47 # Set in GN builds, triggering behavior in content when run from an external | |
48 # Mojo shell. | |
49 config("mojo_shell_client") { | |
50 # This configuration has only been tested on these platforms. | |
51 if (is_win || is_linux || is_chromeos) { | |
52 defines = [ "MOJO_SHELL_CLIENT" ] | |
53 } | |
54 } | |
55 | |
56 # This target allows you to use the content_switches constants and statically | 47 # This target allows you to use the content_switches constants and statically |
57 # link to it, without depending on the rest of content. This is only for use | 48 # link to it, without depending on the rest of content. This is only for use |
58 # without content, or you will get multiply defined symbols. | 49 # without content, or you will get multiply defined symbols. |
59 source_set("static_switches") { | 50 source_set("static_switches") { |
60 public = [ | 51 public = [ |
61 "content_switches.h", | 52 "content_switches.h", |
62 ] | 53 ] |
63 sources = [ | 54 sources = [ |
64 "//content/common/content_export.h", | 55 "//content/common/content_export.h", |
65 "content_switches.cc", | 56 "content_switches.cc", |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 102 } |
112 | 103 |
113 mojom("mojo_bindings") { | 104 mojom("mojo_bindings") { |
114 sources = [ | 105 sources = [ |
115 "background_sync.mojom", | 106 "background_sync.mojom", |
116 "mojo_geoposition.mojom", | 107 "mojo_geoposition.mojom", |
117 "permission_status.mojom", | 108 "permission_status.mojom", |
118 "service_worker_event_status.mojom", | 109 "service_worker_event_status.mojom", |
119 ] | 110 ] |
120 } | 111 } |
OLD | NEW |