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

Unified Diff: build/config/nacl/config.gni

Issue 2023703002: Beginning work on GN build (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Really add //build. Add dart_bootstrap rule. Created 4 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
« no previous file with comments | « build/config/nacl/BUILD.gn ('k') | build/config/nacl/rules.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/nacl/config.gni
diff --git a/build/config/nacl/config.gni b/build/config/nacl/config.gni
new file mode 100644
index 0000000000000000000000000000000000000000..ad8936ed9859e01b39bddb811e6583d22488d9c6
--- /dev/null
+++ b/build/config/nacl/config.gni
@@ -0,0 +1,52 @@
+# Copyright 2015 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/config/features.gni")
+
+declare_args() {
+ # Native Client supports both Newlib and Glibc C libraries where Newlib
+ # is assumed to be the default one; use this to determine whether Glibc
+ # is being used instead.
+ is_nacl_glibc = false
+}
+
+is_nacl_irt = false
+is_nacl_nonsfi = false
+
+if (enable_nacl) {
+ nacl_toolchain_dir = "//native_client/toolchain/${host_os}_x86"
+
+ if (is_nacl_glibc) {
+ if (current_cpu == "x86" || current_cpu == "x64") {
+ nacl_toolchain_package = "nacl_x86_glibc"
+ } else if (current_cpu == "arm") {
+ nacl_toolchain_package = "nacl_arm_glibc"
+ }
+ } else {
+ nacl_toolchain_package = "pnacl_newlib"
+ }
+
+ if (current_cpu == "pnacl") {
+ _nacl_tuple = "pnacl"
+ } else if (current_cpu == "x86" || current_cpu == "x64") {
+ _nacl_tuple = "x86_64-nacl"
+ } else if (current_cpu == "arm") {
+ _nacl_tuple = "arm-nacl"
+ } else if (current_cpu == "mipsel") {
+ _nacl_tuple = "mipsel-nacl"
+ }
+
+ nacl_toolchain_bindir = "${nacl_toolchain_dir}/${nacl_toolchain_package}/bin"
+ nacl_toolchain_tooldir =
+ "${nacl_toolchain_dir}/${nacl_toolchain_package}/${_nacl_tuple}"
+ nacl_toolprefix = "${nacl_toolchain_bindir}/${_nacl_tuple}-"
+
+ nacl_irt_toolchain = "//build/toolchain/nacl:irt_" + target_cpu
+ is_nacl_irt = current_toolchain == nacl_irt_toolchain
+
+ # Non-SFI mode is a lightweight sandbox used by Chrome OS for running ARC
+ # applications.
+ nacl_nonsfi_toolchain = "//build/toolchain/nacl:newlib_pnacl_nonsfi"
+ is_nacl_nonsfi = current_toolchain == nacl_nonsfi_toolchain
+}
« no previous file with comments | « build/config/nacl/BUILD.gn ('k') | build/config/nacl/rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698