Skip to content

Commit 675de4e

Browse files
committed
merge conflicts
2 parents eaac7d8 + 986f793 commit 675de4e

File tree

3,875 files changed

+516038
-106147
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,875 files changed

+516038
-106147
lines changed

.github/workflows/cmake.yml

Lines changed: 44 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,14 @@ jobs:
5959
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
6060
run: ./.github/scripts/package-macOS.sh plugdata-macOS-Universal.pkg
6161

62-
- name: Authorise Google Cloud
62+
- name: Upload to Cloud Storage
6363
if: github.ref == 'refs/heads/develop'
64-
uses: "google-github-actions/auth@v2"
65-
with:
66-
credentials_json: ${{ secrets.GCP_SA_KEY }}
67-
68-
- name: Upload to Google Cloud
69-
if: github.ref == 'refs/heads/develop'
70-
uses: "google-github-actions/upload-cloud-storage@v2"
71-
with:
72-
path: ./
73-
glob: ./plugdata-macOS-Universal.*
74-
destination: "plugdata-nightly"
64+
run: |
65+
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY }}
66+
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_KEY }}
67+
aws configure set default.region eu-north-1
68+
aws s3 cp ./plugdata-macOS-Universal.pkg s3://plugdata-nightly/
69+
aws s3 cp ./plugdata-macOS-Universal.pkg.txt s3://plugdata-nightly/
7570
7671
- name: Archive Artifacts
7772
uses: actions/upload-artifact@v4
@@ -139,19 +134,14 @@ jobs:
139134
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
140135
run: ./.github/scripts/package-macOS.sh plugdata-macOS-Legacy.pkg
141136

142-
- name: Authorise Google Cloud
137+
- name: Upload to Cloud Storage
143138
if: github.ref == 'refs/heads/develop'
144-
uses: "google-github-actions/auth@v2"
145-
with:
146-
credentials_json: ${{ secrets.GCP_SA_KEY }}
147-
148-
- name: Upload to Google Cloud
149-
if: github.ref == 'refs/heads/develop'
150-
uses: "google-github-actions/upload-cloud-storage@v2"
151-
with:
152-
path: ./
153-
glob: ./plugdata-macOS-Legacy.*
154-
destination: "plugdata-nightly"
139+
run: |
140+
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY }}
141+
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_KEY }}
142+
aws configure set default.region eu-north-1
143+
aws s3 cp ./plugdata-macOS-Legacy.pkg s3://plugdata-nightly/
144+
aws s3 cp ./plugdata-macOS-Legacy.pkg.txt s3://plugdata-nightly/
155145
156146
- name: Archive Artifacts
157147
uses: actions/upload-artifact@v4
@@ -199,19 +189,15 @@ jobs:
199189
run: |
200190
./.github/scripts/package-Windows.sh plugdata-Win64.msi
201191
202-
- name: Authorise Google Cloud
203-
if: github.ref == 'refs/heads/develop'
204-
uses: "google-github-actions/auth@v2"
205-
with:
206-
credentials_json: ${{ secrets.GCP_SA_KEY }}
207-
208-
- name: Upload to Google Cloud
192+
- name: Upload to Cloud Storage
209193
if: github.ref == 'refs/heads/develop'
210-
uses: "google-github-actions/upload-cloud-storage@v2"
211-
with:
212-
path: ./
213-
glob: ./plugdata-Win64.*
214-
destination: "plugdata-nightly"
194+
run: |
195+
choco install awscli
196+
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY }}
197+
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_KEY }}
198+
aws configure set default.region eu-north-1
199+
aws s3 cp ./plugdata-Win64.msi s3://plugdata-nightly/
200+
aws s3 cp ./plugdata-Win64.msi.txt s3://plugdata-nightly/
215201
216202
- name: Archive Artifacts
217203
uses: actions/upload-artifact@v4
@@ -261,19 +247,15 @@ jobs:
261247
run: |
262248
./.github/scripts/package-Windows.sh plugdata-Win32.msi
263249
264-
- name: Authorise Google Cloud
265-
if: github.ref == 'refs/heads/develop'
266-
uses: "google-github-actions/auth@v2"
267-
with:
268-
credentials_json: ${{ secrets.GCP_SA_KEY }}
269-
270-
- name: Upload to Google Cloud
250+
- name: Upload to Cloud Storage
271251
if: github.ref == 'refs/heads/develop'
272-
uses: "google-github-actions/upload-cloud-storage@v2"
273-
with:
274-
path: ./
275-
glob: ./plugdata-Win32.*
276-
destination: "plugdata-nightly"
252+
run: |
253+
choco install awscli
254+
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY }}
255+
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_KEY }}
256+
aws configure set default.region eu-north-1
257+
aws s3 cp ./plugdata-Win32.msi s3://plugdata-nightly/
258+
aws s3 cp ./plugdata-Win32.msi.txt s3://plugdata-nightly/
277259
278260
- name: Archive Artifacts
279261
uses: actions/upload-artifact@v4
@@ -327,19 +309,19 @@ jobs:
327309
steps:
328310
- name: Install Dependencies (dnf)
329311
if: ${{ matrix.pacman == 'dnf' }}
330-
run: dnf install -y git cmake alsa-lib-devel libXinerama-devel freetype-devel curl libcurl-devel wget bzip2 gcc-c++ libXi-devel libXcomposite-devel freeglut-devel libXrandr-devel libXcursor-devel xz ccache python python3-pip jack-audio-connection-kit-devel libatomic
312+
run: dnf install -y git cmake alsa-lib-devel libXinerama-devel freetype-devel curl libcurl-devel wget bzip2 gcc-c++ libXi-devel libXcomposite-devel freeglut-devel libXrandr-devel libXcursor-devel xz ccache python python3-pip jack-audio-connection-kit-devel libatomic unzip
331313

