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
Index: Bento4-1.6.0-641/CMakeLists.txt =================================================================== --- Bento4-1.6.0-641.orig/CMakeLists.txt +++ Bento4-1.6.0-641/CMakeLists.txt @@ -50,6 +50,14 @@ 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 +) + # Platform specifics if(WIN32) set(AP4_SOURCES ${AP4_SOURCES} ${SOURCE_SYSTEM}/Win32/Ap4Win32Random.cpp) @@ -71,8 +79,8 @@ file(GLOB AP4_HEADERS ${SOURCE_METADATA}/*.h ) -add_library(ap4 STATIC ${AP4_SOURCES}) -target_include_directories(ap4 PUBLIC +add_library(ap4-__VERSION__ SHARED ${AP4_SOURCES}) +target_include_directories(ap4-__VERSION__ PUBLIC ${AP4_INCLUDE_DIRS} ) @@ -88,9 +96,10 @@ if(BUILD_APPS) file(GLOB BENTO4_APPS RELATIVE ${SOURCE_ROOT}/Apps ${SOURCE_ROOT}/Apps/*) foreach(app ${BENTO4_APPS}) string(TOLOWER ${app} binary_name) + string(CONCAT binary_name "bento4-" ${binary_name}) list(APPEND BENTO4_APPS_LOWERCASE ${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__) if(MSVC) set_property(TARGET ${binary_name} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") @@ -120,7 +129,7 @@ configure_package_config_file( ) install( - TARGETS ap4 ${BENTO4_APPS_LOWERCASE} + TARGETS ap4-__VERSION__ ${BENTO4_APPS_LOWERCASE} EXPORT "${TARGETS_EXPORT_NAME}" LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}" ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
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
.