# 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. static_library("translate_core_browser") { sources = [ "core/browser/language_state.cc", "core/browser/language_state.h", "core/browser/page_translated_details.h", "core/browser/translate_accept_languages.cc", "core/browser/translate_accept_languages.h", "core/browser/translate_browser_metrics.cc", "core/browser/translate_browser_metrics.h", "core/browser/translate_client.h", "core/browser/translate_download_manager.cc", "core/browser/translate_download_manager.h", "core/browser/translate_driver.h", "core/browser/translate_error_details.h", "core/browser/translate_event_details.cc", "core/browser/translate_event_details.h", "core/browser/translate_language_list.cc", "core/browser/translate_language_list.h", "core/browser/translate_prefs.cc", "core/browser/translate_prefs.h", "core/browser/translate_script.cc", "core/browser/translate_script.h", "core/browser/translate_url_fetcher.cc", "core/browser/translate_url_fetcher.h", "core/browser/translate_url_util.cc", "core/browser/translate_url_util.h", ] deps = [ ":translate_core_common", "//base", "//components/language_usage_metrics", "//components/resources:components_resources", "//url", ] if (!is_android) { # TODO(brettw) move thise above. This project uses net headers. This is # excluded for Android since net doesn't work in the GN build at the time # of this writing. deps += [ "//net", "//ui/base", ] } } static_library("translate_core_common") { sources = [ "core/common/language_detection_details.cc", "core/common/language_detection_details.h", "core/common/translate_constants.cc", "core/common/translate_constants.h", "core/common/translate_errors.h", "core/common/translate_metrics.cc", "core/common/translate_metrics.h", "core/common/translate_pref_names.cc", "core/common/translate_pref_names.h", "core/common/translate_switches.cc", "core/common/translate_switches.h", "core/common/translate_util.cc", "core/common/translate_util.h", ] deps = [ "//base", "//url", ] }