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 22)
Currently displaying revision
22
,
Show latest
Index: Bento4-1.6.0-636/CMakeLists.txt =================================================================== --- Bento4-1.6.0-636.orig/CMakeLists.txt +++ Bento4-1.6.0-636/CMakeLists.txt @@ -42,6 +42,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) @@ -57,8 +65,8 @@ set(AP4_INCLUDE_DIRS ${SOURCE_METADATA} ) -add_library(ap4 STATIC ${AP4_SOURCES}) -target_include_directories(ap4 PUBLIC ${AP4_INCLUDE_DIRS}) +add_library(ap4-__VERSION__ SHARED ${AP4_SOURCES}) +target_include_directories(ap4-__VERSION__ PUBLIC ${AP4_INCLUDE_DIRS}) # Use the statically linked C runtime library if(MSVC) @@ -72,12 +80,16 @@ 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}) 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) if(MSVC) set_property(TARGET ${binary_name} PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") target_compile_definitions(${binary_name} PRIVATE -D_CONSOLE) endif() endforeach() +INSTALL (TARGETS ap4-__VERSION__ DESTINATION lib${LIB_SUFFIX}) +INSTALL(FILES ${SDK_INCLUDES} DESTINATION include/ap4) endif(BUILD_APPS)
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
.