@@ -52,40 +52,6 @@ option(SECP256K1_ENABLE_MODULE_SCHNORRSIG "Enable schnorrsig module." ON)
52
52
option (SECP256K1_ENABLE_MODULE_MUSIG "Enable musig module." ON )
53
53
option (SECP256K1_ENABLE_MODULE_ELLSWIFT "Enable ElligatorSwift module." ON )
54
54
55
- # Processing must be done in a topological sorting of the dependency graph
56
- # (dependent module first).
57
- if (SECP256K1_ENABLE_MODULE_ELLSWIFT )
58
- add_compile_definitions (ENABLE_MODULE_ELLSWIFT=1 )
59
- endif ()
60
-
61
- if (SECP256K1_ENABLE_MODULE_MUSIG )
62
- if (DEFINED SECP256K1_ENABLE_MODULE_SCHNORRSIG AND NOT SECP256K1_ENABLE_MODULE_SCHNORRSIG )
63
- message (FATAL_ERROR "Module dependency error: You have disabled the schnorrsig module explicitly, but it is required by the musig module." )
64
- endif ()
65
- set (SECP256K1_ENABLE_MODULE_SCHNORRSIG ON )
66
- add_compile_definitions (ENABLE_MODULE_MUSIG=1 )
67
- endif ()
68
-
69
- if (SECP256K1_ENABLE_MODULE_SCHNORRSIG )
70
- if (DEFINED SECP256K1_ENABLE_MODULE_EXTRAKEYS AND NOT SECP256K1_ENABLE_MODULE_EXTRAKEYS )
71
- message (FATAL_ERROR "Module dependency error: You have disabled the extrakeys module explicitly, but it is required by the schnorrsig module." )
72
- endif ()
73
- set (SECP256K1_ENABLE_MODULE_EXTRAKEYS ON )
74
- add_compile_definitions (ENABLE_MODULE_SCHNORRSIG=1 )
75
- endif ()
76
-
77
- if (SECP256K1_ENABLE_MODULE_EXTRAKEYS )
78
- add_compile_definitions (ENABLE_MODULE_EXTRAKEYS=1 )
79
- endif ()
80
-
81
- if (SECP256K1_ENABLE_MODULE_RECOVERY )
82
- add_compile_definitions (ENABLE_MODULE_RECOVERY=1 )
83
- endif ()
84
-
85
- if (SECP256K1_ENABLE_MODULE_ECDH )
86
- add_compile_definitions (ENABLE_MODULE_ECDH=1 )
87
- endif ()
88
-
89
55
option (SECP256K1_USE_EXTERNAL_DEFAULT_CALLBACKS "Enable external default callback functions." OFF )
90
56
if (SECP256K1_USE_EXTERNAL_DEFAULT_CALLBACKS )
91
57
add_compile_definitions (USE_EXTERNAL_DEFAULT_CALLBACKS=1 )
0 commit comments