123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272 |
- cc_defaults {
- name: "vold_default_flags",
- cflags: [
- "-Wall",
- "-Werror",
- "-Wextra",
- "-Wno-missing-field-initializers",
- "-Wno-unused-parameter",
- "-Wno-unused-variable",
- ],
- clang: true,
- tidy: true,
- tidy_checks: [
- "-*",
- "cert-*",
- "clang-analyzer-security*",
- "android-*",
- ],
- tidy_flags: [
- "-warnings-as-errors=clang-analyzer-security*,cert-*",
- ],
- }
- cc_defaults {
- name: "vold_default_libs",
- static_libs: [
- "libavb",
- "libbootloader_message",
- "libfec",
- "libfec_rs",
- "libfs_avb",
- "libfs_mgr",
- "libscrypt_static",
- "libsquashfs_utils",
- "libvold_binder",
- ],
- shared_libs: [
- "[email protected]",
- "[email protected]",
- "[email protected]",
- "libbase",
- "libbinder",
- "libcrypto",
- "libcrypto_utils",
- "libcutils",
- "libdiskconfig",
- "libext4_utils",
- "libf2fs_sparseblock",
- "libfscrypt",
- "libhardware",
- "libhardware_legacy",
- "libhidlbase",
- "libhwbinder",
- "libkeymaster4support",
- "libkeyutils",
- "liblog",
- "liblogwrap",
- "libselinux",
- "libsysutils",
- "libutils",
- ],
- }
- cc_library_static {
- name: "libvold_binder",
- defaults: ["vold_default_flags"],
- srcs: [
- ":vold_aidl",
- ],
- shared_libs: [
- "libbinder",
- "libutils",
- ],
- aidl: {
- local_include_dirs: ["binder"],
- include_dirs: ["frameworks/native/aidl/binder"],
- export_aidl_headers: true,
- },
- }
- cc_library_headers {
- name: "libvold_headers",
- export_include_dirs: ["."],
- }
- // Static library factored out to support testing
- cc_library_static {
- name: "libvold",
- defaults: [
- "vold_default_flags",
- "vold_default_libs",
- ],
- srcs: [
- "AppFuseUtil.cpp",
- "Benchmark.cpp",
- "CheckEncryption.cpp",
- "Checkpoint.cpp",
- "Devmapper.cpp",
- "EncryptInplace.cpp",
- "FileDeviceUtils.cpp",
- "FsCrypt.cpp",
- "IdleMaint.cpp",
- "KeyBuffer.cpp",
- "KeyStorage.cpp",
- "KeyUtil.cpp",
- "Keymaster.cpp",
- "Loop.cpp",
- "MetadataCrypt.cpp",
- "MoveStorage.cpp",
- "NetlinkHandler.cpp",
- "NetlinkManager.cpp",
- "Process.cpp",
- "ScryptParameters.cpp",
- "Utils.cpp",
- "VoldNativeService.cpp",
- "VoldUtil.cpp",
- "VolumeManager.cpp",
- "cryptfs.cpp",
- "fs/Exfat.cpp",
- "fs/Ext4.cpp",
- "fs/F2fs.cpp",
- "fs/Vfat.cpp",
- "model/Disk.cpp",
- "model/EmulatedVolume.cpp",
- "model/ObbVolume.cpp",
- "model/PrivateVolume.cpp",
- "model/PublicVolume.cpp",
- "model/VolumeBase.cpp",
- "model/StubVolume.cpp",
- ],
- product_variables: {
- arc: {
- exclude_srcs: [
- "AppFuseUtil.cpp",
- "model/ObbVolume.cpp",
- ],
- static_libs: [
- "arc_services_aidl",
- "libarcappfuse",
- "libarcobbvolume",
- ],
- },
- debuggable: {
- cppflags: ["-D__ANDROID_DEBUGGABLE__"],
- },
- },
- shared_libs: [
- "[email protected]",
- ],
- whole_static_libs: [
- "com.android.sysprop.apex",
- ],
- }
- cc_binary {
- name: "vold",
- defaults: [
- "vold_default_flags",
- "vold_default_libs",
- ],
- srcs: ["main.cpp"],
- static_libs: ["libvold"],
- product_variables: {
- arc: {
- static_libs: [
- "arc_services_aidl",
- "libarcappfuse",
- "libarcobbvolume",
- ],
- },
- },
- init_rc: [
- "vold.rc",
- "wait_for_keymaster.rc",
- ],
- required: [
- "mke2fs",
- "vold_prepare_subdirs",
- "wait_for_keymaster",
- ],
- shared_libs: [
- "[email protected]",
- "libhidltransport",
- ],
- }
- cc_binary {
- name: "vdc",
- defaults: ["vold_default_flags"],
- srcs: ["vdc.cpp"],
- shared_libs: [
- "libbase",
- "libbinder",
- "libcutils",
- "libutils",
- ],
- static_libs: [
- "libvold_binder",
- ],
- init_rc: ["vdc.rc"],
- }
- cc_binary {
- name: "wait_for_keymaster",
- defaults: ["vold_default_flags"],
- srcs: [
- "wait_for_keymaster.cpp",
- "Keymaster.cpp",
- ],
- shared_libs: [
- "libbase",
- "libbinder",
- "[email protected]",
- "[email protected]",
- "libhardware",
- "libhardware_legacy",
- "libhidlbase",
- "libhwbinder",
- "libkeymaster4support",
- ],
- }
- cc_binary {
- name: "secdiscard",
- defaults: ["vold_default_flags"],
- srcs: [
- "FileDeviceUtils.cpp",
- "secdiscard.cpp",
- ],
- shared_libs: ["libbase"],
- }
- cc_binary {
- name: "vold_prepare_subdirs",
- defaults: ["vold_default_flags"],
- srcs: ["vold_prepare_subdirs.cpp", "Utils.cpp"],
- shared_libs: [
- "libbase",
- "libcutils",
- "liblogwrap",
- "libselinux",
- "libutils",
- ],
- static_libs: [
- "libvold_binder",
- ],
- }
- filegroup {
- name: "vold_aidl",
- srcs: [
- "binder/android/os/IVold.aidl",
- "binder/android/os/IVoldListener.aidl",
- "binder/android/os/IVoldTaskListener.aidl",
- ],
- }
- subdirs = ["tests"]
|