OLD | NEW |
| (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/public/mojo_application.gni") | |
6 import("//mojo/public/tools/bindings/mojom.gni") | |
7 import("//third_party/cython/rules.gni") | |
8 | |
9 mojo_native_application("content_handler") { | |
10 output_name = "py_content_handler" | |
11 deps = [ | |
12 ":content_handler_src", | |
13 ] | |
14 } | |
15 | |
16 python_binary_source_set("content_handler_src") { | |
17 sources = [ | |
18 "content_handler_main.cc", | |
19 ] | |
20 deps = [ | |
21 ":mojo_system_impl", | |
22 "//base", | |
23 "//base:i18n", | |
24 "//mojo/application", | |
25 "//mojo/application:application", | |
26 "//mojo/application:content_handler", | |
27 "//mojo/environment:chromium", | |
28 "//mojo/common", | |
29 "//mojo/public/c/system:for_shared_library", | |
30 "//mojo/public/cpp/utility", | |
31 "//mojo/public/python:system_embedded", | |
32 "//mojo/public/python:python_common", | |
33 "//mojo/services/content_handler/public/interfaces", | |
34 "//third_party/zlib:zip", | |
35 ] | |
36 } | |
37 | |
38 copy("common_system_pxd") { | |
39 visibility = [ ":mojo_system_impl" ] | |
40 sources = [ | |
41 "//mojo/public/python/c_async_waiter.pxd", | |
42 "//mojo/public/python/c_export.pxd", | |
43 ] | |
44 outputs = [ | |
45 "$target_gen_dir/{{source_file_part}}", | |
46 ] | |
47 } | |
48 | |
49 python_binary_source_set("mojo_system_impl") { | |
50 cython_sources = [ | |
51 "c_base.pxd", | |
52 "$target_gen_dir/c_async_waiter.pxd", | |
53 "$target_gen_dir/c_export.pxd", | |
54 "mojo_system_impl.pyx", | |
55 ] | |
56 sources = [ | |
57 "python_system_impl_helper.cc", | |
58 "python_system_impl_helper.h", | |
59 ] | |
60 deps = [ | |
61 "//base", | |
62 "//mojo/environment:chromium", | |
63 "//mojo/common", | |
64 "//mojo/public/c/system:for_shared_library", | |
65 "//mojo/public/cpp/system", | |
66 "//mojo/public/cpp/utility", | |
67 "//mojo/public/cpp/bindings:callback", | |
68 "//mojo/public/python:python_common", | |
69 ] | |
70 } | |
OLD | NEW |