Enable dev build with the latest repo
[platform/framework/web/chromium-efl.git] / native_client / config.gni
1 # Copyright 2016 The Native Client Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 declare_args() {
6   # Untrusted architecture
7   use_nacl_x86 = target_cpu == "x86"
8   use_nacl_x64 = target_cpu == "x64" || target_os == "win"
9   use_nacl_arm = target_cpu == "arm"
10   # Untrusted libc
11   use_gcc_glibc = false
12   use_clang_newlib = true
13 }
14
15 declare_args() {
16   if (use_nacl_x86) {
17     if (use_gcc_glibc) {
18       toolchain_untrusted = "//build/toolchain/nacl:glibc_x86"
19     }
20     if (use_clang_newlib) {
21       toolchain_untrusted = "//build/toolchain/nacl:clang_newlib_x86"
22     }
23     toolchain_irt = "//build/toolchain/nacl:irt_x86"
24   }
25   if (use_nacl_x64) {
26     if (use_gcc_glibc) {
27       toolchain_untrusted = "//build/toolchain/nacl:glibc_x64"
28     }
29     if (use_clang_newlib) {
30       toolchain_untrusted = "//build/toolchain/nacl:clang_newlib_x64"
31     }
32     toolchain_irt = "//build/toolchain/nacl:irt_x64"
33   }
34   if (use_nacl_arm) {
35     if (use_gcc_glibc) {
36       toolchain_untrusted = "//build/toolchain/nacl:glibc_arm"
37     }
38     if (use_clang_newlib) {
39       toolchain_untrusted = "//build/toolchain/nacl:clang_newlib_arm"
40     }
41     toolchain_irt = "//build/toolchain/nacl:irt_arm"
42   }
43 }