OLD | NEW |
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_root.gni") | 5 import("../../../mojo_sdk_root.gni") |
6 import("$mojo_sdk_root/mojo/public/tools/bindings/mojom.gni") | 6 import("$mojo_sdk_root/mojo/public/tools/bindings/mojom.gni") |
7 | 7 |
8 mojom("interfaces") { | 8 mojom("interfaces") { |
9 sources = [ | 9 sources = [ |
10 "content_handler.mojom", | 10 "content_handler.mojom", |
11 ] | 11 ] |
12 | 12 |
13 import_dirs = [ get_path_info("../../../", "abspath") ] | 13 import_dirs = [ get_path_info("../../../", "abspath") ] |
14 | 14 |
| 15 if (defined(network_service_root)) { |
| 16 import_dirs += [ network_service_root ] |
| 17 } else { |
| 18 network_service_root = "../../.." |
| 19 } |
| 20 |
15 deps = [ | 21 deps = [ |
16 "../../../network/public/interfaces", | 22 "$network_service_root/network/public/interfaces", |
17 ] | 23 ] |
18 | 24 |
19 mojo_sdk_deps = [ "mojo/public/interfaces/application" ] | 25 mojo_sdk_deps = [ "mojo/public/interfaces/application" ] |
20 } | 26 } |
OLD | NEW |