blob: a4ec72ad7961b7a51964acbf2c92bc1d01824400 [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
btolsch9d6900c2018-05-30 18:22:53 -07005group("gn_all") {
btolschb4893e62018-05-28 22:03:07 -07006 testonly = true
7
8 deps = [
9 "//base:base_unittests",
10 "//platform",
11 ]
btolsch9d6900c2018-05-30 18:22:53 -070012}
13
btolsch762c4da2018-03-19 12:27:00 -070014executable("hello") {
15 sources = [
16 "hello.cc",
17 ]
18
19 deps = [
20 ":hello_shared",
21 ":hello_static",
22 ]
23}
24
btolsch8ffff5d2018-03-23 13:06:31 -070025executable("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
btolsch762c4da2018-03-19 12:27:00 -070036shared_library("hello_shared") {
37 sources = [
38 "hello_shared.cc",
39 "hello_shared.h",
40 ]
41
42 defines = [ "OPENSCREEN_SHARED_IMPLEMENTATION" ]
43}
44
45static_library("hello_static") {
46 sources = [
47 "hello_static.cc",
48 "hello_static.h",
49 ]
50}