332314
- name: Install Dependencies (apt)
333315
if: ${{ matrix.pacman == 'apt' }}
334-
run: apt update && DEBIAN_FRONTEND=noninteractive TZ="Europe/Amsterdam" apt install -y cmake git wget bzip2 build-essential libasound2-dev libjack-jackd2-dev curl libcurl4-openssl-dev libfreetype6-dev libx11-dev libxi-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxrandr-dev libxinerama-dev ccache python3 python3-pip freeglut3-dev
316+
run: apt update && DEBIAN_FRONTEND=noninteractive TZ="Europe/Amsterdam" apt install -y cmake git wget bzip2 build-essential libasound2-dev libjack-jackd2-dev curl libcurl4-openssl-dev libfreetype6-dev libx11-dev libxi-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxrandr-dev libxinerama-dev ccache python3 python3-pip freeglut3-dev unzip
335317

336318
- name: Install Dependencies (zypper)
337319
if: ${{ matrix.pacman == 'zypper' }}
338-
run: zypper refresh && zypper install -y git rsync wget bzip2 xz tar gzip cmake alsa-lib-devel libXinerama-devel libXi-devel freetype-devel libcurl-devel libXcomposite-devel freeglut-devel libXrandr-devel libXcursor-devel freetype2-devel gcc gcc-c++ curl ccache python python3-pip libjack-devel gawk
320+
run: zypper refresh && zypper install -y git rsync wget bzip2 xz tar gzip cmake alsa-devel libXinerama-devel libXi-devel libcurl-devel libXcomposite-devel freeglut-devel libXrandr-devel libXcursor-devel freetype2-devel gcc gcc-c++ curl ccache python3 libjack-devel gawk unzip
339321

