Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(648)

Side by Side Diff: mojo/public/c/system/BUILD.gn

Issue 599283003: Make gn check //mojo/public/* pass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/c/gles2/BUILD.gn ('k') | mojo/public/c/system/tests/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # Depend on this target to use the types etc defined in the system without
6 # linking against a specific implementation of the system. To link against a
7 # particular implementation, use the :for_component or
8 # :for_shared_library targets, depending on the type of target you are.
5 source_set("system") { 9 source_set("system") {
6 sources = [ 10 sources = [
7 "../../platform/native/system_thunks.cc",
8 "../../platform/native/system_thunks.h",
9 "buffer.h", 11 "buffer.h",
10 "core.h", 12 "core.h",
11 "data_pipe.h", 13 "data_pipe.h",
12 "functions.h", 14 "functions.h",
13 "macros.h", 15 "macros.h",
14 "message_pipe.h", 16 "message_pipe.h",
15 "system_export.h", 17 "system_export.h",
16 "types.h", 18 "types.h",
17 ] 19 ]
18 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ]
19
20 # The GYP target analogous to this one builds this code into a
21 # static library. When building for Android, both the GYP and GN
22 # builds add --exclude-libs=ALL globally, which means that all
23 # symbols in static libraries are excluded from export. That's a
24 # problem, as code outside this target needs to be able to call
25 # MojoSetSystemThunks(). Therefore, the GYP target needs to specifiy
26 # that all dependent targets remove that link flag. Since GN uses a
27 # source_set here, this flag change is not needed.
28 } 20 }
29 21
30 # In an is_component_build build, everything can link against //mojo/system 22 # In an is_component_build build, everything can link against //mojo/system
31 # because it is built as a shared library. However, in a static build, 23 # because it is built as a shared library. However, in a static build,
32 # //mojo/system is linked into an executable (e.g., mojo_shell), and must be 24 # //mojo/system is linked into an executable (e.g., mojo_shell), and must be
33 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo 25 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo
34 # system API. 26 # system API.
35 # 27 #
36 # For component targets, add //mojo/public/c/system:for_component to your deps 28 # For component targets, add //mojo/public/c/system:for_component to your deps
37 # section. 29 # section.
38 # 30 #
39 # For shared_library targets (e.g., a Mojo App), add 31 # For shared_library targets (e.g., a Mojo App), add
40 # //mojo/public/c/system:for_shared_library to your deps 32 # //mojo/public/c/system:for_shared_library to your deps
41 33
42 group("for_shared_library") { 34 group("for_shared_library") {
35 public_deps = [ ":system" ]
43 if (is_component_build) { 36 if (is_component_build) {
44 deps = [ "//mojo/system" ] 37 deps = [ "//mojo/system" ]
45 } else { 38 } else {
46 deps = [ ":system" ] 39 deps = [ "//mojo/public/platform/native:system_thunks" ]
47 } 40 }
48 } 41 }
49 42
50 group("for_component") { 43 group("for_component") {
44 public_deps = [ ":system" ]
51 if (is_component_build) { 45 if (is_component_build) {
52 deps = [ "//mojo/system" ] 46 deps = [ "//mojo/system" ]
53 } 47 }
54 } 48 }
OLDNEW
« no previous file with comments | « mojo/public/c/gles2/BUILD.gn ('k') | mojo/public/c/system/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698