blob: 51bd6eb8599aaf0bf67ed84503be83fb63f3bca9 [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/cython/rules.gni")
group("python") {
deps = [
":base",
":bindings",
":system",
":system_impl",
]
}
# GYP version: mojo.gyp:mojo_python_system
python_binary_module("system") {
python_base_module = "mojo"
sources = [
"mojo/c_core.pxd",
"mojo/system.pyx",
]
configs = [ "../build/config:mojo_sdk" ]
deps = [
":base",
"../c/environment",
"../c/system",
"../cpp/environment:standalone",
"../cpp/system",
"../cpp/utility",
"../cpp/bindings:callback",
"../platform/native:system",
]
}
python_binary_module("system_impl") {
python_base_module = "mojo"
sources = [
"mojo/c_core.pxd",
"mojo/c_environment.pxd",
"mojo/system_impl.pyx",
]
additional_sources = [
"src/python_system_helper.cc",
"src/python_system_helper.h",
]
configs = [ "../build/config:mojo_sdk" ]
deps = [
":base",
"../c/environment",
"../c/system",
"../cpp/environment:standalone",
"../cpp/system",
"../cpp/utility",
"../cpp/bindings:callback",
"../platform/native:system",
]
}
copy("base") {
sources = [
"mojo/__init__.py",
]
outputs = [
"$root_out_dir/python/mojo/{{source_file_part}}",
]
}
# GYP version: mojo.gyp:mojo_python_bindings
copy("bindings") {
sources = [
"mojo/bindings/__init__.py",
"mojo/bindings/descriptor.py",
"mojo/bindings/messaging.py",
"mojo/bindings/promise.py",
"mojo/bindings/reflection.py",
"mojo/bindings/serialization.py",
]
outputs = [
"$root_out_dir/python/mojo/bindings/{{source_file_part}}",
]
deps = [
":base",
":system",
]
}