mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Restore the wxDEBUG_LEVEL defines for the module builds. It is currently required (see explanation in CMakeLists.txt) Add explanantion of why wxWidgets_USE_REL_AND_DBG=NO is needed for the Github Windows build. Further restrict the disabling dynamic loading for Windows and Mac of the Lame and FFmpeg libs. Some corrections need to be made in ExportMP3.cpp (and probably some for FFmpeg as well). And don't build mod-nyq-bench or mod-null by default until they can be fixed. (They fail to build.)
53 lines
1.3 KiB
CMake
53 lines
1.3 KiB
CMake
|
|
set( TARGET mod-script-pipe )
|
|
set( TARGET_ROOT "${libsrc}/${TARGET}" )
|
|
|
|
message( STATUS "========== Configuring ${TARGET} ==========" )
|
|
|
|
def_vars()
|
|
|
|
add_library( ${TARGET} MODULE )
|
|
|
|
list( APPEND SOURCES
|
|
PRIVATE
|
|
${TARGET_ROOT}/PipeServer.cpp
|
|
${TARGET_ROOT}/ScripterCallback.cpp
|
|
)
|
|
|
|
list( APPEND INCLUDES
|
|
PUBLIC
|
|
${TARGET_ROOT}
|
|
)
|
|
|
|
list( APPEND DEFINES
|
|
PRIVATE
|
|
BUILDING_SCRIPT_PIPE
|
|
|
|
# This is needed until the transition to cmake is complete and
|
|
# the Windows pragmas are removed from ScripterCallback.cpp.
|
|
# Without it, the wxWidgets "debug.h" will define __WXDEBUG__
|
|
# which then causes this module to emit library pragmas for the
|
|
# debug versions of wxWidgets...even if the build if for Release.
|
|
wxDEBUG_LEVEL=0
|
|
)
|
|
|
|
list( APPEND LIBRARIES
|
|
PRIVATE
|
|
Audacity
|
|
wxWidgets
|
|
)
|
|
|
|
set_target_property_all( ${TARGET} LIBRARY_OUTPUT_DIRECTORY "${_DEST}/modules" )
|
|
set_target_properties( ${TARGET}
|
|
PROPERTIES
|
|
PREFIX ""
|
|
FOLDER "lib-src"
|
|
)
|
|
|
|
organize_source( "${TARGET_ROOT}" "" "${SOURCES}" )
|
|
target_sources( ${TARGET} PRIVATE ${SOURCES} )
|
|
target_compile_definitions( ${TARGET} PRIVATE ${DEFINES} )
|
|
target_include_directories( ${TARGET} PRIVATE ${INCLUDES} )
|
|
target_link_libraries( ${TARGET} PRIVATE ${LIBRARIES} )
|
|
|