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("//build/module_args/mojo.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 "http_request.mojom", | 10 "http_request.mojom", |
11 "http_response.mojom", | 11 "http_response.mojom", |
12 "http_server.mojom", | 12 "http_server.mojom", |
13 "http_server_factory.mojom", | 13 "http_server_factory.mojom", |
14 ] | 14 ] |
15 | 15 |
16 import_dirs = [ get_path_info("../../../", "abspath") ] | 16 import_dirs = [ get_path_info("../../../", "abspath") ] |
17 | 17 |
18 if (defined(network_service_root)) { | 18 if (defined(network_service_root)) { |
19 import_dirs += [ network_service_root ] | 19 import_dirs += [ network_service_root ] |
20 } else { | 20 } else { |
21 network_service_root = "../../.." | 21 network_service_root = "../../.." |
22 } | 22 } |
23 | 23 |
24 deps = [ | 24 deps = [ |
25 "$network_service_root/network/public/interfaces", | 25 "$network_service_root/network/public/interfaces", |
26 ] | 26 ] |
27 } | 27 } |
OLD | NEW |