Skip to content

Commit 54a16fb

Browse files
committed
There are no broken demos anymore
... at least at compile time. Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 795e8e8 commit 54a16fb

File tree

2 files changed

+19
-32
lines changed

2 files changed

+19
-32
lines changed

demos/CMakeLists.txt

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
# Options
33
# -----------------------------------------------------------------------------
44
option(BUILD_USEFUL_DEMOS "Build useful demos (hashsum)" FALSE)
5-
option(BUILD_USABLE_DEMOS "Build usable demos (crypt sizes constants pem-info)" FALSE)
6-
option(BUILD_BROKEN_DEMOS "Build broken demos (aesgcm openssh-privkey openssl-enc timing)" FALSE)
5+
option(
6+
BUILD_USABLE_DEMOS
7+
"Build usable demos (aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing)"
8+
FALSE
9+
)
710
option(BUILD_TEST_DEMOS "Build test demos (small tv_gen)" FALSE)
811

912
option(INSTALL_DEMOS "Install enabled demos (USEFUL and/or USABLE) and ltc wrapper script" FALSE)
10-
option(INSTALL_BROKEN_DEMOS "Install broken demos and ltc wrapper script" FALSE)
1113

1214
# -----------------------------------------------------------------------------
1315
# Useful demos
@@ -26,30 +28,22 @@ endif()
2628
#
2729
# Demos that are usable but only rarely make sense to be installed
2830
#
29-
# USEABLE_DEMOS = crypt sizes constants pem-info
31+
# USEABLE_DEMOS = aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing
3032
# -----------------------------------------------------------------------------
3133

3234
if(BUILD_USABLE_DEMOS)
33-
list(APPEND USABLE_DEMOS_TARGETS crypt sizes constants pem-info)
34-
endif()
35-
36-
# -----------------------------------------------------------------------------
37-
# Broken demos
38-
#
39-
# Demos that are kind of useful, but in some way broken
40-
#
41-
# * aesgcm - can't be built with LTC_EASY
42-
# * openssl-enc - can't be built with LTC_EASY
43-
# * openssh-privkey - can't be built with LTC_EASY
44-
# * timing - not really broken, but older gcc builds spit warnings
45-
#
46-
# BROKEN_DEMOS = aesgcm openssl-enc openssh-privkey timing
47-
# -----------------------------------------------------------------------------
48-
49-
if(BUILD_BROKEN_DEMOS AND INSTALL_BROKEN_DEMOS)
50-
list(APPEND USABLE_DEMOS_TARGETS aesgcm openssh-privkey openssl-enc timing)
51-
elseif(BUILD_BROKEN_DEMOS)
52-
list(APPEND ALL_DEMOS_TARGETS aesgcm openssh-privkey openssl-enc timing)
35+
list(
36+
APPEND
37+
USABLE_DEMOS_TARGETS
38+
aesgcm
39+
constants
40+
crypt
41+
openssh-privkey
42+
openssl-enc
43+
pem-info
44+
sizes
45+
timing
46+
)
5347
endif()
5448

5549
# -----------------------------------------------------------------------------

makefile_include.mk

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,18 +171,11 @@ TEST=test
171171
USEFUL_DEMOS = hashsum
172172

173173
# Demos that are usable but only rarely make sense to be installed
174-
USEABLE_DEMOS = crypt sizes constants pem-info
174+
USEABLE_DEMOS = aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing
175175

176176
# Demos that are used for testing or measuring
177177
TEST_DEMOS = small tv_gen
178178

179-
# Demos that are in one config broken
180-
# aesgcm - can't be built with LTC_EASY
181-
# openssl-enc - can't be built with LTC_EASY
182-
# openssh-privkey - can't be built with LTC_EASY
183-
# timing - not really broken, but older gcc builds spit warnings
184-
BROKEN_DEMOS = aesgcm openssl-enc openssh-privkey timing
185-
186179
# Combine demos in groups
187180
UNBROKEN_DEMOS = $(TEST_DEMOS) $(USEABLE_DEMOS) $(USEFUL_DEMOS)
188181
DEMOS = $(UNBROKEN_DEMOS) $(BROKEN_DEMOS)

0 commit comments

Comments
 (0)