From fdd31c3dd95a42d2666235ad8c2478b7ceead261 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Thu, 05 May 2005 22:02:55 +0000 Subject: use dependency system for flite plugins --- (limited to 'noncore/apps/opie-reader') diff --git a/noncore/apps/opie-reader/FliteDyn/FliteDyn.pro b/noncore/apps/opie-reader/FliteDyn/FliteDyn.pro index 54927f5..5d03f91 100644 --- a/noncore/apps/opie-reader/FliteDyn/FliteDyn.pro +++ b/noncore/apps/opie-reader/FliteDyn/FliteDyn.pro @@ -10,9 +10,17 @@ SOURCES = flitedyn.cpp INTERFACES = DESTDIR = $(OPIEDIR)/plugins/reader/outcodecs TARGET = flitedyn -LIBS += -L/home/tim/flite/flite-1.2-release/lib -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite +LIBS += -lflite_cmu_us_kal -lflite_usenglish -lflite_cmulex -lflite INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include include( $(OPIEDIR)/include.pro ) + +!isEmpty( LIBFLITE_INC_DIR ) { + INCLUDEPATH = $$LIBFLITE_INC_DIR $$INCLUDEPATH +} +!isEmpty( LIBFLITE_LIB_DIR ) { + LIBS = -L$$LIBFLITE_LIB_DIR $$LIBS +} + diff --git a/noncore/apps/opie-reader/FliteDyn/config.in b/noncore/apps/opie-reader/FliteDyn/config.in index 4a791f9..d2db3c3 100644 --- a/noncore/apps/opie-reader/FliteDyn/config.in +++ b/noncore/apps/opie-reader/FliteDyn/config.in @@ -1,4 +1,7 @@ config OPIE-READER-FLITEDYN boolean "opie-reader flite plugin (speech output via lib in 8kHz)" default "n" - depends OPIE-READER + depends OPIE-READER && LIBFLITE_DEP + comment "opie-reader flite plugin needs libflite" + depends !( OPIE-READER && LIBFLITE_DEP ) + diff --git a/noncore/apps/opie-reader/FliteDyn16/FliteDyn16.pro b/noncore/apps/opie-reader/FliteDyn16/FliteDyn16.pro index 0f92e49..9fb7a56 100644 --- a/noncore/apps/opie-reader/FliteDyn16/FliteDyn16.pro +++ b/noncore/apps/opie-reader/FliteDyn16/FliteDyn16.pro @@ -10,9 +10,19 @@ SOURCES = flitedyn.cpp INTERFACES = DESTDIR = $(OPIEDIR)/plugins/reader/outcodecs TARGET = flitedyn -LIBS += -L/home/tim/flite/flite-1.2-release/lib -lflite_cmu_us_kal16 -lflite_usenglish -lflite_cmulex -lflite +LIBS += -lflite_cmu_us_kal16 -lflite_usenglish -lflite_cmulex -lflite INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include include( $(OPIEDIR)/include.pro ) + +!isEmpty( LIBFLITE_INC_DIR ) { + INCLUDEPATH = $$LIBFLITE_INC_DIR $$INCLUDEPATH +} +!isEmpty( LIBFLITE_LIB_DIR ) { + LIBS = -L$$LIBFLITE_LIB_DIR $$LIBS +} + + + diff --git a/noncore/apps/opie-reader/FliteDyn16/config.in b/noncore/apps/opie-reader/FliteDyn16/config.in index 869fddc..c6f73e5 100644 --- a/noncore/apps/opie-reader/FliteDyn16/config.in +++ b/noncore/apps/opie-reader/FliteDyn16/config.in @@ -1,4 +1,6 @@ config OPIE-READER-FLITEDYN16 boolean "opie-reader flite plugin (speech output via lib in 16kHz)" default "n" - depends OPIE-READER + depends OPIE-READER && LIBFLITE_DEP + comment "opie-reader flite plugin needs libflite" + depends !( OPIE-READER && LIBFLITE_DEP ) -- cgit v0.9.0.2