def set_clib_flags(c_lib): import oof2setuputils if not DIM_3: # if oof2setuputils.check_exec('Magick++-config'): # # Hack. Check that ImageMagick is really installed, not # # GraphicsMagick. # f = os.popen('Magick++-config --libs', 'r') # line = f.readline() # if 'GraphicsMagick' in line: # print "You seem to be using GraphicsMagick instead of ImageMagick. OOF2 cannot use GraphicsMagick." # sys.exit() # # Add ImageMagick headers and libs. # oof2setuputils.add_third_party_includes( # 'Magick++-config --cppflags', c_lib) # oof2setuputils.add_third_party_libs( # 'Magick++-config --ldflags --libs', c_lib) # else: # print "Can't find Magick++-config! Your ImageMagick installation may be defective." oof2setuputils.pkg_check("Magick++", MAGICK_VERSION, c_lib) c_lib.externalLibs.append('oof2common') else: c_lib.externalLibs.append('vtkImaging') c_lib.externalLibs.append('vtkCommon') c_lib.externalLibs.append('vtkCommonPythonD') c_lib.externalLibs.append('vtkIO') c_lib.externalLibs.append('vtkIOPythonD') c_lib.externalLibs.append('vtkFiltering') c_lib.externalLibs.append('vtkRendering') c_lib.externalLibs.append('vtkVolumeRendering') c_lib.externalLibs.append('oof3dcommon')
def set_clib_flags(c_lib): import oof2setuputils # if oof2setuputils.check_exec('Magick++-config'): # oof2setuputils.add_third_party_includes('Magick++-config --cppflags', # c_lib) # oof2setuputils.add_third_party_libs('Magick++-config --ldflags --libs', # c_lib) # else: # print "Can't find Magick++-config! Your ImageMagick installation may be defective." oof2setuputils.pkg_check("Magick++", MAGICK_VERSION, c_lib) c_lib.externalLibs.append('oof2common')
def set_clib_flags(clib): import oof2setuputils # This is a hack that is needed by pkg-config on Macs using # fink. After merging its pangocairo branch, fink isn't putting # pango.pc and freetype2.pc in the default locations because they # can cause conflicts. Once fink completes upgrading to modern # versions of these libraries, this hack can be removed. oof2setuputils.extend_path("PKG_CONFIG_PATH", "/sw/lib/pango-ft219/lib/pkgconfig", "/sw/lib/freetype219/lib/pkgconfig/") oof2setuputils.pkg_check("gtk+-2.0", GTK_VERSION, clib) oof2setuputils.pkg_check("libgnomecanvas-2.0", GNOMECANVAS_VERSION, clib) oof2setuputils.pkg_check("pygtk-2.0", PYGTK_VERSION, clib) oof2setuputils.pkg_check("pygobject-2.0", PYGOBJECT_VERSION) if not DIM_3: clib.externalLibs.append('oof2common') else: clib.externalLibs.append('oof3dcommon')