blob: 8d06c40869933f79b66d8aefea3c5b313534e1de [file] [log] [blame]
Dan Willemsen6b6e0ba2018-11-19 17:45:32 -08001// Copyright (C) 2016 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_static {
16 name: "external_seccomp_tests",
17
18 // mips and mips64 don't support Seccomp.
19 arch: {
20 mips: {
21 enabled: false,
22 },
23 mips64: {
24 enabled: false,
25 },
26 },
27
Robert Sesek8f82d0c2019-02-12 11:22:57 -050028 srcs: [
29 "linux/seccomp_bpf.c",
30 "seccomp_bpf_tests.c",
31 ],
Dan Willemsen6b6e0ba2018-11-19 17:45:32 -080032
33 cflags: [
34 "-Wall",
35 "-Werror",
36 "-Wno-gnu-designator",
37 "-Wno-unused-parameter",
38 "-Wno-literal-conversion",
39 "-Wno-incompatible-pointer-types-discards-qualifiers",
40 "-Wno-sign-compare",
41 "-Wno-empty-body",
Robert Sesek8f82d0c2019-02-12 11:22:57 -050042 "-Wno-unused-function",
Dan Willemsen6b6e0ba2018-11-19 17:45:32 -080043 // TODO(rsesek): Remove after syncing in upstream.
44 "-D__ARCH_WANT_SYSCALL_DEPRECATED",
45 ],
46
47 shared_libs: ["liblog"],
48
49 export_include_dirs: ["."],
50}