initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 1 | # Copyright 2008, Google Inc.
|
| 2 | # All rights reserved.
|
| 3 | #
|
| 4 | # Redistribution and use in source and binary forms, with or without
|
| 5 | # modification, are permitted provided that the following conditions are
|
| 6 | # met:
|
| 7 | #
|
| 8 | # * Redistributions of source code must retain the above copyright
|
| 9 | # notice, this list of conditions and the following disclaimer.
|
| 10 | # * Redistributions in binary form must reproduce the above
|
| 11 | # copyright notice, this list of conditions and the following disclaimer
|
| 12 | # in the documentation and/or other materials provided with the
|
| 13 | # distribution.
|
| 14 | # * Neither the name of Google Inc. nor the names of its
|
| 15 | # contributors may be used to endorse or promote products derived from
|
| 16 | # this software without specific prior written permission.
|
| 17 | #
|
| 18 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
| 19 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
| 20 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
| 21 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
| 22 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
| 23 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
| 24 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
| 25 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
| 26 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 27 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 28 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 29 |
|
| 30 | Import('env_test')
|
| 31 |
|
| 32 | env_test = env_test.Clone()
|
| 33 |
|
| 34 | env_test.Prepend(
|
| 35 | CPPPATH = [
|
| 36 | '$ICU38_DIR/public/common',
|
| 37 | '$ICU38_DIR/public/i18n',
|
| 38 | '$LIBXML_DIR/include',
|
| 39 | '$LIBXML_DIR/scons/include',
|
| 40 | '$SKIA_DIR/include',
|
| 41 | '$SKIA_DIR/include/corecg',
|
| 42 | '$SKIA_DIR/platform',
|
| 43 | '#/..',
|
| 44 | '$GTEST_DIR/include',
|
| 45 | 'third_party/wtl/include',
|
| 46 | 'tools/build/win',
|
| 47 | ],
|
| 48 | CPPDEFINES = [
|
| 49 | 'LIBXML_STATIC',
|
| 50 | ],
|
[email protected] | 372d63e5 | 2008-08-04 18:11:39 | [diff] [blame] | 51 | LIBS = [
|
| 52 | 'libxml',
|
| 53 | 'googleurl',
|
| 54 | 'skia',
|
| 55 | 'libpng',
|
| 56 | 'gtest',
|
| 57 | 'base_gfx',
|
| 58 | 'icuuc',
|
| 59 | 'zlib',
|
| 60 | 'base',
|
| 61 | ],
|
| 62 | )
|
| 63 |
|
| 64 | env_test.Prepend(
|
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 65 | LINKFLAGS = [
|
| 66 | '/INCREMENTAL',
|
| 67 |
|
| 68 | '/safeseh',
|
| 69 | '/dynamicbase',
|
| 70 | '/ignore:4199',
|
| 71 | '/nxcompat',
|
| 72 |
|
| 73 | '/MANIFEST',
|
| 74 | '/DELAYLOAD:"ws2_32.dll"',
|
| 75 | '/DELAYLOAD:"dwmapi.dll"',
|
| 76 | '/DELAYLOAD:"uxtheme.dll"',
|
| 77 |
|
| 78 | '/DEBUG',
|
| 79 | '/MACHINE:X86',
|
| 80 | '/FIXED:No',
|
| 81 | ],
|
| 82 | LIBS = [
|
[email protected] | 6a4994f | 2008-08-04 05:18:29 | [diff] [blame] | 83 | 'comsupp.lib',
|
| 84 | 'oleacc.lib',
|
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 85 | 'psapi.lib',
|
| 86 | 'rpcrt4.lib',
|
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 87 | ],
|
| 88 | )
|
| 89 |
|
| 90 | libs = [
|
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 91 | 'common/common.lib',
|
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 92 | 'browser/browser.lib',
|
[email protected] | 82e116f2 | 2008-08-13 18:59:18 | [diff] [blame] | 93 | 'browser/views/browser_views.lib',
|
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 94 | 'test/automation/automation.lib',
|
| 95 | ]
|
| 96 |
|
| 97 | test_files = [
|
| 98 | 'test/automated_ui_tests/automated_ui_tests.cc',
|
| 99 | '$CHROME_DIR/test/test_file_util$OBJSUFFIX',
|
| 100 | '$CHROME_DIR/test/perf/mem_usage$OBJSUFFIX',
|
| 101 | '$CHROME_DIR/test/ui/run_all_unittests$OBJSUFFIX',
|
| 102 | '$CHROME_DIR/test/ui/ui_test$OBJSUFFIX',
|
| 103 | '$CHROME_DIR/test/ui/ui_test_suite$OBJSUFFIX',
|
| 104 | ]
|
| 105 |
|
[email protected] | 0993344 | 2008-08-13 22:53:59 | [diff] [blame^] | 106 | exe = env_test.ChromeTestProgram('automated_ui_tests', test_files + libs)
|
initial.commit | 09911bf | 2008-07-26 23:55:29 | [diff] [blame] | 107 |
|
| 108 | i = env_test.Install('$TARGET_ROOT', exe)
|
| 109 | Alias('chrome', i)
|