blob: ecd9811f718a1b749a453cf87b8cfa32b274c110 [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
5executable("hello") {
6 sources = [
7 "hello.cc",
8 ]
9
10 deps = [
11 ":hello_shared",
12 ":hello_static",
13 ]
14}
15
btolsch8ffff5d2018-03-23 13:06:31 -070016executable("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
btolsch762c4da2018-03-19 12:27:00 -070027shared_library("hello_shared") {
28 sources = [
29 "hello_shared.cc",
30 "hello_shared.h",
31 ]
32
33 defines = [ "OPENSCREEN_SHARED_IMPLEMENTATION" ]
34}
35
36static_library("hello_static") {
37 sources = [
38 "hello_static.cc",
39 "hello_static.h",
40 ]
41}