Index: tools/telemetry/telemetry.gyp |
diff --git a/tools/telemetry/telemetry.gyp b/tools/telemetry/telemetry.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f6018033801e87d2929f8fd4f2ad8ff85e3eb52c |
--- /dev/null |
+++ b/tools/telemetry/telemetry.gyp |
@@ -0,0 +1,45 @@ |
+# Copyright 2014 The Chromium Authors. All rights reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'targets' : [ |
+ { |
+ 'target_name': 'bitmaptools', |
+ 'type': 'none', |
+ 'variables': { |
+ 'output_path': '<(PRODUCT_DIR)', |
+ }, |
+ 'conditions': [ |
+ ['OS=="linux" or OS=="mac" or OS=="android"', { |
+ 'variables': { |
+ 'python_extension': '.so' |
+ }, |
+ }], |
+ ['OS=="win"', { |
+ 'variables': { |
+ 'python_extension': '.pyd' |
+ }, |
+ }], |
+ ['OS=="win" or OS=="linux" or OS=="mac" or OS=="android"', { |
+ 'actions': [{ |
+ 'action_name': 'bitmaptools', |
+ 'inputs': [ |
+ 'telemetry/core/build_extension.py', |
+ 'telemetry/core/bitmaptools/bitmaptools.cc', |
+ ], |
+ 'outputs': [ |
+ '<(output_path)/bitmaptools>(python_extension)' |
+ ], |
+ 'action': [ |
+ 'python', |
+ '<@(_inputs)', |
+ '<(output_path)', |
+ 'bitmaptools', |
+ ] |
+ }], |
+ }], |
+ ] |
+ }, |
+ ], |
+} |