Android.bp 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. //
  2. // Copyright (C) 2018 The Android Open Source Project
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License");
  5. // you may not use this file except in compliance with the License.
  6. // You may obtain a copy of the License at
  7. //
  8. // http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. // Unless required by applicable law or agreed to in writing, software
  11. // distributed under the License is distributed on an "AS IS" BASIS,
  12. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. // See the License for the specific language governing permissions and
  14. // limitations under the License.
  15. //
  16. cc_library_static {
  17. name: "libfiemap_writer",
  18. defaults: ["fs_mgr_defaults"],
  19. recovery_available: true,
  20. export_include_dirs: ["include"],
  21. cflags: [
  22. "-D_FILE_OFFSET_BITS=64",
  23. ],
  24. srcs: [
  25. "fiemap_writer.cpp",
  26. "split_fiemap_writer.cpp",
  27. "utility.cpp",
  28. ],
  29. static_libs: [
  30. "libext4_utils",
  31. ],
  32. header_libs: [
  33. "libbase_headers",
  34. "liblog_headers",
  35. ],
  36. }
  37. cc_test {
  38. name: "fiemap_writer_test",
  39. cflags: [
  40. "-D_FILE_OFFSET_BITS=64",
  41. ],
  42. static_libs: [
  43. "libbase",
  44. "libdm",
  45. "libfiemap_writer",
  46. "liblog",
  47. ],
  48. data: [
  49. "testdata/unaligned_file",
  50. "testdata/file_4k",
  51. "testdata/file_32k",
  52. ],
  53. srcs: [
  54. "fiemap_writer_test.cpp",
  55. ],
  56. }