[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 04/04: Fixes for ABI compliance checker
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 04/04: Fixes for ABI compliance checker |
Date: |
Fri, 11 Dec 2015 20:27:01 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 578fcb99217bdbc4501e620ade7665242f793c71
Author: A. Maitland Bottoms <address@hidden>
Date: Mon Dec 7 11:53:35 2015 -0500
Fixes for ABI compliance checker
do not install obsolete headers
Some header files in atsc and qtgui are installed, but have references
to obsolete paths and are therefore uncompilable. These files should
probably be removed from the checked-out source trees to complete the
refactoring, but this patch merely omits them from the install step.
This allows the abi-compliance-checker to run over the installed header
files.
codec2 embedding fixups
Only use and install the embedded copy of codec2.h when using an
embedded copy of the codec2 library. Use cmake to propagate conditional
paths from lib directory to swig directory.
make acc happy
The abi-compliance-checker operates in installed headers. So sys_pri.h
needs to look for gnuradio/realtime.h and be explicit about structure
definitions. py_feval.h needs to explicitly include Python.h.
---
gnuradio-runtime/include/gnuradio/py_feval.h | 1 +
gnuradio-runtime/include/gnuradio/sys_pri.h | 10 ++++-----
gr-atsc/include/gnuradio/atsc/CMakeLists.txt | 28 --------------------------
gr-qtgui/include/gnuradio/qtgui/CMakeLists.txt | 2 --
gr-vocoder/gnuradio-vocoder.pc.in | 2 +-
gr-vocoder/include/gnuradio/vocoder/codec2.h | 2 +-
gr-vocoder/lib/CMakeLists.txt | 7 +++++++
gr-vocoder/swig/CMakeLists.txt | 1 +
8 files changed, 16 insertions(+), 37 deletions(-)
diff --git a/gnuradio-runtime/include/gnuradio/py_feval.h
b/gnuradio-runtime/include/gnuradio/py_feval.h
index cef168c..89491af 100644
--- a/gnuradio-runtime/include/gnuradio/py_feval.h
+++ b/gnuradio-runtime/include/gnuradio/py_feval.h
@@ -23,6 +23,7 @@
#ifndef INCLUDED_GR_PY_FEVAL_H
#define INCLUDED_GR_PY_FEVAL_H
+#include <Python.h>
#include <pmt/pmt.h>
#include <gnuradio/feval.h>
diff --git a/gnuradio-runtime/include/gnuradio/sys_pri.h
b/gnuradio-runtime/include/gnuradio/sys_pri.h
index adceb91..d251455 100644
--- a/gnuradio-runtime/include/gnuradio/sys_pri.h
+++ b/gnuradio-runtime/include/gnuradio/sys_pri.h
@@ -23,7 +23,7 @@
#define INCLUDED_GNURADIO_SYS_PRI_H
#include <gnuradio/api.h>
-#include <realtime.h>
+#include <gnuradio/realtime.h>
/*
* A single place to define real-time priorities used by the system itself
@@ -31,10 +31,10 @@
namespace gr {
struct GR_RUNTIME_API sys_pri {
- static rt_sched_param python(); // python code
- static rt_sched_param normal(); // normal blocks
- static rt_sched_param gcell_event_handler();
- static rt_sched_param usrp2_backend(); // thread that services the
ethernet
+ static struct GR_RUNTIME_API rt_sched_param python(); //
python code
+ static struct GR_RUNTIME_API rt_sched_param normal(); //
normal blocks
+ static struct GR_RUNTIME_API rt_sched_param gcell_event_handler();
+ static struct GR_RUNTIME_API rt_sched_param usrp2_backend(); //
thread that services the ethernet
};
} /* namespace gr */
diff --git a/gr-atsc/include/gnuradio/atsc/CMakeLists.txt
b/gr-atsc/include/gnuradio/atsc/CMakeLists.txt
index cdf818a..3955a62 100644
--- a/gr-atsc/include/gnuradio/atsc/CMakeLists.txt
+++ b/gr-atsc/include/gnuradio/atsc/CMakeLists.txt
@@ -41,7 +41,6 @@ install(FILES
equalizer_lms2_impl.h
equalizer_lms_impl.h
equalizer_nop_impl.h
- exp2_lp_impl.h
fake_single_viterbi_impl.h
field_sync_demux.h
field_sync_mux.h
@@ -51,29 +50,6 @@ install(FILES
fs_checker_naive_impl.h
fs_correlator_impl.h
fs_correlator_naive_impl.h
- GrAtscBitTimingLoop2.h
- GrAtscBitTimingLoop3.h
- GrAtscBitTimingLoop.h
- GrAtscConvert2xTo20.h
- GrAtscDataSegToSoftDataSeg.h
- GrAtscDeinterleaver.h
- GrAtscDerandomizer.h
- GrAtscEqualizer.h
- GrAtscFieldSyncChecker.h
- GrAtscFieldSyncCorrelator.h
- GrAtscFieldSyncDemux.h
- GrAtscFieldSyncMux.h
- GrAtscFPLL.h
- GrAtscInterleaver.h
- GrAtscRandomizer.h
- GrAtscRSDecoder.h
- GrAtscRSEncoder.h
- GrAtscSegSymSync.h
- GrAtscSegSymSyncImpl_export.h
- GrAtscSegSymSyncImpl.h
- GrAtscSymbolMapper.h
- GrAtscTrellisEncoder.h
- GrAtscViterbiDecoder.h
interleaver_fifo.h
interleaver.h
pad.h
@@ -81,12 +57,9 @@ install(FILES
randomizer.h
randomizer_impl.h
reed_solomon_impl.h
- root_raised_cosine_bandpass_impl.h
- root_raised_cosine_impl.h
rs_decoder.h
rs_encoder.h
single_viterbi_impl.h
- slicer_agc_impl.h
sliding_correlator_impl.h
sssr_impl.h
syminfo_impl.h
@@ -96,7 +69,6 @@ install(FILES
types.h
viterbi_decoder.h
viterbi_decoder_impl.h
- vsbtx_lp_impl.h
DESTINATION ${GR_INCLUDE_DIR}/gnuradio/atsc
COMPONENT "atsc_devel"
)
diff --git a/gr-qtgui/include/gnuradio/qtgui/CMakeLists.txt
b/gr-qtgui/include/gnuradio/qtgui/CMakeLists.txt
index 1e0c9f3..29022b6 100644
--- a/gr-qtgui/include/gnuradio/qtgui/CMakeLists.txt
+++ b/gr-qtgui/include/gnuradio/qtgui/CMakeLists.txt
@@ -45,8 +45,6 @@ install(FILES
qtgui_types.h
sink_c.h
sink_f.h
- spectrumdisplayform.h
- SpectrumGUIClass.h
spectrumUpdateEvents.h
timedisplayform.h
timecontrolpanel.h
diff --git a/gr-vocoder/gnuradio-vocoder.pc.in
b/gr-vocoder/gnuradio-vocoder.pc.in
index c5c860d..f937319 100644
--- a/gr-vocoder/gnuradio-vocoder.pc.in
+++ b/gr-vocoder/gnuradio-vocoder.pc.in
@@ -8,4 +8,4 @@ Description: GNU Radio blocks implementing voice codecs
Requires: gnuradio-runtime
Version: @LIBVER@
Libs: -L${libdir} -lgnuradio-vocoder
-Cflags: -I${includedir}
+Cflags: -I${includedir} @EMBEDDED_CODEC2_INCLUDE@
diff --git a/gr-vocoder/include/gnuradio/vocoder/codec2.h
b/gr-vocoder/include/gnuradio/vocoder/codec2.h
index a3c2225..871903f 100644
--- a/gr-vocoder/include/gnuradio/vocoder/codec2.h
+++ b/gr-vocoder/include/gnuradio/vocoder/codec2.h
@@ -26,7 +26,7 @@
#include <gnuradio/vocoder/api.h>
extern "C" {
-#include "../lib/codec2/codec2.h"
+#include <codec2/codec2.h>
}
namespace gr {
diff --git a/gr-vocoder/lib/CMakeLists.txt b/gr-vocoder/lib/CMakeLists.txt
index a347cbf..7e813de 100644
--- a/gr-vocoder/lib/CMakeLists.txt
+++ b/gr-vocoder/lib/CMakeLists.txt
@@ -140,6 +140,9 @@ else (NOT DEFINED GR_USE_SYSTEM_LIBCODEC2)
else (GR_USE_SYSTEM_LIBCODEC2)
set(GR_USE_LOCAL_LIBCODEC2 TRUE)
message(STATUS "Using gnuradio local copy of libcodec2.")
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+ set(EMBEDDED_CODEC2_INCLUDE "-I\${includedir}/gnuradio/vocoder"
PARENT_SCOPE)
+ set(EMBEDDED_CODEC2_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/gr-vocoder/lib
PARENT_SCOPE)
endif (GR_USE_SYSTEM_LIBCODEC2)
endif (NOT DEFINED GR_USE_SYSTEM_LIBCODEC2)
@@ -151,6 +154,7 @@ mark_as_advanced(LIBCODEC2_INCLUDE_DIR LIBCODEC2_LIBRARIES)
########################################################################
include_directories(
${GR_VOCODER_INCLUDE_DIRS}
+ ${EMBEDDED_CODEC2_INCLUDE_DIRS}
${GNURADIO_RUNTIME_INCLUDE_DIRS}
${LOG4CXX_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
@@ -210,6 +214,9 @@ GR_INCLUDE_SUBDIRECTORY(g7xx)
if(GR_USE_LOCAL_LIBCODEC2)
GR_INCLUDE_SUBDIRECTORY(codec2)
+ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/codec2/codec2.h
+ DESTINATION ${GR_INCLUDE_DIR}/gnuradio/vocoder/codec2/
+ COMPONENT "vocoder_devel")
endif(GR_USE_LOCAL_LIBCODEC2)
if(GR_USE_LOCAL_LIBGSM)
diff --git a/gr-vocoder/swig/CMakeLists.txt b/gr-vocoder/swig/CMakeLists.txt
index 2662396..4e15442 100644
--- a/gr-vocoder/swig/CMakeLists.txt
+++ b/gr-vocoder/swig/CMakeLists.txt
@@ -25,6 +25,7 @@ include(GrSwig)
set(GR_SWIG_INCLUDE_DIRS
${GR_VOCODER_INCLUDE_DIRS}
+ ${EMBEDDED_CODEC2_INCLUDE_DIRS}
${GNURADIO_RUNTIME_SWIG_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
)