blob: 70c155948a13c0176ef597841aea9209fff92df0 [file] [log] [blame]
LOCAL_PATH := $(call my-dir)
ifeq ($(TARGET_PRODUCT),antares)
android_ndk=${ANDROID_BUILD_TOP}/prebuilts/ndk/current
android_toolchain=${ANDROID_BUILD_TOP}/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9
android_platform=${ANDROID_BUILD_TOP}/prebuilts/ndk/current/platforms/android-24/arch-arm64
android_target=aarch64-linux-android
HOST_BUILD_TYPE=x86_64-unknown-linux-gnu
else ifeq ($(TARGET_PRODUCT),iot_cygnus)
android_ndk=${ANDROID_BUILD_TOP}/prebuilts/ndk/current
android_toolchain=${ANDROID_BUILD_TOP}/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9
android_platform=${ANDROID_BUILD_TOP}/prebuilts/ndk/current/platforms/android-24/arch-arm
android_target=arm-linux-androideabi
HOST_BUILD_TYPE=x86_64-unknown-linux-gnu
else
android_toolchain=${ANDROID_BUILD_TOP}/prebuilt/toolchain/$(TARGET_TOOLS_TRIPLET)
android_target=$(TARGET_TOOLS_NAME)
endif
include $(CLEAR_AUTOTOOLS_VARS)
LOCAL_MODULE := libnspr4
#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
LOCAL_CLANG := true
LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
LOCAL_CPPFLAGS := -fexceptions
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)/pr/include
LOCAL_EXPORT_C_INCLUDE_DIRS += $(TARGET_OUT_INTERMEDIATES)/STATIC_LIBRARIES/libnspr4_intermediates/dist/include
LOCAL_SOURCE_DIR := $(LOCAL_PATH)
include $(BUILD_AUTOTOOLS_SHARED_LIBRARY)
include $(CLEAR_AUTOTOOLS_VARS)
LOCAL_MODULE := libplc4
#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
LOCAL_CLANG := true
LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
LOCAL_CPPFLAGS := -fexceptions
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
LOCAL_SOURCE_DIR := $(LOCAL_PATH)
include $(BUILD_AUTOTOOLS_SHARED_LIBRARY)
include $(CLEAR_AUTOTOOLS_VARS)
LOCAL_MODULE := libplds4
#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
LOCAL_CLANG := true
LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
LOCAL_CPPFLAGS := -fexceptions
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
LOCAL_SOURCE_DIR := $(LOCAL_PATH)
include $(BUILD_AUTOTOOLS_SHARED_LIBRARY)
include $(CLEAR_AUTOTOOLS_VARS)
LOCAL_MODULE := libnspr4
#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
LOCAL_CLANG := true
LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
LOCAL_CPPFLAGS := -fexceptions
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
LOCAL_EXPORT_C_INCLUDE_DIRS += $(LOCAL_PATH)/pr/include
LOCAL_EXPORT_C_INCLUDE_DIRS += $(TARGET_OUT_INTERMEDIATES)/STATIC_LIBRARIES/libnspr4_intermediates/dist/include
LOCAL_SOURCE_DIR := $(LOCAL_PATH)
include $(BUILD_AUTOTOOLS_STATIC_LIBRARY)
include $(CLEAR_AUTOTOOLS_VARS)
LOCAL_MODULE := libplc4
#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
LOCAL_CLANG := true
LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
LOCAL_CPPFLAGS := -fexceptions
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
LOCAL_SOURCE_DIR := $(LOCAL_PATH)
include $(BUILD_AUTOTOOLS_STATIC_LIBRARY)
include $(CLEAR_AUTOTOOLS_VARS)
LOCAL_MODULE := libplds4
#LOCAL_CLANG is required by iot_cygnus script, but not used as compiler
LOCAL_CLANG := true
LOCAL_CONFIGURE_OPTIONS := --build=$(HOST_BUILD_TYPE) --target=$(android_target) --with-android-ndk=$(android_ndk) --with-android-toolchain=$(android_toolchain) --with-android-platform=$(android_platform) --disable-cplus --verbose
LOCAL_CONFIGURE_HOST := $(HOST_BUILD_TYPE)
LOCAL_CPPFLAGS := -fexceptions
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)
LOCAL_SOURCE_DIR := $(LOCAL_PATH)
include $(BUILD_AUTOTOOLS_STATIC_LIBRARY)