Changeset 805
- Timestamp:
- 01/04/08 15:25:59 (16 years ago)
- Files:
-
- trunk/libffado/SConstruct (modified) (3 diffs)
- trunk/libffado/support/mixer/ffado.org-ffadomixer.desktop (added)
- trunk/libffado/support/mixer/SConscript (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/SConstruct
r791 r805 95 95 buildenv['LD_LIBRARY_PATH']='' 96 96 97 if os.environ.has_key('XDG_CONFIG_DIRS'): 98 buildenv['XDG_CONFIG_DIRS']=os.environ['XDG_CONFIG_DIRS'] 99 if os.environ.has_key('XDG_DATA_DIRS'): 100 buildenv['XDG_DATA_DIRS']=os.environ['XDG_DATA_DIRS'] 101 if os.environ.has_key('HOME'): 102 buildenv['HOME']=os.environ['HOME'] 97 103 98 104 env = Environment( tools=['default','scanreplace','pyuic','dbus','doxygen','pkgconfig'], toolpath=['admin'], ENV = buildenv, options=opts ) … … 128 134 return ret 129 135 130 tests = { "ConfigGuess" : ConfigGuess } 136 def CheckForApp( context, app ): 137 context.Message( "Checking wether '" + app + "' executes " ) 138 ret = context.TryAction( app ) 139 context.Result( ret[0] ) 140 return ret 141 142 tests = { "ConfigGuess" : ConfigGuess, "CheckForApp" : CheckForApp } 131 143 tests.update( env['PKGCONFIG_TESTS'] ) 132 144 tests.update( env['PYUIC_TESTS'] ) … … 181 193 env['ALSA_SEQ_OUTPUT'] = conf.CheckLib( 'asound', symbol='snd_seq_event_output_direct', autoadd=0 ) 182 194 183 if conf. PyQtCheck():195 if conf.CheckForApp( "which pyuic" ): 184 196 env['PYUIC'] = True 197 198 if conf.CheckForApp( "xdg-desktop-menu --help" ): 199 env['XDG_TOOLS'] = True 185 200 186 201 config_guess = conf.ConfigGuess() trunk/libffado/support/mixer/SConscript
r801 r805 1 #!/usr/bin/python 1 2 # 2 3 # Copyright (C) 2007 Arnold Krille … … 44 45 e.Install( "$bindir", "ffadomixer" ) 45 46 47 if env.has_key('XDG_TOOLS'): 48 e.Command( ".ffado.org-ffadomixer.desktop", "ffado.org-ffadomixer.desktop", "xdg-desktop-menu install $SOURCES && touch $TARGET" ) 49 e.NoCache( ".ffado.org-ffadomixer.desktop" ) 50 e.Alias( "install", ".ffado.org-ffadomixer.desktop" ) 51