OLD | NEW |
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 { | 5 { |
6 'targets' : [ | 6 'targets' : [ |
7 { | 7 { |
8 'target_name': 'bitmaptools', | 8 'target_name': 'bitmaptools', |
9 'type': 'none', | 9 'type': 'shared_library', |
10 'variables': { | 10 'product_prefix': '', |
11 'output_path': '<(PRODUCT_DIR)', | 11 'product_dir': '<(PRODUCT_DIR)', |
| 12 'sources': [ |
| 13 'telemetry/core/bitmaptools/bitmaptools.cc', |
| 14 ], |
| 15 'cflags': [ |
| 16 '<!@(python telemetry/core/build_extension.py cflags)', |
| 17 ], |
| 18 'include_dirs': [ |
| 19 '<!@(python telemetry/core/build_extension.py include_dirs)', |
| 20 ], |
| 21 'link_settings': { |
| 22 'ldflags': [ |
| 23 '<!@(python telemetry/core/build_extension.py ldflags)', |
| 24 ], |
12 }, | 25 }, |
13 'conditions': [ | 26 'conditions': [ |
14 ['OS=="android" or OS=="linux" or OS=="mac"', { | |
15 'variables': { | |
16 'python_extension': '.so' | |
17 }, | |
18 }], | |
19 ['OS=="win"', { | 27 ['OS=="win"', { |
20 'variables': { | 28 'product_extension': 'pyd', |
21 'python_extension': '.pyd' | |
22 }, | |
23 }], | |
24 ['OS=="android" or OS=="linux" or OS=="mac" or OS=="win"', { | |
25 'actions': [{ | |
26 'action_name': 'bitmaptools', | |
27 'inputs': [ | |
28 'telemetry/core/build_extension.py', | |
29 'telemetry/core/bitmaptools/bitmaptools.cc', | |
30 ], | |
31 'outputs': [ | |
32 '<(output_path)/bitmaptools>(python_extension)' | |
33 ], | |
34 'action': [ | |
35 'python', | |
36 '<@(_inputs)', | |
37 '<(output_path)', | |
38 'bitmaptools', | |
39 ] | |
40 }], | |
41 }], | 29 }], |
42 ] | 30 ] |
43 }, | 31 }, |
44 ], | 32 ], |
45 } | 33 } |
OLD | NEW |