Home | History | Annotate | Download | only in vold
      1 LOCAL_PATH:= $(call my-dir)
      2 
      3 common_src_files := \
      4 	VolumeManager.cpp \
      5 	CommandListener.cpp \
      6 	VoldCommand.cpp \
      7 	NetlinkManager.cpp \
      8 	NetlinkHandler.cpp \
      9 	Volume.cpp \
     10 	DirectVolume.cpp \
     11 	Process.cpp \
     12 	Ext4.cpp \
     13 	Fat.cpp \
     14 	Loop.cpp \
     15 	Devmapper.cpp \
     16 	ResponseCode.cpp \
     17 	CheckBattery.cpp \
     18 	VoldUtil.c \
     19 	fstrim.c \
     20 	cryptfs.c
     21 
     22 common_c_includes := \
     23 	system/extras/ext4_utils \
     24 	system/extras/f2fs_utils \
     25 	external/openssl/include \
     26 	external/stlport/stlport \
     27 	bionic \
     28 	external/scrypt/lib/crypto \
     29 	frameworks/native/include \
     30 	system/security/keystore \
     31 	hardware/libhardware/include/hardware \
     32 	system/security/softkeymaster/include/keymaster
     33 
     34 common_shared_libraries := \
     35 	libsysutils \
     36 	libstlport \
     37 	libbinder \
     38 	libcutils \
     39 	liblog \
     40 	libdiskconfig \
     41 	libhardware_legacy \
     42 	liblogwrap \
     43 	libext4_utils \
     44 	libf2fs_sparseblock \
     45 	libcrypto \
     46 	libselinux \
     47 	libutils \
     48 	libhardware \
     49 	libsoftkeymaster
     50 
     51 common_static_libraries := \
     52 	libfs_mgr \
     53 	libscrypt_static \
     54 	libmincrypt \
     55 	libbatteryservice
     56 
     57 include $(CLEAR_VARS)
     58 
     59 LOCAL_MODULE := libvold
     60 
     61 LOCAL_SRC_FILES := $(common_src_files)
     62 
     63 LOCAL_C_INCLUDES := $(common_c_includes)
     64 
     65 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
     66 
     67 LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
     68 
     69 LOCAL_MODULE_TAGS := eng tests
     70 
     71 include $(BUILD_STATIC_LIBRARY)
     72 
     73 include $(CLEAR_VARS)
     74 
     75 LOCAL_MODULE:= vold
     76 
     77 LOCAL_SRC_FILES := \
     78 	main.cpp \
     79 	$(common_src_files)
     80 
     81 LOCAL_C_INCLUDES := $(common_c_includes)
     82 
     83 LOCAL_CFLAGS := -Werror=format
     84 
     85 ifeq ($(TARGET_HW_DISK_ENCRYPTION),true)
     86 LOCAL_C_INCLUDES += $(TARGET_CRYPTFS_HW_PATH)
     87 common_shared_libraries += libcryptfs_hw
     88 LOCAL_CFLAGS += -DCONFIG_HW_DISK_ENCRYPTION
     89 endif
     90 
     91 LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
     92 
     93 LOCAL_STATIC_LIBRARIES := $(common_static_libraries)
     94 
     95 include $(BUILD_EXECUTABLE)
     96 
     97 include $(CLEAR_VARS)
     98 
     99 LOCAL_SRC_FILES:= vdc.c
    100 
    101 LOCAL_MODULE:= vdc
    102 
    103 LOCAL_C_INCLUDES :=
    104 
    105 LOCAL_CFLAGS := 
    106 
    107 LOCAL_SHARED_LIBRARIES := libcutils
    108 
    109 include $(BUILD_EXECUTABLE)
    110