Skip to content

Commit

Permalink
Merge pull request cisco#784 from mstorsjo/renamed-lib
Browse files Browse the repository at this point in the history
Take the new external library name in use, fix building for android
  • Loading branch information
ethanhugg committed May 4, 2014
2 parents e4a9c7f + b4fdfa6 commit 5c5a233
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build/platform-android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ AR = $(TOOLCHAINPREFIX)ar
CFLAGS += -DLINUX -DANDROID_NDK -fpic --sysroot=$(SYSROOT)
CXXFLAGS += -fno-rtti -fno-exceptions
LDFLAGS += --sysroot=$(SYSROOT)
SHLDFLAGS = -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-soname,libwels.so
SHLDFLAGS = -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -Wl,-soname,lib$(PROJECT_NAME).so

STL_INCLUDES = \
-I$(NDKROOT)/sources/cxx-stl/stlport/stlport
Expand Down
4 changes: 2 additions & 2 deletions build/platform-msvc-common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@ EXEEXT=.exe
OBJ=obj
SHAREDLIBSUFFIX=dll
SHARED=-LD
SHLDFLAGS=-link -def:wels.def -implib:wels_dll.lib
EXTRA_LIBRARY=wels_dll.lib
SHLDFLAGS=-link -def:openh264.def -implib:$(PROJECT_NAME)_dll.lib
EXTRA_LIBRARY=$(PROJECT_NAME)_dll.lib
2 changes: 1 addition & 1 deletion codec/build/android/dec/jni/welsdecdemo.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := wels
LOCAL_SRC_FILES := ../../../../../libwels.so
LOCAL_SRC_FILES := ../../../../../libopenh264.so
include $(PREBUILT_SHARED_LIBRARY)


Expand Down
2 changes: 1 addition & 1 deletion codec/build/android/dec/src/com/wels/dec/WelsDecTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {
private static final String TAG = "welsdec";
static {
try {
System.loadLibrary("wels");
System.loadLibrary("openh264");
System.loadLibrary("stlport_shared");
System.loadLibrary("welsdecdemo");
Log.v(TAG, "Load libwelsdec successful");
Expand Down
2 changes: 1 addition & 1 deletion codec/build/android/enc/jni/welsencdemo.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE := wels
LOCAL_SRC_FILES := ../../../../../libwels.so
LOCAL_SRC_FILES := ../../../../../libopenh264.so
include $(PREBUILT_SHARED_LIBRARY)


Expand Down
2 changes: 1 addition & 1 deletion codec/build/android/enc/src/com/wels/enc/WelsEncTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public boolean onKeyDown(int keyCode, KeyEvent event) {
private static final String TAG = "welsenc";
static {
try {
System.loadLibrary("wels");
System.loadLibrary("openh264");
System.loadLibrary("stlport_shared");
System.loadLibrary("welsencdemo");
Log.v(TAG, "Load libwelsencdemo.so successful");
Expand Down
File renamed without changes.

0 comments on commit 5c5a233

Please sign in to comment.