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

Unified Diff: third_party/psutil/psutil.gyp

Issue 8774018: Add psutil build step to fix pyauto media issues. Upgrade psutil to 0.4.0. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Disable Mac builds. Created 9 years 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
Index: third_party/psutil/psutil.gyp
diff --git a/third_party/psutil/psutil.gyp b/third_party/psutil/psutil.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..cf071a2421a9413a2cf82885ff3b85e00abeefd6
--- /dev/null
+++ b/third_party/psutil/psutil.gyp
@@ -0,0 +1,93 @@
+# Copyright (c) 2011 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': 'psutil_lib',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'psutil_build',
+ 'inputs': [
+ 'setup.py',
+ 'psutil/_common.py',
+ 'psutil/_compat.py',
+ 'psutil/error.py',
+ 'psutil/__init__.py',
+ 'psutil/_psutil_common.c',
+ 'psutil/_psutil_common.h',
+ ],
+ 'outputs': [
+ '<(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',
+ ],
+ 'conditions': [
+ ['OS=="linux"', {
+ 'inputs': [
+ 'psutil/_pslinux.py',
+ 'psutil/_psposix.py',
+ 'psutil/_psutil_linux.c',
+ 'psutil/_psutil_linux.h',
+ 'psutil/_psutil_posix.c',
+ 'psutil/_psutil_posix.h',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/_psutil_linux.so',
+ '<(PRODUCT_DIR)/_psutil_posix.so',
+ ],
+ }],
+ ['OS=="mac"', {
+ 'inputs': [
+ 'psutil/_psosx.py',
+ 'psutil/_psposix.py',
+ 'psutil/_psutil_osx.c',
+ 'psutil/_psutil_osx.h',
+ 'psutil/_psutil_posix.c',
+ 'psutil/_psutil_posix.h',
+ 'psutil/arch/osx/process_info.c',
+ 'psutil/arch/osx/process_info.h',
+ ],
+ # Mac builds are broken due to http://b/issue?id=5742820. So use
+ # the '=' suffix to remove all outputs which prevents building.
+ 'outputs=': [
+ # '<(PRODUCT_DIR)/_psutil_osx.so',
+ # '<(PRODUCT_DIR)/_psutil_posix.so',
+ ],
+ }],
+ ['OS=="win"', {
+ 'inputs': [
+ 'psutil/_psmswindows.py',
+ 'psutil/_psutil_mswindows.c',
+ 'psutil/_psutil_mswindows.h',
+ 'psutil/arch/mswindows/ntextapi.h',
+ 'psutil/arch/mswindows/process_handles.c',
+ 'psutil/arch/mswindows/process_handles.h',
+ 'psutil/arch/mswindows/process_info.c',
+ 'psutil/arch/mswindows/process_info.h',
+ 'psutil/arch/mswindows/security.c',
+ 'psutil/arch/mswindows/security.h',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/_psutil_mswindows.pyd',
+ ],
+ }],
+ ],
+ 'action': ['python',
+ 'build.py',
+ '<(PRODUCT_DIR)'
+ ],
+ 'message': 'Generating psutil binaries.',
+ },
+ ],
+ },
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698