• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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  LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
11  LOCAL_CPP_FEATURES := rtti exceptions
12  include $(PREBUILT_SHARED_LIBRARY)
13
14  include $(CLEAR_VARS)
15  LOCAL_MODULE:= gabi++_static
16  LOCAL_SRC_FILES:= libs/$(TARGET_ARCH_ABI)/lib$(LOCAL_MODULE)$(TARGET_LIB_EXTENSION)
17  LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
18  LOCAL_CPP_FEATURES := rtti exceptions
19  include $(PREBUILT_STATIC_LIBRARY)
20
21else # ! GABIXX_FORCE_REBUILD
22
23  # Shared version of the library
24  # Note that the module is named libgabi++_shared to avoid
25  # any conflict with any potential system library named libgabi++
26  #
27  include $(CLEAR_VARS)
28  LOCAL_MODULE:= libgabi++_shared
29  LOCAL_CPP_EXTENSION := .cc
30  LOCAL_SRC_FILES:= $(libgabi++_src_files)
31  LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
32  LOCAL_C_INCLUDES := $(libgabi++_c_includes)
33  LOCAL_CPP_FEATURES := rtti exceptions
34  include $(BUILD_SHARED_LIBRARY)
35
36  # And now the static version
37  #
38  include $(CLEAR_VARS)
39  LOCAL_MODULE:= libgabi++_static
40  LOCAL_SRC_FILES:= $(libgabi++_src_files)
41  LOCAL_CPP_EXTENSION := .cc
42  LOCAL_EXPORT_C_INCLUDES := $(libgabi++_c_includes)
43  LOCAL_C_INCLUDES := $(libgabi++_c_includes)
44  LOCAL_CPP_FEATURES := rtti exceptions
45  include $(BUILD_STATIC_LIBRARY)
46
47endif # ! GABIXX_FORCE_REBUILD
48