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

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

Issue 782693004: Update mojo sdk to rev f6c8ec07c01deebc13178d516225fd12695c3dc2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hack mojo_system_impl gypi for android :| Created 6 years 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
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 import("../../mojo_sdk.gni")
6
5 # Depend on this target to use the types etc defined in the system without 7 # 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 8 # linking against a specific implementation of the system. To link against a
7 # particular implementation, use the :for_component or 9 # particular implementation, use the :for_component or
8 # :for_shared_library targets, depending on the type of target you are. 10 # :for_shared_library targets, depending on the type of target you are.
9 source_set("system") { 11 mojo_sdk_source_set("system") {
10 sources = [ 12 sources = [
11 "buffer.h", 13 "buffer.h",
12 "core.h", 14 "core.h",
13 "data_pipe.h", 15 "data_pipe.h",
14 "functions.h", 16 "functions.h",
15 "macros.h", 17 "macros.h",
16 "message_pipe.h", 18 "message_pipe.h",
17 "system_export.h", 19 "system_export.h",
18 "types.h", 20 "types.h",
19 ] 21 ]
20 } 22 }
21 23
22 # In an is_component_build build, everything can link against //mojo/edk/system 24 # In an is_component_build build, everything can link against //mojo/edk/system
23 # because it is built as a shared library. However, in a static build, 25 # because it is built as a shared library. However, in a static build,
24 # //mojo/edk/system is linked into an executable (e.g., mojo_shell), and must be 26 # //mojo/edk/system is linked into an executable (e.g., mojo_shell), and must be
25 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo 27 # injected into other shared libraries (i.e., Mojo Apps) that need the mojo
26 # system API. 28 # system API.
27 # 29 #
28 # For component targets, add //mojo/public/c/system:for_component to your deps 30 # For component targets, add //mojo/public/c/system:for_component to your deps
29 # section. 31 # section.
30 # 32 #
31 # For shared_library targets (e.g., a Mojo App), add 33 # For shared_library targets (e.g., a Mojo App), add
32 # //mojo/public/c/system:for_shared_library to your deps 34 # //mojo/public/c/system:for_shared_library to your deps
33 35
36 # TODO(jamesr): Eliminate the need for these targets. crbug.com/438701
34 group("for_shared_library") { 37 group("for_shared_library") {
35 public_deps = [ 38 public_deps = [
36 ":system", 39 ":system",
37 ] 40 ]
38 if (is_component_build) { 41 if (is_component_build) {
39 deps = [ 42 deps = [
40 "//mojo/edk/system", 43 "../../../edk/system",
41 ] 44 ]
42 } else { 45 } else {
43 deps = [ 46 deps = [
44 "//mojo/public/platform/native:system_thunks", 47 "../../platform/native:system_thunks",
45 ] 48 ]
46 } 49 }
47 } 50 }
48 51
49 group("for_component") { 52 group("for_component") {
50 public_deps = [ 53 public_deps = [
51 ":system", 54 ":system",
52 ] 55 ]
53 if (is_component_build) { 56 if (is_component_build) {
54 deps = [ 57 deps = [
55 "//mojo/edk/system", 58 "../../../edk/system",
56 ] 59 ]
57 } 60 }
58 } 61 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698