Home | History | Annotate | Download | only in renderer
      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 import("//build/config/features.gni")
      6 
      7 static_library("renderer") {
      8   sources = [
      9     "renderer_cld_data_provider.h",
     10     "translate_helper.cc",
     11     "translate_helper.h",
     12   ]
     13 
     14   deps = [
     15     "//base",
     16     "//components/translate/content/common",
     17     "//components/translate/core/common",
     18     "//components/translate/core/language_detection",
     19     "//content/public/common",
     20     "//content/public/renderer",
     21     "//ipc",
     22     "//third_party/WebKit/public:blink",
     23     "//url",
     24     "//v8",
     25   ]
     26 
     27   if (cld_version == 0 || cld_version == 2) {
     28     deps += [ "//third_party/cld_2" ]
     29   }
     30 
     31   if (cld2_data_source == "standalone" || cld2_data_source == "component") {
     32     sources += [
     33       "data_file_renderer_cld_data_provider.cc",
     34       "data_file_renderer_cld_data_provider.h",
     35     ]
     36   } else if (cld2_data_source == "static") {
     37     sources += [
     38       "static_renderer_cld_data_provider.cc",
     39       "static_renderer_cld_data_provider.h",
     40     ]
     41   }
     42 }
     43