blob: ec221f7345a67451727d0f5dc1b44272d84d2586 [file] [log] [blame]
btolsch762c4da2018-03-19 12:27:00 -07001# 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. foltzc28ca402018-07-19 16:11:32 -07005# All compilable non-test targets in the repository (both executables and
6# source_sets).
btolsch9d6900c2018-05-30 18:22:53 -07007group("gn_all") {
mark a. foltzc28ca402018-07-19 16:11:32 -07008 deps = [
mark a. foltz4bb631b2018-07-18 17:30:17 -07009 "//api",
mark a. foltzc28ca402018-07-19 16:11:32 -070010 "//base",
mark a. foltza11bffe2018-09-04 11:19:49 -070011 "//discovery/mdns:embedder_demo",
mark a. foltzc28ca402018-07-19 16:11:32 -070012 "//platform",
13 "//sample:hello",
Jordan Bayles9eb09742019-01-15 14:04:52 -080014 "//third_party/abseil",
btolsch16122122018-08-30 16:48:23 -070015 "//third_party/chromium_quic",
mark a. foltza11bffe2018-09-04 11:19:49 -070016 "//third_party/chromium_quic:demo_client",
17 "//third_party/chromium_quic:demo_server",
btolsch31846292018-09-10 10:54:06 -070018 "//third_party/tinycbor",
btolsch3f0bfe42018-10-18 15:04:05 -070019 "//tools/cddl",
mark a. foltzc28ca402018-07-19 16:11:32 -070020 ]
21}
btolschb4893e62018-05-28 22:03:07 -070022
btolsch6d3d0bc2018-12-10 18:59:28 -080023if (current_os == "mac") {
24 source_set("demo") {
25 }
26} else {
27 # TODO(btolsch): Darwin linker has deprecated -m, which handles the multiple
28 # definition error. Until the boringssl/mDNSResponder conflict is fixed
29 # (which appears to be exactly the same code in both projects), the demo is
30 # excluded on mac.
31 executable("demo") {
32 sources = [
33 "//demo/demo.cc",
34 ]
btolsch79998fe2018-09-18 14:58:09 -070035
btolsch6d3d0bc2018-12-10 18:59:28 -080036 # TODO(btolsch): Handles MD5_* conflict between boringssl and mDNSResponder
37 # temporarily.
38 ldflags = [ "-Wl,-z,muldefs" ]
39 deps = [
40 "//api:api_with_chromium_quic",
41 "//base",
42 "//discovery/mdns",
43 "//platform",
44 ]
45 }
btolsch79998fe2018-09-18 14:58:09 -070046}
47
mark a. foltzc28ca402018-07-19 16:11:32 -070048executable("unittests") {
49 testonly = true
btolschb4893e62018-05-28 22:03:07 -070050 deps = [
btolsch6692c4c2018-05-31 17:38:09 -070051 "//api:api_unittests",
btolschb4893e62018-05-28 22:03:07 -070052 "//base:base_unittests",
btolschbd9ca072018-08-30 15:57:32 -070053 "//discovery/mdns:mdns_unittests",
btolsch3f0bfe42018-10-18 15:04:05 -070054 "//msgs:unittests",
mark a. foltzc28ca402018-07-19 16:11:32 -070055 "//sample:hello_unittests",
Jordan Bayles9eb09742019-01-15 14:04:52 -080056 "//third_party/abseil",
btolsch253cbce2018-07-26 00:32:19 -070057 "//third_party/googletest:gtest_main",
btolsch762c4da2018-03-19 12:27:00 -070058 ]
59}