-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Point calf submodule at fork, rename library
- Loading branch information
Showing
5 changed files
with
52 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Note: | ||
# The last version of Calf that was LADSPA-capable is version 0.0.18.2 | ||
|
||
# Parse version info from autoconf | ||
FILE(READ veal/configure.ac VERSION_FILE) | ||
STRING(REPLACE "[" ";" VERSION_FILE ${VERSION_FILE} ) | ||
STRING(REPLACE "]" ";" VERSION_FILE ${VERSION_FILE} ) | ||
LIST(GET VERSION_FILE 2 VERSION) | ||
CONFIGURE_FILE(config.h.in config.h) | ||
|
||
FILE(GLOB SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/veal/src/*.cpp") | ||
LIST(SORT SOURCES) | ||
|
||
# Skip files matching pattern | ||
SET(FILE_PATTERNS "ctl;gui;gtk;session;connector;jack;rdf;draw;fluid;preset;lv2;benchmark;win") | ||
FOREACH(_item ${SOURCES}) | ||
FOREACH(_pattern ${FILE_PATTERNS}) | ||
IF(${_item} MATCHES ${_pattern}) | ||
LIST(REMOVE_ITEM SOURCES ${_item}) | ||
ENDIF() | ||
ENDFOREACH() | ||
ENDFOREACH() | ||
|
||
ADD_LIBRARY(veal MODULE ${SOURCES}) | ||
INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include" | ||
"${CMAKE_BINARY_DIR}" | ||
"${CMAKE_CURRENT_BINARY_DIR}" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/veal/src") | ||
|
||
INSTALL(TARGETS veal LIBRARY DESTINATION "${PLUGIN_DIR}/ladspa") | ||
SET_TARGET_PROPERTIES(veal PROPERTIES PREFIX "") | ||
SET(INLINE_FLAGS "") | ||
IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | ||
SET(INLINE_FLAGS "-finline-functions-called-once -finline-limit=80") | ||
ENDIF() | ||
SET_TARGET_PROPERTIES(veal PROPERTIES COMPILE_FLAGS "-fexceptions -O2 -finline-functions ${INLINE_FLAGS}") | ||
|
||
# Don't strip if "Debug" or "RelWithDebInfo" | ||
IF(LMMS_BUILD_WIN32 AND NOT CMAKE_BUILD_TYPE MATCHES "Deb") | ||
ADD_CUSTOM_COMMAND(TARGET veal POST_BUILD COMMAND "${STRIP}" "$<TARGET_FILE:veal>") | ||
ENDIF() | ||
IF(NOT LMMS_BUILD_APPLE AND NOT LMMS_BUILD_OPENBSD) | ||
SET_TARGET_PROPERTIES(veal PROPERTIES LINK_FLAGS "${LINK_FLAGS} -shared -Wl,-no-undefined") | ||
ENDIF() | ||
|
Submodule calf
deleted from
f71e27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#define VERSION "${VERSION}" | ||
#define PACKAGE_NAME "calf" | ||
#define USE_LADSPA 1 |