Home | History | Annotate | Download | only in blkid
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 libext2_blkid_src_files := \
      4 	cache.c \
      5 	dev.c \
      6 	devname.c \
      7 	devno.c \
      8 	getsize.c \
      9 	llseek.c \
     10 	probe.c \
     11 	read.c \
     12 	resolve.c \
     13 	save.c \
     14 	tag.c \
     15 	version.c \
     16 
     17 
     18 libext2_blkid_shared_libraries := libext2_uuid
     19 
     20 libext2_blkid_system_shared_libraries := libc
     21 
     22 libext2_blkid_static_libraries := libext2_uuid_static
     23 
     24 libext2_blkid_system_static_libraries := libc
     25 
     26 libext2_blkid_c_includes := external/e2fsprogs/lib
     27 
     28 libext2_blkid_cflags := -O2 -g -W -Wall -fno-strict-aliasing \
     29 	-DHAVE_UNISTD_H \
     30 	-DHAVE_ERRNO_H \
     31 	-DHAVE_NETINET_IN_H \
     32 	-DHAVE_SYS_IOCTL_H \
     33 	-DHAVE_SYS_MMAN_H \
     34 	-DHAVE_SYS_MOUNT_H \
     35 	-DHAVE_SYS_RESOURCE_H \
     36 	-DHAVE_SYS_SELECT_H \
     37 	-DHAVE_SYS_STAT_H \
     38 	-DHAVE_SYS_TYPES_H \
     39 	-DHAVE_STDLIB_H \
     40 	-DHAVE_STRDUP \
     41 	-DHAVE_MMAP \
     42 	-DHAVE_UTIME_H \
     43 	-DHAVE_GETPAGESIZE \
     44 	-DHAVE_EXT2_IOCTLS \
     45 	-DHAVE_TYPE_SSIZE_T \
     46 	-DHAVE_SYS_TIME_H \
     47         -DHAVE_SYS_PARAM_H \
     48 	-DHAVE_SYSCONF
     49 
     50 libext2_blkid_cflags_linux := \
     51 	-DHAVE_LINUX_FD_H \
     52 	-DHAVE_SYS_PRCTL_H \
     53 	-DHAVE_LSEEK64 \
     54 	-DHAVE_LSEEK64_PROTOTYPE
     55 
     56 include $(CLEAR_VARS)
     57 
     58 LOCAL_SRC_FILES := $(libext2_blkid_src_files)
     59 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_blkid_system_shared_libraries)
     60 LOCAL_SHARED_LIBRARIES := $(libext2_blkid_shared_libraries)
     61 LOCAL_C_INCLUDES := $(libext2_blkid_c_includes)
     62 LOCAL_CFLAGS := $(libext2_blkid_cflags) $(libext2_blkid_cflags_linux) -fno-strict-aliasing
     63 LOCAL_PRELINK_MODULE := false
     64 LOCAL_MODULE := libext2_blkid
     65 LOCAL_MODULE_TAGS := optional
     66 
     67 include $(BUILD_SHARED_LIBRARY)
     68 
     69 include $(CLEAR_VARS)
     70 
     71 LOCAL_SRC_FILES := $(libext2_blkid_src_files)
     72 LOCAL_STATIC_LIBRARIES := $(libext2_blkid_static_libraries) $(libext2_blkid_system_static_libraries)
     73 LOCAL_C_INCLUDES := $(libext2_blkid_c_includes)
     74 LOCAL_CFLAGS := $(libext2_blkid_cflags) $(libext2_blkid_cflags_linux) -fno-strict-aliasing
     75 LOCAL_PRELINK_MODULE := false
     76 LOCAL_MODULE := libext2_blkid
     77 LOCAL_MODULE_TAGS := optional
     78 
     79 include $(BUILD_STATIC_LIBRARY)
     80 
     81 include $(CLEAR_VARS)
     82 
     83 LOCAL_SRC_FILES := $(libext2_blkid_src_files)
     84 LOCAL_SHARED_LIBRARIES := $(addsuffix _host, $(libext2_blkid_shared_libraries))
     85 LOCAL_C_INCLUDES := $(libext2_blkid_c_includes)
     86 ifeq ($(HOST_OS),linux)
     87 LOCAL_CFLAGS := $(libext2_blkid_cflags) $(libext2_blkid_cflags_linux)
     88 else
     89 LOCAL_CFLAGS := $(libext2_blkid_cflags)
     90 endif
     91 LOCAL_MODULE := libext2_blkid_host
     92 LOCAL_MODULE_TAGS := optional
     93 
     94 include $(BUILD_HOST_SHARED_LIBRARY)
     95