Ticket #33821: cmake-port-group-debug.patch

File cmake-port-group-debug.patch, 1010 bytes (added by seanfarley (Sean Farley), 13 years ago)

add dsym to cmake +debug variant

  • dports/_resources/port1.0/group/cmake-1.0.tcl

    # HG changeset patch
    # User Sean Farley <sean@mcs.anl.gov>
    # Date 1335043541 18000
    # Node ID 567bfa7e72269f06e9864b5e2e5c2652c74d0135
    # Parent  526a427fdc16a55ee77fea3a7e270073e23f3eae
    cmake: add generation of .dSYM bundle to +debug variant in port group
    
    diff --git a/dports/_resources/port1.0/group/cmake-1.0.tcl b/dports/_resources/port1.0/group/cmake-1.0.tcl
    a b  
    7272configure.universal_args-delete --disable-dependency-tracking
    7373
    7474variant debug description "Enable debug binaries" {
    7575    configure.args-delete   -DCMAKE_BUILD_TYPE=Release
    7676    configure.args-append   -DCMAKE_BUILD_TYPE=debugFull
     77
     78    post-destroot {
     79        ui_debug "Generating debug symbols: find ${destroot}${prefix} -type f '(' -name '*.dylib' -or -name '*.so' ')' -exec dsymutil {} +"
     80        system -W ${destroot}${prefix} "find . -type f '(' -name '*.dylib' -or -name '*.so' ')' -exec dsymutil {} +"
     81    }
    7782}