• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2006 The Android Open Source Project
2
3LOCAL_PATH:= $(call my-dir)
4include $(CLEAR_VARS)
5
6# common settings for all ASR builds, exports some variables for sub-makes
7include $(ASR_MAKE_DIR)/Makefile.defs
8
9common_SRC_FILES:= \
10	src/CircularBuffer.c \
11	src/CommandLine.c \
12	src/ESR_Locale.c \
13	src/ESR_Session.c \
14	src/HashMap.c \
15	src/HashMapImpl.c \
16	src/Int8ArrayListImpl.c \
17	src/IntArrayList.c \
18	src/IntArrayListImpl.c \
19	src/lstring.c \
20	src/LStringImpl.c \
21	src/SessionTypeImpl.c \
22
23common_C_INCLUDES := \
24	$(ASR_ROOT_DIR)/portable/include \
25	$(ASR_ROOT_DIR)/shared/include \
26
27common_CFLAGS := \
28	-DESR_SHARED_EXPORTS \
29
30common_CFLAGS += \
31	$(ASR_GLOBAL_DEFINES) \
32	$(ASR_GLOBAL_CPPFLAGS) \
33
34common_SHARED_LIBRARIES := \
35	libESR_Portable \
36
37common_TARGET:= libESR_Shared
38
39
40# For the host
41# =====================================================
42
43include $(CLEAR_VARS)
44
45LOCAL_SRC_FILES := $(common_SRC_FILES)
46LOCAL_C_INCLUDES := $(common_C_INCLUDES)
47LOCAL_CFLAGS += $(common_CFLAGS)
48
49LOCAL_SHARED_LIBRARIES := $(common_SHARED_LIBRARIES)
50
51LOCAL_MODULE := $(common_TARGET)
52
53LOCAL_32_BIT_ONLY := true
54
55include $(BUILD_HOST_SHARED_LIBRARY)
56
57
58# For the device
59# =====================================================
60
61include $(CLEAR_VARS)
62
63LOCAL_SRC_FILES := $(common_SRC_FILES)
64LOCAL_C_INCLUDES := $(common_C_INCLUDES)
65LOCAL_CFLAGS += $(common_CFLAGS)
66
67LOCAL_MODULE := $(common_TARGET)
68
69include $(BUILD_STATIC_LIBRARY)
70