83 | 83 | EnumOption('DIST_TARGET', 'Build target for cross compiling packagers', 'auto', allowed_values=('auto', 'i386', 'i686', 'x86_64', 'powerpc', 'powerpc64', 'none' ), ignorecase=2), |
---|
84 | 84 | BoolOption( "ENABLE_OPTIMIZATIONS", "Enable optimizations and the use of processor specific extentions (MMX/SSE/...).", False ), |
---|
273 | | # |
---|
274 | | # Optional checks follow: |
---|
275 | | # |
---|
276 | | |
---|
277 | | # PyQT checks |
---|
278 | | build_mixer = False |
---|
279 | | if conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'PyQt4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' ): |
---|
280 | | env['PYUIC4'] = True |
---|
281 | | build_mixer = True |
---|
282 | | |
---|
283 | | if conf.CheckForApp( 'which pyuic' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'qt' ): |
---|
284 | | env['PYUIC'] = True |
---|
285 | | build_mixer = True |
---|
286 | | |
---|
287 | | if conf.CheckForApp( 'xdg-desktop-menu --help' ): |
---|
288 | | env['XDG_TOOLS'] = True |
---|
289 | | else: |
---|
290 | | print """ |
---|
| 274 | # |
---|
| 275 | # Optional checks follow: |
---|
| 276 | # |
---|
| 277 | |
---|
| 278 | # PyQT checks |
---|
| 279 | build_mixer = False |
---|
| 280 | if conf.CheckForApp( 'which pyuic4' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'PyQt4' ) and conf.CheckForPyModule( 'dbus.mainloop.qt' ): |
---|
| 281 | env['PYUIC4'] = True |
---|
| 282 | build_mixer = True |
---|
| 283 | |
---|
| 284 | if conf.CheckForApp( 'which pyuic' ) and conf.CheckForPyModule( 'dbus' ) and conf.CheckForPyModule( 'qt' ): |
---|
| 285 | env['PYUIC'] = True |
---|
| 286 | build_mixer = True |
---|
| 287 | |
---|
| 288 | if conf.CheckForApp( 'xdg-desktop-menu --help' ): |
---|
| 289 | env['XDG_TOOLS'] = True |
---|
| 290 | else: |
---|
| 291 | print """ |
---|
294 | | |
---|
295 | | if conf.CheckForApp( "xdg-desktop-menu --help" ): |
---|
296 | | env['XDG_TOOLS'] = True |
---|
297 | | else: |
---|
298 | | print """ |
---|
299 | | I couldn't find the program 'xdg-desktop-menu'. Together with xdg-icon-resource |
---|
300 | | this is needed to add the fancy entry to your menu. But the mixer will be installed, you can start it by executing "ffadomixer". |
---|
301 | | """ |
---|
302 | | |
---|
303 | | if not build_mixer: |
---|
304 | | print """ |
---|
305 | | I couldn't find all the prerequisites ('pyuic' / 'pyuic4' and the python-modules 'dbus' and |
---|
306 | | 'qt', the packages could be named like dbus-python and PyQt) to build the mixer. |
---|
307 | | Therefor the mixer won't get installed. |
---|
308 | | """ |
---|
| 295 | |
---|
| 296 | if conf.CheckForApp( "xdg-desktop-menu --help" ): |
---|
| 297 | env['XDG_TOOLS'] = True |
---|
| 298 | else: |
---|
| 299 | print """ |
---|
| 300 | I couldn't find the program 'xdg-desktop-menu'. Together with xdg-icon-resource |
---|
| 301 | this is needed to add the fancy entry to your menu. But the mixer will be installed, you can start it by executing "ffadomixer". |
---|
| 302 | """ |
---|
| 303 | |
---|
| 304 | if not build_mixer and not env.GetOption('clean'): |
---|
| 305 | print """ |
---|
| 306 | I couldn't find all the prerequisites ('pyuic' / 'pyuic4' and the python-modules 'dbus' and |
---|
| 307 | 'qt', the packages could be named like dbus-python and PyQt) to build the mixer. |
---|
| 308 | Therefor the mixer won't get installed. |
---|
| 309 | """ |
---|
328 | | # -Werror could be added to, which would force the devs to really remove all the warnings :-) |
---|
329 | | env.AppendUnique( CCFLAGS=["-DDEBUG","-Wall","-g"] ) |
---|
330 | | env.AppendUnique( CFLAGS=["-DDEBUG","-Wall","-g"] ) |
---|
331 | | else: |
---|
332 | | env.AppendUnique( CCFLAGS=["-O2","-DNDEBUG"] ) |
---|
333 | | env.AppendUnique( CFLAGS=["-O2","-DNDEBUG"] ) |
---|
| 323 | env.MergeFlags( "-DDEBUG -Wall -g" ) |
---|
| 324 | else: |
---|
| 325 | env.MergeFlags( "-O2 -DNDEBUG" ) |
---|