OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This is the root build file for GN. GN will start processing by loading this | 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 | 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 | 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 | 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. | 9 # file to your new one or GN won't know about it. |
10 | 10 |
11 # In GN, a "group" is a dummy target that just lists other targets. | 11 # In GN, a "group" is a dummy target that just lists other targets. |
12 group("root") { | 12 group("root") { |
13 # Note that some dependencies are commented out. These are things that are | 13 # Note that some dependencies are commented out. These are things that are |
14 # currently written but not hooked up to the build yet. They may need to be | 14 # currently written but not hooked up to the build yet. They may need to be |
15 # completed or possibly just tested and then re-enabled. | 15 # completed or possibly just tested and then re-enabled. |
16 deps = [ | 16 deps = [ |
17 # This is a temporary test of the not-yet-complete NaCl cross-compilation. | 17 # This is a temporary test of the not-yet-complete NaCl cross-compilation. |
18 #"//base(//build/toolchain/nacl:x86_newlib)", | 18 #"//base(//build/toolchain/nacl:x86_newlib)", |
19 | 19 |
20 #"//chrome", | 20 #"//chrome", |
21 "//components/language_usage_metrics", | 21 "//components/language_usage_metrics", |
22 "//components/navigation_metrics", | 22 "//components/navigation_metrics", |
23 "//components/onc", | 23 "//components/onc", |
24 "//components/startup_metric_utils", | 24 "//components/startup_metric_utils", |
25 #"//components/translate:translate_core_browser", | 25 #"//components/translate:translate_core_browser", |
26 #"//components/translate:translate_core_common", | 26 #"//components/translate:translate_core_common", |
27 #"//crypto", | 27 "//crypto", |
28 "//device/usb", | 28 "//device/usb", |
29 "//ipc", | 29 "//ipc", |
30 #"//net", | 30 #"//net", |
31 #"//net/third_party/nss:ssl", | |
32 #"//sdch", | 31 #"//sdch", |
33 "//skia", | 32 "//skia", |
34 #"//third_party/WebKit/Source/platform", | 33 #"//third_party/WebKit/Source/platform", |
35 "//third_party/icu", | 34 "//third_party/icu", |
36 "//third_party/leveldatabase", | 35 "//third_party/leveldatabase", |
37 "//third_party/libpng", | 36 "//third_party/libpng", |
38 "//third_party/libusb", | 37 "//third_party/libusb", |
39 "//third_party/re2", | 38 "//third_party/re2", |
40 "//third_party/smhasher:cityhash", | 39 "//third_party/smhasher:cityhash", |
41 "//third_party/smhasher:murmurhash3", | 40 "//third_party/smhasher:murmurhash3", |
42 "//third_party/smhasher:pmurhash", | 41 "//third_party/smhasher:pmurhash", |
43 "//third_party/zlib", | 42 "//third_party/zlib", |
44 "//tools/gn", | 43 "//tools/gn", |
45 "//ui/events", | 44 "//ui/events", |
46 "//ui/gfx", | 45 "//ui/gfx", |
47 "//url", | 46 "//url", |
48 ] | 47 ] |
49 | 48 |
50 if (is_posix && !is_android) { # TODO(brettw) should be use_openssl | |
51 deps += [ | |
52 "//third_party/openssl", | |
53 ] | |
54 } | |
55 if (is_linux) { | 49 if (is_linux) { |
56 deps += [ | 50 deps += [ |
57 "//third_party/freetype2", | 51 "//third_party/freetype2", |
58 ] | 52 ] |
59 } | 53 } |
60 | 54 |
61 if (is_android) { | 55 if (is_android) { |
62 deps -= [ | 56 deps -= [ |
63 "//skia", | 57 "//skia", |
64 "//third_party/libusb", | 58 "//third_party/libusb", |
65 "//tools/gn", | 59 "//tools/gn", |
66 "//ui/events", | 60 "//ui/events", |
67 "//ui/gfx", | 61 "//ui/gfx", |
68 ] | 62 ] |
69 } | 63 } |
70 } | 64 } |
OLD | NEW |