• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Generate the libwelsencdemo.so file
2LOCAL_PATH := $(call my-dir)
3
4include $(CLEAR_VARS)
5LOCAL_MODULE    := wels
6LOCAL_SRC_FILES := ../../../../../libopenh264.so
7ifneq (,$(wildcard $(LOCAL_PATH)/$(LOCAL_SRC_FILES)))
8include $(PREBUILT_SHARED_LIBRARY)
9endif
10
11
12
13include $(CLEAR_VARS)
14
15#
16# Module Settings
17#
18LOCAL_MODULE := welsencdemo
19
20#
21# Source Files
22#
23CODEC_PATH := ../../../../
24CONSOLE_ENC_PATH := ../../../../console/enc
25CONSOLE_COMMON_PATH := ../../../../console/common
26LOCAL_SRC_FILES := \
27            $(CONSOLE_ENC_PATH)/src/welsenc.cpp \
28            $(CONSOLE_COMMON_PATH)/src/read_config.cpp \
29            myjni.cpp
30
31#
32# Header Includes
33#
34LOCAL_C_INCLUDES := \
35            $(LOCAL_PATH)/../../../../api/wels \
36            $(LOCAL_PATH)/../../../../console/enc/inc \
37            $(LOCAL_PATH)/../../../../console/common/inc \
38            $(LOCAL_PATH)/../../../../encoder/core/inc \
39            $(LOCAL_PATH)/../../../../processing/interface \
40            $(LOCAL_PATH)/../../../../common/inc
41
42
43#
44# Compile Flags and Link Libraries
45#
46LOCAL_CFLAGS := -DANDROID_NDK
47
48LOCAL_LDLIBS := -llog
49LOCAL_SHARED_LIBRARIES := wels
50
51include $(BUILD_SHARED_LIBRARY)
52