[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 18/21: controlport: better handling of Thri
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 18/21: controlport: better handling of Thrift checks for cross-compiling. |
Date: |
Sat, 9 May 2015 14:05:37 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
trondeau pushed a commit to branch android
in repository gnuradio.
commit 4ca7be31d2abe020a4d4f5154e5ccb2fb2c0751a
Author: Tom Rondeau <address@hidden>
Date: Tue May 5 11:22:19 2015 -0400
controlport: better handling of Thrift checks for cross-compiling.
Use -DTHRIFT_BIN=`which thrift` to tell cmake the native thrift binary
to use when compiling the thrift files. All we need from the cross
compiled environment is the library itself.
---
cmake/Modules/FindThrift.cmake | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/cmake/Modules/FindThrift.cmake b/cmake/Modules/FindThrift.cmake
index f12bce0..a75d01b 100644
--- a/cmake/Modules/FindThrift.cmake
+++ b/cmake/Modules/FindThrift.cmake
@@ -58,9 +58,14 @@ if(THRIFT_VERSION VERSION_LESS THRIFT_REQ_VERSION)
endif(THRIFT_VERSION VERSION_LESS THRIFT_REQ_VERSION)
-# Check that Thrift for Python is available
-include(GrPython)
-GR_PYTHON_CHECK_MODULE("Thrift" thrift "1" PYTHON_THRIFT_FOUND)
+# If we're not cross-compiling, Check that Thrift for Python is
+# available. If we are, don't worry about Python.
+if(NOT CMAKE_CROSSCOMPILING)
+ include(GrPython)
+ GR_PYTHON_CHECK_MODULE("Thrift" thrift "1" PYTHON_THRIFT_FOUND)
+else(NOT CMAKE_CROSSCOMPILING)
+ set(PYTHON_THRIFT_FOUND True)
+endif(NOT CMAKE_CROSSCOMPILING)
# Set to found if we've made it this far
if(THRIFT_INCLUDE_DIRS AND THRIFT_LIBRARIES AND PYTHON_THRIFT_FOUND)
- [Commit-gnuradio] [gnuradio] 07/21: runtime: trying to use ANDROID to define certain behavior, (continued)
- [Commit-gnuradio] [gnuradio] 07/21: runtime: trying to use ANDROID to define certain behavior, git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 16/21: build: fixing complaints for static builds against libuhd.a., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 06/21: volk: using hypot instead of cabsf., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 04/21: runtime: android: issues related to vmcircbuf; only mmap_tmpfile version working currently., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 09/21: fft: defined a setting for the FFTW plan options if android or not., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 05/21: fft: android: problems with wisdom files and MEASURE version of FFTW. Defaulting to suboptimal ESTIMATE until we figure it out., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 13/21: runtime: moved global block registry to a static get function., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 17/21: controlport: android: cleaning up; better logs; help to support android., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 15/21: controlport: fixing complaints about no non-virtual dtor., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 03/21: runtime: android: Android does not support pthread_setaffinity_np; turned this into a nop call., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 18/21: controlport: better handling of Thrift checks for cross-compiling.,
git <=
- [Commit-gnuradio] [gnuradio] 14/21: controlport: build: allowing ControlPort and probes in static builds., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 08/21: cmake: changed to using C checks for headers instead of C++., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 11/21: runtime: android: more conversion of statics vars to static functions., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 20/21: runtime: android: setting better path for prefs files on Android., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 21/21: runtime: android: tweaking vmcircbuf setup for Android., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 19/21: android: cmake: prioritize ANDROID_STANDALONE_TOOLCHAIN over ANDROID_NDK., git, 2015/05/09
- [Commit-gnuradio] [gnuradio] 12/21: cmake: android: adding toolchain file for building., git, 2015/05/09