|
From: <ai...@us...> - 2013-07-11 19:59:41
|
Revision: 12415
http://sourceforge.net/p/plplot/code/12415
Author: airwin
Date: 2013-07-11 19:59:37 +0000 (Thu, 11 Jul 2013)
Log Message:
-----------
Initial commit of a file with CMake logic to parse a file created by
gtk_transform.py (see README for how to use gtk_transform.py).
Currently, that parsing simply outputs the parsed results in the same
form as the input file so that, e.g.,
cmake -DFILENAME:FILEPATH=pango_packages.data -P \
configure_bp.cmake 2>| diff pango_packages.data -
shows no differences indicating the parsing is working.
ToDo: Use these correctly parsed results to configure corresponding
bp.cmake files for each package that is found by gtk_transform.py.
Added Paths:
-----------
trunk/cmake/build_projects/configure_bp.cmake
Added: trunk/cmake/build_projects/configure_bp.cmake
===================================================================
--- trunk/cmake/build_projects/configure_bp.cmake (rev 0)
+++ trunk/cmake/build_projects/configure_bp.cmake 2013-07-11 19:59:37 UTC (rev 12415)
@@ -0,0 +1,30 @@
+cmake_policy(SET CMP0007 NEW)
+file(STRINGS ${FILENAME} lines)
+list(LENGTH lines nlines)
+# There are currently groups of 9 lines for each
+# gtk software package specifying the required
+# build-configuration information.
+set(group_size 9)
+set(remove_indices 0 1 2 3 4 5 6 7 8)
+math(EXPR max_index "(${nlines}/${group_size}) - 1")
+foreach(index RANGE 0 ${max_index})
+ list(GET lines 0 package)
+ message("${package}")
+ list(GET lines 1 config_type)
+ message("${config_type}")
+ list(GET lines 2 config_arguments)
+ message("${config_arguments}")
+ list(GET lines 3 download_hash_type)
+ message("${download_hash_type}")
+ list(GET lines 4 download_hash)
+ message("${download_hash}")
+ list(GET lines 5 download_href)
+ message("${download_href}")
+ list(GET lines 6 dependencies)
+ message("${dependencies}")
+ list(GET lines 7 suggests)
+ message("${suggests}")
+ list(GET lines 8 after)
+ message("${after}")
+ list(REMOVE_AT lines ${remove_indices})
+endforeach(index RANGE 0 ${max_index})
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|