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