| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//testing/test.gni") | 5 import("//testing/test.gni") |
| 6 import("//url/config.gni") | 6 import("//url/config.gni") |
| 7 | 7 |
| 8 # Sets the USE_ICU_ALTERNATIVES_ON_ANDROID define based on the build flag. | 8 # Sets the USE_ICU_ALTERNATIVES_ON_ANDROID define based on the build flag. |
| 9 config("url_icu_config") { | 9 config("url_icu_config") { |
| 10 if (use_icu_alternatives_on_android) { | 10 if (use_icu_alternatives_on_android) { |
| 11 defines = [ "USE_ICU_ALTERNATIVES_ON_ANDROID=1" ] | 11 defines = [ "USE_ICU_ALTERNATIVES_ON_ANDROID=1" ] |
| 12 } | 12 } |
| 13 } | 13 } |
| 14 | 14 |
| 15 component("url") { | 15 component("url") { |
| 16 if (is_win) { | 16 if (is_win) { |
| 17 # Don't conflict with Windows' "url.dll". | 17 # Don't conflict with Windows' "url.dll". |
| 18 output_name = "url_lib" | 18 output_name = "url_lib" |
| 19 } | 19 } |
| 20 sources = [ | 20 sources = [ |
| 21 "android/url_jni_registrar.cc", | 21 "android/url_jni_registrar.cc", |
| 22 "android/url_jni_registrar.h", | 22 "android/url_jni_registrar.h", |
| 23 "deprecated_serialized_origin.cc", | 23 "deprecated_serialized_origin.cc", |
| 24 "deprecated_serialized_origin.h", | 24 "deprecated_serialized_origin.h", |
| 25 "gurl.cc", | 25 "gurl.cc", |
| 26 "gurl.h", | 26 "gurl.h", |
| 27 "origin.cc", |
| 28 "origin.h", |
| 27 "scheme_host_port.cc", | 29 "scheme_host_port.cc", |
| 28 "scheme_host_port.h", | 30 "scheme_host_port.h", |
| 29 "third_party/mozilla/url_parse.cc", | 31 "third_party/mozilla/url_parse.cc", |
| 30 "third_party/mozilla/url_parse.h", | 32 "third_party/mozilla/url_parse.h", |
| 31 "url_canon.h", | 33 "url_canon.h", |
| 32 "url_canon_etc.cc", | 34 "url_canon_etc.cc", |
| 33 "url_canon_filesystemurl.cc", | 35 "url_canon_filesystemurl.cc", |
| 34 "url_canon_fileurl.cc", | 36 "url_canon_fileurl.cc", |
| 35 "url_canon_host.cc", | 37 "url_canon_host.cc", |
| 36 "url_canon_icu.cc", | 38 "url_canon_icu.cc", |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 ] | 92 ] |
| 91 } | 93 } |
| 92 } | 94 } |
| 93 | 95 |
| 94 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. | 96 # TODO(dpranke): crbug.com/360936. Get this to build and run on Android. |
| 95 if (!is_android) { | 97 if (!is_android) { |
| 96 test("url_unittests") { | 98 test("url_unittests") { |
| 97 sources = [ | 99 sources = [ |
| 98 "deprecated_serialized_origin_unittest.cc", | 100 "deprecated_serialized_origin_unittest.cc", |
| 99 "gurl_unittest.cc", | 101 "gurl_unittest.cc", |
| 100 <<<<<<< HEAD | |
| 101 ======= | |
| 102 "origin_unittest.cc", | 102 "origin_unittest.cc", |
| 103 "scheme_host_port_unittest.cc", | 103 "scheme_host_port_unittest.cc", |
| 104 >>>>>>> Feedback. | |
| 105 "url_canon_icu_unittest.cc", | 104 "url_canon_icu_unittest.cc", |
| 106 "url_canon_unittest.cc", | 105 "url_canon_unittest.cc", |
| 107 "url_parse_unittest.cc", | 106 "url_parse_unittest.cc", |
| 108 "url_test_utils.h", | 107 "url_test_utils.h", |
| 109 "url_util_unittest.cc", | 108 "url_util_unittest.cc", |
| 110 ] | 109 ] |
| 111 | 110 |
| 112 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 111 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 113 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 112 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 114 | 113 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 125 "//testing/gtest", | 124 "//testing/gtest", |
| 126 "//third_party/icu:icuuc", | 125 "//third_party/icu:icuuc", |
| 127 ] | 126 ] |
| 128 | 127 |
| 129 if (use_icu_alternatives_on_android) { | 128 if (use_icu_alternatives_on_android) { |
| 130 sources -= [ "url_canon_icu_unittest.cc" ] | 129 sources -= [ "url_canon_icu_unittest.cc" ] |
| 131 deps -= [ "//third_party/icu:icuuc" ] | 130 deps -= [ "//third_party/icu:icuuc" ] |
| 132 } | 131 } |
| 133 } | 132 } |
| 134 } | 133 } |
| OLD | NEW |