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

Unified Diff: chromeos/BUILD.gn

Issue 657713002: is_chromeos assertion for GN/ChromeOS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/BUILD.gn
diff --git a/chromeos/BUILD.gn b/chromeos/BUILD.gn
index 2a86253acad2cdc871d1e82194b187f995852d81..55b3ba692e98efdaba3b15632fda1a642e4ad1ed 100644
--- a/chromeos/BUILD.gn
+++ b/chromeos/BUILD.gn
@@ -6,6 +6,8 @@ import("//build/config/allocator.gni")
import("//build/config/ui.gni")
import("//third_party/protobuf/proto_library.gni")
+assert(is_chromeos, "Non-ChromeOS builds must not depend on //chromeos")
+
gypi_values = exec_script(
"//build/gypi_to_gn.py",
[ rebase_path("chromeos.gyp") ],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698