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

Unified Diff: build/config/nacl/BUILD.gn

Issue 1312813003: add nacl_toolchain to //build and flip to using it in the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@build_changes
Patch Set: rebase Created 5 years, 4 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: build/config/nacl/BUILD.gn
diff --git a/build/config/nacl/BUILD.gn b/build/config/nacl/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..45421e21703ef03912b471fca621c95c7970474d
--- /dev/null
+++ b/build/config/nacl/BUILD.gn
@@ -0,0 +1,30 @@
+# Copyright (c) 2014 The Native Client Authors. All rights reserved.
Dirk Pranke 2015/08/28 02:29:41 This file is simply copied over from //native_clie
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("nacl_defines.gni")
+
+# Native Client Definitions
+config("nacl_defines") {
+ defines = nacl_defines
+ include_dirs = [ "//." ]
brettw 2015/08/28 18:25:52 This should come from //build/config/compiler:defa
Dirk Pranke 2015/08/28 20:08:31 Acknowledged.
+}
+
+config("nexe_defines") {
+ defines = [
+ "DYNAMIC_ANNOTATIONS_ENABLED=1",
+ "DYNAMIC_ANNOTATIONS_PREFIX=NACL_",
+ ]
+}
+
+# The base target that all targets in the NaCl build should depend on.
+# This allows configs to be modified for everything in the NaCl build, even when
+# the NaCl build is composed into the Chrome build. (GN has no functionality to
+# add flags to everythin in //native_client, having a base target works around
+# that limitation.)
+source_set("nacl_base") {
+ public_configs = [ ":nacl_defines" ]
+ if (current_os == "nacl") {
+ public_configs += [ ":nexe_defines" ]
+ }
+}
« no previous file with comments | « .gn ('k') | build/config/nacl/nacl_defines.gni » ('j') | build/config/nacl/nacl_defines.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698