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

Unified Diff: tools/telemetry/telemetry.gyp

Issue 136753005: [telemetry] convert bitmaptools to use gyp (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another attempt Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/bitmaptools/__init__.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry.gyp
diff --git a/tools/telemetry/telemetry.gyp b/tools/telemetry/telemetry.gyp
index 816028d9eec0110ee080d1b61305078a5caf5f78..10a1cfb02e93dbd1ca93e69c1a234ed9fd0f5324 100644
--- a/tools/telemetry/telemetry.gyp
+++ b/tools/telemetry/telemetry.gyp
@@ -6,38 +6,26 @@
'targets' : [
{
'target_name': 'bitmaptools',
- 'type': 'none',
- 'variables': {
- 'output_path': '<(PRODUCT_DIR)',
+ 'type': 'shared_library',
+ 'product_prefix': '',
+ 'product_dir': '<(PRODUCT_DIR)',
+ 'sources': [
+ 'telemetry/core/bitmaptools/bitmaptools.cc',
+ ],
+ 'cflags': [
+ '<!@(python telemetry/core/build_extension.py cflags)',
+ ],
+ 'include_dirs': [
+ '<!@(python telemetry/core/build_extension.py include_dirs)',
+ ],
+ 'link_settings': {
+ 'ldflags': [
+ '<!@(python telemetry/core/build_extension.py ldflags)',
+ ],
},
'conditions': [
- ['OS=="android" or OS=="linux" or OS=="mac"', {
- 'variables': {
- 'python_extension': '.so'
- },
- }],
['OS=="win"', {
- 'variables': {
- 'python_extension': '.pyd'
- },
- }],
- ['OS=="android" or OS=="linux" or OS=="mac" or OS=="win"', {
- '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',
- ]
- }],
+ 'product_extension': 'pyd',
}],
]
},
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/bitmaptools/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698