[mythtv] [PATCH] Unweildy MacOS framework arguments

Nigel Pearson nigel at ind.tansu.com.au
Wed Mar 23 00:17:34 UTC 2005


	When trying Daniel's resolution switching patches,
which required a few extra frameworks in libmyth,
the qmake block and resultant command lines are starting
to look a little bloated.

	This patch uses Csh(blah)-style brace expansion
(/System/Library/Frameworks/{Carbon,IOKit}.framework)
to shorten both the compile command line, and the
multiple variable += in the .pro file.

	Most OS X developers use bash, which supports this.
(I use zsh, which also does). If no-one has any objection
to this, I will tidy this up in some future patch.

% diff libs/libmyth/libmyth.pro.orig libs/libmyth/libmyth.pro
69,77c69,70
<     # OS X specific audio layer
<     SOURCES        += audiooutputca.cpp
<     HEADERS        += audiooutputca.h
<     QMAKE_CXXFLAGS +=  
-F/System/Library/Frameworks/CoreAudio.framework/Frameworks
<     LIBS           += -framework CoreAudio
<     QMAKE_CXXFLAGS +=  
-F/System/Library/Frameworks/AudioUnit.framework/Frameworks
<     LIBS           += -framework AudioUnit
<     #QMAKE_CXXFLAGS +=  
-F/System/Library/Frameworks/IOKit.framework/Frameworks
<     #LIBS           += -framework IOKit
---
 >     HEADERS += audiooutputca.h   screensaver-osx.h   DisplayResOSX.h
 >     SOURCES += audiooutputca.cpp screensaver-osx.cpp DisplayResOSX.cpp
 >
 >     # Multiple frameworks was getting unweildy.
 >     # The following depends on bash/zsh/csh, but should be safe
 >     QMAKE_CXXFLAGS +=  
-F/System/Library/Frameworks/ 
{CoreAudio,AudioUnit,IOKit,ApplicationServices,Carbon}.framework/ 
Frameworks
 >     LIBS += -framework CoreAudio -framework AudioUnit -framework  
IOKit -framework ApplicationServices -framework Carbon

--
Nigel Pearson, nigel at ind.tansu.com.au | "Reality is that which,
Telstra BI&D, Sydney, Australia       |  when you stop believing
Office: 8255 4222    Fax:  8255 3153  |  in it, doesn't go away."
Mobile: 0408 664435  Home: 9792 6998  |  Philip K. Dick - 'Valis'



More information about the mythtv-dev mailing list