1 OLD_LOCAL_PATH := $(LOCAL_PATH) 2 LOCAL_PATH := $(call my-dir) 3 4 LIBSELINUX_SOURCES := \ 5 src/callbacks.c \ 6 src/check_context.c \ 7 src/freecon.c \ 8 src/init.c \ 9 src/label.c \ 10 src/label_file.c \ 11 src/label_android_property.c 12 13 ifeq ($(HOST_OS),windows) 14 # This code doesn't not build on Windows, so create empty 15 # libraries on this platform, this simplifies the build 16 # configuration. 17 LIBSELINUX_SOURCES := 18 endif 19 20 LIBSELINUX_INCLUDES := $(LOCAL_PATH)/include 21 22 LIBSELINUX_CFLAGS := -DHOST 23 ifeq (darwin,$(HOST_OS)) 24 LIBSELINUX_CFLAGS += -DDARWIN 25 endif 26 27 $(call start-emulator-library,emulator-libselinux) 28 LOCAL_SRC_FILES := $(LIBSELINUX_SOURCES) 29 LOCAL_C_INCLUDES := $(LIBSELINUX_INCLUDES) 30 LOCAL_CFLAGS := $(LIBSELINUX_CFLAGS) 31 $(call end-emulator-library) 32 33 $(call start-emulator64-library,emulator64-libselinux) 34 LOCAL_SRC_FILES := $(LIBSELINUX_SOURCES) 35 LOCAL_C_INCLUDES := $(LIBSELINUX_INCLUDES) 36 LOCAL_CFLAGS := $(LIBSELINUX_CFLAGS) 37 $(call end-emulator-library) 38 39 LOCAL_PATH := $(OLD_LOCAL_PATH) 40