Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / mojo / public / python / BUILD.gn
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("//third_party/cython/rules.gni")
6
7 group("python") {
8   deps = [
9     ":base",
10     ":bindings",
11     ":system",
12   ]
13 }
14
15 # GYP version: mojo.gyp:mojo_python_system
16 python_binary_module("system") {
17   python_base_module = "mojo"
18   sources = [
19     "mojo/c_core.pxd",
20     "mojo/c_environment.pxd",
21     "mojo/system.pyx",
22   ]
23   additional_sources = [
24     "src/python_system_helper.cc",
25     "src/python_system_helper.h",
26   ]
27   deps = [
28     "//mojo/public/c/environment",
29     "//mojo/public/c/system:for_shared_library",
30     "//mojo/public/cpp/environment:standalone",
31     "//mojo/public/cpp/system",
32     "//mojo/public/cpp/utility",
33     "//mojo/public/cpp/bindings:callback",
34     ":base",
35   ]
36 }
37
38 copy("base") {
39   sources = [
40     "mojo/__init__.py",
41   ]
42   outputs = [
43     "$root_out_dir/python/mojo/{{source_file_part}}",
44   ]
45 }
46
47 # GYP version: mojo.gyp:mojo_python_bindings
48 copy("bindings") {
49   sources = [
50     "mojo/bindings/__init__.py",
51     "mojo/bindings/descriptor.py",
52     "mojo/bindings/messaging.py",
53     "mojo/bindings/promise.py",
54     "mojo/bindings/reflection.py",
55     "mojo/bindings/serialization.py",
56   ]
57   outputs = [
58     "$root_out_dir/python/mojo/bindings/{{source_file_part}}",
59   ]
60   deps = [
61     ":base",
62     ":system",
63   ]
64 }