Changeset 3678
- Timestamp:
- 28/11/08 17:54:49 (6 weeks ago)
- Files:
-
- 1 modified
-
trunk/display/setup.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/display/setup.py
r3540 r3678 42 42 print 'kaa.base not installed' 43 43 sys.exit(1) 44 45 # check disable parameter 46 disable = [] 47 for arg in sys.argv[:]: 48 if arg.startswith('--disable-'): 49 disable.append(arg[10:]) 50 sys.argv.remove(arg) 44 51 45 52 # config file … … 91 98 config.define('HAVE_X11_COMPOSITE') 92 99 x11.add_library('XComposite') 93 100 94 101 features = { 'with': [], 'without': [] } 95 102 imlib2 = get_library('imlib2') 96 if imlib2 and imlib2.compile(['<Imlib2.h>'], 'imlib_context_set_display(NULL);'): 103 if 'imlib2-x11' in disable or 'imlib2' in disable: 104 features['without'].append('imlib2') 105 elif imlib2 and imlib2.compile(['<Imlib2.h>'], 'imlib_context_set_display(NULL);'): 97 106 config.define('USE_IMLIB2_X11') 98 107 x11.add_library('imlib2') 99 108 features['with'].append('imlib2') 100 else: 101 features['without'].append('imlib2') 102 109 elif imlib2: 110 print 111 print 'Imlib2 was compiled without X11 support. Therefore Imlib2 for the' 112 print 'kaa.display.X11 module is disabled. Please re-compile imlib2 with X11' 113 print 'support or add --disable-imlib2-x11 to the setup.py parameter' 114 print 115 sys.exit(1) 116 else: 117 print 118 print 'Imlib2 not found. Therefore Imlib2 for the kaa.display.X11 module is' 119 print 'disabled. Please install imlib2 or add --disable-imlib2 to the setup.py' 120 print 'parameter.' 121 print 122 sys.exit(1) 103 123 if evas and evas.compile(['<Evas.h>', '<Evas_Engine_Software_X11.h>']): 104 124 features['with'].append('evas') … … 123 143 124 144 125 if get_library('imlib2'): 126 145 if get_library('imlib2') and not 'imlib2' in disable: 127 146 # the framebuffer so module 128 fb = Extension('kaa.display._FBmodule', 129 [ 'src/fb.c', 'src/common.c']) 147 fb = Extension('kaa.display._FBmodule', [ 'src/fb.c', 'src/common.c']) 130 148 fb.add_library('imlib2') 131 149 if evas and evas.compile(['<Evas.h>', '<Evas_Engine_FB.h>']): … … 156 174 157 175 158 if pygame and get_library('sdl') and get_library('imlib2') :176 if pygame and get_library('sdl') and get_library('imlib2') and not 'imlib2' in disable: 159 177 160 178 # pygame module
