Index: chrome/chrome_tests.gypi |
diff --git a/chrome/chrome_tests.gypi b/chrome/chrome_tests.gypi |
index 83bc9fd845528ccc3d91e33bb2973fd8d8c6c469..c92e29aed0fa2f531be7f08f7004916855d48891 100644 |
--- a/chrome/chrome_tests.gypi |
+++ b/chrome/chrome_tests.gypi |
@@ -444,6 +444,52 @@ |
], |
}, |
{ |
+ 'target_name': 'test_support_psutil', |
+ 'type': 'static_library', |
+ 'actions': [ |
+ { |
+ 'action_name': 'psutil_build', |
+ 'inputs': [ |
+ '../third_party/psutil/psutil/_psutil_bsd.c', |
+ '../third_party/psutil/psutil/_psutil_common.c', |
+ '../third_party/psutil/psutil/_psutil_linux.c', |
+ '../third_party/psutil/psutil/_psutil_mswindows.c', |
+ '../third_party/psutil/psutil/_psutil_osx.c', |
+ '../third_party/psutil/psutil/_psutil_posix.c', |
+ '../third_party/psutil/psutil/_psutil_bsd.h', |
+ '../third_party/psutil/psutil/_psutil_common.h', |
+ '../third_party/psutil/psutil/_psutil_linux.h', |
+ '../third_party/psutil/psutil/_psutil_mswindows.h', |
+ '../third_party/psutil/psutil/_psutil_osx.h', |
+ '../third_party/psutil/psutil/_psutil_posix.h', |
+ ], |
+ 'conditions': [ |
+ ['OS=="linux"', { |
+ 'outputs': [ |
+ '<(PRODUCT_DIR)/_psutil_linux.so', |
+ '<(PRODUCT_DIR)/psutil', |
+ '<(PRODUCT_DIR)/psutil/_compat.py', |
+ '<(PRODUCT_DIR)/psutil/_psosx.py', |
+ '<(PRODUCT_DIR)/psutil/__init__.py', |
+ '<(PRODUCT_DIR)/psutil/_pslinux.py', |
+ '<(PRODUCT_DIR)/psutil/_common.py', |
+ '<(PRODUCT_DIR)/psutil/error.py', |
+ '<(PRODUCT_DIR)/psutil/_psmswindows.py', |
+ '<(PRODUCT_DIR)/psutil/_psbsd.py', |
+ '<(PRODUCT_DIR)/psutil/_psposix.py', |
+ '<(PRODUCT_DIR)/_psutil_posix.so', |
+ ], |
+ },], |
+ ], |
+ 'action': ['python', |
+ '../third_party/psutil/build.py', |
+ '<(PRODUCT_DIR)' |
+ ], |
+ 'message': 'Generating psutil binary', |
+ }, |
+ ], # actions |
+ }, |
+ { |
'target_name': 'automated_ui_tests', |
'type': 'executable', |
'dependencies': [ |
@@ -4016,6 +4062,7 @@ |
], |
'export_dependent_settings': [ |
'test_support_common', |
+ 'test_support_psutil', |
Nirnimesh
2011/12/07 00:30:41
where did you specify this dep on linux only?
FWI
DaleCurtis
2011/12/07 01:26:08
In the conditions section above, I only provided o
|
], |
'include_dirs': [ |
'..', |