commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r9952 - in gnuradio/branches/developers/trondeau/qt: c


From: trondeau
Subject: [Commit-gnuradio] r9952 - in gnuradio/branches/developers/trondeau/qt: config gr-qtgui/src/lib
Date: Fri, 7 Nov 2008 04:05:43 -0700 (MST)

Author: trondeau
Date: 2008-11-07 04:05:43 -0700 (Fri, 07 Nov 2008)
New Revision: 9952

Modified:
   gnuradio/branches/developers/trondeau/qt/config/grc_gr_qtgui.m4
   gnuradio/branches/developers/trondeau/qt/gr-qtgui/src/lib/Makefile.am
Log:
Passes make distchech when qt stuff is not installed, even if it is a bit ugly. 
Want to test it under a few other conditions.

Modified: gnuradio/branches/developers/trondeau/qt/config/grc_gr_qtgui.m4
===================================================================
--- gnuradio/branches/developers/trondeau/qt/config/grc_gr_qtgui.m4     
2008-11-07 06:39:10 UTC (rev 9951)
+++ gnuradio/branches/developers/trondeau/qt/config/grc_gr_qtgui.m4     
2008-11-07 11:05:43 UTC (rev 9952)
@@ -78,6 +78,12 @@
        AC_SUBST(QT_UIC_EXEC)
     fi
 
+    if test "$passed" = "no"; then
+        AM_CONDITIONAL(BUILD_QT, false)
+    else
+       AM_CONDITIONAL(BUILD_QT, true)
+    fi
+
     AC_CONFIG_FILES([ \
         gr-qtgui/Makefile \
         gr-qtgui/src/Makefile \

Modified: gnuradio/branches/developers/trondeau/qt/gr-qtgui/src/lib/Makefile.am
===================================================================
--- gnuradio/branches/developers/trondeau/qt/gr-qtgui/src/lib/Makefile.am       
2008-11-07 06:39:10 UTC (rev 9951)
+++ gnuradio/branches/developers/trondeau/qt/gr-qtgui/src/lib/Makefile.am       
2008-11-07 11:05:43 UTC (rev 9952)
@@ -21,9 +21,6 @@
 
 include $(top_srcdir)/Makefile.common
 
-#SUBDIRS=qtspectrum
-#DIST_SUBDIRS=qtspectrum
-
 # Install this stuff so that it ends up as the gnuradio.qtgui module
 # This usually ends up at:
 #   ${prefix}/lib/python${python_version}/site-packages/gnuradio/qtgui
@@ -51,16 +48,23 @@
 # The second is the python wrapper that loads the shared library
 # and knows how to call our extensions.
 
-BUILT_SOURCES =                                \
-       qtgui.cc                                \
-       qtgui.py                                \
+# Only include these files in the build if qtgui passes configure checks
+# This is mostly to help make distcheck pass
+if BUILD_QT
+QMAKE_SOURCES =                                \
        spectrumdisplayform_moc.cc              \
        FrequencyDisplayPlot_moc.cc             \
        TimeDomainDisplayPlot_moc.cc            \
        WaterfallDisplayPlot_moc.cc             \
        Waterfall3DDisplayPlot_moc.cc           \
-       spectrumdisplayform_ui.h                
+       spectrumdisplayform_ui.h
+endif
 
+BUILT_SOURCES =                                \
+       qtgui.cc                                \
+       qtgui.py                                \
+       $(QMAKE_SOURCES)
+
 # This gets qtgui.py installed in the right place
 ourpython_PYTHON =                     \
        qtgui.py
@@ -82,12 +86,7 @@
        SpectrumGUIClass.cc                     \
        spectrumUpdateEvents.cc                 \
        plot_waterfall.cc                       \
-       spectrumdisplayform.ui                  \
-       spectrumdisplayform_moc.cc              \
-       FrequencyDisplayPlot_moc.cc             \
-       TimeDomainDisplayPlot_moc.cc            \
-       WaterfallDisplayPlot_moc.cc             \
-       Waterfall3DDisplayPlot_moc.cc           \
+       $(QMAKE_SOURCES)                        \
        qtgui_sink_c.cc                         \
        qtgui_sink_f.cc
 
@@ -111,12 +110,20 @@
        qtgui_sink_c.h                  \
        qtgui_sink_f.h
 
+if BUILD_QT
 %_moc.cc : %.h
        $(QT_MOC_EXEC) -DQT_SHARED -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB 
-DQT_CORE_LIB $< -o $@
 
 %_ui.h : %.ui
        $(QT_UIC_EXEC) $< -o $@
+else
+%_moc.cc : %.h
+       touch $@
 
+%_ui.h : %.ui
+       touch $@
+endif
+
 # magic flags
 _qtgui_la_LDFLAGS = $(NO_UNDEFINED) -module -avoid-version
 libqtgui_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0
@@ -144,8 +151,6 @@
 
 MOSTLYCLEANFILES = $(BUILT_SOURCES) *.pyc
 
-#EXTRA_DIST=qtspectrum/GNUmakefile
-
 # Don't distribute output of swig
 dist-hook:
        @for file in $(BUILT_SOURCES); do echo $(RM) $(distdir)/$$file; done





reply via email to

[Prev in Thread] Current Thread [Next in Thread]