| OLD | NEW |
| (Empty) |
| 1 #!/usr/bin/python2.4 | |
| 2 # Copyright 2009-2010 Google Inc. | |
| 3 # | |
| 4 # Licensed under the Apache License, Version 2.0 (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 | |
| 7 # | |
| 8 # http://www.apache.org/licenses/LICENSE-2.0 | |
| 9 # | |
| 10 # Unless required by applicable law or agreed to in writing, software | |
| 11 # distributed under the License is distributed on an "AS IS" BASIS, | |
| 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 13 # See the License for the specific language governing permissions and | |
| 14 # limitations under the License. | |
| 15 # ======================================================================== | |
| 16 | |
| 17 Import('env') | |
| 18 | |
| 19 local_env = env.Clone() | |
| 20 local_env.FilterOut(CPPDEFINES=['_ATL_DEBUG_INTERFACES']) | |
| 21 | |
| 22 local_env.Append( | |
| 23 LIBS = [ | |
| 24 ('libcmt.lib', 'libcmtd.lib')[local_env.Bit('debug')], | |
| 25 ('libcpmt.lib', 'libcpmtd.lib')[local_env.Bit('debug')], | |
| 26 'psapi.lib', | |
| 27 ], | |
| 28 CPPDEFINES = [ | |
| 29 'UNICODE', | |
| 30 '_UNICODE' | |
| 31 ], | |
| 32 ) | |
| 33 | |
| 34 local_env.FilterOut(LINKFLAGS = ['/SUBSYSTEM:WINDOWS']) | |
| 35 local_env['LINKFLAGS'] += ['/SUBSYSTEM:CONSOLE'] | |
| 36 | |
| 37 target_name = 'CrashProcess' | |
| 38 | |
| 39 inputs = [ | |
| 40 'crash_process.cc', | |
| 41 ] | |
| 42 if local_env.Bit('use_precompiled_headers'): | |
| 43 inputs += local_env.EnablePrecompile(target_name) | |
| 44 | |
| 45 local_env.ComponentTestProgram( | |
| 46 prog_name=target_name, | |
| 47 source=inputs, | |
| 48 COMPONENT_TEST_RUNNABLE=False | |
| 49 ) | |
| 50 | |
| OLD | NEW |