mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2025-10-29 11:24:21 +00:00
* rewrite PCM interface use public methods, hide internal implementation use ifft for smoothing * AutoLeveler * remove slow std::transform() * faster smooth algorithm * perf - quick check for no equations * adjustments for wavecode.bspectrum=1 * cleanup use of BeatDetect.beatSensitivity * comments * more comments * enum CHANNEL * fix windows build * fix windows build * wip * macOS installer signing works finally * version bump Co-authored-by: Matthew Bellew <matthewb@labkey.com>
60 lines
2.2 KiB
Makefile
60 lines
2.2 KiB
Makefile
ACLOCAL_AMFLAGS=-I m4
|
|
AM_CPPFLAGS=-DDATADIR_PATH='"${pkgdatadir}"'
|
|
SUBDIRS=src
|
|
PRESETSDIR=presets
|
|
EXTRA_DIST=README.md AUTHORS.txt presets fonts vendor $(PRESETSDIR)
|
|
CLEANFILES=dist
|
|
|
|
# stick apps in bin
|
|
# bin_PROGRAMS = $(top_builddir)/bin
|
|
|
|
# aka /usr/local/share/projectM
|
|
pm_data_dir = $(pkgdatadir)
|
|
pm_font_dir = $(pm_data_dir)/fonts
|
|
|
|
# files to install
|
|
pm_data__DATA = src/libprojectM/config.inp
|
|
pm_font__DATA = fonts/Vera.ttf fonts/VeraMono.ttf
|
|
|
|
# find and install all preset files
|
|
install-data-local:
|
|
find "$(PRESETSDIR)" -path "$(PRESETSDIR)/tests" -prune -o -type d -exec $(MKDIR_P) "$(DESTDIR)/$(pm_data_dir)/{}" \;
|
|
find "$(PRESETSDIR)" -path "$(PRESETSDIR)/tests" -prune -o -type f -exec $(INSTALL_DATA) "{}" "$(DESTDIR)/$(pm_data_dir)/{}" \;
|
|
|
|
# from https://stackoverflow.com/questions/30897170/ac-subst-does-not-expand-variable answer: https://stackoverflow.com/a/30960268
|
|
# ptomato https://stackoverflow.com/users/172999/ptomato
|
|
|
|
src/libprojectM/config.inp: src/libprojectM/config.inp.in Makefile
|
|
$(AM_V_GEN)rm -f $@ $@.tmp && \
|
|
$(SED) -e "s,%datadir%,$(datadir),"g $< >$@.tmp && \
|
|
chmod a-w $@.tmp && \
|
|
mv $@.tmp $@
|
|
|
|
macOS/Build/Products/Debug/presets:
|
|
mkdir -p macOS/Build/Products/Debug
|
|
ln -s $(PWD)/presets macOS/Build/Products/Debug/
|
|
|
|
build-mac: macOS/Build/Products/Debug/presets
|
|
xcrun xcodebuild -scheme "projectM SDL" -configuration Debug -derivedDataPath macOS
|
|
@echo "Products built in macOS/Build/Products/Debug"
|
|
open macOS/Build/Products/Debug
|
|
|
|
ProjectM.pkg:
|
|
xcrun xcodebuild -allowProvisioningUpdates -scheme "ProjectM Installer" -configuration Release archive -archivePath build/ProjectM.xcarchive
|
|
|
|
# do a macOS build
|
|
dist-mac: dist ProjectM.pkg
|
|
xcrun altool --notarize-app --primary-bundle-id "net.projectm.installer" \
|
|
--asc-provider 'MischaSpiegelmock10100337' \
|
|
--username thadwooster@gmail.com --password @keychain:AC_PASSWORD \
|
|
--file "$(PWD)/ProjectM.pkg"
|
|
@echo "Progress: $ xcrun altool -u thadwooster@gmail.com -p @keychain:AC_PASSWORD --notarization-info UUID"
|
|
@echo "Staple: $ xcrun stapler staple $(PWD)/dist/projectM-macOS.pkg"
|
|
rm -rf dist
|
|
mkdir -p dist
|
|
mv ProjectM.pkg dist/projectM-macOS.pkg
|
|
mv projectM-*.tar.gz dist/
|
|
@echo "Success!\nBuilt plugin installer and SDL app installer in dist/"
|
|
|
|
CLEANFILES+=src/libprojectM/config.inp
|