OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. |
| 4 { |
| 5 'targets': [ |
| 6 { |
| 7 'target_name': 'psutil_lib', |
| 8 'type': 'none', |
| 9 'actions': [ |
| 10 { |
| 11 'action_name': 'psutil_build', |
| 12 'inputs': [ |
| 13 'setup.py', |
| 14 'psutil/_common.py', |
| 15 'psutil/_compat.py', |
| 16 'psutil/error.py', |
| 17 'psutil/__init__.py', |
| 18 'psutil/_psutil_common.c', |
| 19 'psutil/_psutil_common.h', |
| 20 ], |
| 21 'outputs': [ |
| 22 '<(PRODUCT_DIR)/psutil', |
| 23 '<(PRODUCT_DIR)/psutil/_compat.py', |
| 24 '<(PRODUCT_DIR)/psutil/_psosx.py', |
| 25 '<(PRODUCT_DIR)/psutil/__init__.py', |
| 26 '<(PRODUCT_DIR)/psutil/_pslinux.py', |
| 27 '<(PRODUCT_DIR)/psutil/_common.py', |
| 28 '<(PRODUCT_DIR)/psutil/error.py', |
| 29 '<(PRODUCT_DIR)/psutil/_psmswindows.py', |
| 30 '<(PRODUCT_DIR)/psutil/_psbsd.py', |
| 31 '<(PRODUCT_DIR)/psutil/_psposix.py', |
| 32 ], |
| 33 'conditions': [ |
| 34 ['OS=="linux"', { |
| 35 'inputs': [ |
| 36 'psutil/_pslinux.py', |
| 37 'psutil/_psposix.py', |
| 38 'psutil/_psutil_linux.c', |
| 39 'psutil/_psutil_linux.h', |
| 40 'psutil/_psutil_posix.c', |
| 41 'psutil/_psutil_posix.h', |
| 42 ], |
| 43 'outputs': [ |
| 44 '<(PRODUCT_DIR)/_psutil_linux.so', |
| 45 '<(PRODUCT_DIR)/_psutil_posix.so', |
| 46 ], |
| 47 }], |
| 48 ['OS=="mac"', { |
| 49 'inputs': [ |
| 50 'psutil/_psosx.py', |
| 51 'psutil/_psposix.py', |
| 52 'psutil/_psutil_osx.c', |
| 53 'psutil/_psutil_osx.h', |
| 54 'psutil/_psutil_posix.c', |
| 55 'psutil/_psutil_posix.h', |
| 56 'psutil/arch/osx/process_info.c', |
| 57 'psutil/arch/osx/process_info.h', |
| 58 ], |
| 59 # Mac builds are broken due to http://b/issue?id=5742820. So use |
| 60 # the '=' suffix to remove all outputs which prevents building. |
| 61 'outputs=': [ |
| 62 # '<(PRODUCT_DIR)/_psutil_osx.so', |
| 63 # '<(PRODUCT_DIR)/_psutil_posix.so', |
| 64 ], |
| 65 }], |
| 66 ['OS=="win"', { |
| 67 'inputs': [ |
| 68 'psutil/_psmswindows.py', |
| 69 'psutil/_psutil_mswindows.c', |
| 70 'psutil/_psutil_mswindows.h', |
| 71 'psutil/arch/mswindows/ntextapi.h', |
| 72 'psutil/arch/mswindows/process_handles.c', |
| 73 'psutil/arch/mswindows/process_handles.h', |
| 74 'psutil/arch/mswindows/process_info.c', |
| 75 'psutil/arch/mswindows/process_info.h', |
| 76 'psutil/arch/mswindows/security.c', |
| 77 'psutil/arch/mswindows/security.h', |
| 78 ], |
| 79 'outputs': [ |
| 80 '<(PRODUCT_DIR)/_psutil_mswindows.pyd', |
| 81 ], |
| 82 }], |
| 83 ], |
| 84 'action': ['python', |
| 85 'build.py', |
| 86 '<(PRODUCT_DIR)' |
| 87 ], |
| 88 'message': 'Generating psutil binaries.', |
| 89 }, |
| 90 ], |
| 91 }, |
| 92 ], |
| 93 } |
OLD | NEW |