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

Side by Side Diff: third_party/cython/cython_compiler.gypi

Issue 377293002: Core mojo API for python. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dependency issue 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 | Annotate | Revision Log
« no previous file with comments | « third_party/cython/cp_python_binary_modules.py ('k') | third_party/cython/python_export.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 {
6 'variables': {
7 'python_flags': '<(DEPTH)/third_party/cython/python_flags.py',
8 },
9 'conditions': [
10 ['OS=="mac"', {
11 'variables': {
12 'module_prefix': '',
13 'module_suffix': '.so',
14 },
15 }, {
16 'variables': {
17 'module_prefix': '<(SHARED_LIB_PREFIX)',
18 'module_suffix': '<(SHARED_LIB_SUFFIX)',
19 },
20 }],
21 ],
22 'type': 'loadable_module',
23 'rules': [
24 {
25 'rule_name': '<(_target_name)_cython_compiler',
26 'extension': 'pyx',
27 'variables': {
28 'cython_compiler': '<(DEPTH)/third_party/cython/src/cython.py',
29 },
30 'inputs': [
31 '<(cython_compiler)',
32 ],
33 'outputs': [
34 '<(SHARED_INTERMEDIATE_DIR)/cython/<(python_base_module)/<(RULE_INPUT_RO OT).cc',
35 ],
36 'action': [
37 'python', '<(cython_compiler)',
38 '--cplus',
39 '-I<(DEPTH)',
40 '-o', '<@(_outputs)',
41 '<(RULE_INPUT_PATH)',
42 ],
43 'message': 'Generating C++ source from <(RULE_INPUT_PATH)',
44 'process_outputs_as_sources': 1,
45 }
46 ],
47 'include_dirs': [
48 '<!@(python <(python_flags) --includes)',
49 '<(DEPTH)',
50 ],
51 'libraries': [
52 '<!@(python <(python_flags) --libraries)',
53 ],
54 'cflags': [
55 '-Wno-unused-function',
56 ],
57 'xcode_settings': {
58 'WARNING_CFLAGS': [ '-Wno-unused-function' ],
59 },
60 'library_dirs': [
61 '<!@(python <(python_flags) --library_dirs)',
62 ],
63 'direct_dependent_settings': {
64 'variables': {
65 'python_binary_modules': [
66 '<(python_cython_module)<(module_suffix)=<(module_prefix)<(_target_name) <(module_suffix)',
67 ],
68 },
69 },
70 'hard_dependency': 1,
71 }
OLDNEW
« no previous file with comments | « third_party/cython/cp_python_binary_modules.py ('k') | third_party/cython/python_export.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698