910e62b5创建于 1月15日历史提交
# Copyright 2019 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")
import("//third_party/jni_zero/jni_zero.gni")

android_library("java") {
  deps = [
    "//base:base_java",
    "//chrome/android/features/dev_ui/public:java",
    "//components/module_installer/android:module_installer_java",
    "//third_party/jni_zero:jni_zero_java",
  ]

  srcjar_deps = [ ":jni_headers" ]
  sources =
      [ "java/src/org/chromium/chrome/modules/dev_ui/DevUiModuleProvider.java" ]
}

generate_jni("jni_headers") {
  sources =
      [ "java/src/org/chromium/chrome/modules/dev_ui/DevUiModuleProvider.java" ]
}

source_set("native") {
  deps = [
    ":jni_headers",
    "//base",
  ]
  sources = [
    "dev_ui_module_provider.cc",
    "dev_ui_module_provider.h",
  ]

  # TODO(crbug.com/40031409): Fix code that adds exit-time destructors and
  # enable the diagnostic by removing this line.
  configs += [ "//build/config/compiler:no_exit_time_destructors" ]
}