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

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

Issue 2044023004: Mojo: Eliminate duplicate C API symbols (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 4 years, 6 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/mojo_variables.gypi ('k') | mojo/public/c/system/set_thunks_for_app.cc » ('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 5 component("system") {
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.
9 source_set("system") {
10 sources = [ 6 sources = [
11 "buffer.h", 7 "buffer.h",
12 "core.h", 8 "core.h",
13 "data_pipe.h", 9 "data_pipe.h",
14 "functions.h", 10 "functions.h",
15 "macros.h", 11 "macros.h",
16 "message_pipe.h", 12 "message_pipe.h",
17 "platform_handle.h", 13 "platform_handle.h",
18 "system_export.h", 14 "system_export.h",
15 "thunks.cc",
16 "thunks.h",
19 "types.h", 17 "types.h",
20 "wait_set.h", 18 "wait_set.h",
21 ] 19 ]
20
21 defines = [ "MOJO_SYSTEM_IMPLEMENTATION" ]
22 } 22 }
23 23
24 # In an is_component_build build, everything can link against //mojo/edk/system 24 # This should ONLY be depended upon directly by shared_library targets which
25 # because it is built as a shared library. However, in a static build, 25 # need to export the MojoSetSystemThunks symbol, like targets generated by the
26 # //mojo/edk/system is linked into an executable (e.g., mojo_shell), and must be 26 # mojo_native_application template in //mojo/public/mojo_application.gni.
27 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo 27 source_set("set_thunks_for_app") {
28 # system API. 28 sources = [
29 # 29 "set_thunks_for_app.cc",
30 # For component targets, add //mojo/public/c/system:for_component to your deps 30 ]
31 # section. 31
32 # 32 public_deps = [
33 # For shared_library targets (e.g., a Mojo App), add 33 ":system",
34 # //mojo/public/c/system:for_shared_library to your deps 34 ]
35 }
36
37 # TODO(rockot): Delete these deprecated aliases.
35 38
36 group("for_shared_library") { 39 group("for_shared_library") {
37 public_deps = [ 40 public_deps = [
38 ":system", 41 ":system",
39 ] 42 ]
40 if (is_component_build) {
41 deps = [
42 "//mojo/edk/system",
43 ]
44 } else {
45 deps = [
46 "../../platform/native:system",
47 ]
48 }
49 } 43 }
50 44
51 group("for_component") { 45 group("for_component") {
52 public_deps = [ 46 public_deps = [
53 ":system", 47 ":system",
54 ] 48 ]
55 if (is_component_build) {
56 deps = [
57 "//mojo/edk/system",
58 ]
59 }
60 } 49 }
OLDNEW
« no previous file with comments | « mojo/mojo_variables.gypi ('k') | mojo/public/c/system/set_thunks_for_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698