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