1. Detect NDK path and version
2. Enable cmake multithread compiling if version > 3.12
3. Support specifying args to build script
Change-Id: I2179aeb5460de6b8d39a867ba3a4200c51b61be7
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
modify cmake script to allow multiple define about ndk variables.
It is a bug caused by low version ndk.
Change-Id: I92584f050b0cfd5397b7cf85a8963dbe492baa69
Signed-off-by: sliver.chen <sliver.chen@rock-chips.com>
Due to more platform using 4.4 kernel with drm we default enable
drm support on Android platform.
Change-Id: I4690d3d5f65a471b797d2474426836e6e357cf66
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change Android and Linux branches to use RKPLATFORM macro.
RKPLATFORM is shorter and it is not a cmake variable.
Change-Id: I09a6fe72e7dacedbb4b2b8e1a66b6f7ca625f019
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Use libmpp.so / libvpu.so on Android.
Use librockchip_mpp.so / librockchip_vpu.so
In early stage we use libmpp.so / libvpu.so on Android. later we found
it is better to use vendor name as library prefix. So we fix the name
rule on Linux platform.
But due to historical reason we can not change all sdk to use the same
name. So we choose to use this ugly method to define the name according
to different target platform.
Also we add version to library but Android has binary name issue so we
have to disable version on Android platform.
Change-Id: I785c3bc740f345e473f2d81c5cd2a4e32a1bf0bc
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
NOTE: there will be ndk error:
../libosal.a(os_env.c.o): In function `os_get_env_u32':
os_env.c:(.text.os_get_env_u32+0x20): undefined reference to `__system_property_get'
../libosal.a(os_env.c.o): In function `os_get_env_str':
os_env.c:(.text.os_get_env_str+0x34): undefined reference to `__system_property_get'
../libosal.a(os_env.c.o): In function `os_set_env_u32':
os_env.c:(.text.os_set_env_u32+0x34): undefined reference to `__system_property_set'
../libosal.a(os_env.c.o): In function `os_set_env_str':
os_env.c:(.text.os_set_env_str+0x8): undefined reference to `__system_property_set'
Solution here: http://www.bubuko.com/infodetail-1014879.html
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@613 6e48237b-75ef-9749-8fc9-41990f28c85a
[vpu_legacy]: add vpu_mem alloc and rk_list.cpp to compatibility old version vpu
[vpu_legacy]: used dlopen to compatibility using old librk_vpuapi
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@419 6e48237b-75ef-9749-8fc9-41990f28c85a