1 // 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 15 cc_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 28 srcs: [ 29 "linux/seccomp_bpf.c", 30 "seccomp_bpf_tests.c", 31 ], 32 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", 42 "-Wno-unused-function", 43 // 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 } 51