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

Side by Side Diff: third_party/cython/rules.gni

Issue 552783004: mojo: Add a runloop utility in python (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not acquire GIL when called from python. 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
« no previous file with comments | « mojo/python/tests/runloop_unittest.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 template("python_binary_module") { 5 template("python_binary_module") {
6 # Only available on linux for now. 6 # Only available on linux for now.
7 assert(is_linux) 7 assert(is_linux)
8 assert(defined(invoker.sources)) 8 assert(defined(invoker.sources))
9 assert(defined(invoker.python_base_module)) 9 assert(defined(invoker.python_base_module))
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 deps = [ 65 deps = [
66 ":$generator_target_name", 66 ":$generator_target_name",
67 ] 67 ]
68 if (defined(invoker.deps)) { 68 if (defined(invoker.deps)) {
69 deps += invoker.deps 69 deps += invoker.deps
70 } 70 }
71 if (defined(invoker.datadeps)) { 71 if (defined(invoker.datadeps)) {
72 datadeps = invoker.datadeps 72 datadeps = invoker.datadeps
73 } 73 }
74 sources = [ cython_output ] 74 sources = [ cython_output ]
75 if (defined(invoker.additional_sources)) {
76 sources += invoker.additional_sources
77 }
75 configs += [ ":$config_name" ] 78 configs += [ ":$config_name" ]
76 } 79 }
77 80
78 copy(target_name) { 81 copy(target_name) {
79 python_base_module = invoker.python_base_module 82 python_base_module = invoker.python_base_module
80 sources = [ 83 sources = [
81 "$root_out_dir/${shared_library_prefix}${shared_library_name}${shared_libr ary_suffix}" 84 "$root_out_dir/${shared_library_prefix}${shared_library_name}${shared_libr ary_suffix}"
82 ] 85 ]
83 outputs = [ 86 outputs = [
84 "$root_out_dir/python/$python_base_module/${target_name}${python_module_su ffix}" 87 "$root_out_dir/python/$python_base_module/${target_name}${python_module_su ffix}"
85 ] 88 ]
86 deps = [ 89 deps = [
87 ":$shared_library_name" 90 ":$shared_library_name"
88 ] 91 ]
89 } 92 }
90 } 93 }
OLDNEW
« no previous file with comments | « mojo/python/tests/runloop_unittest.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698