You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
1.7 KiB

// Copyright 2016 The Android Open Source Project
package {
default_applicable_licenses: ["hardware_google_apf_license"],
}
// Added automatically by a large-scale-change
// See: http://go/android-license-faq
license {
name: "hardware_google_apf_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
],
license_text: [
"LICENSE",
],
}
cc_defaults {
name: "apf_defaults",
cflags: [
"-DAPF_FRAME_HEADER_SIZE=14",
"-Wall",
"-Werror",
"-Werror=implicit-fallthrough",
"-Wnullable-to-nonnull-conversion",
"-Wsign-compare",
"-Wthread-safety",
"-Wunused-parameter",
"-Wuninitialized",
],
}
cc_library_static {
name: "libapf",
defaults: ["apf_defaults"],
srcs: ["apf_interpreter.c"],
sdk_version: "24",
}
cc_binary_host {
name: "apf_disassembler",
defaults: ["apf_defaults"],
srcs: [
"apf_disassembler.c",
"disassembler.c",
],
}
cc_binary_host {
name: "apf_run",
defaults: ["apf_defaults"],
static_libs: [
"libpcap",
],
srcs: [
"apf_run.c",
"apf_interpreter.c",
"disassembler.c",
],
cflags: [
"-DAPF_TRACE_HOOK=apf_trace_hook",
],
target: {
darwin: {
enabled: false,
},
},
}
sh_test_host {
name: "apf_run_test",
src: "apf_run_test.sh",
filename: "apf_run_test.sh",
test_suites: ["general-tests"],
test_config: "apf_run_test.xml",
data: ["testdata/*"],
data_bins: ["apf_run"],
target: {
darwin: {
enabled: false,
},
windows: {
enabled: false,
},
},
}