summaryrefslogtreecommitdiff
path: root/shared/Android.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2008-10-21 07:00:00 -0700
commit8fc5a7f51e62cb4ae44a27bdf4176d04adc80ede (patch)
treeabe4f8fc84569829299f1bd8d22a32b895117813 /shared/Android.mk
downloadsrec-8fc5a7f51e62cb4ae44a27bdf4176d04adc80ede.tar.gz
Initial Contributionandroid-1.0
Diffstat (limited to 'shared/Android.mk')
-rw-r--r--shared/Android.mk67
1 files changed, 67 insertions, 0 deletions
diff --git a/shared/Android.mk b/shared/Android.mk
new file mode 100644
index 0000000..7af1cdc
--- /dev/null
+++ b/shared/Android.mk
@@ -0,0 +1,67 @@
+# Copyright 2006 The Android Open Source Project
+
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+# common settings for all ASR builds, exports some variables for sub-makes
+include $(ASR_MAKE_DIR)/Makefile.defs
+
+common_SRC_FILES:= \
+ src/CircularBuffer.c \
+ src/CommandLine.c \
+ src/ESR_Locale.c \
+ src/ESR_Session.c \
+ src/HashMap.c \
+ src/HashMapImpl.c \
+ src/Int8ArrayListImpl.c \
+ src/IntArrayList.c \
+ src/IntArrayListImpl.c \
+ src/lstring.c \
+ src/LStringImpl.c \
+ src/SessionTypeImpl.c \
+
+common_C_INCLUDES := \
+ $(ASR_ROOT_DIR)/portable/include \
+ $(ASR_ROOT_DIR)/shared/include \
+
+common_CFLAGS := \
+ -DESR_SHARED_EXPORTS \
+
+common_CFLAGS += \
+ $(ASR_GLOBAL_DEFINES) \
+ $(ASR_GLOBAL_CPPFLAGS) \
+
+common_SHARED_LIBRARIES := \
+ libESR_Portable \
+
+common_TARGET:= libESR_Shared
+
+
+# For the host
+# =====================================================
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(common_SRC_FILES)
+LOCAL_C_INCLUDES := $(common_C_INCLUDES)
+LOCAL_CFLAGS += $(common_CFLAGS)
+
+LOCAL_SHARED_LIBRARIES := $(common_SHARED_LIBRARIES)
+
+LOCAL_MODULE := $(common_TARGET)
+
+include $(BUILD_HOST_SHARED_LIBRARY)
+
+
+# For the device
+# =====================================================
+
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(common_SRC_FILES)
+LOCAL_C_INCLUDES := $(common_C_INCLUDES)
+LOCAL_CFLAGS += $(common_CFLAGS)
+
+LOCAL_MODULE := $(common_TARGET)
+
+include $(BUILD_STATIC_LIBRARY)