mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-10 16:43:33 +02:00
Move all CMake of lib-src to cmake-proxies
Previously lib-src that we controlled had their cmake files with them. This is clearer. Also added place holders for help and locale. Also enabled libvorbis and soundtouch and disabled portburn.
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
set( LIB_SRC_DIRECTORY ${top_dir}/lib-src/ )
|
||||
|
||||
#These are done in their actual directories, no need for a proxy.
|
||||
#add_subdirectory( "mod-script-pipe" )
|
||||
#add_subdirectory( "FileDialog" )
|
||||
|
||||
#Same idea, but not yet done/needed
|
||||
#add_subdirectory( "mod-null" )
|
||||
@@ -16,6 +14,8 @@ set( LIB_SRC_DIRECTORY ${top_dir}/lib-src/ )
|
||||
|
||||
|
||||
add_subdirectory( "expat" )
|
||||
add_subdirectory( "FileDialog" )
|
||||
#add_subdirectory( "help" )
|
||||
add_subdirectory( "libflac" )
|
||||
add_subdirectory( "libflac++" )
|
||||
add_subdirectory( "libid3tag" )
|
||||
@@ -26,11 +26,15 @@ add_subdirectory( "libscorealign" )
|
||||
add_subdirectory( "libsndfile" )
|
||||
add_subdirectory( "libsoxr" )
|
||||
add_subdirectory( "libvamp" )
|
||||
add_subdirectory( "libvorbis" )
|
||||
#add_subdirectory( "locale" )
|
||||
add_subdirectory( "lv2" )
|
||||
add_subdirectory( "mod-script-pipe" )
|
||||
add_subdirectory( "portaudio-v19" )
|
||||
add_subdirectory( "portmidi" )
|
||||
add_subdirectory( "portmixer" )
|
||||
add_subdirectory( "portburn" )
|
||||
#add_subdirectory( "portburn" ) # not built
|
||||
add_subdirectory( "portsmf" )
|
||||
add_subdirectory( "sbsms" )
|
||||
add_subdirectory( "soundtouch" )
|
||||
add_subdirectory( "twolame" )
|
||||
|
24
cmake-proxies/FileDialog/CMakeLists.txt
Normal file
24
cmake-proxies/FileDialog/CMakeLists.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
#directory lib-src/FileDialog
|
||||
set( TARGET FileDialog )
|
||||
set( TARGET_SOURCE ${LIB_SRC_DIRECTORY}${TARGET} )
|
||||
project( ${TARGET} )
|
||||
|
||||
set( SOURCES
|
||||
${LIB_SRC_DIRECTORY}FileDialog/FileDialog.cpp
|
||||
#${LIB_SRC_DIRECTORY}FileDialog/gtk/FileDialogPrivate.cpp #not on windows.
|
||||
${LIB_SRC_DIRECTORY}FileDialog/win/FileDialogPrivate.cpp
|
||||
)
|
||||
|
||||
add_library( FileDialog STATIC ${SOURCES})
|
||||
find_package(wxWidgets REQUIRED COMPONENTS net core base)
|
||||
include( ${wxWidgets_USE_FILE} )
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
#${wxWidgets_INCLUDE_DIRS}
|
||||
${TARGET_SOURCE}
|
||||
${TARGET_SOURCE}/win
|
||||
)
|
||||
add_definitions( -DWXUSINGDLL -DWIN32 -D_LIB
|
||||
#${wxWidgets_DEFINITIONS}
|
||||
)
|
||||
target_link_libraries(${TARGET} ${wxWidgets_LIBRARIES})
|
||||
|
20
cmake-proxies/mod-script-pipe/CMakeLists.txt
Normal file
20
cmake-proxies/mod-script-pipe/CMakeLists.txt
Normal file
@@ -0,0 +1,20 @@
|
||||
#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( 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})
|
||||
|
||||
target_include_directories( ${TARGET} PRIVATE
|
||||
${top_dir}/win
|
||||
)
|
||||
|
||||
target_link_libraries( ${TARGET} ${wxWidgets_LIBRARIES})
|
Reference in New Issue
Block a user