Changeset 2872


Ignore:
Timestamp:
12/03/13 13:09:42 (11 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: No

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): asap build with CASA

Description: introduced version numbering (common to casacore and CASA) to shared libraries of asap (_asap.so, libpyrap.so, libatnf.so, and libasap.so) when the package is build as a part of CASA.


Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/cmake/withcasa.cmake

    r2847 r2872  
    9696set( CASACORE_PATHS "${casaroot}/${arch};${casaroot};/usr/local;/usr" )
    9797
     98set( epochdelta 1385403204 )
     99if ( EXISTS ${CMAKE_INSTALL_PREFIX}/${arch}/casa_sover.txt )
     100    execute_process( COMMAND perl -e "while (<>) { chomp and print if (! m/^\#/ ) }" ${CMAKE_INSTALL_PREFIX}/${arch}/casa_sover.txt
     101                     OUTPUT_VARIABLE __asap_soversion )
     102elseif( EXISTS ${CMAKE_INSTALL_PREFIX}/casa_sover.txt )
     103    execute_process( COMMAND perl -e "while (<>) { chomp and print if (! m/^#/ ) }" ${CMAKE_INSTALL_PREFIX}/casa_sover.txt
     104                     OUTPUT_VARIABLE __asap_soversion )
     105else( )
     106    execute_process( COMMAND perl -e "$t=time( )-${epochdelta};$z=$t & 0xff; $y=($t>>8)&0xff; $x=($t>>16)&0xffff; print \"$x.$y.$z\""
     107                     OUTPUT_VARIABLE __asap_soversion )
     108endif( )
     109set(asap_soversion ${__asap_soversion} CACHE STRING "version for shared objects")
     110message( STATUS "shared object version number ${asap_soversion}" )
    98111
    99112#
  • trunk/external-alma/atnf/CMakeLists.txt

    r2577 r2872  
    5555add_dependencies( inst ${ATNFLIB} )
    5656
     57if ( DEFINED asap_soversion )
     58    set_target_properties( ${ATNFLIB} PROPERTIES SOVERSION ${asap_soversion} )
     59endif( )
     60
    5761# install directory
    5862install( TARGETS ${ATNFLIB}
  • trunk/external/libpyrap/CMakeLists.txt

    r1966 r2872  
    3636add_dependencies( inst ${PYRAPLIB} )
    3737
     38if ( DEFINED asap_soversion )
     39    set_target_properties( ${PYRAPLIB} PROPERTIES SOVERSION ${asap_soversion} )
     40endif( )
     41
    3842# install directory
    3943install( TARGETS ${PYRAPLIB}
  • trunk/src/CMakeLists.txt

    r2833 r2872  
    119119add_library( ${ASAPPYLIB} SHARED ${ASAP_PYSRCS} )
    120120
     121if ( DEFINED asap_soversion )
     122    set_target_properties( ${ASAPLIB} PROPERTIES SOVERSION ${asap_soversion} )
     123    set_target_properties( ${ASAPPYLIB} PROPERTIES SOVERSION ${asap_soversion} )
     124endif( )
     125
    121126# library name must be _asap.so
    122127set_target_properties( ${ASAPPYLIB}
Note: See TracChangeset for help on using the changeset viewer.