Projects
Multimedia
bento4
bento4-shared_library.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bento4-shared_library.patch of Package bento4 (Revision 8)
Currently displaying revision
8
,
Show latest
Index: Bento4-1.5.1-621/CMakeLists.txt =================================================================== --- Bento4-1.5.1-621.orig/CMakeLists.txt +++ Bento4-1.5.1-621/CMakeLists.txt @@ -27,13 +27,21 @@ file(GLOB AP4_SOURCES ${SOURCE_SYSTEM}/StdC/*.cpp ) +# SDK includes +file(GLOB SDK_INCLUDES + ${SOURCE_ROOT}/Core/*.h + ${SOURCE_ROOT}/MetaData/*.h + ${SOURCE_ROOT}/Crypto/*.h + ${SOURCE_ROOT}Codecs/*.h +) + if(WIN32) set(AP4_SOURCES ${AP4_SOURCES} ${SOURCE_SYSTEM}/Win32/Ap4Win32Random.cpp) else() set(AP4_SOURCES ${AP4_SOURCES} ${SOURCE_SYSTEM}/Posix/Ap4PosixRandom.cpp) endif() -add_library(ap4 STATIC ${AP4_SOURCES}) +add_library(ap4-__VERSION__ SHARED ${AP4_SOURCES}) # Includes include_directories( @@ -47,6 +55,11 @@ include_directories( set(BENTO4_APPS "Aac2Mp4;Mp42Aac;Mp42Ts;Mp42Hls;Mp4Compact;Mp4DcfPackager;Mp4Decrypt;Mp4Dump;Mp4Edit;Mp4Encrypt;Mp4Extract;Mp4Fragment;Mp4Info;Mp4Mux;Mp4Split;Mp4Tag;Mp4Diff;Mp4IframeIndex") foreach(app ${BENTO4_APPS}) string(TOLOWER ${app} binary_name) + string(CONCAT binary_name "bento4-" ${binary_name}) add_executable(${binary_name} ${SOURCE_ROOT}/Apps/${app}/${app}.cpp) - target_link_libraries(${binary_name} ap4) + target_link_libraries(${binary_name} ap4-__VERSION__) + INSTALL(TARGETS ${binary_name} DESTINATION bin) endforeach() + +INSTALL (TARGETS ap4-__VERSION__ DESTINATION lib${LIB_SUFFIX}) +INSTALL(FILES ${SDK_INCLUDES} DESTINATION include/ap4)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.