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

Side by Side Diff: tools/goopdump/build.scons

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months 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 unified diff | Download patch
« no previous file with comments | « tools/generate_omaha3_idl.py ('k') | tools/goopdump/data_dumper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 # Builds goopdump.exe which is a utility for dumping config info for
19 # googleupdate.
20
21
22 Import('env')
23
24 #
25 # Build Goopdump.lib
26 #
27 lib_env = env.Clone()
28
29 target_name = 'goopdump.lib'
30
31 lib_inputs = [
32 'data_dumper.cc',
33 'data_dumper_app_manager.cc',
34 'data_dumper_goopdate.cc',
35 'data_dumper_network.cc',
36 'data_dumper_oneclick.cc',
37 'data_dumper_osdata.cc',
38 'dump_log.cc',
39 'goopdump.cc',
40 'goopdump_cmd_line_parser.cc',
41 'process_commandline.cc',
42 'process_monitor.cc',
43 ]
44 if env.Bit('use_precompiled_headers'):
45 lib_inputs += lib_env.EnablePrecompile(target_name)
46
47 lib_env.ComponentLibrary(
48 lib_name=target_name,
49 source=lib_inputs
50 )
51
52
53 #
54 # Build Goopdump.exe
55 #
56 exe_env = env.Clone()
57
58 omaha_version_info = exe_env['omaha_versions_info'][0]
59
60 exe_env.Append(
61 RCFLAGS = [
62 '/DVERSION_MAJOR=%d' % omaha_version_info.version_major,
63 '/DVERSION_MINOR=%d' % omaha_version_info.version_minor,
64 '/DVERSION_BUILD=%d' % omaha_version_info.version_build,
65 '/DVERSION_PATCH=%d' % omaha_version_info.version_patch,
66 '/DVERSION_NUMBER_STRING=\\"%s\\"' % (
67 omaha_version_info.GetVersionString()),
68 '/DLANGAUGE_STRING=\\"en\\"',
69 ],
70
71 LIBS = [
72 'delayimp.lib',
73 'kernel32.lib',
74 'pdh.lib',
75 '$LIB_DIR/common.lib',
76 '$LIB_DIR/goopdate_dll.lib',
77 '$LIB_DIR/logging.lib',
78 '$LIB_DIR/net.lib',
79 '$LIB_DIR/statsreport.lib',
80 '$LIB_DIR/goopdump.lib',
81 '$LIB_DIR/worker.lib',
82 ('atls.lib', 'atlsd.lib')[exe_env.Bit('debug')],
83 ('libcmt.lib', 'libcmtd.lib')[exe_env.Bit('debug')],
84 ('libcpmt.lib', 'libcpmtd.lib')[exe_env.Bit('debug')],
85 'advapi32.lib',
86 'comctl32.lib',
87 'crypt32.lib',
88 'delayimp.lib',
89 'Iphlpapi.lib',
90 'msi.lib',
91 'mstask.lib',
92 'netapi32.lib',
93 'ole32.lib',
94 'oleaut32.lib',
95 'psapi.lib',
96 'rasapi32.lib',
97 'secur32.lib',
98 'shell32.lib',
99 'shlwapi.lib',
100 'user32.lib',
101 'version.lib',
102 'urlmon.lib',
103 'userenv.lib',
104 'uuid.lib',
105 'wininet.lib',
106 'wintrust.lib',
107 'wtsapi32.lib',
108 ],
109
110 LINKFLAGS = [
111 '/DELAYLOAD:ole32.dll',
112 '/DELAYLOAD:oleaut32.dll',
113 '/DELAYLOAD:psapi.dll',
114 '/DELAYLOAD:rasapi32.dll',
115 '/DELAYLOAD:shell32.dll',
116 '/DELAYLOAD:shlwapi.dll',
117 '/DELAYLOAD:userenv.dll',
118 '/DELAYLOAD:version.dll',
119 '/DELAYLOAD:wtsapi32.dll',
120 ],
121 )
122
123 exe_env.FilterOut(LINKFLAGS = ['/SUBSYSTEM:WINDOWS'])
124 exe_env['LINKFLAGS'] += ['/SUBSYSTEM:CONSOLE']
125
126 target_name = 'goopdump'
127
128 exe_inputs = [
129 'goopdump_main.cc',
130 exe_env.RES('resource.rc'),
131 ]
132 if env.Bit('use_precompiled_headers'):
133 exe_inputs += exe_env.EnablePrecompile(target_name)
134
135 exe_env.ComponentTestProgram(
136 prog_name=target_name,
137 source=exe_inputs,
138 COMPONENT_TEST_RUNNABLE=False,
139 )
OLDNEW
« no previous file with comments | « tools/generate_omaha3_idl.py ('k') | tools/goopdump/data_dumper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698