Skip to content

Commit

Permalink
m7-common: Add shim for libwvm.so
Browse files Browse the repository at this point in the history
* Update libshims to c++

Change-Id: I7bc7b8cbc571dcc4dac4fb5078988733fea5d3a2
  • Loading branch information
arco authored and Flyhalf205 committed Dec 3, 2016
1 parent 534a328 commit 32d19f2
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 1 deletion.
11 changes: 11 additions & 0 deletions libshims/Android.mk
Expand Up @@ -34,3 +34,14 @@ LOCAL_MODULE := liblog_shim
LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)

include $(CLEAR_VARS)

LOCAL_SRC_FILES := \
wvm_shim.cpp

LOCAL_SHARED_LIBRARIES := libstagefright_foundation
LOCAL_MODULE := libshim_wvm
LOCAL_MODULE_TAGS := optional

include $(BUILD_SHARED_LIBRARY)
21 changes: 21 additions & 0 deletions libshims/wvm_shim.cpp
@@ -0,0 +1,21 @@
/*
* Copyright (C) 2016 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

/* MediaBufferGroup::MediaBufferGroup */
extern "C" int _ZN7android16MediaBufferGroupC1Ej(unsigned int);
extern "C" int _ZN7android16MediaBufferGroupC1Ev() {
return _ZN7android16MediaBufferGroupC1Ej(0);
}
4 changes: 4 additions & 0 deletions m7-common.mk
Expand Up @@ -136,6 +136,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
libqcomvoiceprocessing

# Widevine
PRODUCT_PACKAGES += \
libshim_wvm

# WiFi
PRODUCT_PACKAGES += \
libnetcmdiface
Expand Down
2 changes: 1 addition & 1 deletion rootdir/etc/init.qcom.rc
Expand Up @@ -7,7 +7,7 @@ on early-init
chown system system /sys/kernel/debug/kgsl/proc

on init
export LD_SHIM_LIBS "/system/lib/hw/camera.vendor.msm8960.so|libcamera_shim.so:/system/vendor/lib/libqc-opt.so|libqc-opt_shim.so:/system/lib/liblog.so|liblog_shim.so"
export LD_SHIM_LIBS "/system/lib/hw/camera.vendor.msm8960.so|libcamera_shim.so:/system/vendor/lib/libqc-opt.so|libqc-opt_shim.so:/system/lib/liblog.so|liblog_shim.so:/system/vendor/lib/libwvm.so|libshim_wvm.so"

symlink /sdcard /storage/sdcard0

Expand Down

0 comments on commit 32d19f2

Please sign in to comment.