blob: ba4b06519b39a8cd983cb19ed54b290382c500ce [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") {
6 deps = [ "//platform" ]
7}
8
btolsch762c4da2018-03-19 12:27:00 -07009executable("hello") {
10 sources = [
11 "hello.cc",
12 ]
13
14 deps = [
15 ":hello_shared",
16 ":hello_static",
17 ]
18}
19
btolsch8ffff5d2018-03-23 13:06:31 -070020executable("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
btolsch762c4da2018-03-19 12:27:00 -070031shared_library("hello_shared") {
32 sources = [
33 "hello_shared.cc",
34 "hello_shared.h",
35 ]
36
37 defines = [ "OPENSCREEN_SHARED_IMPLEMENTATION" ]
38}
39
40static_library("hello_static") {
41 sources = [
42 "hello_static.cc",
43 "hello_static.h",
44 ]
45}