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 | |
btolsch | 9d6900c | 2018-05-30 18:22:53 -0700 | [diff] [blame] | 5 | group("gn_all") { |
btolsch | b4893e6 | 2018-05-28 22:03:07 -0700 | [diff] [blame^] | 6 | testonly = true |
| 7 | |
| 8 | deps = [ |
| 9 | "//base:base_unittests", |
| 10 | "//platform", |
| 11 | ] |
btolsch | 9d6900c | 2018-05-30 18:22:53 -0700 | [diff] [blame] | 12 | } |
| 13 | |
btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 14 | executable("hello") { |
| 15 | sources = [ |
| 16 | "hello.cc", |
| 17 | ] |
| 18 | |
| 19 | deps = [ |
| 20 | ":hello_shared", |
| 21 | ":hello_static", |
| 22 | ] |
| 23 | } |
| 24 | |
btolsch | 8ffff5d | 2018-03-23 13:06:31 -0700 | [diff] [blame] | 25 | executable("hello_tests") { |
| 26 | testonly = true |
| 27 | sources = [ "hello_unittest.cc" ] |
| 28 | |
| 29 | deps = [ |
| 30 | "third_party/googletest:gmock", |
| 31 | "third_party/googletest:gtest", |
| 32 | "third_party/googletest:gtest_main", |
| 33 | ] |
| 34 | } |
| 35 | |
btolsch | 762c4da | 2018-03-19 12:27:00 -0700 | [diff] [blame] | 36 | shared_library("hello_shared") { |
| 37 | sources = [ |
| 38 | "hello_shared.cc", |
| 39 | "hello_shared.h", |
| 40 | ] |
| 41 | |
| 42 | defines = [ "OPENSCREEN_SHARED_IMPLEMENTATION" ] |
| 43 | } |
| 44 | |
| 45 | static_library("hello_static") { |
| 46 | sources = [ |
| 47 | "hello_static.cc", |
| 48 | "hello_static.h", |
| 49 | ] |
| 50 | } |