Changeset 874
- Timestamp:
- 06/26/07 08:37:08 (2 years ago)
- Files:
-
- 1 modified
-
trunk/jahwidgets/src/qt3/olibs.pri (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jahwidgets/src/qt3/olibs.pri
r655 r874 2 2 3 3 unix { 4 OLIB_PREFIX=$$system(pkg-config --variable=prefix openlibaries 2>/dev/null)5 isEmpty( OLIB_PREFIX ) {6 OLIB_PREFIX=/usr/local7 }8 9 # try the more aggressive flags (they may be unsupported on old versions of pkg-config?)10 # note: there is also the --cflags-only-other (and the plain --cflags) available.11 4 OLIB_INCLUDE = $$system(pkg-config --cflags-only-I openlibraries 2>/dev/null | sed 's/-I//g') 12 5 isEmpty( OLIB_INCLUDE ) { 13 # LATER: this may need fixing when the openlibraries include more values than just directories to be included 14 OLIB_INCLUDE = $$system(pkg-config --cflags openlibraries 2>/dev/null | sed 's/-I//g') 6 error( "pkg-config failed for some reason; check PKG_CONFIG_PATH is set" ) 15 7 } 16 isEmpty( OLIB_INCLUDE ) {17 OLIB_INCLUDE=$$OLIB_PREFIX/include/openlibraries-0.4.118 }19 8 20 # MAYBE: LATER: use --libs-only-l, --libs-only-L and/or --libs-only-other instead of --libs21 9 OLIB_LIBS = $$system(pkg-config --libs openlibraries 2>/dev/null) 22 isEmpty( OLIB_LIBS ) {23 OLIB_LIBS=$$OLIB_PREFIX/lib/openlibraries-0.4.1 24 }10 isEmpty( OLIB_LIBS ) { 11 error( "pkg-config failed for some reason; check PKG_CONFIG_PATH is set" ) 12 } 25 13 26 INCLUDEPATH += $$OLIB_INCLUDE27 LIBS+= $$OLIB_LIBS -L/usr/X11R6/lib14 INCLUDEPATH += $$OLIB_INCLUDE 15 LIBS += $$OLIB_LIBS -L/usr/X11R6/lib 28 16 29 # For now add any link flags from the environment30 LIBS+= $(LDFLAGS)17 # For now add any link flags from the environment 18 LIBS += $(LDFLAGS) 31 19 } 32 20 33 21 # OPL auto links, but we need to give the path. NB requires quotes. 34 22 win32 { 35 INCLUDEPATH += C:/Boost/include/boost-1_3323 INCLUDEPATH += C:/Boost/include/boost-1_33 36 24 LIBS += -L"../openlibraries/src/openpluginlib/Multi-threaded Debug DLL" 37 25 LIBS += -L"../openlibraries/src/openimagelib/il/Multi-threaded Debug DLL" 38 26 LIBS += -L"../openlibraries/src/openmedialib/ml/Multi-threaded Debug DLL" 39 27 LIBS += -L"C:/boost/lib/" 40 LIBS += -lGLEW3228 LIBS += -lGLEW32 41 29 42 30 # OpenPluginLib requires these compiler settings.
