Skip to content

Commit 116010d

Browse files
committed
automating dist for macOS
1 parent 3b80031 commit 116010d

File tree

8 files changed

+41
-21
lines changed

8 files changed

+41
-21
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,5 @@ m4/ltversion.m4
3838
m4/lt~obsolete.m4
3939
/t
4040
/src/libprojectM/libprojectM.pc
41+
/build
42+
/dist

Makefile.am

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
ACLOCAL_AMFLAGS = -I m4
1+
ACLOCAL_AMFLAGS=-I m4
22
AM_CPPFLAGS=-DDATADIR_PATH='"${pkgdatadir}"'
33
SUBDIRS=src
4-
PRESETSDIR = presets
4+
PRESETSDIR=presets
55
EXTRA_DIST=README.md AUTHORS.txt presets fonts $(PRESETSDIR)
6-
CLEANFILES=
6+
CLEANFILES=dist
77

88
# stick apps in bin
99
# bin_PROGRAMS = $(top_builddir)/bin
@@ -31,4 +31,16 @@ src/libprojectM/config.inp: src/libprojectM/config.inp.in Makefile
3131
chmod a-w $@.tmp && \
3232
mv $@.tmp $@
3333

34-
CLEANFILES += src/libprojectM/config.inp
34+
# do a macOS build
35+
dist-mac: dist
36+
rm -rf dist
37+
xcrun xcodebuild -scheme "projectM SDL" -configuration Release archive -archivePath build/ProjectM.xcarchive
38+
xcrun xcodebuild -scheme "iProjectM" -configuration Release archive -archivePath build/iTunes.xcarchive
39+
mkdir -p dist
40+
mv build/ProjectM.xcarchive/Products/Applications/projectM\ SDL.app dist/
41+
mv src/projectM-iTunes/iTunes\ Visualizer.pkg dist
42+
zip -r9 dist/projectM-SDL-macOS.zip dist/projectM\ SDL.app
43+
mv projectM-*.tar.gz dist/
44+
@echo "Success!\nBuilt iTunes plugin installer and SDL apps in dist/"
45+
46+
CLEANFILES+=src/libprojectM/config.inp

autogen.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
#!/bin/sh
1+
#!/bin/sh -e
22

3-
autoreconf --install || exit 1
3+
echo "Running autoreconf... make sure you have GNU autotools available on your system"
44

