aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-01-26 20:35:48 +0100
committerSven Gothel <[email protected]>2021-01-26 20:35:48 +0100
commit520335897fa99fb8bd2f718f0ace5b1beae45e70 (patch)
tree2d3a1ef182863800fc205d658f484b8bd72d5647 /cmake
parent9162302ee3408dee2db4caa671962ce36c6b3fa0 (diff)
Adapt to jaulib changes: Jar naming convention (dash, not underscore for extras) ..; direct-bt-fat* includes jaulib-fat (standalone)
direct-bt-fat.jar is with Tinyb direct-bt-fat2.jar is ex Tinyb (merely testing size and encapsulation)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/ExtractArchiveList.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/cmake/modules/ExtractArchiveList.cmake b/cmake/modules/ExtractArchiveList.cmake
new file mode 100644
index 00000000..c6d4e448
--- /dev/null
+++ b/cmake/modules/ExtractArchiveList.cmake
@@ -0,0 +1,20 @@
+message(STATUS "rm -rf ${_dstdir}")
+file(REMOVE_RECURSE ${_dstdir})
+
+# list(LENGTH _archives len)
+# message(STATUS "X1: <${_archives}>, len ${len}")
+
+string(REPLACE "\"" "" l1 ${_archives})
+string(REPLACE " " ";" l2 ${l1})
+
+# list(LENGTH l2 len)
+# message(STATUS "X2: <${l2}>, len ${len}")
+
+foreach(item ${l2})
+ message(STATUS "unzip ${item} -> ${_dstdir}")
+ file(ARCHIVE_EXTRACT INPUT ${item} DESTINATION ${_dstdir})
+endforeach()
+
+unset(l1)
+unset(l2)
+unset(item)