Commit Graph

64 Commits

Author SHA1 Message Date
MarcA711
9f9986752f fix[cmake]: fix static build
Signed-off-by: MarcA711 <40744649+MarcA711@users.noreply.github.com>
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I4bd4a7543584685b20089d3953e700f5612523e7
2024-04-24 09:31:01 +08:00
Herman Chen
6387e27bea [cmake]: Add -save-temps for macro debug
Add -save-temps to save intermediate file for macro debug.
Disable now for osal.a compile error with this option.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I3d3155666f98f0471313c7dec638fb2d6a6bf093
2024-01-26 11:34:51 +08:00
Herman Chen
95f472e373 [cmake]: export json compile cmd for VSC
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I25e1f660a2fc9629399ac5b298141b54a952cd2d
2023-03-24 10:23:56 +08:00
Herman Chen
dd284cc827 [cmake]: Set VISIBILITY_PRESET to default
Change-Id: I3f2266904b8ee83b7c1fe3a419cd4ed931d0036b
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-06-14 14:56:17 +08:00
Rimon Xu
4de5c47106 [cmake] fix CMAKE_BUILD_TYPE judge error
Change-Id: Ia58609aec3a01374218af9f48b13e72b6883bbbf
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
2022-06-09 12:41:33 +08:00
Rimon Xu
728d9422f9 [cmake] add -g definitions when debug version
Change-Id: I80c83bbda36b49f02d8e7a6877884590d293d9bb
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
2022-05-20 17:45:48 +08:00
Herman Chen
17a47899be [cmake]: Fix warning on armv8-a
Change-Id: I31a26eaa80c980e3e2fa160d8ddcf5fd0a6875ca
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2022-05-20 16:23:05 +08:00
Herman Chen
d733a62fba [cmake]: Improve version history record
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: I86cc8e9b4788e2d0a3f296f127e7e938c0b0cde4
2020-09-12 11:12:46 +08:00
Herman Chen
eb34769db7 [cmake]: Add option to control test building
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ic6c6988dad82836cfb87113f2293bc9a2b1abd66
2020-06-22 17:44:01 +08:00
Herman Chen
0abeafe872 [cmake]: Add option for Address Sanitizer check
Change-Id: I91cf9111000d2e077dafd9871b965e864863e0bf
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-06-11 17:29:51 +08:00
Herman Chen
f963d33b97 [mpp_enc_cfg]: Fix missing symbol in mpp library
1. Use whole-archive option to include all function in mpp_base.
2. Reduce mpp_enc_cfg table size.

Change-Id: If8358b13a788d6b81c4f84d2a183e9ec8d080cc5
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-05-18 15:24:04 +08:00
Herman Chen
8eb95cde37 [cmake]: Add armv7l support
Change-Id: I493eae823018e4bb658e367d71001dafa41b127a
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-05-13 14:20:07 +08:00
Herman Chen
927cdf37f0 [cmake]: Fix compile error when log has quotation
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ie95d78e2d93c55aaaebb5508a2276339a17eb451
2020-04-03 18:40:09 +08:00
Herman Chen
54b047e396 [cmake]: Add history log
1. Remove SVN version record.
2. CMakeLists will record max 10 git version.
3. Use mpp_show_history to control the history display.
4. Use strings libmpp.so | grep author to get history log from binary.

Change-Id: I5231ced4031d868fe1329488c914730dc91a3531
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2020-03-04 11:05:50 +08:00
Johnson Ding
2026c7b655 [build]: Fix wrong CMAKE_SYSTEM_PROCESSOR issue
See: https://github.com/rockchip-linux/mpp/issues/121

Change-Id: Iefc47632a53652818f701df7cec01875172d1260
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
2019-12-11 20:28:07 +08:00
Herman Chen
208f0004a5 [build]: Add path detection for different ndk
Support r10d and r16b first.

