Skip to content
Snippets Groups Projects
Select Git revision
  • c41b62757e2d284311de551e314c11f03d938b5b
  • master default protected
  • release-3.2.3
  • alpha-3.2.0
  • darkaudacity
  • mac-2.1.1-vi
  • DarkAudacity-2.3.2x
  • Audacity-2.3.2
  • Audacity-2.3.1
  • Audacity-2.3.0
  • Audacity-2.2.2
  • Audacity-2.2.2-beta-20180128
  • Audacity-2.2.1
  • Audacity-2.2.1-rc3
  • Audacity-2.2.1-rc2
  • Audacity-2.2.1-rc1
  • Audacity-2.2.0
  • Audacity-2.2.0-rc1
  • Audacity-2.2.0-beta-20170901
  • Audacity-2.1.3
  • DarkAudacity-2.1.3x
  • Audacity-2.1.2
  • wx3-stable
  • wx3-unstable
  • Audacity-2.1.1
  • Audacity-2.1.0
26 results

CMakeLists.txt

Blame
  • CMakeLists.txt 1009 B
    #[[
    Toolkit neutral library for exceptions.
    
    Abstract class AudacityException with a member function for a delayed
    handler action, enqueued in the main thread;
    
    Some commonly useful subclasses, with delayed handlers that are no-ops or
    are displays of messages to the user;
    
    Function template GuardedCall which stops propagation of exceptions and
    enqueues the delayed action.
    
    But this library does NOT define a top-level handler for the whole application,
    to catch all otherwise uncaught exceptions. That is a responsibility of high
    level code.
    ]]
    
    set( SOURCES
       AudacityException.cpp
       AudacityException.h
       InconsistencyException.cpp
       InconsistencyException.h
       UserException.cpp
       UserException.h
    )
    set( LIBRARIES
       lib-utility-interface
       lib-basic-ui-interface
    )
    
    if( APPLE AND MIN_MACOS_VERSION VERSION_LESS "10.12")
       set( DEFINITIONS
          PUBLIC
             -DUNCAUGHT_EXCEPTIONS_UNAVAILABLE
       )
    endif()
    
    audacity_library( lib-exceptions "${SOURCES}" "${LIBRARIES}"
       "${DEFINITIONS}" ""
    )