[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 05/14: controlport: build: allowing Control
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 05/14: controlport: build: allowing ControlPort and probes in static builds. |
Date: |
Wed, 6 May 2015 21:31:02 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch master
in repository gnuradio.
commit 2331efa69f0a75046a78cc60e47572adbe65b677
Author: Tom Rondeau <address@hidden>
Date: Tue Apr 28 12:21:57 2015 -0400
controlport: build: allowing ControlPort and probes in static builds.
Apache Thrift can be built and used statically; now just tests if ICE
is present and removes ControlPort only then.
---
gnuradio-runtime/lib/CMakeLists.txt | 29 ++++++++++++++++-------------
gr-blocks/lib/CMakeLists.txt | 22 ++++++++++++----------
2 files changed, 28 insertions(+), 23 deletions(-)
diff --git a/gnuradio-runtime/lib/CMakeLists.txt
b/gnuradio-runtime/lib/CMakeLists.txt
index efbfa92..e8fd67b 100644
--- a/gnuradio-runtime/lib/CMakeLists.txt
+++ b/gnuradio-runtime/lib/CMakeLists.txt
@@ -208,20 +208,23 @@ add_dependencies(gnuradio-runtime
# STATIC LIB BUILD
#######################################################
if(ENABLE_STATIC_LIBS)
- # Remove controlport-specific source files from staticlibs build
+ # Remove controlport-specific source files from staticlibs build if
+ # ICE is the backend since it does not build statically.
if(ENABLE_GR_CTRLPORT)
- list(REMOVE_ITEM gnuradio_runtime_sources
- ${gnuradio_ctrlport_sources}
- )
-
- # Remove GR_CTRLPORT set this target's definitions.
- # Makes sure we don't try to use ControlPort stuff in source files
- GET_DIRECTORY_PROPERTY(STATIC_DEFS COMPILE_DEFINITIONS)
- list(REMOVE_ITEM STATIC_DEFS "GR_CTRLPORT")
- SET_PROPERTY(DIRECTORY PROPERTY COMPILE_DEFINITIONS "${STATIC_DEFS}")
-
- # readd it to the target since we removed it from the directory-wide list.
- SET_PROPERTY(TARGET gnuradio-runtime APPEND PROPERTY COMPILE_DEFINITIONS
"GR_CTRLPORT")
+ if(ICE_FOUND)
+ list(REMOVE_ITEM gnuradio_runtime_sources
+ ${gnuradio_ctrlport_sources}
+ )
+
+ # Remove GR_CTRLPORT set this target's definitions.
+ # Makes sure we don't try to use ControlPort stuff in source files
+ GET_DIRECTORY_PROPERTY(STATIC_DEFS COMPILE_DEFINITIONS)
+ list(REMOVE_ITEM STATIC_DEFS "GR_CTRLPORT")
+ SET_PROPERTY(DIRECTORY PROPERTY COMPILE_DEFINITIONS "${STATIC_DEFS}")
+
+ # readd it to the target since we removed it from the directory-wide
list.
+ SET_PROPERTY(TARGET gnuradio-runtime APPEND PROPERTY COMPILE_DEFINITIONS
"GR_CTRLPORT")
+ endif(ICE_FOUND)
endif(ENABLE_GR_CTRLPORT)
add_library(gnuradio-runtime_static STATIC ${gnuradio_runtime_sources})
diff --git a/gr-blocks/lib/CMakeLists.txt b/gr-blocks/lib/CMakeLists.txt
index cd164f2..0f5d9fa 100644
--- a/gr-blocks/lib/CMakeLists.txt
+++ b/gr-blocks/lib/CMakeLists.txt
@@ -251,18 +251,20 @@ GR_LIBRARY_FOO(gnuradio-blocks RUNTIME_COMPONENT
"blocks_runtime" DEVEL_COMPONEN
if(ENABLE_STATIC_LIBS)
# Remove controlport-specific source files from staticlibs build
if(ENABLE_GR_CTRLPORT)
- list(REMOVE_ITEM gr_blocks_sources
- ${blocks_ctrlport_sources}
- )
+ if(ICE_FOUND)
+ list(REMOVE_ITEM gr_blocks_sources
+ ${blocks_ctrlport_sources}
+ )
- # Remove GR_CTRLPORT set this target's definitions.
- # Makes sure we don't try to use ControlPort stuff in source files
- GET_DIRECTORY_PROPERTY(STATIC_DEFS COMPILE_DEFINITIONS)
- list(REMOVE_ITEM STATIC_DEFS "GR_CTRLPORT")
- SET_PROPERTY(DIRECTORY PROPERTY COMPILE_DEFINITIONS "${STATIC_DEFS}")
+ # Remove GR_CTRLPORT set this target's definitions.
+ # Makes sure we don't try to use ControlPort stuff in source files
+ GET_DIRECTORY_PROPERTY(STATIC_DEFS COMPILE_DEFINITIONS)
+ list(REMOVE_ITEM STATIC_DEFS "GR_CTRLPORT")
+ SET_PROPERTY(DIRECTORY PROPERTY COMPILE_DEFINITIONS "${STATIC_DEFS}")
- # readd it to the target since we removed it from the directory-wide list.
- SET_PROPERTY(TARGET gnuradio-blocks APPEND PROPERTY COMPILE_DEFINITIONS
"GR_CTRLPORT")
+ # readd it to the target since we removed it from the directory-wide
list.
+ SET_PROPERTY(TARGET gnuradio-blocks APPEND PROPERTY COMPILE_DEFINITIONS
"GR_CTRLPORT")
+ endif(ICE_FOUND)
endif(ENABLE_GR_CTRLPORT)
add_library(gnuradio-blocks_static STATIC ${gr_blocks_sources})
- [Commit-gnuradio] [gnuradio] branch master updated (06a7a77 -> a693941), git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 01/14: Print scan rate, git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 08/14: controlport: this fixes a complaint by newer versions of Boost., git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 06/14: controlport: fixing complaints about no non-virtual dtor., git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 09/14: Merge branch 'maint', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 02/14: uhd: Fixes for CID 1296559 and 1090067 and more, git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 05/14: controlport: build: allowing ControlPort and probes in static builds.,
git <=
- [Commit-gnuradio] [gnuradio] 04/14: uhd: Updated frequency hopping example to do DSP tuning only, git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 12/14: Merge remote-tracking branch 'mbant/uhd/cids-59-67-master', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 10/14: Merge remote-tracking branch 'ckuethe/spectrum_sense', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 11/14: Merge remote-tracking branch 'trondeau/controlport/cleaning_up', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 07/14: controlport: android: cleaning up; better logs; help to support android., git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 13/14: Merge remote-tracking branch 'mbant/uhd/message_updates', git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 14/14: uhd: changing uhd_msg_tune example to use other forms of setting parameters., git, 2015/05/06
- [Commit-gnuradio] [gnuradio] 03/14: uhd: Updated command interface to match new message command format, git, 2015/05/06