# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'targets': [ { # GN version: //components/gcm_driver 'target_name': 'gcm_driver', 'type': 'static_library', 'dependencies': [ 'os_crypt', '../base/base.gyp:base', '../google_apis/gcm/gcm.gyp:gcm', '../net/net.gyp:net', ], 'include_dirs': [ '..', ], 'sources': [ # Note: file list duplicated in GN build. 'gcm_driver/android/component_jni_registrar.cc', 'gcm_driver/android/component_jni_registrar.h', 'gcm_driver/default_gcm_app_handler.cc', 'gcm_driver/default_gcm_app_handler.h', 'gcm_driver/gcm_account_mapper.cc', 'gcm_driver/gcm_account_mapper.h', 'gcm_driver/gcm_activity.cc', 'gcm_driver/gcm_activity.h', 'gcm_driver/gcm_app_handler.cc', 'gcm_driver/gcm_app_handler.h', 'gcm_driver/gcm_backoff_policy.cc', 'gcm_driver/gcm_backoff_policy.h', 'gcm_driver/gcm_channel_status_request.cc', 'gcm_driver/gcm_channel_status_request.h', 'gcm_driver/gcm_channel_status_syncer.cc', 'gcm_driver/gcm_channel_status_syncer.h', 'gcm_driver/gcm_client.cc', 'gcm_driver/gcm_client.h', 'gcm_driver/gcm_client_factory.cc', 'gcm_driver/gcm_client_factory.h', 'gcm_driver/gcm_client_impl.cc', 'gcm_driver/gcm_client_impl.h', 'gcm_driver/gcm_connection_observer.cc', 'gcm_driver/gcm_connection_observer.h', 'gcm_driver/gcm_delayed_task_controller.cc', 'gcm_driver/gcm_delayed_task_controller.h', 'gcm_driver/gcm_driver.cc', 'gcm_driver/gcm_driver.h', 'gcm_driver/gcm_driver_android.cc', 'gcm_driver/gcm_driver_android.h', 'gcm_driver/gcm_driver_desktop.cc', 'gcm_driver/gcm_driver_desktop.h', 'gcm_driver/gcm_stats_recorder_impl.cc', 'gcm_driver/gcm_stats_recorder_impl.h', 'gcm_driver/proto/gcm_channel_status.proto', 'gcm_driver/system_encryptor.cc', 'gcm_driver/system_encryptor.h', ], 'variables': { 'proto_in_dir': 'gcm_driver/proto', 'proto_out_dir': 'components/gcm_driver/proto', }, 'includes': [ '../build/protoc.gypi' ], 'conditions': [ ['OS == "android"', { 'dependencies': [ 'gcm_driver_jni_headers', ], 'dependencies!': [ '../google_apis/gcm/gcm.gyp:gcm', ], 'sources!': [ 'gcm_driver/gcm_account_mapper.cc', 'gcm_driver/gcm_account_mapper.h', 'gcm_driver/gcm_channel_status_request.cc', 'gcm_driver/gcm_channel_status_request.h', 'gcm_driver/gcm_channel_status_syncer.cc', 'gcm_driver/gcm_channel_status_syncer.h', 'gcm_driver/gcm_client_factory.cc', 'gcm_driver/gcm_client_factory.h', 'gcm_driver/gcm_client_impl.cc', 'gcm_driver/gcm_client_impl.h', 'gcm_driver/gcm_delayed_task_controller.cc', 'gcm_driver/gcm_delayed_task_controller.h', 'gcm_driver/gcm_driver_desktop.cc', 'gcm_driver/gcm_driver_desktop.h', 'gcm_driver/gcm_stats_recorder_impl.cc', 'gcm_driver/gcm_stats_recorder_impl.h', 'gcm_driver/proto/gcm_channel_status.proto', ], }], ], }, { # GN version: //components/gcm_driver:test_support 'target_name': 'gcm_driver_test_support', 'type': 'static_library', 'dependencies': [ 'gcm_driver', '../base/base.gyp:base', '../google_apis/gcm/gcm.gyp:gcm_test_support', '../testing/gtest.gyp:gtest', ], 'include_dirs': [ '..', ], 'sources': [ # Note: file list duplicated in GN build. 'gcm_driver/fake_gcm_app_handler.cc', 'gcm_driver/fake_gcm_app_handler.h', 'gcm_driver/fake_gcm_client.cc', 'gcm_driver/fake_gcm_client.h', 'gcm_driver/fake_gcm_client_factory.cc', 'gcm_driver/fake_gcm_client_factory.h', 'gcm_driver/fake_gcm_driver.cc', 'gcm_driver/fake_gcm_driver.h', ], 'conditions': [ ['OS == "android"', { 'dependencies!': [ '../google_apis/gcm/gcm.gyp:gcm_test_support', ], 'sources!': [ 'gcm_driver/fake_gcm_client.cc', 'gcm_driver/fake_gcm_client.h', 'gcm_driver/fake_gcm_client_factory.cc', 'gcm_driver/fake_gcm_client_factory.h', ], }], ], }, ], 'conditions': [ ['OS == "android"', { 'targets': [ { 'target_name': 'gcm_driver_java', 'type': 'none', 'dependencies': [ '../base/base.gyp:base', # TODO(johnme): Fix the layering violation of depending on content/ '../content/content.gyp:content_java', '../sync/sync.gyp:sync_java', ], 'variables': { 'java_in_dir': 'gcm_driver/android/java', }, 'includes': [ '../build/java.gypi' ], }, { # GN version: //components/gcm_driver:jni_headers 'target_name': 'gcm_driver_jni_headers', 'type': 'none', 'sources': [ 'gcm_driver/android/java/src/org/chromium/components/gcm_driver/GCMDriver.java', ], 'variables': { 'jni_gen_package': 'components/gcm_driver', }, 'includes': [ '../build/jni_generator.gypi' ], }, ], }, ], ], }