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

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
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 11 # allow_circular_mojo_edk_includes_from
12 template("mojo_edk_source_set") { 12 template("mojo_edk_source_set") {
13 mojo_sdk_source_set(target_name) { 13 mojo_sdk_source_set(target_name) {
14 if (defined(invoker.public_deps) || defined(invoker.deps)) { 14 if (defined(invoker.public_deps) || defined(invoker.deps)) {
15 restrict_external_deps = false 15 restrict_external_deps = false
(...skipping 23 matching lines...) Expand all
39 allow_circular_includes_from = [] 39 allow_circular_includes_from = []
40 if (defined(invoker.allow_circular_includes_from)) { 40 if (defined(invoker.allow_circular_includes_from)) {
41 allow_circular_includes_from += invoker.allow_circular_includes_from 41 allow_circular_includes_from += invoker.allow_circular_includes_from
42 } 42 }
43 if (defined(invoker.allow_circular_mojo_edk_includes_from)) { 43 if (defined(invoker.allow_circular_mojo_edk_includes_from)) {
44 foreach(edk_target, 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 45 # Check that the EDK target was not mistakenly given as an absolute
46 # path. 46 # path.
47 assert(get_path_info(edk_target, "abspath") != edk_target) 47 assert(get_path_info(edk_target, "abspath") != edk_target)
48 allow_circular_includes_from += 48 allow_circular_includes_from +=
49 [ rebase_path(edk_target, ".", mojo_root) ] 49 [ rebase_path(edk_target, ".", "//third_party/mojo/src") ]
50 } 50 }
51 } 51 }
52 52
53 if (defined(invoker.public_deps)) { 53 if (defined(invoker.public_deps)) {
54 public_deps = invoker.public_deps 54 public_deps = invoker.public_deps
55 } 55 }
56 mojo_sdk_public_deps = [] 56 mojo_sdk_public_deps = []
57 if (defined(invoker.mojo_sdk_public_deps)) { 57 if (defined(invoker.mojo_sdk_public_deps)) {
58 mojo_sdk_public_deps += invoker.mojo_sdk_public_deps 58 mojo_sdk_public_deps += invoker.mojo_sdk_public_deps
59 } 59 }
60 60
61 if (defined(invoker.deps)) { 61 if (defined(invoker.deps)) {
62 deps = invoker.deps 62 deps = invoker.deps
63 } 63 }
64 mojo_sdk_deps = [] 64 mojo_sdk_deps = []
65 if (defined(invoker.mojo_sdk_deps)) { 65 if (defined(invoker.mojo_sdk_deps)) {
66 mojo_sdk_deps += invoker.mojo_sdk_deps 66 mojo_sdk_deps += invoker.mojo_sdk_deps
67 } 67 }
68 } 68 }
69 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698