summaryrefslogtreecommitdiff
path: root/shared/Android.mk
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:30:40 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-03 19:30:40 -0800
commit4a68b3365c8c50aa93505e99ead2565ab73dcdb0 (patch)
treef2f3008ab6b78f4550a56893ad9f96e91c75f0fd /shared/Android.mk
parente6733b78b94eb6701345e1a7244ab54dad60d47d (diff)
downloadsrec-4a68b3365c8c50aa93505e99ead2565ab73dcdb0.tar.gz
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)