340322
- name: Install Dependencies (pacman)
341323
if: ${{ matrix.pacman == 'pacman' }}
342-
run: pacman -Sy && pacman -S --noconfirm cmake wget bzip2 git alsa-lib freetype2 libx11 libxcursor libxi libxext libxinerama libxrandr libxrender webkit2gtk cmake make gcc pkgconf python python-pip curl ccache freeglut mesa glfw-x11 glew jack2 openssl && pacman --noconfirm -Syu
324+
run: pacman -Sy && pacman -S --noconfirm cmake wget bzip2 git alsa-lib freetype2 libx11 libxcursor libxi libxext libxinerama libxrandr libxrender webkit2gtk cmake make gcc pkgconf python python-pip curl ccache freeglut mesa glfw-x11 glew jack2 openssl unzip && pacman --noconfirm -Syu
343325

344326
- uses: actions/checkout@v4
345327
with:
@@ -367,19 +349,17 @@ jobs:
367349
working-directory: ${{github.workspace}}
368350
run: ./.github/scripts/package-Linux.sh plugdata-${{ matrix.name }}.tar.gz
369351

370-
- name: Authorise Google Cloud
371-
if: github.ref == 'refs/heads/develop'
372-
uses: "google-github-actions/auth@v2"
373-
with:
374-
credentials_json: ${{ secrets.GCP_SA_KEY }}
375-
376-
- name: Upload to Google Cloud
352+
- name: Upload to Cloud Storage
377353
if: github.ref == 'refs/heads/develop'
378-
uses: "google-github-actions/upload-cloud-storage@v2"
379-
with:
380-
path: ./
381-
glob: plugdata-${{ matrix.name }}.tar.*
382-
destination: "plugdata-nightly"
354+
run: |
355+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
356+
unzip awscliv2.zip
357+
./aws/install
358+
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY }}
359+
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_KEY }}
360+
aws configure set default.region eu-north-1
361+
aws s3 cp ./plugdata-${{ matrix.name }}.tar.gz s3://plugdata-nightly/
362+
aws s3 cp ./plugdata-${{ matrix.name }}.tar.gz.txt s3://plugdata-nightly/
383363
384364
- name: Archive Artifacts
385365
uses: actions/upload-artifact@v4

CMakeLists.txt

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,11 @@ if(ENABLE_PERFETTO)
9090
add_subdirectory(Libraries/melatonin_perfetto EXCLUDE_FROM_ALL)
9191
endif()
9292

93+
set(PLUGDATA_VERSION "0.9.2")
94+
set_directory_properties(PROPERTIES JUCE_COMPANY_NAME "plugdata")
95+
set_directory_properties(PROPERTIES JUCE_COMPANY_COPYRIGHT "plugdata by Timothy Schoen")
96+
set_directory_properties(PROPERTIES JUCE_COMPANY_WEBSITE "plugdata.org")
97+
9398
cmake_policy(SET CMP0091 NEW)
9499
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
95100

@@ -127,11 +132,6 @@ if(NOT PACKAGE_RESOURCES_RESULT EQUAL 0)
127132
message(FATAL_ERROR "Resource packaging failed with error code ${PACKAGE_RESOURCES_RESULT}")
128133
endif()
129134

