Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properly install the LV2 targets #5037

Merged
merged 1 commit into from
Sep 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,7 @@ if( UNIX AND NOT APPLE)
# but you can't because surge-xt_VST3 points to the .so inside the VST3 bundle so instead say
install( DIRECTORY "${SURGE_XT_OUTPUT_DIR}/VST3/Surge XT.vst3" DESTINATION lib/vst3 )
if( JUCE_SUPPORTS_LV2 )
install(TARGETS surge-xt_LV2 DESTINATION lib/lv2 )
install(DIRECTORY "${SURGE_XT_OUTPUT_DIR}/LV2/Surge XT.lv2" DESTINATION lib/lv2 )
endif()
endif()
if( BUILD_SURGE_EFFECTS_BANK )
Expand All @@ -1207,7 +1207,7 @@ if( UNIX AND NOT APPLE)
install( DIRECTORY "${SURGE_FX_OUTPUT_DIR}/VST3/Surge XT Effects.vst3" DESTINATION lib/vst3 )

if( JUCE_SUPPORTS_LV2 )
install(TARGETS surge-fx_LV2 DESTINATION lib/lv2)
install( DIRECTORY "${SURGE_FX_OUTPUT_DIR}/LV2/Surge XT Effects.lv2" DESTINATION lib/lv2 )
endif()
endif()
install(DIRECTORY ${CMAKE_SOURCE_DIR}/resources/data/ DESTINATION share/surge-xt)
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,13 @@ cmake -Bbuild -G"Visual Studio 15 2017"

### Building a Mac Fat Binary (ARM/Intel)

To build a fat binary on a mac, simply add the following CMAKE argument to your intiial cmake run.

```
-D"CMAKE_OSX_ARCHITECTURES=arm64;x86_64"
```


### Building for Raspberry Pi

To build for a Raspberry Pi, you want to add the `LINUX_ON_ARM` CMake variable when you first run CMake. Otherwise,
Expand All @@ -262,6 +269,9 @@ cmake -Bignore/xc64 -DCMAKE_TOOLCHAIN_FILE=cmake/linux-aarch64-ubuntu-crosscompi
cmake --build ignore/xc64 --config Debug --target surge-headless
```

Of course that toolchain makes specific choices. You can make other choices as long as (1) you set the CMAKE
variable LINUX_ON_ARM and (2) you make sure your host and your target compiler are both 64 bit.

# Setting up for Your OS

## Windows
Expand Down