1*4882a593SmuzhiyunFrom 4824be8986c2b6ef0b0bd2b32bc99c4ba6406640 Mon Sep 17 00:00:00 2001 2*4882a593SmuzhiyunFrom: "Yann E. MORIN" <yann.morin.1998@free.fr> 3*4882a593SmuzhiyunDate: Sat, 24 Jan 2015 19:44:14 +0100 4*4882a593SmuzhiyunSubject: [PATCH] Add .pc files for the OpenGLESv2, EGL and bcm_host libraries 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunThose pkg-config files make it easier for Qt5 to find those libraries 7*4882a593Smuzhiyunand the appropriate link flags. 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 10*4882a593SmuzhiyunSigned-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> 11*4882a593Smuzhiyun 12*4882a593Smuzhiyun[Rebased for rpi-userland-a1b89e91f393c7134b4cdc36431f863bb3333163] 13*4882a593SmuzhiyunSigned-off-by: Peter Seiderer <ps.report@gmx.net> 14*4882a593Smuzhiyun--- 15*4882a593Smuzhiyun host_applications/linux/libs/bcm_host/CMakeLists.txt | 4 ++++ 16*4882a593Smuzhiyun host_applications/linux/libs/bcm_host/bcm_host.pc.in | 10 ++++++++++ 17*4882a593Smuzhiyun interface/khronos/CMakeLists.txt | 8 ++++++++ 18*4882a593Smuzhiyun interface/khronos/egl/egl.pc.in | 11 +++++++++++ 19*4882a593Smuzhiyun interface/khronos/glxx/glesv2.pc.in | 10 ++++++++++ 20*4882a593Smuzhiyun 5 files changed, 43 insertions(+) 21*4882a593Smuzhiyun create mode 100644 host_applications/linux/libs/bcm_host/bcm_host.pc.in 22*4882a593Smuzhiyun create mode 100644 interface/khronos/egl/egl.pc.in 23*4882a593Smuzhiyun create mode 100644 interface/khronos/glxx/glesv2.pc.in 24*4882a593Smuzhiyun 25*4882a593Smuzhiyundiff --git a/host_applications/linux/libs/bcm_host/CMakeLists.txt b/host_applications/linux/libs/bcm_host/CMakeLists.txt 26*4882a593Smuzhiyunindex 1edf50a..1f29ead 100644 27*4882a593Smuzhiyun--- a/host_applications/linux/libs/bcm_host/CMakeLists.txt 28*4882a593Smuzhiyun+++ b/host_applications/linux/libs/bcm_host/CMakeLists.txt 29*4882a593Smuzhiyun@@ -20,3 +20,7 @@ target_link_libraries(bcm_host vcos vchostif) 30*4882a593Smuzhiyun 31*4882a593Smuzhiyun install(TARGETS bcm_host DESTINATION lib) 32*4882a593Smuzhiyun 33*4882a593Smuzhiyun+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/bcm_host.pc.in" 34*4882a593Smuzhiyun+ "${CMAKE_CURRENT_BINARY_DIR}/bcm_host.pc" @ONLY) 35*4882a593Smuzhiyun+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/bcm_host.pc" 36*4882a593Smuzhiyun+ DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig") 37*4882a593Smuzhiyundiff --git a/host_applications/linux/libs/bcm_host/bcm_host.pc.in b/host_applications/linux/libs/bcm_host/bcm_host.pc.in 38*4882a593Smuzhiyunnew file mode 100644 39*4882a593Smuzhiyunindex 0000000..d40d350 40*4882a593Smuzhiyun--- /dev/null 41*4882a593Smuzhiyun+++ b/host_applications/linux/libs/bcm_host/bcm_host.pc.in 42*4882a593Smuzhiyun@@ -0,0 +1,10 @@ 43*4882a593Smuzhiyun+prefix=/usr 44*4882a593Smuzhiyun+exec_prefix=${prefix} 45*4882a593Smuzhiyun+libdir=${exec_prefix}/lib 46*4882a593Smuzhiyun+includedir=${prefix}/include 47*4882a593Smuzhiyun+ 48*4882a593Smuzhiyun+Name: bcm_host 49*4882a593Smuzhiyun+Description: Broadcom VideoCore host API library 50*4882a593Smuzhiyun+Version: 1 51*4882a593Smuzhiyun+Libs: -L${libdir} -lbcm_host -lvcos -lvchiq_arm 52*4882a593Smuzhiyun+Cflags: -I${includedir} -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM 53*4882a593Smuzhiyundiff --git a/interface/khronos/CMakeLists.txt b/interface/khronos/CMakeLists.txt 54*4882a593Smuzhiyunindex 4231af4..2844ebd 100644 55*4882a593Smuzhiyun--- a/interface/khronos/CMakeLists.txt 56*4882a593Smuzhiyun+++ b/interface/khronos/CMakeLists.txt 57*4882a593Smuzhiyun@@ -74,6 +74,14 @@ target_link_libraries(OpenVG EGL) 58*4882a593Smuzhiyun 59*4882a593Smuzhiyun install(TARGETS EGL GLESv2 OpenVG WFC khrn_client DESTINATION lib) 60*4882a593Smuzhiyun install(TARGETS EGL_static GLESv2_static khrn_static DESTINATION lib) 61*4882a593Smuzhiyun+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/egl/egl.pc.in" 62*4882a593Smuzhiyun+ "${CMAKE_CURRENT_BINARY_DIR}/egl/egl.pc" @ONLY) 63*4882a593Smuzhiyun+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/egl/egl.pc" 64*4882a593Smuzhiyun+ DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig") 65*4882a593Smuzhiyun+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/glxx/glesv2.pc.in" 66*4882a593Smuzhiyun+ "${CMAKE_CURRENT_BINARY_DIR}/glxx/glesv2.pc" @ONLY) 67*4882a593Smuzhiyun+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/glxx/glesv2.pc" 68*4882a593Smuzhiyun+ DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig") 69*4882a593Smuzhiyun 70*4882a593Smuzhiyun # recommended names to use to avoid conflicts with mesa libs 71*4882a593Smuzhiyun add_library(brcmEGL ${SHARED} ${EGL_SOURCE}) 72*4882a593Smuzhiyundiff --git a/interface/khronos/egl/egl.pc.in b/interface/khronos/egl/egl.pc.in 73*4882a593Smuzhiyunnew file mode 100644 74*4882a593Smuzhiyunindex 0000000..5868706 75*4882a593Smuzhiyun--- /dev/null 76*4882a593Smuzhiyun+++ b/interface/khronos/egl/egl.pc.in 77*4882a593Smuzhiyun@@ -0,0 +1,11 @@ 78*4882a593Smuzhiyun+prefix=@CMAKE_INSTALL_PREFIX@ 79*4882a593Smuzhiyun+exec_prefix=${prefix} 80*4882a593Smuzhiyun+libdir=${exec_prefix}/lib 81*4882a593Smuzhiyun+includedir=${prefix}/include 82*4882a593Smuzhiyun+ 83*4882a593Smuzhiyun+Name: egl 84*4882a593Smuzhiyun+Description: RasberryPi implementation of EGL 85*4882a593Smuzhiyun+Version: 10 86*4882a593Smuzhiyun+Libs: -L${libdir} -lEGL -lGLESv2 -lbcm_host -lvchostif 87*4882a593Smuzhiyun+Cflags: -I${includedir}/ -I${includedir}/interface/vcos/pthreads/ \ 88*4882a593Smuzhiyun+ -I${includedir}/interface/vmcs_host/linux/ 89*4882a593Smuzhiyundiff --git a/interface/khronos/glxx/glesv2.pc.in b/interface/khronos/glxx/glesv2.pc.in 90*4882a593Smuzhiyunnew file mode 100644 91*4882a593Smuzhiyunindex 0000000..2f58eed 92*4882a593Smuzhiyun--- /dev/null 93*4882a593Smuzhiyun+++ b/interface/khronos/glxx/glesv2.pc.in 94*4882a593Smuzhiyun@@ -0,0 +1,10 @@ 95*4882a593Smuzhiyun+prefix=@CMAKE_INSTALL_PREFIX@ 96*4882a593Smuzhiyun+exec_prefix=${prefix} 97*4882a593Smuzhiyun+libdir=${exec_prefix}/lib 98*4882a593Smuzhiyun+includedir=${prefix}/include 99*4882a593Smuzhiyun+ 100*4882a593Smuzhiyun+Name: glesv2 101*4882a593Smuzhiyun+Description: RasberryPi implementation of OpenGL ESv2 102*4882a593Smuzhiyun+Version: 2.0 103*4882a593Smuzhiyun+Libs: -L${libdir} -lGLESv2 104*4882a593Smuzhiyun+Cflags: -I${includedir}/ 105*4882a593Smuzhiyun-- 106*4882a593Smuzhiyun2.8.1 107*4882a593Smuzhiyun 108