| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'includes': [ | 9 'includes': [ |
| 10 'url_srcs.gypi', | 10 'url_srcs.gypi', |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 '<@(gurl_sources)', | 26 '<@(gurl_sources)', |
| 27 ], | 27 ], |
| 28 'direct_dependent_settings': { | 28 'direct_dependent_settings': { |
| 29 'include_dirs': [ | 29 'include_dirs': [ |
| 30 '..', | 30 '..', |
| 31 ], | 31 ], |
| 32 }, | 32 }, |
| 33 'defines': [ | 33 'defines': [ |
| 34 'URL_IMPLEMENTATION', | 34 'URL_IMPLEMENTATION', |
| 35 ], | 35 ], |
| 36 'conditions': [ | |
| 37 ['use_icu_alternatives_on_android==1', { | |
| 38 'sources!': [ | |
| 39 'url_canon_icu.cc', | |
| 40 'url_canon_icu.h', | |
| 41 ], | |
| 42 'dependencies!': [ | |
| 43 '../third_party/icu/icu.gyp:icui18n', | |
| 44 '../third_party/icu/icu.gyp:icuuc', | |
| 45 ], | |
| 46 }], | |
| 47 ['use_icu_alternatives_on_android==1 and OS=="android"', { | |
| 48 'dependencies': [ | |
| 49 'url_java', | |
| 50 'url_jni_headers', | |
| 51 ], | |
| 52 'sources': [ | |
| 53 'url_canon_icu_alternatives_android.cc', | |
| 54 'url_canon_icu_alternatives_android.h', | |
| 55 ], | |
| 56 }], | |
| 57 ], | |
| 58 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 36 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 59 'msvs_disabled_warnings': [4267, ], | 37 'msvs_disabled_warnings': [4267, ], |
| 60 }, | 38 }, |
| 61 { | 39 { |
| 62 'target_name': 'url_unittests', | 40 'target_name': 'url_unittests', |
| 63 'type': 'executable', | 41 'type': 'executable', |
| 64 'dependencies': [ | 42 'dependencies': [ |
| 65 '../base/base.gyp:run_all_unittests', | 43 '../base/base.gyp:run_all_unittests', |
| 66 '../testing/gtest.gyp:gtest', | 44 '../testing/gtest.gyp:gtest', |
| 67 '../third_party/icu/icu.gyp:icuuc', | 45 '../third_party/icu/icu.gyp:icuuc', |
| 68 'url_lib', | 46 'url_lib', |
| 69 ], | 47 ], |
| 70 'sources': [ | 48 'sources': [ |
| 71 'gurl_unittest.cc', | 49 'gurl_unittest.cc', |
| 72 'origin_unittest.cc', | 50 'origin_unittest.cc', |
| 73 'url_canon_icu_unittest.cc', | 51 'url_canon_icu_unittest.cc', |
| 74 'url_canon_unittest.cc', | 52 'url_canon_unittest.cc', |
| 75 'url_parse_unittest.cc', | 53 'url_parse_unittest.cc', |
| 76 'url_test_utils.h', | 54 'url_test_utils.h', |
| 77 'url_util_unittest.cc', | 55 'url_util_unittest.cc', |
| 78 ], | 56 ], |
| 79 'conditions': [ | 57 'conditions': [ |
| 80 ['os_posix==1 and OS!="mac" and OS!="ios" and use_allocator!="none"', | 58 ['os_posix==1 and OS!="mac" and OS!="ios" and use_allocator!="none"', |
| 81 { | 59 { |
| 82 'dependencies': [ | 60 'dependencies': [ |
| 83 '../base/allocator/allocator.gyp:allocator', | 61 '../base/allocator/allocator.gyp:allocator', |
| 84 ], | 62 ], |
| 85 } | 63 } |
| 86 ], | 64 ], |
| 87 ['use_icu_alternatives_on_android==1', | |
| 88 { | |
| 89 'sources!': [ | |
| 90 'url_canon_icu_unittest.cc', | |
| 91 ], | |
| 92 'dependencies!': [ | |
| 93 '../third_party/icu/icu.gyp:icuuc', | |
| 94 ], | |
| 95 } | |
| 96 ], | |
| 97 ], | 65 ], |
| 98 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 66 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 99 'msvs_disabled_warnings': [4267, ], | 67 'msvs_disabled_warnings': [4267, ], |
| 100 }, | 68 }, |
| 101 ], | 69 ], |
| 102 'conditions': [ | 70 'conditions': [ |
| 103 ['use_icu_alternatives_on_android==1 and OS=="android"', { | 71 ['OS=="android"', { |
| 104 'targets': [ | 72 'targets': [ |
| 105 { | 73 { |
| 106 'target_name': 'url_jni_headers', | 74 'target_name': 'url_jni_headers', |
| 107 'type': 'none', | 75 'type': 'none', |
| 108 'sources': [ | 76 'sources': [ |
| 109 'android/java/src/org/chromium/url/IDNStringUtil.java' | 77 'android/java/src/org/chromium/url/IDNStringUtil.java' |
| 110 ], | 78 ], |
| 111 'variables': { | 79 'variables': { |
| 112 'jni_gen_package': 'url', | 80 'jni_gen_package': 'url', |
| 113 }, | 81 }, |
| 114 'includes': [ '../build/jni_generator.gypi' ], | 82 'includes': [ '../build/jni_generator.gypi' ], |
| 115 }, | 83 }, |
| 116 { | 84 { |
| 117 'target_name': 'url_java', | 85 'target_name': 'url_java', |
| 118 'type': 'none', | 86 'type': 'none', |
| 119 'variables': { | 87 'variables': { |
| 120 'java_in_dir': '../url/android/java', | 88 'java_in_dir': '../url/android/java', |
| 121 }, | 89 }, |
| 122 'dependencies': [ | 90 'dependencies': [ |
| 123 '../base/base.gyp:base', | 91 '../base/base.gyp:base', |
| 124 ], | 92 ], |
| 125 'includes': [ '../build/java.gypi' ], | 93 'includes': [ '../build/java.gypi' ], |
| 126 }, | 94 }, |
| 95 { |
| 96 # Same as url_lib but using ICU alternatives on Android. |
| 97 'target_name': 'url_lib_use_icu_alternatives_on_android', |
| 98 'type': '<(component)', |
| 99 'dependencies': [ |
| 100 '../base/base.gyp:base', |
| 101 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', |
| 102 'url_java', |
| 103 'url_jni_headers', |
| 104 ], |
| 105 'sources': [ |
| 106 '<@(gurl_sources)', |
| 107 'url_canon_icu_alternatives_android.cc', |
| 108 'url_canon_icu_alternatives_android.h', |
| 109 ], |
| 110 'sources!': [ |
| 111 'url_canon_icu.cc', |
| 112 'url_canon_icu.h', |
| 113 ], |
| 114 'direct_dependent_settings': { |
| 115 'include_dirs': [ |
| 116 '..', |
| 117 ], |
| 118 }, |
| 119 'defines': [ |
| 120 'URL_IMPLEMENTATION', |
| 121 'USE_ICU_ALTERNATIVES_ON_ANDROID=1', |
| 122 ], |
| 123 }, |
| 127 ], | 124 ], |
| 128 }], | 125 }], |
| 129 ], | 126 ], |
| 130 } | 127 } |
| OLD | NEW |