Merge "libsnapshot: Introduce a dynamically linked version of libsnapshot." into main
This commit is contained in:
commit
c99cd86610
2 changed files with 25 additions and 5 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include <sys/vfs.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
|
|
@ -518,7 +519,8 @@ class FsTest : public ::testing::Test {
|
|||
ASSERT_EQ(ret, 0);
|
||||
|
||||
// mount the file system
|
||||
ASSERT_EQ(mount(loop_dev.device().c_str(), mntpoint_.c_str(), "f2fs", 0, nullptr), 0);
|
||||
ASSERT_EQ(mount(loop_dev.device().c_str(), mntpoint_.c_str(), "f2fs", 0, nullptr), 0)
|
||||
<< strerror(errno);
|
||||
}
|
||||
|
||||
void TearDown() override {
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ cc_library_headers {
|
|||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libsnapshot",
|
||||
name: "libsnapshot_static",
|
||||
defaults: [
|
||||
"libsnapshot_defaults",
|
||||
"libsnapshot_hal_deps",
|
||||
|
|
@ -112,6 +112,25 @@ cc_library_static {
|
|||
],
|
||||
}
|
||||
|
||||
cc_library {
|
||||
name: "libsnapshot",
|
||||
defaults: [
|
||||
"libsnapshot_defaults",
|
||||
"libsnapshot_cow_defaults",
|
||||
"libsnapshot_hal_deps",
|
||||
],
|
||||
srcs: [":libsnapshot_sources"],
|
||||
shared_libs: [
|
||||
"libfs_mgr_binder",
|
||||
"liblp",
|
||||
"libprotobuf-cpp-lite",
|
||||
],
|
||||
static_libs: [
|
||||
"libc++fs",
|
||||
"libsnapshot_cow",
|
||||
]
|
||||
}
|
||||
|
||||
cc_library_static {
|
||||
name: "libsnapshot_init",
|
||||
native_coverage : true,
|
||||
|
|
@ -247,7 +266,7 @@ cc_defaults {
|
|||
"libgsi",
|
||||
"libgmock",
|
||||
"liblp",
|
||||
"libsnapshot",
|
||||
"libsnapshot_static",
|
||||
"libsnapshot_cow",
|
||||
"libsnapshot_test_helpers",
|
||||
"libsparse",
|
||||
|
|
@ -330,8 +349,6 @@ cc_binary {
|
|||
"libbrotli",
|
||||
"libc++fs",
|
||||
"libfstab",
|
||||
"libsnapshot",
|
||||
"libsnapshot_cow",
|
||||
"libz",
|
||||
"update_metadata-protos",
|
||||
],
|
||||
|
|
@ -344,6 +361,7 @@ cc_binary {
|
|||
"liblog",
|
||||
"liblp",
|
||||
"libprotobuf-cpp-lite",
|
||||
"libsnapshot",
|
||||
"libstatslog",
|
||||
"libutils",
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue