build.info 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. {- use File::Spec::Functions;
  2. our $ex_inc = $withargs{fuzzer_include} &&
  3. (file_name_is_absolute($withargs{fuzzer_include}) ?
  4. $withargs{fuzzer_include} : catdir(updir(), $withargs{fuzzer_include}));
  5. our $ex_lib = $withargs{fuzzer_lib} &&
  6. (file_name_is_absolute($withargs{fuzzer_lib}) ?
  7. $withargs{fuzzer_lib} : catfile(updir(), $withargs{fuzzer_lib}));
  8. ""
  9. -}
  10. IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}]
  11. PROGRAMS{noinst}=asn1 asn1parse bignum bndiv client conf crl server smime
  12. PROGRAMS{noinst}=punycode pem decoder hashtable acert
  13. PROGRAMS{noinst}=v3name
  14. PROGRAMS{noinst}=provider
  15. IF[{- !$disabled{"cmp"} -}]
  16. PROGRAMS{noinst}=cmp
  17. ENDIF
  18. IF[{- !$disabled{"cms"} -}]
  19. PROGRAMS{noinst}=cms
  20. ENDIF
  21. IF[{- !$disabled{"ct"} -}]
  22. PROGRAMS{noinst}=ct
  23. ENDIF
  24. IF[{- !$disabled{"ocsp"} -}]
  25. PROGRAMS{noinst}=x509
  26. ENDIF
  27. IF[{- !$disabled{"quic"} -}]
  28. PROGRAMS{noinst}=quic-client quic-srtm quic-lcidm quic-rcidm
  29. ENDIF
  30. IF[{- !$disabled{"dtls"} -}]
  31. PROGRAMS{noinst}=dtlsclient dtlsserver
  32. ENDIF
  33. SOURCE[asn1]=asn1.c driver.c fuzz_rand.c
  34. INCLUDE[asn1]=../include {- $ex_inc -}
  35. DEPEND[asn1]=../libcrypto ../libssl {- $ex_lib -}
  36. SOURCE[asn1parse]=asn1parse.c driver.c
  37. INCLUDE[asn1parse]=../include {- $ex_inc -}
  38. DEPEND[asn1parse]=../libcrypto {- $ex_lib -}
  39. SOURCE[bignum]=bignum.c driver.c
  40. INCLUDE[bignum]=../include {- $ex_inc -}
  41. DEPEND[bignum]=../libcrypto {- $ex_lib -}
  42. SOURCE[bndiv]=bndiv.c driver.c
  43. INCLUDE[bndiv]=../include {- $ex_inc -}
  44. DEPEND[bndiv]=../libcrypto {- $ex_lib -}
  45. SOURCE[client]=client.c driver.c fuzz_rand.c
  46. INCLUDE[client]=../include {- $ex_inc -}
  47. DEPEND[client]=../libcrypto ../libssl {- $ex_lib -}
  48. SOURCE[cmp]=cmp.c driver.c fuzz_rand.c
  49. INCLUDE[cmp]=../include {- $ex_inc -}
  50. DEPEND[cmp]=../libcrypto {- $ex_lib -}
  51. SOURCE[cms]=cms.c driver.c
  52. INCLUDE[cms]=../include {- $ex_inc -}
  53. DEPEND[cms]=../libcrypto {- $ex_lib -}
  54. SOURCE[conf]=conf.c driver.c
  55. INCLUDE[conf]=../include {- $ex_inc -}
  56. DEPEND[conf]=../libcrypto {- $ex_lib -}
  57. SOURCE[crl]=crl.c driver.c
  58. INCLUDE[crl]=../include {- $ex_inc -}
  59. DEPEND[crl]=../libcrypto {- $ex_lib -}
  60. SOURCE[ct]=ct.c driver.c
  61. INCLUDE[ct]=../include {- $ex_inc -}
  62. DEPEND[ct]=../libcrypto {- $ex_lib -}
  63. SOURCE[dtlsclient]=dtlsclient.c driver.c fuzz_rand.c
  64. INCLUDE[dtlsclient]=../include {- $ex_inc -}
  65. DEPEND[dtlsclient]=../libcrypto ../libssl {- $ex_lib -}
  66. SOURCE[dtlsserver]=dtlsserver.c driver.c fuzz_rand.c
  67. INCLUDE[dtlsserver]=../include {- $ex_inc -}
  68. DEPEND[dtlsserver]=../libcrypto ../libssl {- $ex_lib -}
  69. SOURCE[pem]=pem.c driver.c
  70. INCLUDE[pem]=../include {- $ex_inc -}
  71. DEPEND[pem]=../libcrypto.a {- $ex_lib -}
  72. SOURCE[decoder]=decoder.c driver.c fuzz_rand.c
  73. INCLUDE[decoder]=../include {- $ex_inc -}
  74. DEPEND[decoder]=../libcrypto {- $ex_lib -}
  75. SOURCE[hashtable]=hashtable.c driver.c
  76. INCLUDE[hashtable]=../include {- $ex_inc -}
  77. DEPEND[hashtable]=../libcrypto {- $ex_lib -}
  78. SOURCE[acert]=acert.c driver.c
  79. INCLUDE[acert]=../include {- $ex_inc -}
  80. DEPEND[acert]=../libcrypto {- $ex_lib -}
  81. SOURCE[punycode]=punycode.c driver.c
  82. INCLUDE[punycode]=../include {- $ex_inc -}
  83. DEPEND[punycode]=../libcrypto.a {- $ex_lib -}
  84. SOURCE[smime]=smime.c driver.c
  85. INCLUDE[smime]=../include {- $ex_inc -}
  86. DEPEND[smime]=../libcrypto ../libssl {- $ex_lib -}
  87. SOURCE[v3name]=v3name.c driver.c
  88. INCLUDE[v3name]=../include {- $ex_inc -}
  89. DEPEND[v3name]=../libcrypto.a {- $ex_lib -}
  90. SOURCE[quic-client]=quic-client.c driver.c fuzz_rand.c
  91. INCLUDE[quic-client]=../include {- $ex_inc -}
  92. DEPEND[quic-client]=../libcrypto.a ../libssl.a {- $ex_lib -}
  93. SOURCE[quic-srtm]=quic-srtm.c driver.c fuzz_rand.c
  94. INCLUDE[quic-srtm]=../include {- $ex_inc -}
  95. DEPEND[quic-srtm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  96. SOURCE[quic-lcidm]=quic-lcidm.c driver.c fuzz_rand.c
  97. INCLUDE[quic-lcidm]=../include {- $ex_inc -}
  98. DEPEND[quic-lcidm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  99. SOURCE[quic-rcidm]=quic-rcidm.c driver.c fuzz_rand.c
  100. INCLUDE[quic-rcidm]=../include {- $ex_inc -}
  101. DEPEND[quic-rcidm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  102. SOURCE[server]=server.c driver.c fuzz_rand.c
  103. INCLUDE[server]=../include {- $ex_inc -}
  104. DEPEND[server]=../libcrypto ../libssl {- $ex_lib -}
  105. SOURCE[x509]=x509.c driver.c fuzz_rand.c
  106. INCLUDE[x509]=../include {- $ex_inc -}
  107. DEPEND[x509]=../libcrypto {- $ex_lib -}
  108. SOURCE[provider]=provider.c driver.c
  109. INCLUDE[provider]=../include {- $ex_inc -}
  110. DEPEND[provider]=../libcrypto {- $ex_lib -}
  111. ENDIF
  112. IF[{- !$disabled{tests} -}]
  113. PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test server-test smime-test
  114. PROGRAMS{noinst}=punycode-test pem-test decoder-test hashtable-test acert-test
  115. PROGRAMS{noinst}=v3name-test
  116. PROGRAMS{noinst}=provider-test
  117. IF[{- !$disabled{"cmp"} -}]
  118. PROGRAMS{noinst}=cmp-test
  119. ENDIF
  120. IF[{- !$disabled{"cms"} -}]
  121. PROGRAMS{noinst}=cms-test
  122. ENDIF
  123. IF[{- !$disabled{"ct"} -}]
  124. PROGRAMS{noinst}=ct-test
  125. ENDIF
  126. IF[{- !$disabled{"ocsp"} -}]
  127. PROGRAMS{noinst}=x509-test
  128. ENDIF
  129. IF[{- !$disabled{"quic"} -}]
  130. PROGRAMS{noinst}=quic-client-test quic-srtm-test quic-lcidm-test
  131. PROGRAMS{noinst}=quic-rcidm-test
  132. ENDIF
  133. IF[{- !$disabled{"dtls"} -}]
  134. PROGRAMS{noinst}=dtlsclient-test dtlsserver-test
  135. ENDIF
  136. SOURCE[asn1-test]=asn1.c test-corpus.c fuzz_rand.c
  137. INCLUDE[asn1-test]=../include
  138. DEPEND[asn1-test]=../libcrypto ../libssl
  139. SOURCE[asn1parse-test]=asn1parse.c test-corpus.c
  140. INCLUDE[asn1parse-test]=../include
  141. DEPEND[asn1parse-test]=../libcrypto
  142. SOURCE[bignum-test]=bignum.c test-corpus.c
  143. INCLUDE[bignum-test]=../include
  144. DEPEND[bignum-test]=../libcrypto
  145. SOURCE[bndiv-test]=bndiv.c test-corpus.c
  146. INCLUDE[bndiv-test]=../include
  147. DEPEND[bndiv-test]=../libcrypto
  148. SOURCE[client-test]=client.c test-corpus.c fuzz_rand.c
  149. INCLUDE[client-test]=../include
  150. DEPEND[client-test]=../libcrypto ../libssl
  151. SOURCE[cmp-test]=cmp.c test-corpus.c fuzz_rand.c
  152. INCLUDE[cmp-test]=../include
  153. DEPEND[cmp-test]=../libcrypto.a
  154. # referring to static lib allows using non-exported functions
  155. SOURCE[cms-test]=cms.c test-corpus.c
  156. INCLUDE[cms-test]=../include
  157. DEPEND[cms-test]=../libcrypto
  158. SOURCE[conf-test]=conf.c test-corpus.c
  159. INCLUDE[conf-test]=../include
  160. DEPEND[conf-test]=../libcrypto
  161. SOURCE[crl-test]=crl.c test-corpus.c
  162. INCLUDE[crl-test]=../include
  163. DEPEND[crl-test]=../libcrypto
  164. SOURCE[ct-test]=ct.c test-corpus.c
  165. INCLUDE[ct-test]=../include
  166. DEPEND[ct-test]=../libcrypto
  167. SOURCE[dtlsclient-test]=dtlsclient.c test-corpus.c fuzz_rand.c
  168. INCLUDE[dtlsclient-test]=../include
  169. DEPEND[dtlsclient-test]=../libcrypto ../libssl
  170. SOURCE[dtlsserver-test]=dtlsserver.c test-corpus.c fuzz_rand.c
  171. INCLUDE[dtlsserver-test]=../include
  172. DEPEND[dtlsserver-test]=../libcrypto ../libssl
  173. SOURCE[pem-test]=pem.c test-corpus.c
  174. INCLUDE[pem-test]=../include
  175. DEPEND[pem-test]=../libcrypto.a
  176. SOURCE[decoder-test]=decoder.c test-corpus.c fuzz_rand.c
  177. INCLUDE[decoder-test]=../include
  178. DEPEND[decoder-test]=../libcrypto
  179. SOURCE[hashtable-test]=hashtable.c test-corpus.c fuzz_rand.c
  180. INCLUDE[hashtable-test]=../include
  181. DEPEND[hashtable-test]=../libcrypto.a
  182. SOURCE[acert-test]=acert.c test-corpus.c
  183. INCLUDE[acert-test]=../include
  184. DEPEND[acert-test]=../libcrypto
  185. SOURCE[punycode-test]=punycode.c test-corpus.c
  186. INCLUDE[punycode-test]=../include
  187. DEPEND[punycode-test]=../libcrypto.a
  188. SOURCE[smime-test]=smime.c test-corpus.c
  189. INCLUDE[smime-test]=../include
  190. DEPEND[smime-test]=../libcrypto ../libssl
  191. SOURCE[v3name-test]=v3name.c test-corpus.c
  192. INCLUDE[v3name-test]=../include
  193. DEPEND[v3name-test]=../libcrypto.a
  194. SOURCE[quic-client-test]=quic-client.c test-corpus.c fuzz_rand.c
  195. INCLUDE[quic-client-test]=../include
  196. DEPEND[quic-client-test]=../libcrypto.a ../libssl.a
  197. SOURCE[quic-srtm-test]=quic-srtm.c test-corpus.c fuzz_rand.c
  198. INCLUDE[quic-srtm-test]=../include
  199. DEPEND[quic-srtm-test]=../libcrypto.a ../libssl.a
  200. SOURCE[quic-lcidm-test]=quic-lcidm.c test-corpus.c fuzz_rand.c
  201. INCLUDE[quic-lcidm-test]=../include
  202. DEPEND[quic-lcidm-test]=../libcrypto.a ../libssl.a
  203. SOURCE[quic-rcidm-test]=quic-rcidm.c test-corpus.c fuzz_rand.c
  204. INCLUDE[quic-rcidm-test]=../include
  205. DEPEND[quic-rcidm-test]=../libcrypto.a ../libssl.a
  206. SOURCE[server-test]=server.c test-corpus.c fuzz_rand.c
  207. INCLUDE[server-test]=../include
  208. DEPEND[server-test]=../libcrypto ../libssl
  209. SOURCE[x509-test]=x509.c test-corpus.c fuzz_rand.c
  210. INCLUDE[x509-test]=../include
  211. DEPEND[x509-test]=../libcrypto
  212. SOURCE[provider-test]=provider.c test-corpus.c
  213. INCLUDE[provider-test]=../include
  214. DEPEND[provider-test]=../libcrypto
  215. ENDIF