1# 2# Google CHRE Simulator for Android on arm64 3# 4 5include $(CHRE_PREFIX)/build/clean_build_template_args.mk 6 7TARGET_NAME = google_arm64_android 8TARGET_CFLAGS = -DCHRE_MESSAGE_TO_HOST_MAX_SIZE=2048 9TARGET_VARIANT_SRCS = $(GOOGLE_ARM64_ANDROID_SRCS) 10TARGET_BIN_LDFLAGS = $(GOOGLE_ARM64_ANDROID_BIN_LDFLAGS) 11TARGET_SO_EARLY_LIBS = $(GOOGLE_ARM64_ANDROID_EARLY_LIBS) 12TARGET_SO_LATE_LIBS = $(GOOGLE_ARM64_ANDROID_LATE_LIBS) 13TARGET_CFLAGS += $(GOOGLE_ARM64_ANDROID_CFLAGS) 14TARGET_PLATFORM_ID = 0x476f6f676c000001 15 16TARGET_CFLAGS += $(SIM_CFLAGS) 17TARGET_VARIANT_SRCS += $(SIM_SRCS) 18 19ifneq ($(filter $(TARGET_NAME)% all, $(MAKECMDGOALS)),) 20ifneq ($(IS_NANOAPP_BUILD),) 21include $(CHRE_PREFIX)/build/nanoapp/google_android.mk 22else 23# Instruct the build to link a final executable. 24TARGET_BUILD_BIN = true 25 26# Link in libraries for the final executable and export symbols to dynamically 27# loaded objects. 28TARGET_BIN_LDFLAGS += -pie -laaudio -llog -ldl -Wl,--export-dynamic 29endif 30 31include $(CHRE_PREFIX)/build/arch/arm64.mk 32include $(CHRE_PREFIX)/build/build_template.mk 33endif 34