blob: 9f73ce8f025a22ba36437717c24e2cddcb195cf6 [file] [log] [blame]
initial.commit09911bf2008-07-26 23:55:291# 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
30Import('env_test')
31
32env_test = env_test.Clone()
33
34env_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]372d63e52008-08-04 18:11:3951 LIBS = [
52 'libxml',
53 'googleurl',
54 'skia',
55 'libpng',
56 'gtest',
57 'base_gfx',
58 'icuuc',
59 'zlib',
60 'base',
61 ],
62)
63
64env_test.Prepend(
initial.commit09911bf2008-07-26 23:55:2965 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]6a4994f2008-08-04 05:18:2983 'comsupp.lib',
84 'oleacc.lib',
initial.commit09911bf2008-07-26 23:55:2985 'psapi.lib',
86 'rpcrt4.lib',
initial.commit09911bf2008-07-26 23:55:2987 ],
88)
89
90libs = [
initial.commit09911bf2008-07-26 23:55:2991 'common/common.lib',
initial.commit09911bf2008-07-26 23:55:2992 'browser/browser.lib',
[email protected]82e116f22008-08-13 18:59:1893 'browser/views/browser_views.lib',
initial.commit09911bf2008-07-26 23:55:2994 'test/automation/automation.lib',
95]
96
97test_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]09933442008-08-13 22:53:59106exe = env_test.ChromeTestProgram('automated_ui_tests', test_files + libs)
initial.commit09911bf2008-07-26 23:55:29107
108i = env_test.Install('$TARGET_ROOT', exe)
109Alias('chrome', i)