5-
echo "Now run ./configure && make"
5+
autoreconf --install
6+
7+
echo "You followed directions! Great work!\nNow run ./configure"

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([projectM], [3.1.1-rc1], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/])
1+
AC_INIT([projectM], [3.1.1-rc2], [[email protected]], [projectM], [https://github.com/projectM-visualizer/projectm/])
22
AM_INIT_AUTOMAKE([-Wall -Werror foreign subdir-objects tar-pax])
33

44
m4_ifdef([AM_PROG_AR], [AM_PROG_AR])

projectM.xcworkspace/contents.xcworkspacedata

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/libprojectM/libprojectM.xcodeproj/project.pbxproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,7 @@
907907
GCC_OPTIMIZATION_LEVEL = 1;
908908
GCC_PREPROCESSOR_DEFINITIONS = (
909909
"DEBUG=1",
910+
"GL_SILENCE_DEPRECATION=1",
910911
"USE_THREADS=1",
911912
);
912913
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -966,7 +967,10 @@
966967
FRAMEWORK_SEARCH_PATHS = /Library/Frameworks;
967968
GCC_C_LANGUAGE_STANDARD = gnu11;
968969
GCC_NO_COMMON_BLOCKS = YES;
969-
GCC_PREPROCESSOR_DEFINITIONS = "USE_THREADS=1";
970+
GCC_PREPROCESSOR_DEFINITIONS = (
971+
"USE_THREADS=1",
972+
"GL_SILENCE_DEPRECATION=1",
973+
);
970974
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
971975
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
972976
GCC_WARN_UNDECLARED_SELECTOR = YES;

src/projectM-iTunes/projectM Visualizer.xcodeproj/project.pbxproj renamed to src/projectM-iTunes/iTunes Plugin.xcodeproj/project.pbxproj

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@
331331
/* End PBXGroup section */
332332

333333
/* Begin PBXNativeTarget section */
334-
C37EBD2A19A0112900220265 /* projectM Visualizer */ = {
334+
C37EBD2A19A0112900220265 /* iProjectM Setup */ = {
335335
isa = PBXNativeTarget;
336-
buildConfigurationList = C37EBD5719A0112900220265 /* Build configuration list for PBXNativeTarget "projectM Visualizer" */;
336+
buildConfigurationList = C37EBD5719A0112900220265 /* Build configuration list for PBXNativeTarget "iProjectM Setup" */;
337337
buildPhases = (
338338
C37EBD2719A0112900220265 /* Sources */,
339339
C37EBD2819A0112900220265 /* Frameworks */,
@@ -344,7 +344,7 @@
344344
dependencies = (
345345
16FE0B2621157D84005F170D /* PBXTargetDependency */,
346346
);
347-
name = "projectM Visualizer";
347+
name = "iProjectM Setup";
348348
productName = "projectM Visualizer";
349349
productReference = C37EBD2B19A0112900220265 /* projectM Visualizer.app */;
350350
productType = "com.apple.product-type.application";
@@ -387,7 +387,7 @@
387387
};
388388
};
389389
};
390-
buildConfigurationList = C3F9D7AA17B82CC3009E58CB /* Build configuration list for PBXProject "projectM Visualizer" */;
390+
buildConfigurationList = C3F9D7AA17B82CC3009E58CB /* Build configuration list for PBXProject "iTunes Plugin" */;
391391
compatibilityVersion = "Xcode 3.2";
392392
developmentRegion = English;
393393
hasScannedForEncodings = 0;
@@ -407,7 +407,7 @@
407407
projectRoot = "";
408408
targets = (
409409
C3F9D7AE17B82CC3009E58CB /* iProjectM */,
410-
C37EBD2A19A0112900220265 /* projectM Visualizer */,
410+
C37EBD2A19A0112900220265 /* iProjectM Setup */,
411411
);
412412
};
413413
/* End PBXProject section */
@@ -588,7 +588,7 @@
588588
);
589589
MACOSX_DEPLOYMENT_TARGET = 10.8;
590590
ONLY_ACTIVE_ARCH = YES;
591-
PRODUCT_BUNDLE_IDENTIFIER = biz.int80.iProjectM;
591+
PRODUCT_BUNDLE_IDENTIFIER = net.projectm.itunes;
592592
PRODUCT_NAME = "projectM Visualizer";
593593
WRAPPER_EXTENSION = app;
594594
};
@@ -633,7 +633,7 @@
633633
"$(PROJECT_DIR)/macos/contrib",
634634
);
635635
MACOSX_DEPLOYMENT_TARGET = 10.8;
636-
PRODUCT_BUNDLE_IDENTIFIER = biz.int80.iProjectM;
636+
PRODUCT_BUNDLE_IDENTIFIER = net.projectm.itunes;
637637
PRODUCT_NAME = "projectM Visualizer";
638638
WRAPPER_EXTENSION = app;
639639
};
@@ -824,7 +824,7 @@
824824
/* End XCBuildConfiguration section */
825825

826826
/* Begin XCConfigurationList section */
827-
C37EBD5719A0112900220265 /* Build configuration list for PBXNativeTarget "projectM Visualizer" */ = {
827+
C37EBD5719A0112900220265 /* Build configuration list for PBXNativeTarget "iProjectM Setup" */ = {
828828
isa = XCConfigurationList;
829829
buildConfigurations = (
830830
C37EBD5319A0112900220265 /* Debug */,
@@ -833,7 +833,7 @@
833833
defaultConfigurationIsVisible = 0;
834834
defaultConfigurationName = Release;
835835
};
836-
C3F9D7AA17B82CC3009E58CB /* Build configuration list for PBXProject "projectM Visualizer" */ = {
836+
C3F9D7AA17B82CC3009E58CB /* Build configuration list for PBXProject "iTunes Plugin" */ = {
837837
isa = XCConfigurationList;
838838
buildConfigurations = (
839839
C3F9D7BF17B82CC3009E58CB /* Debug */,

src/projectM-iTunes/projectM Visualizer/projectM Visualizer-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
<key>CFBundleIconFile</key>
1010
<string></string>
1111
<key>CFBundleIdentifier</key>
12-
<string>biz.int80.iProjectM</string>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>
1616
<string>${PRODUCT_NAME}</string>
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.0</string>
20+
<string>3.1.2</string>
2121
<key>CFBundleSignature</key>
2222
<string>MiSh</string>
2323
<key>CFBundleVersion</key>

0 commit comments

Comments
 (0)