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
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74

mojo / public / java / BUILD.gn [blame]

# Copyright 2014 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("system_java") {
  sources = [
    "system/src/org/chromium/mojo/system/Core.java",
    "system/src/org/chromium/mojo/system/DataPipe.java",
    "system/src/org/chromium/mojo/system/Flags.java",
    "system/src/org/chromium/mojo/system/Handle.java",
    "system/src/org/chromium/mojo/system/InvalidHandle.java",
    "system/src/org/chromium/mojo/system/MessagePipeHandle.java",
    "system/src/org/chromium/mojo/system/MojoException.java",
    "system/src/org/chromium/mojo/system/MojoResult.java",
    "system/src/org/chromium/mojo/system/Pair.java",
    "system/src/org/chromium/mojo/system/ResultAnd.java",
    "system/src/org/chromium/mojo/system/RunLoop.java",
    "system/src/org/chromium/mojo/system/SharedBufferHandle.java",
    "system/src/org/chromium/mojo/system/UntypedHandle.java",
    "system/src/org/chromium/mojo/system/Watcher.java",
  ]
}

android_library("bindings_java") {
  sources = [
    "bindings/src/org/chromium/mojo/bindings/AssociatedInterfaceNotSupported.java",
    "bindings/src/org/chromium/mojo/bindings/AssociatedInterfaceRequestNotSupported.java",
    "bindings/src/org/chromium/mojo/bindings/AutoCloseableRouter.java",
    "bindings/src/org/chromium/mojo/bindings/BindingsHelper.java",
    "bindings/src/org/chromium/mojo/bindings/ConnectionErrorHandler.java",
    "bindings/src/org/chromium/mojo/bindings/Connector.java",
    "bindings/src/org/chromium/mojo/bindings/DataHeader.java",
    "bindings/src/org/chromium/mojo/bindings/Decoder.java",
    "bindings/src/org/chromium/mojo/bindings/DelegatingConnectionErrorHandler.java",
    "bindings/src/org/chromium/mojo/bindings/DeserializationException.java",
    "bindings/src/org/chromium/mojo/bindings/Encoder.java",
    "bindings/src/org/chromium/mojo/bindings/ExceptionHandler.java",
    "bindings/src/org/chromium/mojo/bindings/ExecutorFactory.java",
    "bindings/src/org/chromium/mojo/bindings/HandleOwner.java",
    "bindings/src/org/chromium/mojo/bindings/Interface.java",
    "bindings/src/org/chromium/mojo/bindings/InterfaceControlMessagesHelper.java",
    "bindings/src/org/chromium/mojo/bindings/InterfaceRequest.java",
    "bindings/src/org/chromium/mojo/bindings/Message.java",
    "bindings/src/org/chromium/mojo/bindings/MessageHeader.java",
    "bindings/src/org/chromium/mojo/bindings/MessageReceiver.java",
    "bindings/src/org/chromium/mojo/bindings/MessageReceiverWithResponder.java",
    "bindings/src/org/chromium/mojo/bindings/Router.java",
    "bindings/src/org/chromium/mojo/bindings/RouterImpl.java",
    "bindings/src/org/chromium/mojo/bindings/SerializationException.java",
    "bindings/src/org/chromium/mojo/bindings/ServiceMessage.java",
    "bindings/src/org/chromium/mojo/bindings/SideEffectFreeCloseable.java",
    "bindings/src/org/chromium/mojo/bindings/Struct.java",
    "bindings/src/org/chromium/mojo/bindings/Union.java",
  ]

  deps = [
    ":system_java",
    "//third_party/androidx:androidx_annotation_annotation_java",
  ]

  srcjar_deps = [ "../interfaces/bindings:bindings_java_sources" ]
}

android_library("base_java") {
  sources = [ "base/src/org/chromium/mojo_base/BigBufferUtil.java" ]

  deps = [
    ":system_java",
    "//mojo/public/java/system:system_impl_java",
    "//mojo/public/mojom/base:base_java",
  ]
}