1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-18 00:21:18 +02:00

More cmake updates

Uses system libraries by default with a fallback to local
Adds the Wrapper build on OSX
Adds mod_script_pipe
Adds ffmpeg
Some additional cleanup
This commit is contained in:
Leland Lucius
2020-02-05 11:10:22 -06:00
parent 8168dce551
commit 2e113ba0a5
28 changed files with 341 additions and 167 deletions

View File

@@ -1,20 +1,46 @@
#directory cmake-proxies/mod-script-pipe
set( TARGET mod-script-pipe )
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
project( ${TARGET} )
find_package(wxWidgets REQUIRED COMPONENTS net core base)
include(${wxWidgets_USE_FILE})
set( TARGET_ROOT "${libsrc}/${TARGET}" )
set( SOURCES
${TARGET_SOURCE}/PipeServer.cpp
${TARGET_SOURCE}/ScripterCallback.cpp
)
# This defines the #define on both Windows and Linux.
add_definitions( -DBUILDING_SCRIPT_PIPE )
add_library( ${TARGET} MODULE ${SOURCES})
message( STATUS "========== Configuring ${TARGET} ==========" )
target_include_directories( ${TARGET} PRIVATE
${top_dir}/win
def_vars()
add_library( ${TARGET} MODULE )
list( APPEND SOURCES
PRIVATE
${TARGET_ROOT}/PipeServer.cpp
${TARGET_ROOT}/ScripterCallback.cpp
)
target_link_libraries( ${TARGET} ${wxWidgets_LIBRARIES})
list( APPEND INCLUDES
PUBLIC
${TARGET_ROOT}
)
list( APPEND DEFINES
PRIVATE
BUILDING_SCRIPT_PIPE
)
list( APPEND LIBRARIES
PRIVATE
wxwidgets
Audacity
)
set_target_properties( ${TARGET}
PROPERTIES
LIBRARY_OUTPUT_DIRECTORY_DEBUG "${_MODDIR}"
LIBRARY_OUTPUT_DIRECTORY_RELEASE "${_MODDIR}"
LIBRARY_OUTPUT_DIRECTORY "${_MODDIR}"
PREFIX ""
)
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} )