blob: ec224af50ab079b5c1b6cd9b9d5e5db5bc49f415 [file] [log] [blame]
Tony Makaccfe972019-01-16 15:53:38 +00001// 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
16cc_library_static {
17 name: "liblua",
Tony Mak0c69dfe2019-06-14 12:20:12 +010018 sdk_version: "current",
Tony Makaccfe972019-01-16 15:53:38 +000019 cflags: [
20 "-Werror",
21 "-Wall",
22 "-Wno-deprecated-declarations",
Yi Kong411f59e2019-03-18 22:11:41 -070023 "-Wno-string-plus-int",
Tony Makaccfe972019-01-16 15:53:38 +000024 "-O2",
25 "-DLUA_USE_LINUX",
26 "-DLUA_COMPAT_5_2",
27 ],
28 export_include_dirs: ["src"],
29 srcs: [
30 ":liblua-sources"
31 ],
Jiyong Park149d8112020-04-28 17:10:37 +090032
33 apex_available: [
34 "//apex_available:platform",
35 "com.android.extservices",
36 ],
Tony Makaccfe972019-01-16 15:53:38 +000037}
38
39filegroup {
40 name: "liblua-sources",
41 srcs: [
Colin Cross9cca8dd2019-05-22 11:13:55 -070042 "src/**/*.c",
Tony Makaccfe972019-01-16 15:53:38 +000043 ],
44 exclude_srcs: [
45 // Exclude the interpreter
46 "src/lua.c",
47 ],
48}