| 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', 'env') | |
| 6 | |
| 7 env = env.Clone() | |
| 8 | |
| 9 env.SConscript([ | |
| 10 '$BASE_DIR/using_base.scons', | |
| 11 '$BASE_DIR/gfx/using_base_gfx.scons', # needed for logging | |
| 12 '$CHROME_SRC_DIR/build/using_googleurl.scons', # needed for logging | |
| 13 '$BREAKPAD_DIR/using_breakpad.scons', | |
| 14 '$CHROME_DIR/third_party/wtl/using_wtl.scons', | |
| 15 '$GTEST_DIR/../using_gtest.scons', | |
| 16 '$ICU38_DIR/using_icu38.scons', | |
| 17 '$LIBJPEG_DIR/using_libjpeg.scons', | |
| 18 '$LIBPNG_DIR/using_libpng.scons', | |
| 19 '$LIBXML_DIR/using_libxml.scons', | |
| 20 '$NET_DIR/using_net.scons', # needed for logging | |
| 21 '$NPAPI_DIR/using_npapi.scons', | |
| 22 '$SKIA_DIR/using_skia.scons', | |
| 23 '$ZLIB_DIR/using_zlib.scons', | |
| 24 ], {'env':env}) | |
| 25 | |
| 26 # needed for logging | |
| 27 env.Append( | |
| 28 LIBS = [ | |
| 29 'glue', | |
| 30 'WTF', | |
| 31 ], | |
| 32 ) | |
| 33 | |
| 34 if env.Bit('posix'): | |
| 35 env.SConscript([ | |
| 36 '$LIBEVENT_DIR/using_libevent.scons', | |
| 37 '$CHROME_SRC_DIR/build/using_v8.scons', # needed for shared link deps | |
| 38 '$LIBXSLT_DIR/using_libxslt.scons', # needed for shared link deps | |
| 39 ], {'env':env}) | |
| 40 # needed for shared link deps | |
| 41 env.Append( | |
| 42 LIBS = [ | |
| 43 'JavaScriptCore_pcre', | |
| 44 'V8Bindings', | |
| 45 'WebCore', | |
| 46 'browser', | |
| 47 'port', | |
| 48 'renderer', | |
| 49 'sqlite', | |
| 50 ] | |
| 51 ) | |
| 52 | |
| 53 # TODO(sgk): convert into a using_*.scons pattern when we update WebKit. | |
| 54 env.Append( | |
| 55 CPPPATH = [ | |
| 56 '$WEBKIT_DIR/build/localized_strings', | |
| 57 ], | |
| 58 ) | |
| 59 | |
| 60 env.Prepend( | |
| 61 CPPPATH = [ | |
| 62 '$CHROME_DIR/app/resources', | |
| 63 '$CHROME_DIR/app', | |
| 64 '$CHROME_SRC_DIR', | |
| 65 ], | |
| 66 LIBS = [ | |
| 67 'common', | |
| 68 ] | |
| 69 ) | |
| 70 | |
| 71 if env.Bit('windows'): | |
| 72 env.Prepend( | |
| 73 CPPPATH = [ | |
| 74 '$CHROME_DIR/tools/build/win', | |
| 75 ], | |
| 76 ) | |
| 77 | |
| 78 if env.Bit('windows'): | |
| 79 env.Append( | |
| 80 LINKFLAGS = [ | |
| 81 '/INCREMENTAL', | |
| 82 | |
| 83 '/safeseh', | |
| 84 '/dynamicbase', | |
| 85 '/ignore:4199', | |
| 86 '/nxcompat', | |
| 87 | |
| 88 '/DELAYLOAD:"dwmapi.dll"', | |
| 89 '/DELAYLOAD:"uxtheme.dll"', | |
| 90 | |
| 91 '/DEBUG', | |
| 92 '/MACHINE:X86', | |
| 93 '/FIXED:No', | |
| 94 ], | |
| 95 LIBS = [ | |
| 96 'rpcrt4', | |
| 97 'shlwapi', | |
| 98 'winmm', | |
| 99 ], | |
| 100 ) | |
| 101 | |
| 102 input_files = ChromeFileList([ | |
| 103 'ipc_fuzzing_tests.cc', | |
| 104 'ipc_send_fds_test.cc', | |
| 105 'ipc_tests.cc', | |
| 106 'ipc_tests.h', | |
| 107 '$BASE_DIR/perftimer$OBJSUFFIX', | |
| 108 ]) | |
| 109 | |
| 110 ipc_tests = env.ChromeTestProgram('ipc_tests', input_files) | |
| 111 i = env.Install('$TARGET_ROOT', ipc_tests) | |
| 112 Alias('chrome', i) | |
| 113 | |
| 114 p = env.ChromeMSVSProject('ipc_tests.vcproj', | |
| 115 dest='$CHROME_SRC_DIR/chrome/common/ipc_tests.vcproj', | |
| 116 guid='{B92AE829-E1CD-4781-824A-DCB1603A1672}', | |
| 117 keyword='Win32Proj', | |
| 118 dependencies = [ | |
| 119 '$BASE_DIR/build/base.vcproj', | |
| 120 '$CHROME_DIR/common/common.vcproj', | |
| 121 '$ICU38_DIR/build/icu.vcproj', | |
| 122 '$TESTING_DIR/gtest.vcproj', | |
| 123 ], | |
| 124 # TODO(sgk): when we can intuit the hierarchy | |
| 125 # from the built targets. | |
| 126 #buildtargets=TODO, | |
| 127 files=input_files, | |
| 128 local_directory_prefix='./', | |
| 129 tools=[ | |
| 130 'VCPreBuildEventTool', | |
| 131 'VCCustomBuildTool', | |
| 132 'VCXMLDataGeneratorTool', | |
| 133 'VCWebServiceProxyGeneratorTool', | |
| 134 'VCMIDLTool', | |
| 135 'VCCLCompilerTool', | |
| 136 'VCManagedResourceCompilerTool', | |
| 137 'VCResourceCompilerTool', | |
| 138 'VCPreLinkEventTool', | |
| 139 MSVSTool('VCLinkerTool', | |
| 140 AdditionalDependencies=[ | |
| 141 'shlwapi.lib', | |
| 142 'rpcrt4.lib', | |
| 143 'winmm.lib' | |
| 144 ], | |
| 145 SubSystem='1'), | |
| 146 'VCALinkTool', | |
| 147 'VCManifestTool', | |
| 148 'VCXDCMakeTool', | |
| 149 'VCBscMakeTool', | |
| 150 'VCFxCopTool', | |
| 151 'VCAppVerifierTool', | |
| 152 'VCWebDeploymentTool', | |
| 153 'VCPostBuildEventTool', | |
| 154 ], | |
| 155 ConfigurationType='1') | |
| 156 | |
| 157 | |
| 158 p.AddConfig('Debug|Win32', | |
| 159 InheritedPropertySheets=[ | |
| 160 '$(SolutionDir)../build/common.vsprops', | |
| 161 '$(SolutionDir)../build/debug.vsprops', | |
| 162 '$(SolutionDir)../skia/using_skia.vsprops', | |
| 163 '$(SolutionDir)../testing/using_gtest.vsprops', | |
| 164 ]) | |
| 165 | |
| 166 p.AddConfig('Release|Win32', | |
| 167 InheritedPropertySheets=[ | |
| 168 '$(SolutionDir)../build/common.vsprops', | |
| 169 '$(SolutionDir)../build/release.vsprops', | |
| 170 '$(SolutionDir)../skia/using_skia.vsprops', | |
| 171 '$(SolutionDir)../testing/using_gtest.vsprops', | |
| 172 ]) | |
| OLD | NEW |