130-
set(PLUGDATA_VERSION "0.9.2")
131-
set(PLUGDATA_COMPANY_NAME "plugdata")
132-
set(PLUGDATA_COMPANY_COPYRIGHT "plugdata by Timothy Schoen")
133-
set(PLUGDATA_COMPANY_WEBSITE "github.com/plugdata-team/plugdata")
134-
135135
if("${CMAKE_SYSTEM_NAME}" MATCHES "iOS")
136136
set(PLUGDATA_ICON_BIG "${CMAKE_CURRENT_SOURCE_DIR}/Resources/Icons/plugdata_logo_ios.png")
137137
elseif(APPLE)
@@ -194,7 +194,12 @@ file(GLOB plugdata_sources
194194

195195
# Set up testing
196196
if(ENABLE_TESTING)
197-
list(APPEND plugdata_sources ${CMAKE_CURRENT_SOURCE_DIR}/Tests/Tests.cpp)
197+
list(APPEND plugdata_sources
198+
${CMAKE_CURRENT_SOURCE_DIR}/Tests/Tests.cpp
199+
${CMAKE_CURRENT_SOURCE_DIR}/Tests/Tests.h
200+
${CMAKE_CURRENT_SOURCE_DIR}/Tests/HelpfileFuzzTest.h
201+
${CMAKE_CURRENT_SOURCE_DIR}/Tests/ObjectFuzzTest.h
202+
)
198203

199204
endif()
200205

@@ -239,6 +244,7 @@ set(JUCE_COMPILE_DEFINITIONS
239244
JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS=0
240245
JUCE_JACK=1
241246
JUCE_JACK_CLIENT_NAME="plugdata"
247+
JUCE_USE_DIRECTWRITE=0
242248
)
243249

244250
if(LINUX)
@@ -407,9 +413,6 @@ set(AU_EFFECT_TYPE kAudioUnitType_Effect)
407413

408414
juce_add_plugin(plugdata_standalone
409415
VERSION ${PLUGDATA_VERSION}
410-
COMPANY_NAME ${PLUGDATA_COMPANY_NAME}
411-
COMPANY_COPYRIGHT ${PLUGDATA_COMPANY_COPYRIGHT}
412-
COMPANY_WEBSITE ${PLUGDATA_COMPANY_WEBSITE}
413416
PLUGIN_DESCRIPTION "A plugin that loads Pure Data patches"
414417
ICON_BIG ${PLUGDATA_ICON_BIG}
415418
LAUNCH_STORYBOARD_FILE ${CMAKE_CURRENT_SOURCE_DIR}/Resources/Icons/LaunchScreen.storyboard
@@ -453,11 +456,10 @@ juce_add_plugin(plugdata_standalone
453456
target_sources(plugdata_standalone_Standalone PUBLIC ${IOS_LAUNCHSCREEN})
454457
endif()
455458

459+
460+
456461
juce_add_plugin(plugdata
457462
VERSION ${PLUGDATA_VERSION}
458-
COMPANY_NAME ${PLUGDATA_COMPANY_NAME}
459-
COMPANY_COPYRIGHT ${PLUGDATA_COMPANY_COPYRIGHT}
460-
COMPANY_WEBSITE ${PLUGDATA_COMPANY_WEBSITE}
461463
PLUGIN_DESCRIPTION "Visual audio programming environment"
462464
ICON_BIG ${PLUGDATA_ICON_BIG}
463465
MICROPHONE_PERMISSION_ENABLED TRUE
@@ -489,9 +491,6 @@ juce_add_plugin(plugdata
489491

490492
juce_add_plugin(plugdata_fx
491493
VERSION ${PLUGDATA_VERSION}
492-
COMPANY_NAME ${PLUGDATA_COMPANY_NAME}
493-
COMPANY_COPYRIGHT ${PLUGDATA_COMPANY_COPYRIGHT}
494-
COMPANY_WEBSITE ${PLUGDATA_COMPANY_WEBSITE}
495494
PLUGIN_DESCRIPTION "Visual audio programming environment"
496495
ICON_BIG ${PLUGDATA_ICON_BIG}
497496
HARDENED_RUNTIME_ENABLED ${HARDENED_RUNTIME_ENABLED}
@@ -525,9 +524,6 @@ juce_add_plugin(plugdata_fx
525524
if(APPLE)
526525
juce_add_plugin(plugdata_midi
527526
VERSION ${PLUGDATA_VERSION}
528-
COMPANY_NAME ${PLUGDATA_COMPANY_NAME}
529-
COMPANY_COPYRIGHT ${PLUGDATA_COMPANY_COPYRIGHT}
530-
COMPANY_WEBSITE ${PLUGDATA_COMPANY_WEBSITE}
531527
ICON_BIG ${PLUGDATA_ICON_BIG}
532528
HARDENED_RUNTIME_ENABLED ${HARDENED_RUNTIME_ENABLED}
533529
HARDENED_RUNTIME_OPTIONS ${HARDENED_RUNTIME_OPTIONS}

Libraries/CMakeLists.txt

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ cmake_minimum_required(VERSION 3.15)
55
# ------------------------------------------------------------------------------#
66
project(libpd VERSION 1.0.0 LANGUAGES C CXX)
77

8+
set(MESSAGE_QUIET ON)
9+
message(STATUS "Configuring fftw3")
10+
add_subdirectory(fftw3)
11+
set(MESSAGE_QUIET OFF)
12+
813
if(MSVC)
914
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
1015
option(BUILD_SHARED_LIBS "" FALSE)
@@ -32,6 +37,7 @@ set(PD_DIR "pure-data/")
3237
# ------------------------------------------------------------------------------#
3338
set(CMAKE_MACOSX_RPATH ON)
3439
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
40+
set(CMAKE_VISIBILITY_INLINES_HIDDEN ON)
3541

3642
set(PD_PATH "pure-data/")
3743
set(LIBPD_PATH "libpd/")
@@ -59,7 +65,7 @@ file(GLOB PD_SOURCES
5965
${PD_PATH}/src/d_dac.c
6066
${PD_PATH}/src/d_delay.c
6167
${PD_PATH}/src/d_fft.c
62-
${PD_PATH}/src/d_fft_fftsg.c
68+
${PD_PATH}/src/d_fft_fftw.c
6369
${PD_PATH}/src/d_filter.c
6470
${PD_PATH}/src/d_global.c
6571
${PD_PATH}/src/d_math.c
@@ -200,6 +206,7 @@ file(GLOB ELSE_SOURCES
200206
if(NOT ENABLE_FFMPEG)
201207
list(REMOVE_ITEM ELSE_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/pd-else/Source/Audio/play.file~.c)
202208
list(REMOVE_ITEM ELSE_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/pd-else/Source/Control/sfload.c)
209+
list(REMOVE_ITEM ELSE_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/pd-else/Source/Control/sfinfo.c)
203210
endif()
204211

205212

@@ -276,18 +283,12 @@ if(ENABLE_SFIZZ)
276283
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/pd-else/Source/Audio/sfz~)
277284
endif()
278285

279-
280-
281286
# COMPILE DEFINITIONS OPTIONS
282287
# ------------------------------------------------------------------------------#
283288
if(PD_EXTRA)
284289
list(APPEND LIBPD_COMPILE_DEFINITIONS LIBPD_EXTRA=1)
285290
endif()
286291

287-
if(NOT PD_LOCALE)
288-
list(APPEND LIBPD_COMPILE_DEFINITIONS LIBPD_NO_NUMERIC=1)
289-
endif()
290-
291292
# COMPILE DEFINITIONS OS
292293
# ------------------------------------------------------------------------------#
293294
if(WIN32)
@@ -393,6 +394,8 @@ list(APPEND SFONT_INCLUDES
393394

394395
add_library(fluidlite STATIC ${SFONT_SOURCES})
395396
target_include_directories(fluidlite PRIVATE ${SFONT_INCLUDES})
397+
target_include_directories(fluidlite PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/pd-else/Source/Audio/sfont~)
398+
396399
if(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU")
397400
target_compile_options(fluidlite PRIVATE -Wno-compound-token-split-by-macro)
398401
endif()
@@ -496,6 +499,16 @@ elseif(APPLE)
496499
target_link_libraries(externals-multi PUBLIC ${externals_libs} ${GEM_LIBS_MULTI})
497500
endif()
498501

502+
if(MSVC)
503+
target_link_libraries(pd PRIVATE fftw3f)
504+
target_link_libraries(pd-multi PRIVATE fftw3f)
505+
else()
506+
target_link_libraries(pd-src PRIVATE fftw3f)
507+
target_link_libraries(pd-src-multi PRIVATE fftw3f)
508+
endif()
509+
target_include_directories(pd-src PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/fftw3/api)
510+
target_include_directories(pd-src-multi PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/fftw3/api)
511+
499512
# PTHREAD
500513
# ------------------------------------------------------------------------------#
501514
set(THREADS_PREFER_PTHREAD_FLAG On)

Libraries/FluidLite/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

Libraries/FluidLite/.travis.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)