1OLD_LOCAL_PATH := $(LOCAL_PATH) 2LOCAL_PATH := $(call my-dir) 3 4LIBSELINUX_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 13ifeq ($(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 := 18endif 19 20LIBSELINUX_INCLUDES := $(LOCAL_PATH)/include 21 22LIBSELINUX_CFLAGS := -DHOST 23ifeq (darwin,$(HOST_OS)) 24 LIBSELINUX_CFLAGS += -DDARWIN 25endif 26 27$(call start-emulator-library,emulator-libselinux) 28LOCAL_SRC_FILES := $(LIBSELINUX_SOURCES) 29LOCAL_C_INCLUDES := $(LIBSELINUX_INCLUDES) 30LOCAL_CFLAGS := $(LIBSELINUX_CFLAGS) 31$(call end-emulator-library) 32 33$(call start-emulator64-library,emulator64-libselinux) 34LOCAL_SRC_FILES := $(LIBSELINUX_SOURCES) 35LOCAL_C_INCLUDES := $(LIBSELINUX_INCLUDES) 36LOCAL_CFLAGS := $(LIBSELINUX_CFLAGS) 37$(call end-emulator-library) 38 39LOCAL_PATH := $(OLD_LOCAL_PATH) 40