1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-09-15 15:50:54 +02:00

Try to fix the system.lsp issue again

This commit is contained in:
Leland Lucius 2020-02-24 10:02:09 -06:00
parent 1d267383ca
commit baaafb92df

View File

@ -6,7 +6,7 @@ message( STATUS "========== Configuring ${TARGET} ==========" )
def_vars() def_vars()
list( APPEND SOURCES list( APPEND RUNTIME
aud-do-support.lsp aud-do-support.lsp
dspprims.lsp dspprims.lsp
envelopes.lsp envelopes.lsp
@ -31,15 +31,7 @@ list( APPEND SOURCES
spec-plot.lsp spec-plot.lsp
spectral-analysis.lsp spectral-analysis.lsp
stk.lsp stk.lsp
system.lsp
# Fix this when reorganizing the Nyquist sources
$<$<PLATFORM_ID:Windows>:
${libsrc}/libnyquist/nyquist/sys/win/msvc/system.lsp
>
$<$<NOT:$<PLATFORM_ID:Windows>>:
system.lsp
>
test.lsp test.lsp
velocity.lsp velocity.lsp
xlinit.lsp xlinit.lsp
@ -61,10 +53,17 @@ list( APPEND SOURCES
rawwaves/sinewave.raw rawwaves/sinewave.raw
) )
foreach( source ${SOURCES} ) foreach( source ${RUNTIME} )
set( src "${_SRCDIR}/${source}" ) set( src "${_SRCDIR}/${source}" )
set( dst "${_DEST}/${TARGET}/${source}" ) set( dst "${_DEST}/${TARGET}/${source}" )
# Fix this when reorganizing the Nyquist sources
if( source STREQUAL "system.lsp" )
if( CMAKE_SYSTEM_NAME MATCHES "Windows" )
set( src "${libsrc}/libnyquist/nyquist/sys/win/msvc/system.lsp" )
endif()
endif()
add_custom_command( add_custom_command(
DEPENDS DEPENDS
"${src}" "${src}"
@ -76,6 +75,7 @@ foreach( source ${SOURCES} )
"${dst}" "${dst}"
) )
list( APPEND SOURCES "${src}" )
list( APPEND OUTPUTS "${dst}" ) list( APPEND OUTPUTS "${dst}" )
endforeach() endforeach()