Home | History | Annotate | Download | only in android
      1 import("//build/config/android/rules.gni")
      2 
      3 assert(is_android)
      4 
      5 java_cpp_enum("java_enums_srcjar") {
      6   sources = [
      7     "../base/window_open_disposition.h",
      8     "../gfx/android/java_bitmap.h",
      9   ]
     10   outputs = [
     11     "org/chromium/ui/WindowOpenDisposition.java",
     12     "org/chromium/ui/gfx/BitmapFormat.java",
     13   ]
     14 }
     15 
     16 java_cpp_template("page_transition_types_srcjar") {
     17   package_name = "org/chromium/ui/base"
     18   sources = [
     19     "java/PageTransitionTypes.template",
     20   ]
     21   inputs = [
     22     "../base/page_transition_types_list.h",
     23   ]
     24 }
     25 
     26 java_strings_grd("ui_strings_grd") {
     27   grd_file = "java/strings/android_ui_strings.grd"
     28   outputs = [
     29     "values-am/android_ui_strings.xml",
     30     "values-ar/android_ui_strings.xml",
     31     "values-bg/android_ui_strings.xml",
     32     "values-ca/android_ui_strings.xml",
     33     "values-cs/android_ui_strings.xml",
     34     "values-da/android_ui_strings.xml",
     35     "values-de/android_ui_strings.xml",
     36     "values-el/android_ui_strings.xml",
     37     "values/android_ui_strings.xml",
     38     "values-en-rGB/android_ui_strings.xml",
     39     "values-es/android_ui_strings.xml",
     40     "values-es-rUS/android_ui_strings.xml",
     41     "values-fa/android_ui_strings.xml",
     42     "values-fi/android_ui_strings.xml",
     43     "values-tl/android_ui_strings.xml",
     44     "values-fr/android_ui_strings.xml",
     45     "values-hi/android_ui_strings.xml",
     46     "values-hr/android_ui_strings.xml",
     47     "values-hu/android_ui_strings.xml",
     48     "values-in/android_ui_strings.xml",
     49     "values-it/android_ui_strings.xml",
     50     "values-iw/android_ui_strings.xml",
     51     "values-ja/android_ui_strings.xml",
     52     "values-ko/android_ui_strings.xml",
     53     "values-lt/android_ui_strings.xml",
     54     "values-lv/android_ui_strings.xml",
     55     "values-nl/android_ui_strings.xml",
     56     "values-nb/android_ui_strings.xml",
     57     "values-pl/android_ui_strings.xml",
     58     "values-pt-rBR/android_ui_strings.xml",
     59     "values-pt-rPT/android_ui_strings.xml",
     60     "values-ro/android_ui_strings.xml",
     61     "values-ru/android_ui_strings.xml",
     62     "values-sk/android_ui_strings.xml",
     63     "values-sl/android_ui_strings.xml",
     64     "values-sr/android_ui_strings.xml",
     65     "values-sv/android_ui_strings.xml",
     66     "values-sw/android_ui_strings.xml",
     67     "values-th/android_ui_strings.xml",
     68     "values-tr/android_ui_strings.xml",
     69     "values-uk/android_ui_strings.xml",
     70     "values-vi/android_ui_strings.xml",
     71     "values-zh-rCN/android_ui_strings.xml",
     72     "values-zh-rTW/android_ui_strings.xml",
     73   ]
     74 }
     75 
     76 android_resources("ui_java_resources") {
     77   custom_package = "org.chromium.ui"
     78   resource_dirs = [
     79     "java/res"
     80   ]
     81   deps = [
     82     ":ui_strings_grd",
     83   ]
     84 }
     85 
     86 android_library("ui_java") {
     87   DEPRECATED_java_in_dir = "java/src"
     88   deps = [
     89     ":ui_java_resources",
     90     "//base:base_java",
     91   ]
     92   srcjar_deps = [
     93     ":java_enums_srcjar",
     94     ":page_transition_types_srcjar",
     95   ]
     96 }
     97