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