Changeset 491


Ignore:
Timestamp:
02/15/16 00:07:10 (9 years ago)
Author:
r2d
Message:

adapted patch 0001-shared.patch from buildroot:
https://git.busybox.net/buildroot/tree/package/musepack/0001-shared.patch
original changelog :

Fixup installation of shared mpcdec library.
Based on gentoo patch.

Signed-off-by: Gustavo Zacarias <gustavo@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libmpc/trunk/libmpcdec/CMakeLists.txt

    r482 r491  
    55set(mpcdec_VERSION ${mpcdec_VERSION_MAJOR}.${mpcdec_VERSION_MINOR}.${mpcdec_VERSION_PATCH})
    66
    7 include_directories(${libmpc_SOURCE_DIR}/include)
    87install(FILES
    98        ${libmpc_SOURCE_DIR}/include/mpc/mpcdec.h
     
    1312        DESTINATION include/mpc COMPONENT headers)
    1413
     14include_directories(${libmpc_SOURCE_DIR}/include)
    1515if(SHARED)
    16   add_library(mpcdec SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
    17   set_target_properties(mpcdec PROPERTIES VERSION ${mpcdec_VERSION} SOVERSION ${mpcdec_VERSION_MAJOR})
    18   install(TARGETS mpcdec LIBRARY DESTINATION "lib" COMPONENT libraries)
     16  add_library(mpcdec_shared SHARED huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
     17  set_target_properties(mpcdec_shared PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1 VERSION ${mpcdec_VERSION} SOVERSION ${mpcdec_VERSION_MAJOR})
     18  install(TARGETS mpcdec_shared LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}" COMPONENT libraries)
     19  target_link_libraries(mpcdec_shared m)
    1920else(SHARED)
    2021  add_library(mpcdec_static STATIC huffman mpc_decoder mpc_reader streaminfo mpc_bits_reader mpc_demux requant synth_filter ${libmpc_SOURCE_DIR}/common/crc32)
    21   install(TARGETS mpcdec_static ARCHIVE DESTINATION "lib/static" COMPONENT libraries)
     22  set_target_properties(mpcdec_static PROPERTIES OUTPUT_NAME mpcdec CLEAN_DIRECT_OUTPUT 1)
     23  install(TARGETS mpcdec_static LIBRARY DESTINATION "lib${LIB_SUFFIX}" ARCHIVE DESTINATION "lib${LIB_SUFFIX}" COMPONENT libraries)
     24  target_link_libraries(mpcdec_static m)
    2225endif(SHARED)
    2326
Note: See TracChangeset for help on using the changeset viewer.