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 5executable("hello") { 6 sources = [ "hello.cc" ] 7 8 deps = [ 9 ":hello_shared", 10 ":hello_static", 11 ] 12} 13 14shared_library("hello_shared") { 15 sources = [ 16 "hello_shared.cc", 17 "hello_shared.h", 18 ] 19 20 defines = [ "HELLO_SHARED_IMPLEMENTATION" ] 21} 22 23static_library("hello_static") { 24 sources = [ 25 "hello_static.cc", 26 "hello_static.h", 27 ] 28} 29