Tony Mak | accfe97 | 2019-01-16 15:53:38 +0000 | [diff] [blame] | 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", |
Tony Mak | 0c69dfe | 2019-06-14 12:20:12 +0100 | [diff] [blame] | 18 | sdk_version: "current", |
Tony Mak | accfe97 | 2019-01-16 15:53:38 +0000 | [diff] [blame] | 19 | cflags: [ |
| 20 | "-Werror", |
| 21 | "-Wall", |
| 22 | "-Wno-deprecated-declarations", |
Yi Kong | 411f59e | 2019-03-18 22:11:41 -0700 | [diff] [blame] | 23 | "-Wno-string-plus-int", |
Tony Mak | accfe97 | 2019-01-16 15:53:38 +0000 | [diff] [blame] | 24 | "-O2", |
| 25 | "-DLUA_USE_LINUX", |
| 26 | "-DLUA_COMPAT_5_2", |
| 27 | ], |
| 28 | export_include_dirs: ["src"], |
| 29 | srcs: [ |
| 30 | ":liblua-sources" |
| 31 | ], |
Jiyong Park | 149d811 | 2020-04-28 17:10:37 +0900 | [diff] [blame] | 32 | |
| 33 | apex_available: [ |
| 34 | "//apex_available:platform", |
| 35 | "com.android.extservices", |
| 36 | ], |
Tony Mak | accfe97 | 2019-01-16 15:53:38 +0000 | [diff] [blame] | 37 | } |
| 38 | |
| 39 | filegroup { |
| 40 | name: "liblua-sources", |
| 41 | srcs: [ |
Colin Cross | 9cca8dd | 2019-05-22 11:13:55 -0700 | [diff] [blame] | 42 | "src/**/*.c", |
Tony Mak | accfe97 | 2019-01-16 15:53:38 +0000 | [diff] [blame] | 43 | ], |
| 44 | exclude_srcs: [ |
| 45 | // Exclude the interpreter |
| 46 | "src/lua.c", |
| 47 | ], |
| 48 | } |