Skip to content

Commit d6c7881

Browse files
committed
packaging and renaming things nicely in order to receive apple's blessing
1 parent 5685703 commit d6c7881

File tree

25 files changed

+1549
-21
lines changed

25 files changed

+1549
-21
lines changed

src/libprojectM/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ if (APPLE)
5656
SET(USE_OPENMP OFF)
5757
SET(BUILD_PROJECTM_STATIC ON)
5858
SET(USE_FBO ON)
59-
SET(USE_CG ON)
59+
SET(USE_CG OFF)
6060
endif(APPLE)
6161

6262
ADD_DEFINITIONS(-DCMAKE_INSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\")

src/projectM-emscripten/emprojectM.xcodeproj/project.pbxproj

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
C34E81091956B7D3001AC5B5 /* libNativePresetFactory.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C34E81081956B7D3001AC5B5 /* libNativePresetFactory.a */; };
1313
C34E810B1956B7D9001AC5B5 /* libMilkdropPresetFactory.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C34E810A1956B7D9001AC5B5 /* libMilkdropPresetFactory.a */; };
1414
C34E810D1956B832001AC5B5 /* presets in CopyFiles */ = {isa = PBXBuildFile; fileRef = C34E810C1956B821001AC5B5 /* presets */; };
15+
C37A1320195C137900928349 /* libbz2.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C37A131F195C137900928349 /* libbz2.a */; };
16+
C37A1322195C138200928349 /* libfreetype.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C37A1321195C138200928349 /* libfreetype.a */; };
17+
C37A1324195C138400928349 /* libftgl.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C37A1323195C138400928349 /* libftgl.a */; };
18+
C37A1326195C138600928349 /* libGLEW.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C37A1325195C138600928349 /* libGLEW.a */; };
19+
C37A1328195C138700928349 /* libpng15.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C37A1327195C138700928349 /* libpng15.a */; };
20+
C37A132A195C138900928349 /* libz.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C37A1329195C138900928349 /* libz.a */; };
21+
C37A132C195C147C00928349 /* fonts in CopyFiles */ = {isa = PBXBuildFile; fileRef = C37A132B195C145A00928349 /* fonts */; };
1522
C3F90686195670EF00C8DF0F /* projectM_SDL_emscripten.cpp in Sources */ = {isa = PBXBuildFile; fileRef = C3F90685195670EF00C8DF0F /* projectM_SDL_emscripten.cpp */; };
1623
C3F9068A195676C500C8DF0F /* OpenGL.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C3F90689195676C500C8DF0F /* OpenGL.framework */; };
1724
C3F9068C195676CC00C8DF0F /* GLUT.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C3F9068B195676CC00C8DF0F /* GLUT.framework */; };
@@ -26,6 +33,7 @@
2633
dstSubfolderSpec = 16;
2734
files = (
2835
C34E810D1956B832001AC5B5 /* presets in CopyFiles */,
36+
C37A132C195C147C00928349 /* fonts in CopyFiles */,
2937
);
3038
runOnlyForDeploymentPostprocessing = 0;
3139
};
@@ -37,6 +45,14 @@
3745
C34E81081956B7D3001AC5B5 /* libNativePresetFactory.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libNativePresetFactory.a; path = ../libprojectM/NativePresetFactory/libNativePresetFactory.a; sourceTree = "<group>"; };
3846
C34E810A1956B7D9001AC5B5 /* libMilkdropPresetFactory.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libMilkdropPresetFactory.a; path = ../libprojectM/MilkdropPresetFactory/libMilkdropPresetFactory.a; sourceTree = "<group>"; };
3947
C34E810C1956B821001AC5B5 /* presets */ = {isa = PBXFileReference; lastKnownFileType = folder; name = presets; path = build/presets; sourceTree = SOURCE_ROOT; };
48+
C37A131D195C136600928349 /* contrib */ = {isa = PBXFileReference; lastKnownFileType = folder; name = contrib; path = "../projectM-iTunes/macos/contrib"; sourceTree = "<group>"; };
49+
C37A131F195C137900928349 /* libbz2.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libbz2.a; path = "../projectM-iTunes/macos/contrib/libbz2.a"; sourceTree = "<group>"; };
50+
C37A1321195C138200928349 /* libfreetype.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libfreetype.a; path = "../projectM-iTunes/macos/contrib/libfreetype.a"; sourceTree = "<group>"; };
51+
C37A1323195C138400928349 /* libftgl.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libftgl.a; path = "../projectM-iTunes/macos/contrib/libftgl.a"; sourceTree = "<group>"; };
52+
C37A1325195C138600928349 /* libGLEW.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libGLEW.a; path = "../projectM-iTunes/macos/contrib/libGLEW.a"; sourceTree = "<group>"; };
53+
C37A1327195C138700928349 /* libpng15.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libpng15.a; path = "../projectM-iTunes/macos/contrib/libpng15.a"; sourceTree = "<group>"; };
54+
C37A1329195C138900928349 /* libz.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libz.a; path = "../projectM-iTunes/macos/contrib/libz.a"; sourceTree = "<group>"; };
55+
C37A132B195C145A00928349 /* fonts */ = {isa = PBXFileReference; lastKnownFileType = folder; name = fonts; path = build/fonts; sourceTree = SOURCE_ROOT; };
4056
C3F90678195670BC00C8DF0F /* emprojectM */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = emprojectM; sourceTree = BUILT_PRODUCTS_DIR; };
4157
C3F90685195670EF00C8DF0F /* projectM_SDL_emscripten.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = projectM_SDL_emscripten.cpp; sourceTree = SOURCE_ROOT; };
4258
C3F90689195676C500C8DF0F /* OpenGL.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGL.framework; path = System/Library/Frameworks/OpenGL.framework; sourceTree = SDKROOT; };
@@ -49,6 +65,12 @@
4965
isa = PBXFrameworksBuildPhase;
5066
buildActionMask = 2147483647;
5167
files = (
68+
C37A1320195C137900928349 /* libbz2.a in Frameworks */,
69+
C37A1322195C138200928349 /* libfreetype.a in Frameworks */,
70+
C37A1324195C138400928349 /* libftgl.a in Frameworks */,
71+
C37A1326195C138600928349 /* libGLEW.a in Frameworks */,
72+
C37A132A195C138900928349 /* libz.a in Frameworks */,
73+
C37A1328195C138700928349 /* libpng15.a in Frameworks */,
5274
C34E81071956B7BF001AC5B5 /* CoreFoundation.framework in Frameworks */,
5375
C34E810B1956B7D9001AC5B5 /* libMilkdropPresetFactory.a in Frameworks */,
5476
C3F9069019567A4600C8DF0F /* libprojectM.a in Frameworks */,
@@ -65,6 +87,13 @@
6587
C3F9066F195670BC00C8DF0F = {
6688
isa = PBXGroup;
6789
children = (
90+
C37A1329195C138900928349 /* libz.a */,
91+
C37A1327195C138700928349 /* libpng15.a */,
92+
C37A1325195C138600928349 /* libGLEW.a */,
93+
C37A1323195C138400928349 /* libftgl.a */,
94+
C37A1321195C138200928349 /* libfreetype.a */,
95+
C37A131F195C137900928349 /* libbz2.a */,
96+
C37A131D195C136600928349 /* contrib */,
6897
C34E810A1956B7D9001AC5B5 /* libMilkdropPresetFactory.a */,
6998
C34E81081956B7D3001AC5B5 /* libNativePresetFactory.a */,
7099
C34E81061956B7BF001AC5B5 /* CoreFoundation.framework */,
@@ -88,6 +117,7 @@
88117
C3F9067A195670BC00C8DF0F /* emprojectM */ = {
89118
isa = PBXGroup;
90119
children = (
120+
C37A132B195C145A00928349 /* fonts */,
91121
C34E810C1956B821001AC5B5 /* presets */,
92122
C3F90685195670EF00C8DF0F /* projectM_SDL_emscripten.cpp */,
93123
);
@@ -252,6 +282,7 @@
252282
/Users/snooz/dev/projectm/src/libprojectM/Renderer,
253283
/Users/snooz/dev/projectm/src/libprojectM/NativePresetFactory,
254284
/Users/snooz/dev/projectm/src/libprojectM/MilkdropPresetFactory,
285+
"/Users/snooz/dev/projectm/src/projectM-iTunes/macos/contrib",
255286
);
256287
OTHER_LDFLAGS = (
257288
"-lSDL2",
@@ -281,6 +312,7 @@
281312
/Users/snooz/dev/projectm/src/libprojectM/Renderer,
282313
/Users/snooz/dev/projectm/src/libprojectM/NativePresetFactory,
283314
/Users/snooz/dev/projectm/src/libprojectM/MilkdropPresetFactory,
315+
"/Users/snooz/dev/projectm/src/projectM-iTunes/macos/contrib",
284316
);
285317
OTHER_LDFLAGS = (
286318
"-lSDL2",

src/projectM-emscripten/projectM_SDL_emscripten.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ int main( int argc, char *argv[] ) {
153153
settings.presetURL = "/build/presets";
154154
#else
155155
settings.presetURL = "presets";
156+
settings.menuFontURL = "fonts/Vera.ttf";
157+
settings.titleFontURL = "fonts/Vera.ttf";
156158
#endif
157159

158160
// init projectM

src/projectM-iTunes/config.inp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ FPS = 60 # Frames Per Second
88
Fullscreen = false
99
Window Width = 1920 # startup window width
1010
Window Height = 1280 # startup window height
11-
11+
Beat Sensitivity = 0.9
1212
Smooth Transition Duration = 5 # in seconds
1313
Preset Duration = 20 # in seconds
1414
Easter Egg Parameter = .1

src/projectM-iTunes/iProjectM/iProjectM-Info.plist renamed to src/projectM-iTunes/iProjectM/projectM Visualizer for iTunes-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
<key>CFBundleDevelopmentRegion</key>
66
<string>English</string>
77
<key>CFBundleExecutable</key>
8-
<string>${EXECUTABLE_NAME}</string>
8+
<string>iProjectM</string>
99
<key>CFBundleIconFile</key>
1010
<string></string>
1111
<key>CFBundleIdentifier</key>
1212
<string>biz.int80.${PRODUCT_NAME:rfc1034identifier}</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>
16-
<string>${PRODUCT_NAME}</string>
16+
<string>iProjectM</string>
1717
<key>CFBundlePackageType</key>
1818
<string>hvpl</string>
1919
<key>CFBundleShortVersionString</key>
112 KB
Loading

src/projectM-iTunes/images/iProjectM.svg

Lines changed: 89 additions & 0 deletions
Loading
303 KB
Loading
126 KB
Loading

src/projectM-iTunes/iprojectM.mm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,9 @@ Sent when iTunes is moving the destination view to a new parent window (e.g. to/
342342
messageInfo->u.pulseMessage.renderData,
343343
&messageInfo->u.pulseMessage.newPulseRateInHz );
344344

345-
InvalidateVisual( visualPluginData );
345+
// Invalidate visual seems to lag a few frames behind, so let's draw as soon as possible
346+
DrawVisual( visualPluginData );
347+
//InvalidateVisual( visualPluginData );
346348
break;
347349
}
348350
/*
@@ -355,7 +357,8 @@ Sent when iTunes is moving the destination view to a new parent window (e.g. to/
355357
case kVisualPluginDrawMessage:
356358
{
357359
#if !USE_SUBVIEW
358-
DrawVisual( visualPluginData );
360+
// Now drawing in kVisualPluginPulseMessage -revmischa 09/14
361+
//DrawVisual( visualPluginData );
359362
#endif
360363
break;
361364
}

0 commit comments

Comments
 (0)