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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
7 import("//build/config/features.gni") | 7 import("//build/config/features.gni") |
8 import("//content/common/common.gni") | 8 import("//content/common/common.gni") |
9 import("//mojo/public/tools/bindings/mojom.gni") | 9 import("//mojo/public/tools/bindings/mojom.gni") |
10 import("//third_party/webrtc/build/webrtc.gni") | 10 import("//third_party/webrtc/build/webrtc.gni") |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 } | 46 } |
47 | 47 |
48 # Forces static linking for targets using the static_switches constants, even | 48 # Forces static linking for targets using the static_switches constants, even |
49 # in the component build. This config makes it impossible to use the static | 49 # in the component build. This config makes it impossible to use the static |
50 # switches target and use the rest of content at the same time, because the | 50 # switches target and use the rest of content at the same time, because the |
51 # component export flags won't be consistent. | 51 # component export flags won't be consistent. |
52 config("static_switches_defines") { | 52 config("static_switches_defines") { |
53 defines = [ "COMPILE_CONTENT_STATICALLY" ] | 53 defines = [ "COMPILE_CONTENT_STATICALLY" ] |
54 } | 54 } |
55 | 55 |
56 # Set in GN builds, triggering behavior in content when run from an external | |
57 # Mojo shell. | |
58 config("mojo_shell_client") { | |
59 # This configuration has only been tested on these platforms. | |
60 if ((is_win || is_linux || is_chromeos) && !is_chromecast) { | |
61 defines = [ "MOJO_SHELL_CLIENT" ] | |
62 } | |
63 } | |
64 | |
65 # 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 |
66 # 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 |
67 # without content, or you will get multiply defined symbols. | 58 # without content, or you will get multiply defined symbols. |
68 source_set("static_switches") { | 59 source_set("static_switches") { |
69 public = [ | 60 public = [ |
70 "content_switches.h", | 61 "content_switches.h", |
71 ] | 62 ] |
72 sources = [ | 63 sources = [ |
73 "//content/common/content_export.h", | 64 "//content/common/content_export.h", |
74 "content_switches.cc", | 65 "content_switches.cc", |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 source_set("feature_h264_with_openh264_ffmpeg") { | 156 source_set("feature_h264_with_openh264_ffmpeg") { |
166 deps = [ | 157 deps = [ |
167 ":features", | 158 ":features", |
168 "//base", | 159 "//base", |
169 ] | 160 ] |
170 sources = [ | 161 sources = [ |
171 "feature_h264_with_openh264_ffmpeg.cc", | 162 "feature_h264_with_openh264_ffmpeg.cc", |
172 "feature_h264_with_openh264_ffmpeg.h", | 163 "feature_h264_with_openh264_ffmpeg.h", |
173 ] | 164 ] |
174 } | 165 } |
OLD | NEW |