| 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 __doc__ = """ | |
| 6 Configuration for building the net_perftests{,.exe} executable. | |
| 7 """ | |
| 8 | |
| 9 Import('env') | |
| 10 | |
| 11 env = env.Clone() | |
| 12 | |
| 13 env.ApplySConscript([ | |
| 14 '$BASE_DIR/using_base.scons', | |
| 15 '$BZIP2_DIR/using_bzip2.scons', | |
| 16 '$CHROME_SRC_DIR/build/using_googleurl.scons', | |
| 17 '$GTEST_DIR/../using_gtest.scons', | |
| 18 '$ICU38_DIR/using_icu38.scons', | |
| 19 '$MODP_B64_DIR/using_modp_b64.scons', | |
| 20 '$NET_DIR/using_net.scons', | |
| 21 ]) | |
| 22 | |
| 23 if env.Bit('posix'): | |
| 24 env.SConscript([ | |
| 25 '$LIBEVENT_DIR/using_libevent.scons', | |
| 26 ], {'env':env}) | |
| 27 | |
| 28 if env.Bit('windows'): | |
| 29 env.Prepend( | |
| 30 CCFLAGS = [ | |
| 31 '/WX', | |
| 32 ], | |
| 33 ) | |
| 34 elif env.Bit('linux'): | |
| 35 env.Append( | |
| 36 # TODO(port): disk_cache_perftest breaks strict aliasing rules. | |
| 37 CCFLAGS = ['-fno-strict-aliasing'], | |
| 38 ) | |
| 39 | |
| 40 input_files = ChromeFileList([ | |
| 41 # TODO(sgk): violate standard indentation so we don't have to | |
| 42 # reindent too much when we remove the explicit MSVSFilter() calls | |
| 43 # in favor of generating the hierarchy to reflect the file system. | |
| 44 MSVSFilter('support', [ | |
| 45 '../base/perftimer$OBJSUFFIX', | |
| 46 '../base/run_all_perftests$OBJSUFFIX', | |
| 47 ]), | |
| 48 MSVSFilter('tests', [ | |
| 49 'base/cookie_monster_perftest.cc', | |
| 50 'disk_cache/disk_cache_perftest.cc', | |
| 51 'disk_cache/disk_cache_test_util$OBJSUFFIX', | |
| 52 ]), | |
| 53 ]) | |
| 54 | |
| 55 if not env.Bit('mac'): | |
| 56 env.ChromeTestProgram('net_perftests', input_files) | |
| 57 | |
| 58 env.ChromeMSVSProject('$NET_DIR/build/net_perftests.vcproj', | |
| 59 guid='{AAC78796-B9A2-4CD9-BF89-09B03E92BF73}') | |
| 60 | |
| 61 # TODO######################################################################## | |
| 62 | |
| 63 p = env.ChromeMSVSProject('$NET_DIR/build/net_perftests.vcproj', | |
| 64 dest='$CHROME_SRC_DIR/net/build/net_perftests.vcproj', | |
| 65 guid='{AAC78796-B9A2-4CD9-BF89-09B03E92BF73}', | |
| 66 keyword='Win32Proj', | |
| 67 dependencies = [ | |
| 68 '$BASE_DIR/build/base.vcproj', | |
| 69 '$NET_DIR/build/net.vcproj', | |
| 70 '$MODP_B64_DIR/modp_b64.vcproj', | |
| 71 '$ICU38_DIR/build/icu.vcproj', | |
| 72 '$TESTING_DIR/gtest.vcproj', | |
| 73 '$GOOGLEURL_DIR/build/googleurl.vcproj', | |
| 74 '$SDCH_DIR/sdch.vcproj', | |
| 75 ], | |
| 76 # TODO: restore when we can derive all info, | |
| 77 # on all platforms, from the windows build targets. | |
| 78 #buildtargets=TODO, | |
| 79 files=input_files, | |
| 80 tools=[ | |
| 81 'VCPreBuildEventTool', | |
| 82 'VCCustomBuildTool', | |
| 83 'VCXMLDataGeneratorTool', | |
| 84 'VCWebServiceProxyGeneratorTool', | |
| 85 'VCMIDLTool', | |
| 86 # TODO(sgk): pull this from CPPDEFINES. | |
| 87 MSVSTool('VCCLCompilerTool', | |
| 88 PreprocessorDefinitions='PERF_TEST'), | |
| 89 'VCManagedResourceCompilerTool', | |
| 90 'VCResourceCompilerTool', | |
| 91 'VCPreLinkEventTool', | |
| 92 'VCLinkerTool', | |
| 93 'VCALinkTool', | |
| 94 'VCManifestTool', | |
| 95 'VCXDCMakeTool', | |
| 96 'VCBscMakeTool', | |
| 97 'VCFxCopTool', | |
| 98 'VCAppVerifierTool', | |
| 99 'VCWebDeploymentTool', | |
| 100 'VCPostBuildEventTool', | |
| 101 ], | |
| 102 ConfigurationType='1') | |
| 103 | |
| 104 | |
| 105 p.AddConfig('Debug|Win32', | |
| 106 InheritedPropertySheets=[ | |
| 107 '$(SolutionDir)../build/common.vsprops', | |
| 108 '$(SolutionDir)../build/debug.vsprops', | |
| 109 '$(SolutionDir)../testing/using_gtest.vsprops', | |
| 110 ]) | |
| 111 | |
| 112 p.AddConfig('Release|Win32', | |
| 113 InheritedPropertySheets=[ | |
| 114 '$(SolutionDir)../build/common.vsprops', | |
| 115 '$(SolutionDir)../build/release.vsprops', | |
| 116 '$(SolutionDir)../testing/using_gtest.vsprops', | |
| 117 ]) | |
| OLD | NEW |