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.
5 import("//third_party/cython/rules.gni")
16 # GYP version: mojo.gyp:mojo_python_system
17 python_binary_module("system") {
18 python_base_module = "mojo"
19 configs = [ "../build/config:mojo_sdk" ]
25 python_binary_source_set("system_embedded") {
27 "mojo/c_async_waiter.pxd",
33 configs = [ "../build/config:mojo_sdk" ]
37 "../cpp/bindings:callback",
40 "../platform/native:system",
44 python_binary_module("system_impl") {
45 python_base_module = "mojo"
47 "mojo/c_environment.pxd",
50 "mojo/system_impl.pyx",
53 "src/python_system_helper.cc",
54 "src/python_system_helper.h",
56 configs = [ "../build/config:mojo_sdk" ]
62 "../cpp/bindings:callback",
63 "../cpp/environment:standalone",
66 "../platform/native:system",
70 python_binary_source_set("python_common") {
75 configs = [ "../build/config:mojo_sdk" ]
77 "../c/environment:environment",
78 "../cpp/bindings:callback",
79 "../cpp/environment:environment",
80 "../cpp/system:system",
90 "$root_out_dir/python/mojo/{{source_file_part}}",
94 # GYP version: mojo.gyp:mojo_python_bindings
97 "mojo/bindings/__init__.py",
98 "mojo/bindings/descriptor.py",
99 "mojo/bindings/messaging.py",
100 "mojo/bindings/promise.py",
101 "mojo/bindings/reflection.py",
102 "mojo/bindings/serialization.py",
105 "$root_out_dir/python/mojo/bindings/{{source_file_part}}",