Home | History | Annotate | Download | only in uuid
      1 LOCAL_PATH := $(call my-dir)
      2 
      3 libext2_uuid_src_files := \
      4 	clear.c \
      5 	compare.c \
      6 	copy.c \
      7 	gen_uuid.c \
      8 	isnull.c \
      9 	pack.c \
     10 	parse.c \
     11 	unpack.c \
     12 	unparse.c \
     13 	uuid_time.c
     14 
     15 
     16 libext2_uuid_c_includes := external/e2fsprogs/lib
     17 
     18 libext2_uuid_cflags := -O2 -g -W -Wall \
     19 	-DHAVE_INTTYPES_H \
     20 	-DHAVE_UNISTD_H \
     21 	-DHAVE_ERRNO_H \
     22 	-DHAVE_NETINET_IN_H \
     23 	-DHAVE_SYS_IOCTL_H \
     24 	-DHAVE_SYS_MMAN_H \
     25 	-DHAVE_SYS_MOUNT_H \
     26 	-DHAVE_SYS_PRCTL_H \
     27 	-DHAVE_SYS_RESOURCE_H \
     28 	-DHAVE_SYS_SELECT_H \
     29 	-DHAVE_SYS_STAT_H \
     30 	-DHAVE_SYS_TYPES_H \
     31 	-DHAVE_STDLIB_H \
     32 	-DHAVE_STRDUP \
     33 	-DHAVE_MMAP \
     34 	-DHAVE_UTIME_H \
     35 	-DHAVE_GETPAGESIZE \
     36 	-DHAVE_LSEEK64 \
     37 	-DHAVE_LSEEK64_PROTOTYPE \
     38 	-DHAVE_EXT2_IOCTLS \
     39 	-DHAVE_LINUX_FD_H \
     40 	-DHAVE_TYPE_SSIZE_T \
     41 	-DHAVE_SYS_TIME_H \
     42         -DHAVE_SYS_PARAM_H \
     43 	-DHAVE_SYSCONF
     44 
     45 libext2_uuid_system_shared_libraries := libc
     46 
     47 include $(CLEAR_VARS)
     48 
     49 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
     50 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
     51 LOCAL_CFLAGS := $(libext2_uuid_cflags)
     52 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH) $(LOCAL_PATH)/..
     53 LOCAL_SYSTEM_SHARED_LIBRARIES := $(libext2_uuid_system_shared_libraries)
     54 LOCAL_MODULE := libext2_uuid
     55 LOCAL_MODULE_TAGS := optional
     56 
     57 include $(BUILD_SHARED_LIBRARY)
     58 
     59 include $(CLEAR_VARS)
     60 
     61 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
     62 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
     63 LOCAL_CFLAGS := $(libext2_uuid_cflags)
     64 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
     65 LOCAL_MODULE := libext2_uuid-host
     66 LOCAL_MODULE_TAGS := optional
     67 
     68 include $(BUILD_HOST_SHARED_LIBRARY)
     69 
     70 
     71 include $(CLEAR_VARS)
     72 
     73 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
     74 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
     75 LOCAL_CFLAGS := $(libext2_uuid_cflags)
     76 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
     77 LOCAL_STATIC_LIBRARIES := libc
     78 LOCAL_MODULE := libext2_uuid_static
     79 LOCAL_MODULE_TAGS := optional
     80 
     81 include $(BUILD_STATIC_LIBRARY)
     82 
     83 
     84 include $(CLEAR_VARS)
     85 
     86 LOCAL_SRC_FILES := $(libext2_uuid_src_files)
     87 LOCAL_C_INCLUDES := $(libext2_uuid_c_includes)
     88 LOCAL_CFLAGS := $(libext2_uuid_cflags)
     89 LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
     90 LOCAL_MODULE := libext2_uuid-host
     91 LOCAL_MODULE_TAGS := optional
     92 
     93 include $(BUILD_HOST_STATIC_LIBRARY)
     94