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

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

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

Powered by Google App Engine
This is Rietveld 408576698