btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 1 | # Copyright 2018 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 | |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 5 | # All compilable non-test targets in the repository (both executables and |
| 6 | # source_sets). |
btolsch | 9d6900c | 2018-05-30 18:22:53 -0700 | [diff] [blame] | 7 | group("gn_all") { |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 8 | deps = [ |
mark a. foltz | 4bb631b | 2018-07-18 17:30:17 -0700 | [diff] [blame] | 9 | "//api", |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 10 | "//base", |
mark a. foltz | a11bffe | 2018-09-04 11:19:49 -0700 | [diff] [blame] | 11 | "//discovery/mdns:embedder_demo", |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 12 | "//platform", |
| 13 | "//sample:hello", |
btolsch | 1612212 | 2018-08-30 16:48:23 -0700 | [diff] [blame] | 14 | "//third_party/chromium_quic", |
mark a. foltz | a11bffe | 2018-09-04 11:19:49 -0700 | [diff] [blame] | 15 | "//third_party/chromium_quic:demo_client", |
| 16 | "//third_party/chromium_quic:demo_server", |
btolsch | 3184629 | 2018-09-10 10:54:06 -0700 | [diff] [blame] | 17 | "//third_party/tinycbor", |
btolsch | 3f0bfe4 | 2018-10-18 15:04:05 -0700 | [diff] [blame] | 18 | "//tools/cddl", |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 19 | ] |
| 20 | } |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame] | 21 | |
btolsch | 6d3d0bc | 2018-12-10 18:59:28 -0800 | [diff] [blame] | 22 | if (current_os == "mac") { |
| 23 | source_set("demo") { |
| 24 | } |
| 25 | } else { |
| 26 | # TODO(btolsch): Darwin linker has deprecated -m, which handles the multiple |
| 27 | # definition error. Until the boringssl/mDNSResponder conflict is fixed |
| 28 | # (which appears to be exactly the same code in both projects), the demo is |
| 29 | # excluded on mac. |
| 30 | executable("demo") { |
| 31 | sources = [ |
| 32 | "//demo/demo.cc", |
| 33 | ] |
btolsch | 79998fe | 2018-09-18 14:58:09 -0700 | [diff] [blame] | 34 | |
btolsch | 6d3d0bc | 2018-12-10 18:59:28 -0800 | [diff] [blame] | 35 | # TODO(btolsch): Handles MD5_* conflict between boringssl and mDNSResponder |
| 36 | # temporarily. |
| 37 | ldflags = [ "-Wl,-z,muldefs" ] |
| 38 | deps = [ |
| 39 | "//api:api_with_chromium_quic", |
| 40 | "//base", |
| 41 | "//discovery/mdns", |
| 42 | "//platform", |
| 43 | ] |
| 44 | } |
btolsch | 79998fe | 2018-09-18 14:58:09 -0700 | [diff] [blame] | 45 | } |
| 46 | |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 47 | executable("unittests") { |
| 48 | testonly = true |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame] | 49 | deps = [ |
btolsch | 6692c4c | 2018-05-31 17:38:09 -0700 | [diff] [blame] | 50 | "//api:api_unittests", |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame] | 51 | "//base:base_unittests", |
btolsch | bd9ca07 | 2018-08-30 15:57:32 -0700 | [diff] [blame] | 52 | "//discovery/mdns:mdns_unittests", |
btolsch | 3f0bfe4 | 2018-10-18 15:04:05 -0700 | [diff] [blame] | 53 | "//msgs:unittests", |
mark a. foltz | c28ca40 | 2018-07-19 16:11:32 -0700 | [diff] [blame] | 54 | "//sample:hello_unittests", |
btolsch | 253cbce | 2018-07-26 00:32:19 -0700 | [diff] [blame] | 55 | "//third_party/googletest:gtest_main", |
btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 56 | ] |
| 57 | } |