Miao Wang | a69e27d | 2017-12-07 14:14:14 -0800 | [diff] [blame] | 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 | |
| 15 | cc_library_headers { |
| 16 | name: "flatbuffer_headers", |
| 17 | export_include_dirs: ["include"], |
I-Jui (Ray) Sung | e72bb4d | 2018-02-21 14:38:42 -0800 | [diff] [blame] | 18 | vendor_available: true, |
| 19 | } |
khmel@google.com | 9deea58 | 2018-06-01 16:38:52 -0700 | [diff] [blame] | 20 | |
| 21 | cc_binary_host { |
| 22 | name: "flatc", |
| 23 | |
| 24 | cppflags: [ |
| 25 | "-fsigned-char", |
| 26 | "-pedantic", |
| 27 | "-Wall", |
| 28 | "-Werror", |
| 29 | "-Wextra", |
| 30 | "-Werror=shadow", |
Chih-Hung Hsieh | 731809b | 2018-10-20 14:16:56 -0700 | [diff] [blame] | 31 | "-Wno-implicit-fallthrough", // in idl_gen_general.cpp and reflection.cpp |
khmel@google.com | 9deea58 | 2018-06-01 16:38:52 -0700 | [diff] [blame] | 32 | ], |
| 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 Wang | 19e09e9 | 2019-01-17 18:48:30 -0800 | [diff] [blame] | 44 | "src/idl_gen_dart.cpp", |
khmel@google.com | 9deea58 | 2018-06-01 16:38:52 -0700 | [diff] [blame] | 45 | "src/idl_gen_fbs.cpp", |
| 46 | "src/idl_gen_general.cpp", |
| 47 | "src/idl_gen_go.cpp", |
| 48 | "src/idl_gen_grpc.cpp", |
Miao Wang | 19e09e9 | 2019-01-17 18:48:30 -0800 | [diff] [blame] | 49 | "src/idl_gen_js_ts.cpp", |
khmel@google.com | 9deea58 | 2018-06-01 16:38:52 -0700 | [diff] [blame] | 50 | "src/idl_gen_json_schema.cpp", |
Miao Wang | 19e09e9 | 2019-01-17 18:48:30 -0800 | [diff] [blame] | 51 | "src/idl_gen_lua.cpp", |
| 52 | "src/idl_gen_lobster.cpp", |
khmel@google.com | 9deea58 | 2018-06-01 16:38:52 -0700 | [diff] [blame] | 53 | "src/idl_gen_php.cpp", |
| 54 | "src/idl_gen_python.cpp", |
Miao Wang | 19e09e9 | 2019-01-17 18:48:30 -0800 | [diff] [blame] | 55 | "src/idl_gen_rust.cpp", |
khmel@google.com | 9deea58 | 2018-06-01 16:38:52 -0700 | [diff] [blame] | 56 | "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 Wang | 19e09e9 | 2019-01-17 18:48:30 -0800 | [diff] [blame] | 62 | "grpc/src/compiler/java_generator.cc", |
khmel@google.com | 9deea58 | 2018-06-01 16:38:52 -0700 | [diff] [blame] | 63 | ], |
| 64 | } |
Colin Cross | c41f060 | 2019-03-22 13:31:17 -0700 | [diff] [blame] | 65 | |
| 66 | java_library { |
| 67 | name: "flatbuffers-java", |
| 68 | srcs: ["java/**/*.java"], |
| 69 | sdk_version: "current", |
| 70 | |
| 71 | java_version: "1.8", |
| 72 | } |