Permalink
Browse files

Generate, rather than enumerate, juggler lib names.

Clean, simpler generation of juggler 3.0.x names, and add an
unreleased next version to give us some buffer time before
needing to update these scripts again.
  • Loading branch information...
1 parent d42ae48 commit 9e8b357f5322f707b880d303f122c6f3d10d1057 @rpavlik committed May 10, 2012
Showing with 49 additions and 21 deletions.
  1. +7 −3 FindGadgeteer20.cmake
  2. +7 −3 FindJCCL14.cmake
  3. +7 −3 FindSonix14.cmake
  4. +7 −3 FindTweek14.cmake
  5. +7 −3 FindVPR22.cmake
  6. +7 −3 FindVRJ30.cmake
  7. +7 −3 FindVRJOGL30.cmake
View
@@ -37,11 +37,15 @@
# Brandon Newendorp <brandon@newendorp.com>
set(_HUMAN "Gadgeteer 2.0")
-set(_RELEASE_NAMES gadget-2_0 libgadget-2_0 gadget-2_0_0 gadget-2_0_1)
-set(_DEBUG_NAMES gadget_d-2_0 libgadget_d-2_0 gadget_d-2_0_0 gadget_d-2_0_1)
+set(_FP_PKG_NAME gadgeteer)
+set(_RELEASE_NAMES)
+set(_DEBUG_NAMES)
+foreach(VER 2_0 2_0_0 2_0_1 2_0_2)
+ list(APPEND _RELEASE_NAMES gadget-${VER})
+ list(APPEND _DEBUG_NAMES gadget_d-${VER})
+endforeach()
set(_DIR gadgeteer-2.0)
set(_HEADER gadget/gadgetConfig.h)
-set(_FP_PKG_NAME gadgeteer)
include(SelectLibraryConfigurations)
include(CreateImportedTarget)
View
@@ -37,11 +37,15 @@
set(_HUMAN "JCCL 1.4")
-set(_RELEASE_NAMES jccl-1_4 libjccl-1_4 jccl-1_4_0 jccl-1_4_1)
-set(_DEBUG_NAMES jccl_d-1_4 libjccl_d-1_4 jccl_d-1_4_0 jccl_d-1_4_1)
+set(_FP_PKG_NAME jccl)
+set(_RELEASE_NAMES)
+set(_DEBUG_NAMES)
+foreach(VER 1_4 1_4_0 1_4_1 1_4_2)
+ list(APPEND _RELEASE_NAMES ${_FP_PKG_NAME}-${VER})
+ list(APPEND _DEBUG_NAMES ${_FP_PKG_NAME}_d-${VER})
+endforeach()
set(_DIR jccl-1.4)
set(_HEADER jccl/jcclConfig.h)
-set(_FP_PKG_NAME jccl)
include(SelectLibraryConfigurations)
include(CreateImportedTarget)
View
@@ -37,11 +37,15 @@
set(_HUMAN "Sonix 1.4")
-set(_RELEASE_NAMES sonix-1_4 libsonix-1_4 sonix-1_4_0 sonix-1_4_1)
-set(_DEBUG_NAMES sonix_d-1_4 libsonix_d-1_4 sonix_d-1_4_0 sonix_d-1_4_1)
+set(_FP_PKG_NAME sonix)
+set(_RELEASE_NAMES)
+set(_DEBUG_NAMES)
+foreach(VER 1_4 1_4_0 1_4_1 1_4_2)
+ list(APPEND _RELEASE_NAMES ${_FP_PKG_NAME}-${VER})
+ list(APPEND _DEBUG_NAMES ${_FP_PKG_NAME}_d-${VER})
+endforeach()
set(_DIR sonix-1.4)
set(_HEADER snx/sonix.h)
-set(_FP_PKG_NAME sonix)
include(SelectLibraryConfigurations)
include(CreateImportedTarget)
View
@@ -37,11 +37,15 @@
set(_HUMAN "Tweek 1.4")
-set(_RELEASE_NAMES tweek-1_4 libtweek-1_4 tweek-1_4_0 tweek-1_4_1)
-set(_DEBUG_NAMES tweek_d-1_4 libtweek_d-1_4 tweek_d-1_4_0 tweek_d-1_4_1)
+set(_FP_PKG_NAME sonix)
+set(_RELEASE_NAMES)
+set(_DEBUG_NAMES)
+foreach(VER 1_4 1_4_0 1_4_1 1_4_2)
+ list(APPEND _RELEASE_NAMES ${_FP_PKG_NAME}-${VER})
+ list(APPEND _DEBUG_NAMES ${_FP_PKG_NAME}_d-${VER})
+endforeach()
set(_DIR tweek-1.4)
set(_HEADER tweek/tweek.h)
-set(_FP_PKG_NAME tweek)
include(SelectLibraryConfigurations)
include(CreateImportedTarget)
View
@@ -40,11 +40,15 @@
# Brandon Newendorp <brandon@newendorp.com>
set(_HUMAN "VPR 2.2")
-set(_RELEASE_NAMES vpr-2_2 libvpr-2_2 vpr-2_2_0 vpr-2_2_1)
-set(_DEBUG_NAMES vpr_d-2_2 libvpr_d-2_2 vpr_d-2_2_0 vpr_d-2_2_1)
+set(_FP_PKG_NAME vpr)
+set(_RELEASE_NAMES)
+set(_DEBUG_NAMES)
+foreach(VER 2_2 2_2_0 2_2_1 2_2_2)
+ list(APPEND _RELEASE_NAMES ${_FP_PKG_NAME}-${VER})
+ list(APPEND _DEBUG_NAMES ${_FP_PKG_NAME}_d-${VER})
+endforeach()
set(_DIR vpr-2.2)
set(_HEADER vpr/vpr.h)
-set(_FP_PKG_NAME vpr)
include(SelectLibraryConfigurations)
include(CreateImportedTarget)
View
@@ -45,11 +45,15 @@
set(_HUMAN "VR Juggler 3.0 Core")
-set(_RELEASE_NAMES vrj-3_0 libvrj-3_0 vrj-3_0_0 vrj-3_0_1)
-set(_DEBUG_NAMES vrj_d-3_0 libvrj_d-3_0 vrj_d-3_0_0 vrj_d-3_0_1)
+set(_FP_PKG_NAME vrjuggler)
+set(_RELEASE_NAMES)
+set(_DEBUG_NAMES)
+foreach(VER 3_0 3_0_0 3_0_1 3_0_2)
+ list(APPEND _RELEASE_NAMES vrj-${VER})
+ list(APPEND _DEBUG_NAMES vrj_d-${VER})
+endforeach()
set(_DIR vrjuggler-3.0)
set(_HEADER vrj/Kernel/Kernel.h)
-set(_FP_PKG_NAME vrjuggler)
include(SelectLibraryConfigurations)
include(CreateImportedTarget)
View
@@ -38,10 +38,14 @@
set(_HUMAN "VR Juggler 3.0 OpenGL Core")
-set(_RELEASE_NAMES vrj_ogl-3_0 libvrj_ogl-3_0 vrj_ogl-3_0_0 vrj_ogl-3_0_1)
-set(_DEBUG_NAMES vrj_ogl_d-3_0 libvrj_ogl_d-3_0 vrj_ogl_d-3_0_0 vrj_ogl_d-3_0_1)
-set(_DIR vrjuggler-3.0)
set(_FP_PKG_NAME vrjuggler-opengl)
+set(_RELEASE_NAMES)
+set(_DEBUG_NAMES)
+foreach(VER 3_0 3_0_0 3_0_1 3_0_2)
+ list(APPEND _RELEASE_NAMES vrj_ogl-${VER})
+ list(APPEND _DEBUG_NAMES vrj_ogl_d-${VER})
+endforeach()
+set(_DIR vrjuggler-3.0)
include(SelectLibraryConfigurations)
include(CreateImportedTarget)

0 comments on commit 9e8b357

Please sign in to comment.