Skip to content

Commit

Permalink
Add libplayerAPIs stub
Browse files Browse the repository at this point in the history
  • Loading branch information
sundermann committed Feb 17, 2023
1 parent f3a6cb5 commit 0a04565
Show file tree
Hide file tree
Showing 3 changed files with 496 additions and 3 deletions.
12 changes: 9 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.22)
project(webos_userland C)
project(webos_userland LANGUAGES C CXX)

set(CMAKE_C_STANDARD 11)

Expand All @@ -25,11 +25,17 @@ add_library(NDL_directmedia SHARED src/dummy.c)
set_target_properties(NDL_directmedia PROPERTIES VERSION 1.0.0 SOVERSION 1)
target_link_options(NDL_directmedia PRIVATE ${CMAKE_SOURCE_DIR}/src/NDL_directmedia.lds)

install(TARGETS EGL GLESv1_CM GLESv2 NDL_directmedia wayland-egl DESTINATION lib)
add_library(playerAPIs SHARED src/dummy.c)
set_target_properties(playerAPIs PROPERTIES VERSION 1.0.0 SOVERSION 1)
target_link_options(playerAPIs PRIVATE ${CMAKE_SOURCE_DIR}/src/playerAPIs.lds)

install(TARGETS EGL GLESv1_CM GLESv2 NDL_directmedia playerAPIs wayland-egl DESTINATION lib)

install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/
DESTINATION include
FILES_MATCHING PATTERN "*.h")
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hpp")

install(DIRECTORY ${CMAKE_SOURCE_DIR}/share/pkgconfig/
DESTINATION share/pkgconfig
Expand Down
12 changes: 12 additions & 0 deletions share/pkgconfig/libplayerAPIs.pc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include

Name: libplayerAPIs
Description: starfish media library
Version: 1.0.0

Requires:
Libs: -L${libdir} -lplayerAPIs
Cflags: -I${includedir}
Loading

0 comments on commit 0a04565

Please sign in to comment.