Skip to content

Commit

Permalink
Added a common build include file to align versions of the host
Browse files Browse the repository at this point in the history
  • Loading branch information
hkbinaurics committed May 7, 2024
1 parent 5e1adbb commit 672aad9
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 62 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,13 @@ set(LOCAL_QT_RESOURCES
# Source code files
set(LOCAL_SOURCES

${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-components.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-connectionrules.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-hostconfig.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-sequencer.cpp

${CMAKE_CURRENT_SOURCE_DIR}/src/jvxAudioHost_hooks.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/myCentralWidget.cpp
${CMAKE_CURRENT_SOURCE_DIR}/src/myCentralWidget.h
)

# Some required include paths
include_directories(
${SUBPRODUCT_AYFSTARTER_LIBS_BINARY_DIR}/sources/Components/AudioNodes/ayfAuNStarter/
${JVX_BASE_ROOT}/sources/jvxLibraries/jvx-component-templates-base/include
${JVX_BASE_ROOT}/sources/jvxLibraries/jvx-component-templates-product/include
${JVX_BASE_ROOT}/sources/jvxLibraries/jvx-qt-app-templates/src
${CMAKE_CURRENT_SOURCE_DIR}/src
)
Expand All @@ -44,13 +36,7 @@ set(LOCAL_LIBS
jvx-qt-app-templates_static
)

# Link against either audio host lib or develop host lib
include(${JVX_SUBPRODUCT_ROOT}/cmake/hostlink.audio.cmake)

## ======================================================================
## The audio libs
# Pull in all audio components
include(${JVX_CMAKE_DIR}/packages/cmake-audio-components.cmake)
include(../common/local_config.cmake)

## ======================================================================
## Prepare the QT workspace settings in VS
Expand All @@ -59,12 +45,5 @@ set(JVX_PREPARE_QT_WORKSPACE_VS TRUE)
# Some compile defines
set(LOCAL_COMPILE_DEFINITIONS "${LOCAL_COMPILE_DEFINITIONS};JVX_PROJECT_NAMESPACE=AYF_STARTER_QT")

# Macos x specific configurations
if(JVX_OS MATCHES "macosx")
set(JVX_MAC_OS_CREATE_BUNDLE TRUE)
else(JVX_OS MATCHES "macosx")
set(CONFIGURE_LOCAL_START_SCRIPT TRUE)
endif(JVX_OS MATCHES "macosx")

# Some common include files
include(${JVX_CMAKE_DIR}/common_local_exe_foot.cmake)
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,6 @@ include(${JVX_CMAKE_DIR}/common_local_exe_head.cmake)
set(JVX_AUTOMATION_VERBOSE TRUE)
set(JVX_LOCAL_AUTOMATION_ON_START FALSE)

# Source code files
set(LOCAL_SOURCES

${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-components.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-connectionrules.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-hostconfig.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-sequencer.cpp
)

# Some required include paths
include_directories(

${SUBPRODUCT_AYFSTARTER_LIBS_BINARY_DIR}/sources/Components/AudioNodes/ayfAuNStarter/
${JVX_SUBPRODUCT_ROOT}/sources/jvxLibraries/jvx-component-templates-product/include
${JVX_SUBPRODUCT_BINARY_DIR}/sources/jvxLibraries/jvx-component-templates-product/generated

)

# Add algorithm specific library
set(LOCAL_LIBS
ayfAuNStarter_static
)

# ====================================================================================
# Console Host specific part
# ====================================================================================
Expand All @@ -38,33 +15,18 @@ set(JVX_LINK_WITH_CONSOLE_HOST_FRONTEND_BACKEND_LIB TRUE)
set(LOCAL_COMPILE_DEFINITIONS "${LOCAL_COMPILE_DEFINITIONS};COMPILE_FOR_CONSOLE")
force_console_app()

include(../common/local_config.cmake)

# ====================================================================================
# ====================================================================================

# Link against either audio host lib or develop host lib
include(${JVX_SUBPRODUCT_ROOT}/cmake/hostlink.audio.cmake)

## ======================================================================
## The audio libs
# Pull in all audio components
include(${JVX_CMAKE_DIR}/packages/cmake-audio-components.cmake)

## ======================================================================

# Some compile defines
#set(LOCAL_COMPILE_DEFINITIONS "JVX_ADD_HOST_WEBSERVER;JVX_PROJECT_NAMESPACE=JVX_MY_HOST;JVX_NO_SEQUENCER;JVX_NO_RTVIEWER;JVX_NO_MESSAGES")
set(LOCAL_COMPILE_DEFINITIONS "${LOCAL_COMPILE_DEFINITIONS};JVX_PROJECT_NAMESPACE=AYF_STARTER_WEB")

# Specify the max number of devices to be mixed during processing per technology. The QT host assumes at least a fixed number other than inf
set(LOCAL_COMPILE_DEFINITIONS "${LOCAL_COMPILE_DEFINITIONS};JVX_NUMBER_AUDIO_DEVICES_MIX=6")

# Macos x specific configurations
if(JVX_OS MATCHES "macosx")
set(JVX_MAC_OS_CREATE_BUNDLE TRUE)
else(JVX_OS MATCHES "macosx")
set(CONFIGURE_LOCAL_START_SCRIPT TRUE)
endif(JVX_OS MATCHES "macosx")

# Activate the VS project settings to run applications by F5
set(JVX_PREPARE_WORKSPACE_VS TRUE)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
set(LOCAL_SOURCES ${LOCAL_SOURCES}
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-components.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-connectionrules.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-hostconfig.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../common/ayfstarter-sequencer.cpp
../common/local_config.cmake
)

include_directories(

${SUBPRODUCT_AYFSTARTER_LIBS_BINARY_DIR}/sources/Components/AudioNodes/ayfAuNStarter/

${JVX_SUBPRODUCT_ROOT}/sources/jvxLibraries/jvx-component-templates-product/include
${JVX_SUBPRODUCT_BINARY_DIR}/sources/jvxLibraries/jvx-component-templates-product/generated
)

set(LOCAL_LIBS ${LOCAL_LIBS}
ayfAuNStarter_static )

# Link against either audio host lib or develop host lib
include(${JVX_SUBPRODUCT_ROOT}/cmake/hostlink.audio.cmake)

## ======================================================================
## The audio libs
# Pull in all audio components
include(${JVX_CMAKE_DIR}/packages/cmake-audio-components.cmake)

# Macos x specific configurations
#if(JVX_OS MATCHES "macosx")
# set(JVX_MAC_OS_CREATE_BUNDLE TRUE)
#else(JVX_OS MATCHES "macosx")
# set(CONFIGURE_LOCAL_START_SCRIPT TRUE)
#endif(JVX_OS MATCHES "macosx")

0 comments on commit 672aad9

Please sign in to comment.