Change-Id: I289813c26b79ad4a1b038fc07f8375832fe78162
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2019-10-10 18:04:21 +08:00
Herman Chen
0a7e306cd1 [cmake]: Add make path detection
Higher cmaker version require CMAKE_MAKE_PROGRAM parameter.

Change-Id: I4ed9f4ef1592f5683ec0f9a3679840bf6dfb0d2d
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2019-08-21 09:35:28 +08:00
Jeffy Chen
1bd32f0745 [cmake]: Skip processor detection for buildroot toolchain
Buildroot uses it's own toolchain.cmake, which leads to completely
different CMAKE_SYSTEM_PROCESSOR settings.

And buildroot's toolchain is built for specific architecture, there's
no need to specify architecture features.

Change-Id: I6516bc083f809b01f485db7ba92b1543c6191959
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
2018-11-21 10:23:35 +08:00
Herman Chen
b1bc30ad5f [cmake]: Add armv8 support
Change-Id: I5fb13208f23f9dbd1f0cd4c7ec38b26026dd92f2
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2018-09-29 15:53:07 +08:00
Herman Chen
67e80ebfe4 [mpp]: Remove RKPLATFORM macro
Mpp will only run under Linux environment. Windows support will be
removed.

Change-Id: I52de4bd69f6d7b34507edeb6642668e225fcbd38
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2018-09-11 10:31:08 +08:00
Randy Li
b99bb30c0d [cmake]: correct the cmake file
Change-Id: I0528c844557a5f431ad2db8e67c742b57094c22c
Signed-off-by: Randy Li <randy.li@rock-chips.com>
Signed-off-by: hertz.wang <wangh@rock-chips.com>
2018-05-28 08:58:17 +08:00
Herman Chen
bae30008a7 [cmake]: Simplify cmake script
Change-Id: If5280bdb8d58d995d59f86c4cc5d51d4d5f74fe6
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2018-02-02 11:22:11 +08:00
Herman Chen
b186d04390 [cmake]: Change to shorter RKPLATFORM macro
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>
2017-12-19 19:46:36 +08:00
Jacob Chen
81759e832a [build]: correct install directory and generate pkgconfig for linux
Change-Id: Id4f6b2278ee0fe50ffc9806fffc5b01267f723db
Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
2017-12-19 10:51:24 +08:00
Ding Wei
785b0f220d [cmake]: Partly merged Android and Linux branch
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>
2017-12-18 15:15:07 +08:00
Randy Li
7990b52e8d [osal]: update the build system
The cross toolchains in Linux distributions are more prefer to
auto conf way, move those detecting from build system to toolchain
itself would be more welcome.

Change-Id: Ib42d9a0c65646b679ed14c96d16d1845c596f741
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-06-06 08:38:31 +08:00
Randy Li
f98cd806ac [build]: fix version generation from VCS for submodule
It is possible to use the project as the submodule of the
other project or having a top build rules project for it.

Change-Id: I6afb43392f10165005b7bf94a867936242dedd04
Signed-off-by: Randy Li <randy.li@rock-chips.com>
2017-04-16 14:04:29 +08:00
Herman Chen
f58ad55b5d [cmake]: Fix compile error on windows
Change-Id: I6717e1dcf44887d38b176cf7d4a0657a7ce2a0ec
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2017-03-29 18:37:54 +08:00
Lin Kesheng
1d0413bd03 [coding-style]: implement git hook pre-commit
Change-Id: I0270d9c07655a965c5e4fda0cc03e44d0a5d8946
Signed-off-by: Lin Kesheng <lks@rock-chips.com>
2017-02-28 18:13:03 +08:00
Cody Xie
edaf21bab8 mpp : Install library to processor specific dir.
Change-Id: Ifa415d0611fa75eaa5bc0910e78b889fb2b99127
Signed-off-by: Cody Xie <xkd@rock-chips.com>
2016-11-24 16:48:26 +08:00
Cody Xie
3f0b6e50bd mpp : Add install mpp public header files.
Headers will be installed to ${CMAKE_SOURCE_DIR}/out/inc by default.
Override INC_INSTALL_DIR to install to linux system dir.
"cmake -DINC_INSTALL_DIR=/usr/include/mpp ..."

