aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2015-08-13 10:51:59 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2015-08-13 10:51:59 +0200
commit242522fbee59c9703d9fed35923486db5effb7d1 (patch)
treea84f5b83fd90c9e452b72e32147f750a0c3db485 /cmake
parent57711f6694d1f477342cc8fc46fdd64017bf11b7 (diff)
Added comands building automatically grc applications
Better than manually generated python files but still not perfect as it takes many cmake lines to compile single file and grc files are compiled at every run of make. Removed also old and not working code for building grc files.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/GrMiscUtils.cmake31
1 files changed, 0 insertions, 31 deletions
diff --git a/cmake/Modules/GrMiscUtils.cmake b/cmake/Modules/GrMiscUtils.cmake
index 2be710c..04efa9e 100644
--- a/cmake/Modules/GrMiscUtils.cmake
+++ b/cmake/Modules/GrMiscUtils.cmake
@@ -259,37 +259,6 @@ function(GR_LOGGING)
endfunction(GR_LOGGING)
########################################################################
-# Run GRCC to compile .grc files into .py files.
-#
-# Usage: GRCC(filename, directory)
-# - filenames: List of file name of .grc file
-# - directory: directory of built .py file - usually in
-# ${CMAKE_CURRENT_BINARY_DIR}
-# - Sets PYFILES: output converted GRC file names to Python files.
-########################################################################
-function(GRCC)
- # Extract directory from list of args, remove it for the list of filenames.
- list(GET ARGV -1 directory)
- list(REMOVE_AT ARGV -1)
- set(filenames ${ARGV})
- file(MAKE_DIRECTORY ${directory})
-
- SET(GRCC_COMMAND ${PC_GNURADIO_RUNTIME_PREFIX}/${GR_RUNTIME_DIR}/grcc)
-
- foreach(f ${filenames})
- execute_process(
- COMMAND ${GRCC_COMMAND} -d ${directory} "${CMAKE_CURRENT_SOURCE_DIR}/${f}"
- )
- string(REPLACE ".grc" ".py" pyfile ${f})
- string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}" "" pyfile "${pyfile}")
- set(pyfile "${CMAKE_CURRENT_BINARY_DIR}/${pyfile}")
- list(APPEND pyfiles ${pyfile})
- endforeach(f)
-
- set(PYFILES ${pyfiles} PARENT_SCOPE)
-endfunction(GRCC)
-
-########################################################################
# Check if HAVE_PTHREAD_SETSCHEDPARAM and HAVE_SCHED_SETSCHEDULER
# should be defined
########################################################################