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

Unified Diff: extensions/features/BUILD.gn

Issue 2479593006: Move enable extensions define to a build flag. (Closed)
Patch Set: Merge Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/extension.h ('k') | extensions/features/features.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/features/BUILD.gn
diff --git a/extensions/features/BUILD.gn b/extensions/features/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..5be8600f6a9271597f7e0126773e015e21cde4b4
--- /dev/null
+++ b/extensions/features/BUILD.gn
@@ -0,0 +1,16 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/buildflag_header.gni")
+import("//extensions/features/features.gni")
+
+# This file is in a separate directory so all targets in the build can refer to
+# the buildflag header to get the necessary preprocessor defines without
+# bringing in all of extensions. Other targets can depend on this target
+# regardless of whether extensions are enabled.
+
+buildflag_header("features") {
+ header = "features.h"
+ flags = [ "ENABLE_EXTENSIONS=$enable_extensions" ]
+}
« no previous file with comments | « extensions/common/extension.h ('k') | extensions/features/features.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698