Change-Id: I94cd4652e9ce728107b29e6715a50d51e68ceb8c
Signed-off-by: Cody Xie <xkd@rock-chips.com>
2016-11-24 16:46:12 +08:00
Herman Chen
c056a31049 [cmake]: fix missing version symbol on Android
Change-Id: Ie9137ddf807b37f8713cb3cbcd41bbf639477446
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-10-20 20:14:10 +08:00
Herman Chen
65df276a8d [cmake]: Fix git not found issue
Change-Id: I887a019a08b74e86f4e69f066d5b6faebc6400cd
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-09-14 10:08:08 +08:00
Lin Kesheng
60373a6973 [all]: format code
use fromdos to change file type, remove ^M in code.

Change-Id: I000202dc51fcff57cc0771455baebea595115b1d
Signed-off-by: Lin Kesheng <lks@rock-chips.com>
2016-09-08 15:21:02 +08:00
Herman Chen
c8e129cca3 [cmake]: do not hide symbol on debug mode
Change-Id: I55baf3178435a7ee76ba3fccac202faa2c04acfa
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-09-01 16:02:29 +08:00
Herman Chen
72a6e3b06a [cmake]: add git and svn version script
Change-Id: Ia1f908986f503191c3e5a6bbe9dc5daa55648b40
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2016-08-22 10:45:29 +08:00
ChenHengming
560cc7b034 [cmake]: set visibility to hidden
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1200 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-08-16 08:01:35 +00:00
ChenHengming
213234cd77 [cmake]: disable visibility setup
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1199 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-08-16 06:54:23 +00:00
ChenHengming
c2cdea0a6d [cmake]: set default visibility to hidden and enable mpp/vpu export function
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1195 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-08-15 10:35:30 +00:00
ChenHengming
2ea98e1f2e [cmake]: add hardfp config for armv7-a architecture
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1176 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-08-08 08:32:52 +00:00
ChenHengming
06807e8a33 [cmake]: fix script for arm-linux
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1148 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-08-03 06:43:01 +00:00
ZhaoJun
120b82550e [sofia-3gr-linux]: some modifications for intel-iotg
1. add input block flags OMX_BUFFERFLAG_SYNC
2. change max index number to 32
3. mv sofia-3gr makefile to build/linux/x86 directory

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1113 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-28 03:13:16 +00:00
ZhaoJun
28745421d5 [sofia-3gr-linux]: add sofia-3gr-linux platform support
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1096 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-25 08:32:27 +00:00
GaoZhili
7c00f5b2a6 revert CMakeLists.txt file relative with ARMLINUX, and modify vpu_api_legacy.cpp to compatible with enc and dec
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1049 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-20 07:36:00 +00:00
GaoZhili
3fafb0fe4f commit the avc encode code, now avc encode process is ok
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1048 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-20 07:22:25 +00:00
ChenHengming
f86974668f [cmake]: disable multichar warning
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1026 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-15 00:51:38 +00:00
ChenHengming
d9ad2bd758 [cmake]: fix compile error on windows
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1024 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-14 11:10:15 +00:00
ChenHengming
f7a129e5b7 [meta]: fix compile warning and error
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@1023 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-07-14 11:06:18 +00:00
ChenSiyong
8446a6f086 [linux] add ion.h for linux
[cmake] add RKPLATFORM set  

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@842 6e48237b-75ef-9749-8fc9-41990f28c85a
2016-05-27 09:55:22 +00:00
ChenHengming
c6d93bd1b9 [misc]: remove compile warning, and add utils directory for test cases
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@315 6e48237b-75ef-9749-8fc9-41990f28c85a
2015-09-28 21:22:25 +00:00