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

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

Issue 792843002: Refactor the python system_impl module. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 # GYP version: mojo/mojo.gyp:mojo_python 7 # GYP version: mojo/mojo.gyp:mojo_python
8 group("python") { 8 group("python") {
9 deps = [ 9 deps = [
10 ":embedder", 10 ":embedder",
11 ":validation_util", 11 ":validation_util",
12 "//mojo/public/python", 12 "//mojo/public/python",
13 ] 13 ]
14 } 14 }
15 15
16 # GYP version: mojo/mojo.gyp:mojo_python_embedder 16 # GYP version: mojo/mojo.gyp:mojo_python_embedder
17 python_binary_module("embedder") { 17 python_binary_module("embedder") {
18 python_base_module = "mojo" 18 python_base_module = "mojo"
19 sources = [ 19 cython_sources = [ "system/mojo/embedder.pyx" ]
20 "system/mojo/embedder.pyx",
21 ]
22 deps = [ 20 deps = [
23 "//mojo/edk/system", 21 "//mojo/edk/system",
24 ] 22 ]
25 datadeps = [ 23 datadeps = [
26 "//mojo/public/python:system", 24 "//mojo/public/python:system",
27 ] 25 ]
28 } 26 }
29 27
30 copy("tests_module") { 28 copy("tests_module") {
31 sources = [ 29 sources = [
32 "system/mojo/tests/__init__.py", 30 "system/mojo/tests/__init__.py",
33 ] 31 ]
34 outputs = [ 32 outputs = [
35 "$root_out_dir/python/mojo/tests/{{source_file_part}}", 33 "$root_out_dir/python/mojo/tests/{{source_file_part}}",
36 ] 34 ]
37 } 35 }
38 36
39 python_binary_module("validation_util") { 37 python_binary_module("validation_util") {
40 python_base_module = "mojo/tests" 38 python_base_module = "mojo/tests"
41 sources = [ 39 cython_sources = [ "system/mojo/tests/validation_util.pyx" ]
42 "system/mojo/tests/validation_util.pyx",
43 ]
44 deps = [ 40 deps = [
45 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils", 41 "//mojo/public/cpp/bindings/tests:mojo_public_bindings_test_utils",
46 ] 42 ]
47 datadeps = [ 43 datadeps = [
48 ":tests_module", 44 ":tests_module",
49 ] 45 ]
50 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698