Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(378)

Side by Side Diff: mojo/public/python/BUILD.gn

Issue 545433002: mojo: Generate top level enums for python bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unhelpful conditional Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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("//third_party/cython/rules.gni") 5 import("//third_party/cython/rules.gni")
6 6
7 group("python") { 7 group("python") {
8 deps = [ 8 deps = [
9 ":base", 9 ":base",
10 ":bindings",
10 ":system", 11 ":system",
11 ] 12 ]
12 } 13 }
13 14
14 python_binary_module("system") { 15 python_binary_module("system") {
15 python_base_module = "mojo" 16 python_base_module = "mojo"
16 sources = [ 17 sources = [
17 "mojo/c_core.pxd", 18 "mojo/c_core.pxd",
18 "mojo/system.pyx", 19 "mojo/system.pyx",
19 ] 20 ]
20 deps = [ 21 deps = [
21 "//mojo/public/c/system", 22 "//mojo/public/c/system",
22 ":base", 23 ":base",
23 ] 24 ]
24 } 25 }
25 26
26 copy("base") { 27 copy("base") {
27 sources = [ 28 sources = [
28 "mojo/__init__.py", 29 "mojo/__init__.py",
29 ] 30 ]
30 outputs = [ 31 outputs = [
31 "$root_out_dir/python/mojo/__init__.py", 32 "$root_out_dir/python/mojo/{{source_file_part}}",
32 ] 33 ]
33 } 34 }
35
36 copy("bindings") {
37 sources = [
38 "mojo/bindings/__init__.py",
39 "mojo/bindings/reflection.py",
40 ]
41 outputs = [
42 "$root_out_dir/python/mojo/bindings/{{source_file_part}}",
43 ]
44 deps = [
45 ":base",
46 ":system",
47 ]
48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698