Make sure webrtc::VideoSource is released when WebRtcVideoTrackAdapter is destroyed.
[chromium-blink-merge.git] / components / gcm_driver.gypi
bloba2e545568bc81b8bd6916abd92ef9f0086706325
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
3 # found in the LICENSE file.
6   'targets': [
7     {
8       'target_name': 'gcm_driver',
9       'type': 'static_library',
10       'dependencies': [
11         'os_crypt',
12         '../base/base.gyp:base',
13         '../google_apis/gcm/gcm.gyp:gcm',
14         '../net/net.gyp:net',
15       ],
16       'include_dirs': [
17         '..',
18       ],
19       'sources': [
20         'gcm_driver/android/component_jni_registrar.cc',
21         'gcm_driver/android/component_jni_registrar.h',
22         'gcm_driver/default_gcm_app_handler.cc',
23         'gcm_driver/default_gcm_app_handler.h',
24         'gcm_driver/gcm_app_handler.h',
25         'gcm_driver/gcm_client_factory.cc',
26         'gcm_driver/gcm_client_factory.h',
27         'gcm_driver/gcm_driver.cc',
28         'gcm_driver/gcm_driver.h',
29         'gcm_driver/gcm_driver_android.cc',
30         'gcm_driver/gcm_driver_android.h',
31         'gcm_driver/system_encryptor.cc',
32         'gcm_driver/system_encryptor.h',
33       ],
34       'conditions': [
35         ['OS == "android"', {
36           'dependencies': [
37             'gcm_driver_jni_headers',
38           ],
39         }],
40       ],
41     },
42     {
43       'target_name': 'gcm_driver_test_support',
44       'type': 'static_library',
45       'dependencies': [
46         'gcm_driver',
47         '../base/base.gyp:base',
48         '../testing/gtest.gyp:gtest',
49       ],
50       'include_dirs': [
51         '..',
52       ],
53       'sources': [
54         'gcm_driver/fake_gcm_app_handler.cc',
55         'gcm_driver/fake_gcm_app_handler.h',
56         'gcm_driver/fake_gcm_client.cc',
57         'gcm_driver/fake_gcm_client.h',
58         'gcm_driver/fake_gcm_client_factory.cc',
59         'gcm_driver/fake_gcm_client_factory.h',
60       ],
61     },    
62   ],
63   'conditions': [
64     ['OS == "android"', {
65       'targets': [
66         {
67           'target_name': 'gcm_driver_java',
68           'type': 'none',
69           'dependencies': [
70             '../base/base.gyp:base',
71           ],
72           'variables': {
73             'java_in_dir': 'gcm_driver/android/java',
74           },
75           'includes': [ '../build/java.gypi' ],
76         },
77         {
78           'target_name': 'gcm_driver_jni_headers',
79           'type': 'none',
80           'sources': [
81             'gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java',
82           ],
83           'variables': {
84             'jni_gen_package': 'components/gcm_driver',
85           },
86           'includes': [ '../build/jni_generator.gypi' ],
87         },
88       ],
89      },
90     ],
91   ],