James Robinson | 3be077c | 2014-10-24 14:56:46 -0700 | [diff] [blame] | 1 | # Copyright 2014 The Chromium 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 | |
James Robinson | 25dfab2 | 2015-08-24 15:20:18 -0700 | [diff] [blame] | 5 | import("//build/config/ui.gni") |
| 6 | |
Nick Bray | e5ac342 | 2014-12-16 13:27:24 -0800 | [diff] [blame] | 7 | # This target will be built if no target is specified when invoking ninja. |
| 8 | group("default") { |
James Robinson | 0c81e9b | 2014-10-03 15:32:44 -0700 | [diff] [blame] | 9 | testonly = true |
| 10 | |
| 11 | deps = [ |
Viet-Trung Luu | 36627ff | 2015-05-11 12:36:47 -0700 | [diff] [blame] | 12 | "//apps", |
Sean Klein | 7a690c5 | 2015-11-17 14:34:22 -0800 | [diff] [blame] | 13 | "//base:base_unittests", |
James Robinson | 25dfab2 | 2015-08-24 15:20:18 -0700 | [diff] [blame] | 14 | "//benchmarks", |
Przemyslaw Pietrzkiewicz | 7c45108 | 2015-03-05 15:47:08 +0100 | [diff] [blame] | 15 | "//crypto:crypto_unittests", |
James Robinson | ce8c9dc | 2014-11-10 11:07:05 -0800 | [diff] [blame] | 16 | "//examples", |
Scott Violet | 32458ab | 2014-10-21 16:24:04 -0700 | [diff] [blame] | 17 | "//mojo", |
Alexandre Zani | fca71ca | 2015-04-01 07:57:24 -0700 | [diff] [blame] | 18 | "//mojom", |
James Robinson | ce8c9dc | 2014-11-10 11:07:05 -0800 | [diff] [blame] | 19 | "//services", |
James Robinson | b4b7af2 | 2014-12-05 11:21:01 -0800 | [diff] [blame] | 20 | "//shell", |
James Robinson | 0c81e9b | 2014-10-03 15:32:44 -0700 | [diff] [blame] | 21 | ] |
Scott Graham | 3582083 | 2014-11-04 11:04:01 -0800 | [diff] [blame] | 22 | |
George Kulakowski | 4446eb0 | 2016-01-11 16:13:57 -0800 | [diff] [blame] | 23 | if (is_linux) { |
Viet-Trung Luu | ab52142 | 2016-01-29 10:11:22 -0800 | [diff] [blame] | 24 | deps += [ |
George Kulakowski | 40c700d | 2016-02-19 15:12:12 -0800 | [diff] [blame] | 25 | "//apps(//build/toolchain/fusl:fusl_${current_cpu})", |
| 26 | "//examples(//build/toolchain/fusl:fusl_${current_cpu})", |
Viet-Trung Luu | ab52142 | 2016-01-29 10:11:22 -0800 | [diff] [blame] | 27 | "//fusl", |
George Kulakowski | 40c700d | 2016-02-19 15:12:12 -0800 | [diff] [blame] | 28 | "//services(//build/toolchain/fusl:fusl_${current_cpu})", |
Viet-Trung Luu | ab52142 | 2016-01-29 10:11:22 -0800 | [diff] [blame] | 29 | |
| 30 | # We need this to run tests (especially on bots). |
| 31 | "//third_party/mesa:osmesa", |
| 32 | ] |
George Kulakowski | 4446eb0 | 2016-01-11 16:13:57 -0800 | [diff] [blame] | 33 | } |
| 34 | |
craig stout | 34776a7 | 2015-10-22 08:17:33 -0700 | [diff] [blame] | 35 | # TODO(cstout): fix sandbox build for fnl/musl |
| 36 | if (is_linux && !is_fnl) { |
James Robinson | c4ebd59 | 2015-09-09 10:57:33 -0700 | [diff] [blame] | 37 | deps += [ |
| 38 | "//sandbox/linux:sandbox", |
| 39 | "//sandbox/linux:sandbox_linux_unittests", |
James Robinson | c4ebd59 | 2015-09-09 10:57:33 -0700 | [diff] [blame] | 40 | ] |
craig stout | 34776a7 | 2015-10-22 08:17:33 -0700 | [diff] [blame] | 41 | } |
| 42 | if (is_linux && !use_ozone) { |
| 43 | deps += [ "//tools/xdisplaycheck" ] |
Julien Tinnes | a4b8e8e | 2015-08-21 16:53:22 -0700 | [diff] [blame] | 44 | } |
James Robinson | 25dfab2 | 2015-08-24 15:20:18 -0700 | [diff] [blame] | 45 | |
James Robinson | 04362ac | 2015-09-18 18:24:02 -0700 | [diff] [blame] | 46 | if (is_linux || is_android) { |
| 47 | deps += [ |
| 48 | "//ui/events:events_unittests", |
| 49 | "//ui/gfx:gfx_unittests", |
| 50 | ] |
| 51 | } |
| 52 | |
James Robinson | 25dfab2 | 2015-08-24 15:20:18 -0700 | [diff] [blame] | 53 | if (use_ozone) { |
George Kulakowski | 4446eb0 | 2016-01-11 16:13:57 -0800 | [diff] [blame] | 54 | deps += [ "//ui/ozone" ] |
James Robinson | 25dfab2 | 2015-08-24 15:20:18 -0700 | [diff] [blame] | 55 | } |
James Robinson | 0c81e9b | 2014-10-03 15:32:44 -0700 | [diff] [blame] | 56 | } |
Nick Bray | e5ac342 | 2014-12-16 13:27:24 -0800 | [diff] [blame] | 57 | |
| 58 | # Deprecated name for the default build target. |
| 59 | group("root") { |
| 60 | testonly = true |
| 61 | deps = [ |
| 62 | ":default", |
| 63 | ] |
| 64 | } |
James Robinson | 2b16328 | 2015-12-11 11:07:23 -0800 | [diff] [blame] | 65 | |
| 66 | if (use_ozone) { |
| 67 | # This isn't in the default target as it's a bit wonky right now. |
| 68 | group("ozone_tests") { |
| 69 | testonly = true |
| 70 | deps = [ |
James Robinson | 2b16328 | 2015-12-11 11:07:23 -0800 | [diff] [blame] | 71 | "//ui/ozone:ozone_unittests", |
George Kulakowski | 4446eb0 | 2016-01-11 16:13:57 -0800 | [diff] [blame] | 72 | "//ui/ozone/demo", |
James Robinson | 2b16328 | 2015-12-11 11:07:23 -0800 | [diff] [blame] | 73 | ] |
| 74 | } |
| 75 | } |