Skip to content

Commit

Permalink
Link libopus statically with libopusJNI
Browse files Browse the repository at this point in the history
We now build one .so file for the opus extension in the
internal build, so make the external build work the same way.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=184962896
  • Loading branch information
andrewlewis committed Feb 8, 2018
1 parent 0384ff0 commit f432b52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions extensions/opus/src/main/jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
WORKING_DIR := $(call my-dir)
include $(CLEAR_VARS)

# build libopus.so
# build libopus.a
LOCAL_PATH := $(WORKING_DIR)
include libopus.mk

Expand All @@ -29,5 +29,5 @@ LOCAL_ARM_MODE := arm
LOCAL_CPP_EXTENSION := .cc
LOCAL_SRC_FILES := opus_jni.cc
LOCAL_LDLIBS := -llog -lz -lm
LOCAL_SHARED_LIBRARIES := libopus
LOCAL_STATIC_LIBRARIES := libopus
include $(BUILD_SHARED_LIBRARY)
2 changes: 1 addition & 1 deletion extensions/opus/src/main/jni/libopus.mk
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ endif

LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include

include $(BUILD_SHARED_LIBRARY)
include $(BUILD_STATIC_LIBRARY)

0 comments on commit f432b52

Please sign in to comment.