OLD | NEW |
1 #!python | 1 #!python |
2 # Copyright 2011 Google Inc. | 2 # Copyright 2011 Google Inc. |
3 # | 3 # |
4 # Licensed under the Apache License, Version 2.0 (the "License"); | 4 # Licensed under the Apache License, Version 2.0 (the "License"); |
5 # you may not use this file except in compliance with the License. | 5 # you may not use this file except in compliance with the License. |
6 # You may obtain a copy of the License at | 6 # You may obtain a copy of the License at |
7 # | 7 # |
8 # http://www.apache.org/licenses/LICENSE-2.0 | 8 # http://www.apache.org/licenses/LICENSE-2.0 |
9 # | 9 # |
10 # Unless required by applicable law or agreed to in writing, software | 10 # Unless required by applicable law or agreed to in writing, software |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 # The modules we distribute. | 48 # The modules we distribute. |
49 _MODULES = [ | 49 _MODULES = [ |
50 'benchmark', | 50 'benchmark', |
51 'chrome_control', | 51 'chrome_control', |
52 'event_counter', | 52 'event_counter', |
53 'optimize', | 53 'optimize', |
54 'runner', | 54 'runner', |
55 ] | 55 ] |
56 | 56 |
57 _EXECUTABLES = [ | 57 _EXECUTABLES = [ |
| 58 'msdia90.dll', |
58 'call_trace.dll', | 59 'call_trace.dll', |
59 'call_trace_control.exe', | 60 'call_trace_control.exe', |
60 'instrument.exe', | 61 'instrument.exe', |
61 'relink.exe', | 62 'relink.exe', |
62 'reorder.exe', | 63 'reorder.exe', |
63 'run_in_snapshot.exe', | 64 'run_in_snapshot.exe', |
64 'run_in_snapshot_x64.exe', | 65 'run_in_snapshot_x64.exe', |
65 'run_in_snapshot_xp.exe', | 66 'run_in_snapshot_xp.exe', |
66 ] | 67 ] |
67 | 68 |
68 | 69 |
69 def main(): | 70 def main(): |
70 # Build the benchmark script and the executables it depends on to a package. | 71 # Build the benchmark script and the executables it depends on to a package. |
71 setuptools.setup( | 72 setuptools.setup( |
72 name='Benchmark-Chrome', | 73 name='Benchmark-Chrome', |
73 author='Sigurdur Asgeirsson', | 74 author='Sigurdur Asgeirsson', |
74 author_email='siggi@chromium.org', | 75 author_email='siggi@chromium.org', |
75 version='0.1', | 76 version='0.1', |
76 url='http://no.where/', | 77 url='http://no.where/', |
77 package_dir=_PACKAGE_DIRS, | 78 package_dir=_PACKAGE_DIRS, |
78 py_modules=_MODULES, | 79 py_modules=_MODULES, |
79 data_files=[('exe', _EXECUTABLES)], | 80 data_files=[('exe', _EXECUTABLES)], |
| 81 eager_resources = ['exe/' + exe for exe in _EXECUTABLES], |
80 install_requires = [ | 82 install_requires = [ |
81 'ETW', | 83 'ETW', |
82 'ETW-Db', | 84 'ETW-Db', |
83 ], | 85 ], |
84 zip_safe=True, | 86 zip_safe=True, |
85 entry_points={ | 87 entry_points={ |
86 'console_scripts': [ | 88 'console_scripts': [ |
87 'benchmark= benchmark:main', | 89 'benchmark= benchmark:main', |
88 'optimize= optimize:main', | 90 'optimize= optimize:main', |
89 ], | 91 ], |
90 }, | 92 }, |
91 cmdclass={ | 93 cmdclass={ |
92 "install_data": InstallData, | 94 "install_data": InstallData, |
93 } | 95 } |
94 ) | 96 ) |
95 | 97 |
96 | 98 |
97 if __name__ == '__main__': | 99 if __name__ == '__main__': |
98 main() | 100 main() |
OLD | NEW |