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

Side by Side Diff: mojo/edk/mojo_edk.gni

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/edk/js/waiting_callback.cc ('k') | mojo/edk/system/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 import("../../third_party/mojo/src/mojo/public/mojo_sdk.gni") 5 import("../../mojo/public/mojo_sdk.gni")
6 6
7 # A mojo_edk_source_set is a mojo_sdk_source_set that does not restrict 7 # A mojo_edk_source_set is a mojo_sdk_source_set that does not restrict
8 # external dependencies and understands the following additional variables, all 8 # external dependencies and understands the following additional variables, all
9 # of which admit a list of the relevant elements specified relative to the 9 # of which admit a list of the relevant elements specified relative to the
10 # location of the Mojo EDK: 10 # location of the Mojo EDK:
11 # allow_circular_mojo_edk_includes_from
12 template("mojo_edk_source_set") { 11 template("mojo_edk_source_set") {
13 mojo_sdk_source_set(target_name) { 12 mojo_sdk_source_set(target_name) {
14 if (defined(invoker.public_deps) || defined(invoker.deps)) { 13 if (defined(invoker.public_deps) || defined(invoker.deps)) {
15 restrict_external_deps = false 14 restrict_external_deps = false
16 } 15 }
17 16
18 if (defined(invoker.visibility)) { 17 if (defined(invoker.visibility)) {
19 visibility = invoker.visibility 18 visibility = invoker.visibility
20 } 19 }
21 if (defined(invoker.testonly)) { 20 if (defined(invoker.testonly)) {
(...skipping 11 matching lines...) Expand all
33 32
34 configs = [] 33 configs = []
35 if (defined(invoker.configs)) { 34 if (defined(invoker.configs)) {
36 configs = invoker.configs 35 configs = invoker.configs
37 } 36 }
38 37
39 allow_circular_includes_from = [] 38 allow_circular_includes_from = []
40 if (defined(invoker.allow_circular_includes_from)) { 39 if (defined(invoker.allow_circular_includes_from)) {
41 allow_circular_includes_from += invoker.allow_circular_includes_from 40 allow_circular_includes_from += invoker.allow_circular_includes_from
42 } 41 }
43 if (defined(invoker.allow_circular_mojo_edk_includes_from)) {
44 foreach(edk_target, invoker.allow_circular_mojo_edk_includes_from) {
45 # Check that the EDK target was not mistakenly given as an absolute
46 # path.
47 assert(get_path_info(edk_target, "abspath") != edk_target)
48 allow_circular_includes_from +=
49 [ rebase_path(edk_target, ".", mojo_root) ]
50 }
51 }
52 42
53 if (defined(invoker.public_deps)) { 43 if (defined(invoker.public_deps)) {
54 public_deps = invoker.public_deps 44 public_deps = invoker.public_deps
55 } 45 }
56 mojo_sdk_public_deps = [] 46 mojo_sdk_public_deps = []
57 if (defined(invoker.mojo_sdk_public_deps)) { 47 if (defined(invoker.mojo_sdk_public_deps)) {
58 mojo_sdk_public_deps += invoker.mojo_sdk_public_deps 48 mojo_sdk_public_deps += invoker.mojo_sdk_public_deps
59 } 49 }
60 50
61 if (defined(invoker.deps)) { 51 if (defined(invoker.deps)) {
62 deps = invoker.deps 52 deps = invoker.deps
63 } 53 }
64 mojo_sdk_deps = [] 54 mojo_sdk_deps = []
65 if (defined(invoker.mojo_sdk_deps)) { 55 if (defined(invoker.mojo_sdk_deps)) {
66 mojo_sdk_deps += invoker.mojo_sdk_deps 56 mojo_sdk_deps += invoker.mojo_sdk_deps
67 } 57 }
68 } 58 }
69 } 59 }
OLDNEW
« no previous file with comments | « mojo/edk/js/waiting_callback.cc ('k') | mojo/edk/system/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698