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.
10 GURL_DIR = '$THIRD_PARTY_DIR/googleurl',
11 ICU38_DIR = '$THIRD_PARTY_DIR/icu38',
15 '$ICU38_DIR/public/common',
16 '$ICU38_DIR/public/i18n',
23 # 'U_STATIC_IMPLEMENTATION',
27 if env['OS'] == 'win32':
34 elif env['OS'] == 'linux':
35 env.Append(CCFLAGS = '-Wno-char-subscripts')
38 '$GURL_DIR/src/gurl.cc',
39 '$GURL_DIR/src/url_canon_etc.cc',
40 '$GURL_DIR/src/url_canon_fileurl.cc',
41 '$GURL_DIR/src/url_canon_host.cc',
42 # '$GURL_DIR/src/url_canon_icu.cc',
43 '$GURL_DIR/src/url_canon_internal.cc',
44 '$GURL_DIR/src/url_canon_ip.cc',
45 '$GURL_DIR/src/url_canon_mailtourl.cc',
46 '$GURL_DIR/src/url_canon_path.cc',
47 '$GURL_DIR/src/url_canon_pathurl.cc',
48 '$GURL_DIR/src/url_canon_query.cc',
49 '$GURL_DIR/src/url_canon_relative.cc',
50 '$GURL_DIR/src/url_canon_stdurl.cc',
51 '$GURL_DIR/src/url_parse.cc',
52 '$GURL_DIR/src/url_parse_file.cc',
53 '$GURL_DIR/src/url_util.cc',
56 # ICU files needed for Gears.
58 '$ICU38_DIR/source/common/utf_impl.cc',
61 env.GearsStaticLibrary('googleurl-gears', input_files)
63 #env_tests = env.Clone()
67 # '$GTEST_DIR/include',
75 # env_tests['ICU_LIBS'], # TODO(sgk): '$ICU_LIBS' when scons is fixed
81 # 'src/gurl_unittest.cc',
82 # 'src/url_canon_unittest.cc',
83 # 'src/url_parse_unittest.cc',
84 # 'src/url_util_unittest.cc',
86 # # The version of gtest that googleurl uses provides a main() function; ours
87 # # doesn't so include our own main function.
88 # '$CHROME_SRC_DIR/base/run_all_unittests.cc'
91 #gurl_unittests = env_tests.ChromeTestProgram('googleurl_unittests', test_files)
93 #installed_gurl_unittests = env.Install('$TARGET_ROOT', gurl_unittests)