forked from surge-synthesizer/surge
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CMakeLists.txt that is able to build the headless version for macOS and update build-osx.sh to use it to build the headless version of Surge. Former-commit-id: 2fa6d2040268537c5ea6b72693db500348e9da8c [formerly 8a16959] Former-commit-id: 47070f472a7f34d70d777e55636c96cf68619a77 Former-commit-id: c507e9e60401897707033bdbe76c1c2b1dfdda4a
- Loading branch information
Showing
5 changed files
with
169 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(Surge VERSION 1.0.0 LANGUAGES CXX) | ||
|
||
set(SURGE_COMMON_SOURCES | ||
src/common/dsp/effect/ConditionerEffect.cpp | ||
src/common/dsp/effect/DistortionEffect.cpp | ||
src/common/dsp/effect/DualDelayEffect.cpp | ||
src/common/dsp/effect/Effect.cpp | ||
src/common/dsp/effect/FreqshiftEffect.cpp | ||
src/common/dsp/effect/PhaserEffect.cpp | ||
src/common/dsp/effect/Reverb1Effect.cpp | ||
src/common/dsp/effect/Reverb2Effect.cpp | ||
src/common/dsp/effect/RotarySpeakerEffect.cpp | ||
src/common/dsp/effect/VocoderEffect.cpp | ||
src/common/dsp/AdsrEnvelope.cpp | ||
src/common/dsp/BiquadFilter.cpp | ||
src/common/dsp/BiquadFilterSSE2.cpp | ||
src/common/dsp/DspUtilities.cpp | ||
src/common/dsp/FilterCoefficientMaker.cpp | ||
src/common/dsp/FMOscillator.cpp | ||
src/common/dsp/LfoModulationSource.cpp | ||
src/common/dsp/Oscillator.cpp | ||
src/common/dsp/QuadFilterChain.cpp | ||
src/common/dsp/QuadFilterUnit.cpp | ||
src/common/dsp/SampleAndHoldOscillator.cpp | ||
src/common/dsp/SurgeSuperOscillator.cpp | ||
src/common/dsp/SurgeVoice.cpp | ||
src/common/dsp/VectorizedSvfFilter.cpp | ||
src/common/dsp/Wavetable.cpp | ||
src/common/dsp/WavetableOscillator.cpp | ||
src/common/dsp/WindowOscillator.cpp | ||
src/common/thread/CriticalSection.cpp | ||
src/common/util/FpuState.cpp | ||
src/common/vt_dsp/basic_dsp.cpp | ||
src/common/vt_dsp/halfratefilter.cpp | ||
src/common/vt_dsp/lipol.cpp | ||
src/common/vt_dsp/macspecific.cpp | ||
src/common/Parameter.cpp | ||
src/common/precompiled.cpp | ||
src/common/Sample.cpp | ||
src/common/SampleLoadRiffWave.cpp | ||
src/common/SurgeError.cpp | ||
src/common/SurgePatch.cpp | ||
src/common/SurgeStorage.cpp | ||
src/common/SurgeStorageLoadWavetable.cpp | ||
src/common/SurgeSynthesizer.cpp | ||
src/common/SurgeSynthesizerIO.cpp | ||
src/common/UserDefaults.cpp | ||
libs/xml/tinyxml.cpp | ||
libs/xml/tinyxmlerror.cpp | ||
libs/xml/tinyxmlparser.cpp | ||
libs/filesystem/filesystem.cpp | ||
) | ||
|
||
set(SURGE_COMMON_INCLUDES | ||
libs/ | ||
libs/filesystem | ||
libs/xml | ||
src/common | ||
src/common/dsp | ||
src/common/gui | ||
src/common/thread | ||
src/common/vt_dsp | ||
vst3sdk | ||
vstgui.surge | ||
) | ||
|
||
add_executable(surge-headless | ||
${SURGE_COMMON_SOURCES} | ||
src/headless/main.cpp | ||
src/headless/DisplayInfoHeadless.cpp | ||
src/headless/UserInteractionsHeadless.cpp | ||
src/headless/LinkFixesHeadless.cpp | ||
) | ||
|
||
target_compile_features(surge-headless | ||
PRIVATE | ||
cxx_std_17 | ||
) | ||
|
||
target_compile_definitions(surge-headless | ||
PRIVATE | ||
TARGET_HEADLESS=1 | ||
) | ||
|
||
target_include_directories(surge-headless | ||
PRIVATE | ||
${SURGE_COMMON_INCLUDES} | ||
src/headless | ||
) | ||
|
||
if (APPLE) | ||
target_compile_definitions(surge-headless | ||
PRIVATE | ||
MAC=1 | ||
MAC_COCOA=1 | ||
COCOA=1 | ||
OBJC_OLD_DISPATCH_PROTOTYPES=1 | ||
) | ||
|
||
target_compile_options(surge-headless | ||
PRIVATE | ||
-msse2 | ||
"-D_aligned_malloc(x,a)=malloc(x)" | ||
"-D_aligned_free(x)=free(x)" | ||
) | ||
|
||
target_include_directories(surge-headless | ||
PRIVATE | ||
${SURGE_COMMON_INCLUDES} | ||
src/mac | ||
) | ||
|
||
target_link_libraries(surge-headless | ||
"-framework ApplicationServices" | ||
"-framework CoreFoundation" | ||
) | ||
endif() |
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
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,8 +1,6 @@ | ||
#pragma once | ||
|
||
#if LINUX | ||
#include <immintrin.h> | ||
#endif | ||
#include "globals.h" | ||
|
||
inline float i2f_binary_cast(int i) | ||
{ | ||
|
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