chromium/chrome/android/webapk/libs/common/BUILD.gn

# Copyright 2016 The Chromium Authors
# 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("common_java") {
  sources = [
    "src/org/chromium/webapk/lib/common/WebApkCommonUtils.java",
    "src/org/chromium/webapk/lib/common/WebApkConstants.java",
    "src/org/chromium/webapk/lib/common/WebApkMetaDataUtils.java",
  ]
  deps = [ "//components/webapk/android/libs/common:java" ]
  srcjar_deps = [ "//chrome/android/webapk/libs/common:identity_service_aidl" ]
}

android_library("splash_java") {
  sources = [ "src/org/chromium/webapk/lib/common/splash/SplashLayout.java" ]
  deps = [ ":splash_resources" ]
  resources_package = "org.chromium.webapk.lib.common.splash"
}

android_resources("splash_resources") {
  sources = [
    "res_splash/layout/webapp_splash_screen_large.xml",
    "res_splash/layout/webapp_splash_screen_no_icon.xml",
    "res_splash/values-v17/common_styles.xml",
    "res_splash/values/common_colors.xml",
  ]

  deps = [ "//components/webapk/android/libs/common:splash_resources" ]
}

android_aidl("identity_service_aidl") {
  import_include = [ "src/org/chromium/webapk/lib/common/identity_service" ]
  interface_file =
      "src/org/chromium/webapk/lib/common/identity_service/common.aidl"
  sources = [
    "src/org/chromium/webapk/lib/common/identity_service/IIdentityService.aidl",
  ]
}