blob: 746987e2f39d97d88990abfa3122eddbbb72de4b [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.
//
cc_defaults {
name: "libsnapshot_defaults",
defaults: ["fs_mgr_defaults"],
cflags: [
"-D_FILE_OFFSET_BITS=64",
"-Wall",
"-Werror",
],
shared_libs: [
"libbase",
"liblog",
],
static_libs: [
"libdm",
],
whole_static_libs: [
"libext2_uuid",
"libext4_utils",
"libfiemap",
"libfstab",
],
export_include_dirs: ["include"],
}
filegroup {
name: "libsnapshot_sources",
srcs: [
"snapshot.cpp",
],
}
cc_library_static {
name: "libsnapshot",
defaults: ["libsnapshot_defaults"],
srcs: [":libsnapshot_sources"],
static_libs: [
"libfiemap_binder",
],
}
cc_library_static {
name: "libsnapshot_nobinder",
defaults: ["libsnapshot_defaults"],
srcs: [":libsnapshot_sources"],
recovery_available: true,
}
cc_test {
name: "libsnapshot_test",
defaults: ["libsnapshot_defaults"],
srcs: [
"snapshot_test.cpp",
],
shared_libs: [
"libbinder",
"libutils",
],
static_libs: [
"libcutils",
"libcrypto",
"libfs_mgr",
"liblp",
"libsnapshot",
],
}