OLD | NEW |
| (Empty) |
1 #!/usr/bin/python2.4 | |
2 # | |
3 # Copyright 2009-2010 Google Inc. | |
4 # | |
5 # Licensed under the Apache License, Version 2.0 (the "License"); | |
6 # you may not use this file except in compliance with the License. | |
7 # You may obtain a copy of the License at | |
8 # | |
9 # http://www.apache.org/licenses/LICENSE-2.0 | |
10 # | |
11 # Unless required by applicable law or agreed to in writing, software | |
12 # distributed under the License is distributed on an "AS IS" BASIS, | |
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
14 # See the License for the specific language governing permissions and | |
15 # limitations under the License. | |
16 # ======================================================================== | |
17 | |
18 | |
19 Import('env') | |
20 | |
21 | |
22 local_env = env.Clone() | |
23 local_env.Append( | |
24 CPPDEFINES = [ | |
25 'UNICODE', | |
26 '_UNICODE' | |
27 ], | |
28 CPPPATH = [ | |
29 '$OBJ_ROOT', | |
30 ], | |
31 LIBS = [ | |
32 ('atls.lib', 'atlsd.lib')[local_env.Bit('debug')], | |
33 ('libcmt.lib', 'libcmtd.lib')[local_env.Bit('debug')], | |
34 ('libcpmt.lib', 'libcpmtd.lib')[local_env.Bit('debug')], | |
35 'comctl32.lib', | |
36 'crypt32.lib', | |
37 'Iphlpapi.lib', | |
38 'mstask.lib', | |
39 'netapi32.lib', | |
40 'psapi.lib', | |
41 'rasapi32.lib', | |
42 'shlwapi.lib', | |
43 'urlmon.lib', | |
44 'userenv.lib', | |
45 'version.lib', | |
46 'wininet.lib', | |
47 'wtsapi32.lib', | |
48 | |
49 '$LIB_DIR/common.lib', | |
50 '$LIB_DIR/goopdate_dll.lib', | |
51 '$LIB_DIR/logging.lib', | |
52 '$LIB_DIR/net.lib', | |
53 '$LIB_DIR/statsreport.lib', | |
54 ], | |
55 ) | |
56 | |
57 local_env.FilterOut(LINKFLAGS = ['/SUBSYSTEM:WINDOWS']) | |
58 local_env['LINKFLAGS'] += ['/SUBSYSTEM:CONSOLE'] | |
59 | |
60 no_precomp_env = local_env.Clone() | |
61 idl_obj = no_precomp_env.ComponentObject( | |
62 source='$OBJ_ROOT/goopdate/google_update_idl_i.c') | |
63 | |
64 target_name = 'performondemand' | |
65 | |
66 inputs = [ | |
67 'performondemand.cc', | |
68 idl_obj, | |
69 ] | |
70 if env.Bit('use_precompiled_headers'): | |
71 inputs += local_env.EnablePrecompile(target_name) | |
72 | |
73 local_env.ComponentTestProgram( | |
74 prog_name=target_name, | |
75 source=inputs, | |
76 COMPONENT_TEST_RUNNABLE=False | |
77 ) | |
OLD | NEW |