Skip to content

Commit 0a04565

Browse files
committed
Add libplayerAPIs stub
1 parent f3a6cb5 commit 0a04565

File tree

3 files changed

+496
-3
lines changed

3 files changed

+496
-3
lines changed

CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.22)
2-
project(webos_userland C)
2+
project(webos_userland LANGUAGES C CXX)
33

44
set(CMAKE_C_STANDARD 11)
55

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

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

3034
install(DIRECTORY ${CMAKE_SOURCE_DIR}/include/
3135
DESTINATION include
32-
FILES_MATCHING PATTERN "*.h")
36+
FILES_MATCHING
37+
PATTERN "*.h"
38+
PATTERN "*.hpp")
3339

3440
install(DIRECTORY ${CMAKE_SOURCE_DIR}/share/pkgconfig/
3541
DESTINATION share/pkgconfig

share/pkgconfig/libplayerAPIs.pc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
prefix=/usr
2+
exec_prefix=${prefix}
3+
libdir=${prefix}/lib
4+
includedir=${prefix}/include
5+
6+
Name: libplayerAPIs
7+
Description: starfish media library
8+
Version: 1.0.0
9+
10+
Requires:
11+
Libs: -L${libdir} -lplayerAPIs
12+
Cflags: -I${includedir}

0 commit comments

Comments
 (0)