| 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 |
| 47 # This target allows you to use the content_switches constants and statically | 56 # This target allows you to use the content_switches constants and statically |
| 48 # link to it, without depending on the rest of content. This is only for use | 57 # link to it, without depending on the rest of content. This is only for use |
| 49 # without content, or you will get multiply defined symbols. | 58 # without content, or you will get multiply defined symbols. |
| 50 source_set("static_switches") { | 59 source_set("static_switches") { |
| 51 public = [ | 60 public = [ |
| 52 "content_switches.h", | 61 "content_switches.h", |
| 53 ] | 62 ] |
| 54 sources = [ | 63 sources = [ |
| 55 "//content/common/content_export.h", | 64 "//content/common/content_export.h", |
| 56 "content_switches.cc", | 65 "content_switches.cc", |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 111 } |
| 103 | 112 |
| 104 mojom("mojo_bindings") { | 113 mojom("mojo_bindings") { |
| 105 sources = [ | 114 sources = [ |
| 106 "background_sync.mojom", | 115 "background_sync.mojom", |
| 107 "mojo_geoposition.mojom", | 116 "mojo_geoposition.mojom", |
| 108 "permission_status.mojom", | 117 "permission_status.mojom", |
| 109 "service_worker_event_status.mojom", | 118 "service_worker_event_status.mojom", |
| 110 ] | 119 ] |
| 111 } | 120 } |
| OLD | NEW |