Skip to content

Commit

Permalink
chore: cmake config for auv3 (ios)
Browse files Browse the repository at this point in the history
  • Loading branch information
xivilay committed Nov 30, 2023
1 parent eca733f commit b10c57f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Change Log
All notable changes to this project will be documented in this file.

## [0.7.3] - 2023-11-30

### Added

* AUv3 build configurations

## [0.7.2] - 2023-11-30

### Changed
Expand Down
12 changes: 11 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug")
set(PROJECT_NAME "${PROJECT_NAME}Dev")
endif()

set(VERSION "0.7.2")
set(VERSION "0.7.3")

set(FORMATS "Standalone" "LV2" "VST3")

Expand Down Expand Up @@ -56,12 +56,15 @@ juce_add_plugin(${PROJECT_NAME}
PRODUCT_NAME "${PROJECT_NAME}"
NEEDS_MIDI_INPUT TRUE
NEEDS_MIDI_OUTPUT TRUE
IS_MIDI_EFFECT TRUE
PLUGIN_MANUFACTURER_CODE XivY
PLUGIN_CODE Xiv8
LV2URI "https://github.com/xivilay/scale-remapper"
VST3_CATEGORIES "Instrument Tools"
ICON_SMALL "${SRC_DIR}/icons/small.png"
FORMATS ${FORMATS}
AU_SANDBOX_SAFE TRUE
BUNDLE_ID "dev.xivilay.scaleRemapper"
)

juce_add_binary_data(BinaryData SOURCES
Expand All @@ -81,6 +84,13 @@ target_compile_definitions(${PROJECT_NAME} PRIVATE
JUCE_WEB_BROWSER=0
)

IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_compile_definitions(${PROJECT_NAME} PRIVATE
JUCE_SILENCE_XCODE_15_LINKER_WARNING=1
)
add_link_options("-Wl,-weak_reference_mismatches,weak")
endif()

if(BUILD_VST2)
message(STATUS "Adding VST2...")
target_compile_definitions(${PROJECT_NAME} PUBLIC JUCE_VST3_CAN_REPLACE_VST2=1)
Expand Down
7 changes: 7 additions & 0 deletions scripts/osx/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
cd ../../

cmake -B build-ios -G Xcode -D CMAKE_BUILD_TYPE=Release -D CMAKE_SYSTEM_NAME=iOS -D CMAKE_OSX_DEPLOYMENT_TARGET=15.0 -D CMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY="Apple Development" -D CMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=VN2HUYH284

cd ./build-ios

cmake --build . --config=Release -- -allowProvisioningUpdates

0 comments on commit b10c57f

Please sign in to comment.