| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 | 6 |
| 7 jingle_includes = exec_script("//build/gypi_to_gn.py", | 7 jingle_includes = exec_script("//build/gypi_to_gn.py", |
| 8 [ rebase_path("jingle.gypi") ], | 8 [ rebase_path("jingle.gypi") ], |
| 9 "scope", | 9 "scope", |
| 10 [ "jingle.gypi" ]) | 10 [ "jingle.gypi" ]) |
| 11 | 11 |
| 12 if (enable_webrtc || !is_android) { | 12 if (enable_webrtc || !is_android) { |
| 13 # GYP version: jingle/jingle.gyp:jingle_glue | 13 # GYP version: jingle/jingle.gyp:jingle_glue |
| 14 static_library("jingle_glue") { | 14 static_library("jingle_glue") { |
| 15 sources = jingle_includes.jingle_glue_sources | 15 sources = jingle_includes.jingle_glue_sources |
| 16 deps = [ | 16 deps = [ |
| 17 "//base", | 17 "//base", |
| 18 "//base/third_party/dynamic_annotations", | 18 "//base/third_party/dynamic_annotations", |
| 19 "//net", | 19 "//net", |
| 20 # '../third_party/libjingle/libjingle.gyp:libjingle', # TODO(GYP) | 20 "//third_party/libjingle", |
| 21 ] | 21 ] |
| 22 # 'export_dependent_settings': [ | 22 forward_dependent_configs_from = [ "//third_party/libjingle" ] |
| 23 # '../third_party/libjingle/libjingle.gyp:libjingle', | |
| 24 # ], | |
| 25 | |
| 26 # TODO(GYP): Replace this with a proper dependency on libjingle. | |
| 27 direct_dependent_configs = [ "//content:libjingle_stub_config", ] | |
| 28 } | 23 } |
| 29 | 24 |
| 30 # A library for sending and receiving peer-issued notifications. | 25 # A library for sending and receiving peer-issued notifications. |
| 31 # GYP version: jingle/jingle.gyp:notifier | 26 # GYP version: jingle/jingle.gyp:notifier |
| 32 static_library("notifier") { | 27 static_library("notifier") { |
| 33 sources = [ | 28 sources = [ |
| 34 "notifier/base/const_communicator.h", | 29 "notifier/base/const_communicator.h", |
| 35 "notifier/base/gaia_constants.cc", | 30 "notifier/base/gaia_constants.cc", |
| 36 "notifier/base/gaia_constants.h", | 31 "notifier/base/gaia_constants.h", |
| 37 "notifier/base/gaia_token_pre_xmpp_auth.cc", | 32 "notifier/base/gaia_token_pre_xmpp_auth.cc", |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 ] | 76 ] |
| 82 defines = [ | 77 defines = [ |
| 83 "_CRT_SECURE_NO_WARNINGS", | 78 "_CRT_SECURE_NO_WARNINGS", |
| 84 ] | 79 ] |
| 85 deps = [ | 80 deps = [ |
| 86 "//base", | 81 "//base", |
| 87 "//net", | 82 "//net", |
| 88 "//third_party/expat", | 83 "//third_party/expat", |
| 89 "//url", | 84 "//url", |
| 90 ":jingle_glue", | 85 ":jingle_glue", |
| 91 # '../third_party/libjingle/libjingle.gyp:libjingle', # TODO(GYP) | 86 "//third_party/libjingle", |
| 92 ] | 87 ] |
| 93 # 'export_dependent_settings': [ | 88 forward_dependent_configs_from = [ "//third_party/libjingle" ] |
| 94 # '../third_party/libjingle/libjingle.gyp:libjingle', | |
| 95 # ], | |
| 96 # TODO(GYP): Replace this with a proper dependency on libjingle. | |
| 97 direct_dependent_configs = [ "//content:libjingle_stub_config", ] | |
| 98 } | 89 } |
| 99 | 90 |
| 100 # GYP version: jingle/jingle.gyp:notifier_test_util | 91 # GYP version: jingle/jingle.gyp:notifier_test_util |
| 101 static_library("notifier_test_util") { | 92 static_library("notifier_test_util") { |
| 102 sources = [ | 93 sources = [ |
| 103 "notifier/base/fake_base_task.cc", | 94 "notifier/base/fake_base_task.cc", |
| 104 "notifier/base/fake_base_task.h", | 95 "notifier/base/fake_base_task.h", |
| 105 "notifier/listener/fake_push_client.cc", | 96 "notifier/listener/fake_push_client.cc", |
| 106 "notifier/listener/fake_push_client.h", | 97 "notifier/listener/fake_push_client.h", |
| 107 "notifier/listener/fake_push_client_observer.cc", | 98 "notifier/listener/fake_push_client_observer.cc", |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 ":jingle_glue", | 150 ":jingle_glue", |
| 160 ":notifier", | 151 ":notifier", |
| 161 ":notifier_test_util", | 152 ":notifier_test_util", |
| 162 "//base", | 153 "//base", |
| 163 "//base/test:run_all_unittests", | 154 "//base/test:run_all_unittests", |
| 164 "//base/test:test_support", | 155 "//base/test:test_support", |
| 165 "//net", | 156 "//net", |
| 166 "//net:test_support", | 157 "//net:test_support", |
| 167 "//testing/gmock", | 158 "//testing/gmock", |
| 168 "//testing/gtest", | 159 "//testing/gtest", |
| 169 # '../third_party/libjingle/libjingle.gyp:libjingle', # TODO(GYP) | 160 "//third_party/libjingle", |
| 170 ] | 161 ] |
| 171 # 'export_dependent_settings': [ | 162 forward_dependent_configs_from = [ "//third_party/libjingle" ] |
| 172 # '../third_party/libjingle/libjingle.gyp:libjingle', | |
| 173 # ], | |
| 174 # TODO(GYP): Replace this with a proper dependency on libjingle. | |
| 175 direct_dependent_configs = [ "//content:libjingle_stub_config", ] | |
| 176 } | 163 } |
| 177 } else { | 164 } else { |
| 178 # !enable_webrtc and is_android | 165 # !enable_webrtc and is_android |
| 179 # Stub targets as Android doesn't use libjingle when webrtc is disabled. | 166 # Stub targets as Android doesn't use libjingle when webrtc is disabled. |
| 180 source_set("jingle_glue") { } | 167 source_set("jingle_glue") { } |
| 181 | 168 |
| 182 source_set("jingle_glue_test_util") { } | 169 source_set("jingle_glue_test_util") { } |
| 183 | 170 |
| 184 # GYP version: jingle/jingle.gyp:notifier | 171 # GYP version: jingle/jingle.gyp:notifier |
| 185 static_library("notifier") { | 172 static_library("notifier") { |
| 186 sources = [ | 173 sources = [ |
| 187 "notifier/base/gaia_constants.cc", | 174 "notifier/base/gaia_constants.cc", |
| 188 "notifier/base/gaia_constants.h", | 175 "notifier/base/gaia_constants.h", |
| 189 "notifier/base/notification_method.h", | 176 "notifier/base/notification_method.h", |
| 190 "notifier/base/notification_method.cc", | 177 "notifier/base/notification_method.cc", |
| 191 "notifier/base/notifier_options.cc", | 178 "notifier/base/notifier_options.cc", |
| 192 "notifier/base/notifier_options.h", | 179 "notifier/base/notifier_options.h", |
| 193 ] | 180 ] |
| 194 deps = [ | 181 deps = [ |
| 195 "//base", | 182 "//base", |
| 196 "//net" | 183 "//net" |
| 197 ] | 184 ] |
| 198 } | 185 } |
| 199 | 186 |
| 200 source_set("notifier_test_util") { } | 187 source_set("notifier_test_util") { } |
| 201 } | 188 } |
| OLD | NEW |