blob: a18390e64892b436d399b27b9b6cc147927bd5dc [file] [log] [blame]
brettw@chromium.org45b211c2014-08-19 22:52:16 +00001# 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
5executable("hello") {
scottmgfb9da232014-12-03 15:27:24 -08006 sources = [
7 "hello.cc",
8 ]
brettw@chromium.org45b211c2014-08-19 22:52:16 +00009
10 deps = [
brettw@chromium.org45b211c2014-08-19 22:52:16 +000011 ":hello_shared",
sdefresneb7cba6e2015-12-06 05:48:52 -080012 ":hello_static",
brettw@chromium.org45b211c2014-08-19 22:52:16 +000013 ]
14}
15
16shared_library("hello_shared") {
17 sources = [
18 "hello_shared.cc",
scottmgfb9da232014-12-03 15:27:24 -080019 "hello_shared.h",
brettw@chromium.org45b211c2014-08-19 22:52:16 +000020 ]
21
22 defines = [ "HELLO_SHARED_IMPLEMENTATION" ]
23}
24
25static_library("hello_static") {
26 sources = [
27 "hello_static.cc",
28 "hello_static.h",
29 ]
30}