• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2017 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15cc_library_headers {
16    name: "flatbuffer_headers",
17    export_include_dirs: ["include"],
18    vendor_available: true,
19    sdk_version: "current",
20    apex_available: [
21        "com.android.neuralnetworks",
22        "test_com.android.neuralnetworks",
23        "com.android.extservices",
24        "//apex_available:platform",
25    ],
26}
27
28cc_binary_host {
29    name: "flatc",
30
31    cppflags: [
32        "-fsigned-char",
33        "-pedantic",
34        "-Wall",
35        "-Werror",
36        "-Wextra",
37        "-Werror=shadow",
38        "-Wno-implicit-fallthrough", // in idl_gen_general.cpp and reflection.cpp
39    ],
40
41    local_include_dirs: [
42        "grpc",
43        "include",
44    ],
45
46    srcs: [
47        "src/code_generators.cpp",
48        "src/flatc.cpp",
49        "src/flatc_main.cpp",
50        "src/idl_gen_cpp.cpp",
51        "src/idl_gen_dart.cpp",
52        "src/idl_gen_fbs.cpp",
53        "src/idl_gen_general.cpp",
54        "src/idl_gen_go.cpp",
55        "src/idl_gen_grpc.cpp",
56        "src/idl_gen_js_ts.cpp",
57        "src/idl_gen_json_schema.cpp",
58        "src/idl_gen_lua.cpp",
59        "src/idl_gen_lobster.cpp",
60        "src/idl_gen_php.cpp",
61        "src/idl_gen_python.cpp",
62        "src/idl_gen_rust.cpp",
63        "src/idl_gen_text.cpp",
64        "src/idl_parser.cpp",
65        "src/reflection.cpp",
66        "src/util.cpp",
67        "grpc/src/compiler/cpp_generator.cc",
68        "grpc/src/compiler/go_generator.cc",
69        "grpc/src/compiler/java_generator.cc",
70    ],
71}
72
73java_library {
74    name: "flatbuffers-java",
75    srcs: ["java/**/*.java"],
76    sdk_version: "current",
77
78    java_version: "1.8",
79}
80