OLD | NEW |
| (Empty) |
1 # Copyright (c) 2006-2008 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 Import('env') | |
6 | |
7 env = env.Clone() | |
8 | |
9 env.Prepend( | |
10 CPPPATH = [ | |
11 '$CHROME_SRC_DIR', | |
12 ], | |
13 ) | |
14 | |
15 if env.Bit('windows'): | |
16 env.Prepend( | |
17 LINKFLAGS = [ | |
18 '/INCREMENTAL', | |
19 | |
20 '/MANIFEST', | |
21 '/DELAYLOAD:"dwmapi.dll"', | |
22 '/DELAYLOAD:"uxtheme.dll"', | |
23 '/MACHINE:X86', | |
24 '/FIXED:No', | |
25 | |
26 '/safeseh', | |
27 '/dynamicbase', | |
28 '/ignore:4199', | |
29 '/nxcompat', | |
30 | |
31 '/DEBUG', | |
32 ], | |
33 LIBS = [ | |
34 'DelayImp.lib', | |
35 ], | |
36 ) | |
37 | |
38 input_files = ChromeFileList([ | |
39 '$SANDBOX_DIR/tests/validation_tests/commands$OBJSUFFIX', | |
40 '$SANDBOX_DIR/tests/validation_tests/commands.h', | |
41 '$CHROME_DIR/test/injection_test_dll.h', | |
42 'ipc_security_tests.cc', | |
43 'ipc_security_tests.h', | |
44 'security_tests.cc', | |
45 ]) | |
46 | |
47 # TODO(port): | |
48 if env.Bit('windows'): | |
49 env.ChromeSharedLibrary('security_tests', input_files) | |
50 | |
51 p = env.ChromeMSVSProject('security_tests.vcproj', | |
52 dest=('$CHROME_SRC_DIR/chrome/' | |
53 + 'test/security_tests/security_tests.vcproj'), | |
54 guid='{E750512D-FC7C-4C98-BF04-0A0DAF882055}', | |
55 keyword='Win32Proj', | |
56 # TODO(sgk): when we can intuit the hierarchy | |
57 # from the built targets. | |
58 #buildtargets=TODO, | |
59 files=input_files, | |
60 local_directory_prefix='./', | |
61 tools=[ | |
62 'VCPreBuildEventTool', | |
63 'VCCustomBuildTool', | |
64 'VCXMLDataGeneratorTool', | |
65 'VCWebServiceProxyGeneratorTool', | |
66 'VCMIDLTool', | |
67 'VCCLCompilerTool', | |
68 'VCManagedResourceCompilerTool', | |
69 'VCResourceCompilerTool', | |
70 'VCPreLinkEventTool', | |
71 'VCLinkerTool', | |
72 'VCALinkTool', | |
73 'VCManifestTool', | |
74 'VCXDCMakeTool', | |
75 'VCBscMakeTool', | |
76 'VCFxCopTool', | |
77 'VCAppVerifierTool', | |
78 'VCWebDeploymentTool', | |
79 'VCPostBuildEventTool', | |
80 ], | |
81 ConfigurationType='2') | |
82 | |
83 | |
84 p.AddConfig('Debug|Win32', | |
85 InheritedPropertySheets=[ | |
86 '$(SolutionDir)../build/common.vsprops', | |
87 '$(SolutionDir)../build/debug.vsprops', | |
88 ]) | |
89 | |
90 p.AddConfig('Release|Win32', | |
91 InheritedPropertySheets=[ | |
92 '$(SolutionDir)../build/common.vsprops', | |
93 '$(SolutionDir)../build/release.vsprops', | |
94 ]) | |
OLD | NEW |