summaryrefslogtreecommitdiffstats
path: root/components/dom_distiller/android/BUILD.gn
blob: 2cc4dc7913fe451281ab213c4168eb4859a11a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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.

import("//build/config/android/rules.gni")

android_library("dom_distiller_core_java") {
  deps = [
    "//base:base_java",
  ]
  java_files = [
    "java/src/org/chromium/components/dom_distiller/core/DomDistillerService.java",
    "java/src/org/chromium/components/dom_distiller/core/DomDistillerUrlUtils.java",
    "java/src/org/chromium/components/dom_distiller/core/DistilledPagePrefs.java",
  ]

  srcjar_deps = [
    ":dom_distiller_core_font_family_javagen",
    ":dom_distiller_core_theme_javagen",
  ]
}

# GYP: //components/dom_distiller.gypi:dom_distiller_java
android_library("dom_distiller_content_java") {
  deps = [
    ":dom_distiller_core_java",
    "//content/public/android:content_java",
  ]
  java_files = [ "java/src/org/chromium/components/dom_distiller/content/DistillablePageUtils.java" ]
}

# GYP: //components/dom_distiller.gypi:dom_distiller_core_font_family_java
java_cpp_template("dom_distiller_core_font_family_javagen") {
  package_name = "org/chromium/components/dom_distiller/core"
  sources = [
    "java/src/org/chromium/components/dom_distiller/core/FontFamily.template",
  ]
  inputs = [
    "../core/font_family_list.h",
  ]
}

# GYP: //components/dom_distiller.gypi:dom_distiller_core_font_family_java
java_cpp_template("dom_distiller_core_theme_javagen") {
  package_name = "org/chromium/components/dom_distiller/core"
  sources = [
    "java/src/org/chromium/components/dom_distiller/core/Theme.template",
  ]
  inputs = [
    "../core/theme_list.h",
  ]
}