brettw@chromium.org | 45b211c | 2014-08-19 22:52:16 +0000 | [diff] [blame] | 1 | # Copyright 2014 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") { |
Sylvain Defresne | 564de29 | 2020-01-21 17:15:26 +0100 | [diff] [blame] | 6 | sources = [ "hello.cc" ] |
brettw@chromium.org | 45b211c | 2014-08-19 22:52:16 +0000 | [diff] [blame] | 7 | |
| 8 | deps = [ |
brettw@chromium.org | 45b211c | 2014-08-19 22:52:16 +0000 | [diff] [blame] | 9 | ":hello_shared", |
sdefresne | b7cba6e | 2015-12-06 05:48:52 -0800 | [diff] [blame] | 10 | ":hello_static", |
brettw@chromium.org | 45b211c | 2014-08-19 22:52:16 +0000 | [diff] [blame] | 11 | ] |
| 12 | } |
| 13 | |
| 14 | shared_library("hello_shared") { |
| 15 | sources = [ |
| 16 | "hello_shared.cc", |
scottmg | fb9da23 | 2014-12-03 15:27:24 -0800 | [diff] [blame] | 17 | "hello_shared.h", |
brettw@chromium.org | 45b211c | 2014-08-19 22:52:16 +0000 | [diff] [blame] | 18 | ] |
| 19 | |
| 20 | defines = [ "HELLO_SHARED_IMPLEMENTATION" ] |
| 21 | } |
| 22 | |
| 23 | static_library("hello_static") { |
| 24 | sources = [ |
| 25 | "hello_static.cc", |
| 26 | "hello_static.h", |
| 27 | ] |
| 28 | } |