OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 executable("hello") { | 5 executable("hello") { |
6 sources = [ | 6 sources = [ |
7 "hello.cc", | 7 "hello.cc", |
8 ] | 8 ] |
9 | 9 |
10 deps = [ | 10 deps = [ |
11 ":hello_static", | 11 ":hello_static", |
12 ":hello_shared", | 12 ":hello_shared", |
| 13 ":hello_loadable", |
13 ] | 14 ] |
14 } | 15 } |
15 | 16 |
16 shared_library("hello_shared") { | 17 shared_library("hello_shared") { |
17 sources = [ | 18 sources = [ |
18 "hello_shared.cc", | 19 "hello_shared.cc", |
19 "hello_shared.h", | 20 "hello_shared.h", |
20 ] | 21 ] |
21 | 22 |
22 defines = [ "HELLO_SHARED_IMPLEMENTATION" ] | 23 defines = [ "HELLO_SHARED_IMPLEMENTATION" ] |
23 } | 24 } |
24 | 25 |
| 26 loadable_module("hello_loadable") { |
| 27 sources = [ |
| 28 "hello_shared.cc", |
| 29 "hello_shared.h", |
| 30 ] |
| 31 } |
| 32 |
25 static_library("hello_static") { | 33 static_library("hello_static") { |
26 sources = [ | 34 sources = [ |
27 "hello_static.cc", | 35 "hello_static.cc", |
28 "hello_static.h", | 36 "hello_static.h", |
29 ] | 37 ] |
30 } | 38 } |
OLD | NEW |