blob: ca938d1c0838f29789458039d867839d1ba9fb44 [file] [log] [blame]
Miao Wanga69e27d2017-12-07 14:14:14 -08001// 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"],
I-Jui (Ray) Sunge72bb4d2018-02-21 14:38:42 -080018 vendor_available: true,
19}
khmel@google.com9deea582018-06-01 16:38:52 -070020
21cc_binary_host {
22 name: "flatc",
23
24 cppflags: [
25 "-fsigned-char",
26 "-pedantic",
27 "-Wall",
28 "-Werror",
29 "-Wextra",
30 "-Werror=shadow",
Chih-Hung Hsieh731809b2018-10-20 14:16:56 -070031 "-Wno-implicit-fallthrough", // in idl_gen_general.cpp and reflection.cpp
khmel@google.com9deea582018-06-01 16:38:52 -070032 ],
33
34 local_include_dirs: [
35 "grpc",
36 "include",
37 ],
38
39 srcs: [
40 "src/code_generators.cpp",
41 "src/flatc.cpp",
42 "src/flatc_main.cpp",
43 "src/idl_gen_cpp.cpp",
Miao Wang19e09e92019-01-17 18:48:30 -080044 "src/idl_gen_dart.cpp",
khmel@google.com9deea582018-06-01 16:38:52 -070045 "src/idl_gen_fbs.cpp",
46 "src/idl_gen_general.cpp",
47 "src/idl_gen_go.cpp",
48 "src/idl_gen_grpc.cpp",
Miao Wang19e09e92019-01-17 18:48:30 -080049 "src/idl_gen_js_ts.cpp",
khmel@google.com9deea582018-06-01 16:38:52 -070050 "src/idl_gen_json_schema.cpp",
Miao Wang19e09e92019-01-17 18:48:30 -080051 "src/idl_gen_lua.cpp",
52 "src/idl_gen_lobster.cpp",
khmel@google.com9deea582018-06-01 16:38:52 -070053 "src/idl_gen_php.cpp",
54 "src/idl_gen_python.cpp",
Miao Wang19e09e92019-01-17 18:48:30 -080055 "src/idl_gen_rust.cpp",
khmel@google.com9deea582018-06-01 16:38:52 -070056 "src/idl_gen_text.cpp",
57 "src/idl_parser.cpp",
58 "src/reflection.cpp",
59 "src/util.cpp",
60 "grpc/src/compiler/cpp_generator.cc",
61 "grpc/src/compiler/go_generator.cc",
Miao Wang19e09e92019-01-17 18:48:30 -080062 "grpc/src/compiler/java_generator.cc",
khmel@google.com9deea582018-06-01 16:38:52 -070063 ],
64}
Colin Crossc41f0602019-03-22 13:31:17 -070065
66java_library {
67 name: "flatbuffers-java",
68 srcs: ["java/**/*.java"],
69 sdk_version: "current",
70
71 java_version: "1.8",
72}