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

Unified Diff: content/public/common/BUILD.gn

Issue 1393123003: Add cloud_print to the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cloud_print/virtual_driver/win/virtual_driver.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/BUILD.gn
diff --git a/content/public/common/BUILD.gn b/content/public/common/BUILD.gn
index ade86a26b57156b01298adcde689460e8ffa6063..c207e84d9920edb5592db3cff6a25e2eaf916962 100644
--- a/content/public/common/BUILD.gn
+++ b/content/public/common/BUILD.gn
@@ -27,6 +27,29 @@ source_set("result_codes") {
]
}
+# Forces static linking for targets using the static_switches constants, even
+# in the component build. This config makes it impossible to use the static
+# switches target and use the rest of content at the same time, because the
+# component export flags won't be consistent.
+config("static_switches_defines") {
+ defines = [ "COMPILE_CONTENT_STATICALLY" ]
+}
+
+# This target allows you to use the content_switches constants and statically
+# link to it, without depending on the rest of content. This is only for use
+# without content, or you will get multiply defined symbols.
+source_set("static_switches") {
+ public = [
+ "content_switches.h",
+ ]
+ sources = [
+ "//content/common/content_export.h",
+ "content_switches.cc",
+ ]
+
+ public_configs = [ ":static_switches_defines" ]
+}
+
source_set("common_sources") {
visibility = [ "//content/*" ]
« no previous file with comments | « cloud_print/virtual_driver/win/virtual_driver.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698