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

Side by Side Diff: printing/printing_unittests.scons

Issue 27008: Add linux printing module. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | « printing/printing_lib.scons ('k') | printing/printing_unittests.vcproj » ('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 # Copyright (c) 2009 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 __doc__ = """
6 Configuration for building the printing_unittests{,.exe} executable.
7 """
8
9 Import('env')
10
11 env = env.Clone()
12
13 env.SConscript([
14 '$BASE_DIR/using_base.scons',
15 '$GTEST_DIR/../using_gtest.scons',
16 '$ICU38_DIR/using_icu38.scons',
17 '$PRINTING_DIR/using_printing.scons',
18 ], {'env':env})
19
20 env.Prepend(
21 CPPPATH = [
22 '$CHROME_SRC_DIR',
23 ],
24 )
25
26 if env.Bit('windows'):
27 env.Prepend(
28 CCFLAGS = [
29 '/TP',
30 '/WX',
31 ],
32 CPPDEFINES = [
33 '_WIN32_WINNT=0x0600',
34 'WINVER=0x0600',
35 '_HAS_EXCEPTIONS=0',
36 ],
37 LINKFLAGS = [
38 '/DELAYLOAD:"dwmapi.dll"',
39 '/DELAYLOAD:"uxtheme.dll"',
40 '/MACHINE:X86',
41 '/FIXED:No',
42 '/safeseh',
43 '/dynamicbase',
44 '/ignore:4199',
45 '/nxcompat',
46 ],
47 )
48
49 input_files = ChromeFileList([
50 # TODO(sgk): violate standard indentation so we don't have to
51 # reindent too much when we remove the explicit MSVSFilter() calls
52 # in favor of generating the hierarchy to reflect the file system.
53 MSVSFilter('support', [
54 'run_all_unittests.cc',
55 '../base/test_suite.h',
56 ]),
57 MSVSFilter('tests', [
58 'units_unittest.cc',
59 ]),
60 ])
61
62 env.ChromeTestProgram('printing_unittests', input_files)
63
64 p = env.ChromeMSVSProject('build/printing_unittests.vcproj',
65 dest=('$CHROME_SRC_DIR/printing/' +
66 'printing_unittests.vcproj'),
67 guid='{8B2EE5D9-41BC-4AA2-A401-2DC143A05D2E}',
68 keyword='Win32Proj',
69 # TODO(sgk): when we can intuit the hierarchy
70 # from the built targets.
71 #buildtargets=TODO,
72 files=input_files,
73 tools=[
74 'VCPreBuildEventTool',
75 'VCCustomBuildTool',
76 'VCXMLDataGeneratorTool',
77 'VCWebServiceProxyGeneratorTool',
78 'VCMIDLTool',
79 MSVSTool('VCCLCompilerTool',
80 PreprocessorDefinitions='UNIT_TEST'),
81 'VCManagedResourceCompilerTool',
82 'VCResourceCompilerTool',
83 'VCPreLinkEventTool',
84 'VCLinkerTool',
85 'VCALinkTool',
86 'VCManifestTool',
87 'VCXDCMakeTool',
88 'VCBscMakeTool',
89 'VCFxCopTool',
90 'VCAppVerifierTool',
91 'VCWebDeploymentTool',
92 'VCPostBuildEventTool',
93 ],
94 ConfigurationType='1')
95
96 p.AddConfig('Debug|Win32',
97 InheritedPropertySheets=[
98 '$(SolutionDir)../build/debug.vsprops',
99 '$(SolutionDir)../testing/using_gtest.vsprops',
100 'printing.vsprops',
101 ])
102
103 p.AddConfig('Release|Win32',
104 InheritedPropertySheets=[
105 '$(SolutionDir)../build/release.vsprops',
106 '$(SolutionDir)../testing/using_gtest.vsprops',
107 'printing.vsprops',
108 ])
OLDNEW
« no previous file with comments | « printing/printing_lib.scons ('k') | printing/printing_unittests.vcproj » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698