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

Unified Diff: components/offline_pages/features/BUILD.gn

Issue 2875853003: Add gn args and BUILDFLAGS for OfflinePages, instead on relying on is_android and is_official_build. (Closed)
Patch Set: added files Created 3 years, 7 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
Index: components/offline_pages/features/BUILD.gn
diff --git a/components/offline_pages/features/BUILD.gn b/components/offline_pages/features/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..fdf4451198a397c802899d113f7d2c883c462358
--- /dev/null
+++ b/components/offline_pages/features/BUILD.gn
@@ -0,0 +1,19 @@
+# Copyright 2017 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("//components/offline_pages/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 offline_pages. Other targets can depend on this target
+# regardless of whether extensions are enabled.
+
+buildflag_header("features") {
+ header = "features.h"
+ flags = [
+ "ENABLE_OFFLINE_PAGES=$enable_offline_pages",
+ "ENABLE_OFFLINE_PAGES_HARNESS=$enable_offline_pages_harness",
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698