1LOCAL_PATH:= $(call my-dir)
2
3include $(LOCAL_PATH)/sources.mk
4
5ifeq (,$(GABIXX_FORCE_REBUILD))
6
7  include $(CLEAR_VARS)
8  LOCAL_MODULE:= gabi++_shared
9  LOCAL_SRC_FILES:= libs/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE)$(TARGET_SONAME_EXTENSION)
10  # For armeabi*, choose thumb mode unless LOCAL_ARM_MODE := arm
11  ifneq (,$(filter armeabi%,$(TARGET_ARCH_ABI)))
12  ifneq (arm,$(LOCAL_ARM_MODE))
13  LOCAL_SRC_FILES:= libs/$(TARGET_ARCH_ABI)/thumb/lib$(LOCAL_MODULE)$(TARGET_SONAME_EXTENSION)
14  endif
15  endif
16  LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
17  LOCAL_CPP_FEATURES := rtti exceptions
18  LOCAL_CFLAGS := -Wall -Werror
19  include $(PREBUILT_SHARED_LIBRARY)
20
21  include $(CLEAR_VARS)
22  LOCAL_MODULE:= gabi++_static
23  LOCAL_SRC_FILES:= libs/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE)$(TARGET_LIB_EXTENSION)
24  # For armeabi*, choose thumb mode unless LOCAL_ARM_MODE := arm
25  ifneq (,$(filter armeabi%,$(TARGET_ARCH_ABI)))
26  ifneq (arm,$(LOCAL_ARM_MODE))
27  LOCAL_SRC_FILES:= libs/$(TARGET_ARCH_ABI)/thumb/lib$(LOCAL_MODULE)$(TARGET_LIB_EXTENSION)
28  endif
29  endif
30  LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
31  LOCAL_CPP_FEATURES := rtti exceptions
32  LOCAL_CFLAGS := -Wall -Werror
33  include $(PREBUILT_STATIC_LIBRARY)
34
35else # ! GABIXX_FORCE_REBUILD
36
37  # Shared version of the library
38  # Note that the module is named libgabi++_shared to avoid
39  # any conflict with any potential system library named libgabi++
40  #
41  include $(CLEAR_VARS)
42  LOCAL_MODULE:= libgabi++_shared
43  LOCAL_CPP_EXTENSION := .cc
44  LOCAL_SRC_FILES:= $(libgabi++_src_files)
45  LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
46  LOCAL_C_INCLUDES := $(libgabi++_c_includes)
47  LOCAL_CPP_FEATURES := rtti exceptions
48  include $(BUILD_SHARED_LIBRARY)
49
50  # And now the static version
51  #
52  include $(CLEAR_VARS)
53  LOCAL_MODULE:= libgabi++_static
54  LOCAL_SRC_FILES:= $(libgabi++_src_files)
55  LOCAL_CPP_EXTENSION := .cc
56  LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
57  LOCAL_C_INCLUDES := $(libgabi++_c_includes)
58  LOCAL_CPP_FEATURES := rtti exceptions
59  include $(BUILD_STATIC_LIBRARY)
60
61endif # ! GABIXX_FORCE_REBUILD
62