blob: 97238d7ac36e18e352c160d59c642abbbf7e47e8 [file] [log] [blame]
// Copyright (C) 2018 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
cc_defaults {
name: "nogrod_defaults",
defaults: ["berberis_defaults_64"],
cpp_std: "experimental",
}
cc_library {
name: "libnogrod",
defaults: ["nogrod_defaults"],
host_supported: true,
srcs: [
"byte_input_stream.cc",
"dwarf_info.cc",
"dwarf_abbrev.cc",
"elf_reader.cc",
"leb128.cc",
],
header_libs: [
"libberberis_base_headers",
],
static_libs: [
"libberberis_base",
"libbase",
"liblog",
],
}
cc_test_host {
name: "nogrod_unit_tests",
defaults: ["nogrod_defaults"],
srcs: [
"byte_input_stream_tests.cc",
"leb128_tests.cc",
"string_offset_table_tests.cc",
],
static_libs: [
"libberberis_base",
"libnogrod",
"libbase",
"liblog",
],
test_suites: ["device-tests"],
test_options: {
unit_test: true,
},
}
cc_binary_host {
name: "dwarf_reader",
defaults: ["nogrod_defaults"],
srcs: ["main.cc"],
shared_libs: ["libnogrod"],
static_libs: [
"libberberis_base",
"libjsoncpp",
],
cflags: [
// jsoncpp uses volatile.
"-Wno-deprecated-volatile",
],
}