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