-
-
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.
- Loading branch information
Showing
29 changed files
with
15 additions
and
13,302 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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
INCLUDE_DIRECTORIES("${CMAKE_SOURCE_DIR}/include") | ||
FILE(GLOB PLUGIN_SOURCES *.c) | ||
FILE(GLOB PLUGIN_SOURCES tap-plugins/*.c) | ||
LIST(SORT PLUGIN_SOURCES) | ||
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -Wno-write-strings -fomit-frame-pointer -fno-strict-aliasing -fstrength-reduce -funroll-loops -ffast-math") | ||
FOREACH(_item ${PLUGIN_SOURCES}) | ||
GET_FILENAME_COMPONENT(_plugin "${_item}" NAME_WE) | ||
ADD_LIBRARY("${_plugin}" MODULE "${_item}") | ||
# TAP pinknoise will re-init srand(); use existing seed instead | ||
IF("${_plugin}" MATCHES "tap_pinknoise") | ||
TARGET_COMPILE_DEFINITIONS("${_plugin}" PRIVATE TAP_DISABLE_SRAND=1) | ||
ENDIF() | ||
INSTALL(TARGETS "${_plugin}" LIBRARY DESTINATION "${PLUGIN_DIR}/ladspa") | ||
SET_TARGET_PROPERTIES("${_plugin}" PROPERTIES PREFIX "") | ||
IF(LMMS_BUILD_WIN32) | ||
# Don't strip if "Debug" or "RelWithDebInfo" | ||
IF(LMMS_BUILD_WIN32 AND NOT CMAKE_BUILD_TYPE MATCHES "Deb") | ||
ADD_CUSTOM_COMMAND(TARGET "${_plugin}" POST_BUILD COMMAND "${STRIP}" \"$<TARGET_FILE:${_plugin}>\") | ||
ENDIF(LMMS_BUILD_WIN32) | ||
ENDIF() | ||
IF(LMMS_BUILD_APPLE) | ||
SET_TARGET_PROPERTIES("${_plugin}" PROPERTIES LINK_FLAGS "${LINK_FLAGS} -Bsymbolic -lm") | ||
ELSEIF(NOT LMMS_BUILD_OPENBSD) | ||
SET_TARGET_PROPERTIES("${_plugin}" PROPERTIES LINK_FLAGS "${LINK_FLAGS} -shared -Wl,-no-undefined -Wl,-Bsymbolic -lm") | ||
ENDIF(LMMS_BUILD_APPLE) | ||
ENDIF() | ||
IF(LMMS_BUILD_LINUX OR LMMS_BUILD_HAIKU) | ||
SET_TARGET_PROPERTIES("${_plugin}" PROPERTIES LINK_FLAGS "${LINK_FLAGS}") | ||
ENDIF(LMMS_BUILD_LINUX OR LMMS_BUILD_HAIKU) | ||
ENDFOREACH(_item ${PLUGIN_SOURCES}) | ||
ENDIF() | ||
ENDFOREACH() | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule tap-plugins
added at
198b84
Oops, something went wrong.