1 # Copyright 2008, Google Inc.
4 # Redistribution and use in source and binary forms, with or without
5 # modification, are permitted provided that the following conditions are
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
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.
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.
36 '$ICU38_DIR/public/common',
37 '$ICU38_DIR/public/i18n',
44 'U_STATIC_IMPLEMENTATION',
48 if env['PLATFORM'] == 'win32':
57 'src/url_canon_etc.cc',
58 'src/url_canon_fileurl.cc',
59 'src/url_canon_host.cc',
60 'src/url_canon_icu.cc',
61 'src/url_canon_internal.cc',
62 'src/url_canon_ip.cc',
63 'src/url_canon_mailtourl.cc',
64 'src/url_canon_path.cc',
65 'src/url_canon_pathurl.cc',
66 'src/url_canon_query.cc',
67 'src/url_canon_relative.cc',
68 'src/url_canon_stdurl.cc',
70 'src/url_parse_file.cc',
74 env.ChromeStaticLibrary('googleurl', input_files)
77 # Commented out for now because we can't build googleurl unit tests
78 # with gtest. This will apparently be fixed some day...
80 #env_tests = env.Clone()
84 # '$GTEST_DIR/include',
89 # 'src/gurl_unittest.cc',
90 # 'src/url_canon_unittest.cc',
91 # 'src/url_parse_unittest.cc',
92 # 'src/url_util_unittest.cc',
95 #env_tests.ChromeStaticLibrary('googleurl_tests', test_files)