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. 4 5 static_library("translate_core_browser") { 6 sources = [ 7 "core/browser/language_state.cc", 8 "core/browser/language_state.h", 9 "core/browser/page_translated_details.h", 10 "core/browser/translate_accept_languages.cc", 11 "core/browser/translate_accept_languages.h", 12 "core/browser/translate_browser_metrics.cc", 13 "core/browser/translate_browser_metrics.h", 14 "core/browser/translate_client.h", 15 "core/browser/translate_download_manager.cc", 16 "core/browser/translate_download_manager.h", 17 "core/browser/translate_driver.h", 18 "core/browser/translate_error_details.h", 19 "core/browser/translate_event_details.cc", 20 "core/browser/translate_event_details.h", 21 "core/browser/translate_language_list.cc", 22 "core/browser/translate_language_list.h", 23 "core/browser/translate_prefs.cc", 24 "core/browser/translate_prefs.h", 25 "core/browser/translate_script.cc", 26 "core/browser/translate_script.h", 27 "core/browser/translate_url_fetcher.cc", 28 "core/browser/translate_url_fetcher.h", 29 "core/browser/translate_url_util.cc", 30 "core/browser/translate_url_util.h", 31 ] 32 33 deps = [ 34 ":translate_core_common", 35 "//base", 36 "//components/language_usage_metrics", 37 "//components/resources:components_resources", 38 "//url", 39 ] 40 if (!is_android) { 41 # TODO(brettw) move thise above. This project uses net headers. This is 42 # excluded for Android since net doesn't work in the GN build at the time 43 # of this writing. 44 deps += [ 45 "//net", 46 "//ui/base", 47 ] 48 } 49 } 50 51 static_library("translate_core_common") { 52 sources = [ 53 "core/common/language_detection_details.cc", 54 "core/common/language_detection_details.h", 55 "core/common/translate_constants.cc", 56 "core/common/translate_constants.h", 57 "core/common/translate_errors.h", 58 "core/common/translate_metrics.cc", 59 "core/common/translate_metrics.h", 60 "core/common/translate_pref_names.cc", 61 "core/common/translate_pref_names.h", 62 "core/common/translate_switches.cc", 63 "core/common/translate_switches.h", 64 "core/common/translate_util.cc", 65 "core/common/translate_util.h", 66 ] 67 68 deps = [ 69 "//base", 70 "//url", 71 ] 72 } 73