Browse Source

There are no broken demos anymore

... at least at compile time.

Signed-off-by: Steffen Jaeckel <[email protected]>
Steffen Jaeckel 9 months ago
parent
commit
54a16fb672
2 changed files with 19 additions and 32 deletions
  1. 18 24
      demos/CMakeLists.txt
  2. 1 8
      makefile_include.mk

+ 18 - 24
demos/CMakeLists.txt

@@ -2,12 +2,14 @@
 # Options
 # Options
 # -----------------------------------------------------------------------------
 # -----------------------------------------------------------------------------
 option(BUILD_USEFUL_DEMOS "Build useful demos (hashsum)" FALSE)
 option(BUILD_USEFUL_DEMOS "Build useful demos (hashsum)" FALSE)
-option(BUILD_USABLE_DEMOS "Build usable demos (crypt sizes constants pem-info)" FALSE)
-option(BUILD_BROKEN_DEMOS "Build broken demos (aesgcm openssh-privkey openssl-enc timing)" FALSE)
+option(
+    BUILD_USABLE_DEMOS
+    "Build usable demos (aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing)"
+    FALSE
+)
 option(BUILD_TEST_DEMOS "Build test demos (small tv_gen)" FALSE)
 option(BUILD_TEST_DEMOS "Build test demos (small tv_gen)" FALSE)
 
 
 option(INSTALL_DEMOS "Install enabled demos (USEFUL and/or USABLE) and ltc wrapper script" FALSE)
 option(INSTALL_DEMOS "Install enabled demos (USEFUL and/or USABLE) and ltc wrapper script" FALSE)
-option(INSTALL_BROKEN_DEMOS "Install broken demos and ltc wrapper script" FALSE)
 
 
 # -----------------------------------------------------------------------------
 # -----------------------------------------------------------------------------
 # Useful demos
 # Useful demos
@@ -26,30 +28,22 @@ endif()
 #
 #
 # Demos that are usable but only rarely make sense to be installed
 # Demos that are usable but only rarely make sense to be installed
 #
 #
-# USEABLE_DEMOS  = crypt sizes constants pem-info
+# USEABLE_DEMOS  = aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing
 # -----------------------------------------------------------------------------
 # -----------------------------------------------------------------------------
 
 
 if(BUILD_USABLE_DEMOS)
 if(BUILD_USABLE_DEMOS)
-    list(APPEND USABLE_DEMOS_TARGETS crypt sizes constants pem-info)
-endif()
-
-# -----------------------------------------------------------------------------
-# Broken demos
-#
-# Demos that are kind of useful, but in some way broken
-#
-# * aesgcm          - can't be built with LTC_EASY
-# * openssl-enc     - can't be built with LTC_EASY
-# * openssh-privkey - can't be built with LTC_EASY
-# * timing          - not really broken, but older gcc builds spit warnings
-#
-# BROKEN_DEMOS   = aesgcm openssl-enc openssh-privkey timing
-# -----------------------------------------------------------------------------
-
-if(BUILD_BROKEN_DEMOS AND INSTALL_BROKEN_DEMOS)
-    list(APPEND USABLE_DEMOS_TARGETS aesgcm openssh-privkey openssl-enc timing)
-elseif(BUILD_BROKEN_DEMOS)
-    list(APPEND ALL_DEMOS_TARGETS aesgcm openssh-privkey openssl-enc timing)
+    list(
+        APPEND
+        USABLE_DEMOS_TARGETS
+        aesgcm
+        constants
+        crypt
+        openssh-privkey
+        openssl-enc
+        pem-info
+        sizes
+        timing
+    )
 endif()
 endif()
 
 
 # -----------------------------------------------------------------------------
 # -----------------------------------------------------------------------------

+ 1 - 8
makefile_include.mk

@@ -171,18 +171,11 @@ TEST=test
 USEFUL_DEMOS   = hashsum
 USEFUL_DEMOS   = hashsum
 
 
 # Demos that are usable but only rarely make sense to be installed
 # Demos that are usable but only rarely make sense to be installed
-USEABLE_DEMOS  = crypt sizes constants pem-info
+USEABLE_DEMOS  = aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing
 
 
 # Demos that are used for testing or measuring
 # Demos that are used for testing or measuring
 TEST_DEMOS     = small tv_gen
 TEST_DEMOS     = small tv_gen
 
 
-# Demos that are in one config broken
-#  aesgcm          - can't be built with LTC_EASY
-#  openssl-enc     - can't be built with LTC_EASY
-#  openssh-privkey - can't be built with LTC_EASY
-#  timing          - not really broken, but older gcc builds spit warnings
-BROKEN_DEMOS   = aesgcm openssl-enc openssh-privkey timing
-
 # Combine demos in groups
 # Combine demos in groups
 UNBROKEN_DEMOS = $(TEST_DEMOS) $(USEABLE_DEMOS) $(USEFUL_DEMOS)
 UNBROKEN_DEMOS = $(TEST_DEMOS) $(USEABLE_DEMOS) $(USEFUL_DEMOS)
 DEMOS          = $(UNBROKEN_DEMOS) $(BROKEN_DEMOS)
 DEMOS          = $(UNBROKEN_DEMOS) $(BROKEN_DEMOS)