b1e3e96c8e59f01649d9fad6c0e5db52479a5a81
[platform/framework/web/crosswalk.git] / src / native_client / BUILD.gn
1 # Copyright (c) 2014 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 # This is the root build file for GN. GN will start processing by loading this
6 # file, and recursively load all dependencies until all dependencies are either
7 # resolved or known not to exist (which will cause the build to fail). So if
8 # you add a new build file, there must be some path of dependencies from this
9 # file to your new one or GN won't know about it.
10 #
11 # All targets in this file file are built by default.
12 #
13 # Here we declare the meta targets which pull in the various architecture
14 # combinations of the real targets.
15 #
16
17 if (os == "linux") {
18   group("trusted_arm") {
19     deps = [
20       "//native_client/src:trusted_targets(//native_client/build/toolchain/$os:trusted_arm)",
21     ]
22   }
23 }
24
25 group("trusted_32") {
26   deps = [
27     "//native_client/src:trusted_targets(//native_client/build/toolchain/$os:trusted_x86)",
28   ]
29 }
30
31 group("trusted_64") {
32   deps = [
33     "//native_client/src:trusted_targets(//native_client/build/toolchain/$os:trusted_x64)",
34   ]
35 }
36
37
38 #
39 # This is the root untrusted target which will build all trusted components
40 #
41 group("untrusted") {
42   deps = []
43   if (use_newlib) {
44     if (use_nacl_x86) {
45       deps += [
46         "//native_client/src/:untrusted_targets(//native_client/build/toolchain/nacl:newlib_x86)"
47       ]
48     }
49     if (use_nacl_x64) {
50       deps += [
51         "//native_client/src/:untrusted_targets(//native_client/build/toolchain/nacl:newlib_x64)",
52       ]
53     }
54     if (use_nacl_arm) {
55       deps += [ "//native_client/src/:untrusted_targets(//native_client/build/toolchain/nacl:newlib_arm)",
56       ]
57     }
58   }
59 }