You've already forked libmali-rockchip
mirror of
https://github.com/armbian/libmali-rockchip.git
synced 2026-01-06 12:03:41 -08:00
pkgconfig: add new pkgconfig for mali
Some symbols are only supported by arm mali not the mesa, I think I should offer a way for those application need to link to arm mali not mesa to detect the system. Signed-off-by: Randy Li <randy.li@rock-chips.com>
This commit is contained in:
@@ -10,6 +10,8 @@ CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/gbm.pc.cmake"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/gbm.pc" @ONLY)
|
||||
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/glesv2.pc.cmake"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/glesv2.pc" @ONLY)
|
||||
CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig/mali.pc.cmake"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/mali.pc" @ONLY)
|
||||
|
||||
INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/mali.icd"
|
||||
DESTINATION "${CMAKE_INSTALL_SYSCONFDIR}/OpenCL/vendors/")
|
||||
@@ -49,6 +51,7 @@ DESTINATION "${CMAKE_INSTALL_LIBDIR}")
|
||||
INSTALL(FILES "${CMAKE_CURRENT_BINARY_DIR}/egl.pc"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/gbm.pc"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/glesv2.pc"
|
||||
"${CMAKE_CURRENT_BINARY_DIR}/mali.pc"
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
|
||||
|
||||
INSTALL(FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/gbm.h"
|
||||
|
||||
12
pkgconfig/mali.pc.cmake
Normal file
12
pkgconfig/mali.pc.cmake
Normal file
@@ -0,0 +1,12 @@
|
||||
prefix=/usr
|
||||
exec_prefix=${prefix}
|
||||
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
|
||||
|
||||
Name: mali
|
||||
Description: Mali EGL library
|
||||
Requires.private:
|
||||
Version: 7.10
|
||||
Libs: -L${libdir} -lmali
|
||||
Libs.private: -lm -lpthread
|
||||
Cflags: -I${includedir}
|
||||
Reference in New Issue
Block a user