1 // Copyright (C) 2019 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 16 cc_library_static { 17 name: "liblua", 18 cflags: [ 19 "-Werror", 20 "-Wall", 21 "-Wno-deprecated-declarations", 22 "-Wno-string-plus-int", 23 "-O2", 24 "-DLUA_USE_LINUX", 25 "-DLUA_COMPAT_5_2", 26 ], 27 export_include_dirs: ["src"], 28 srcs: [ 29 ":liblua-sources" 30 ], 31 } 32 33 filegroup { 34 name: "liblua-sources", 35 srcs: [ 36 "src/**/*.c", 37 ], 38 exclude_srcs: [ 39 // Exclude the interpreter 40 "src/lua.c", 41 ], 42 } 43