build.info 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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
  13. PROGRAMS{noinst}=v3name
  14. IF[{- !$disabled{"cmp"} -}]
  15. PROGRAMS{noinst}=cmp
  16. ENDIF
  17. IF[{- !$disabled{"cms"} -}]
  18. PROGRAMS{noinst}=cms
  19. ENDIF
  20. IF[{- !$disabled{"ct"} -}]
  21. PROGRAMS{noinst}=ct
  22. ENDIF
  23. IF[{- !$disabled{"ocsp"} -}]
  24. PROGRAMS{noinst}=x509
  25. ENDIF
  26. IF[{- !$disabled{"quic"} -}]
  27. PROGRAMS{noinst}=quic-client quic-srtm
  28. ENDIF
  29. SOURCE[asn1]=asn1.c driver.c fuzz_rand.c
  30. INCLUDE[asn1]=../include {- $ex_inc -}
  31. DEPEND[asn1]=../libcrypto ../libssl {- $ex_lib -}
  32. SOURCE[asn1parse]=asn1parse.c driver.c
  33. INCLUDE[asn1parse]=../include {- $ex_inc -}
  34. DEPEND[asn1parse]=../libcrypto {- $ex_lib -}
  35. SOURCE[bignum]=bignum.c driver.c
  36. INCLUDE[bignum]=../include {- $ex_inc -}
  37. DEPEND[bignum]=../libcrypto {- $ex_lib -}
  38. SOURCE[bndiv]=bndiv.c driver.c
  39. INCLUDE[bndiv]=../include {- $ex_inc -}
  40. DEPEND[bndiv]=../libcrypto {- $ex_lib -}
  41. SOURCE[client]=client.c driver.c fuzz_rand.c
  42. INCLUDE[client]=../include {- $ex_inc -}
  43. DEPEND[client]=../libcrypto ../libssl {- $ex_lib -}
  44. SOURCE[cmp]=cmp.c driver.c fuzz_rand.c
  45. INCLUDE[cmp]=../include {- $ex_inc -}
  46. DEPEND[cmp]=../libcrypto {- $ex_lib -}
  47. SOURCE[cms]=cms.c driver.c
  48. INCLUDE[cms]=../include {- $ex_inc -}
  49. DEPEND[cms]=../libcrypto {- $ex_lib -}
  50. SOURCE[conf]=conf.c driver.c
  51. INCLUDE[conf]=../include {- $ex_inc -}
  52. DEPEND[conf]=../libcrypto {- $ex_lib -}
  53. SOURCE[crl]=crl.c driver.c
  54. INCLUDE[crl]=../include {- $ex_inc -}
  55. DEPEND[crl]=../libcrypto {- $ex_lib -}
  56. SOURCE[ct]=ct.c driver.c
  57. INCLUDE[ct]=../include {- $ex_inc -}
  58. DEPEND[ct]=../libcrypto {- $ex_lib -}
  59. SOURCE[pem]=pem.c driver.c
  60. INCLUDE[pem]=../include {- $ex_inc -}
  61. DEPEND[pem]=../libcrypto.a {- $ex_lib -}
  62. SOURCE[decoder]=decoder.c driver.c fuzz_rand.c
  63. INCLUDE[decoder]=../include {- $ex_inc -}
  64. DEPEND[decoder]=../libcrypto {- $ex_lib -}
  65. SOURCE[punycode]=punycode.c driver.c
  66. INCLUDE[punycode]=../include {- $ex_inc -}
  67. DEPEND[punycode]=../libcrypto.a {- $ex_lib -}
  68. SOURCE[smime]=smime.c driver.c
  69. INCLUDE[smime]=../include {- $ex_inc -}
  70. DEPEND[smime]=../libcrypto ../libssl {- $ex_lib -}
  71. SOURCE[v3name]=v3name.c driver.c
  72. INCLUDE[v3name]=../include {- $ex_inc -}
  73. DEPEND[v3name]=../libcrypto.a {- $ex_lib -}
  74. SOURCE[quic-client]=quic-client.c driver.c fuzz_rand.c
  75. INCLUDE[quic-client]=../include {- $ex_inc -}
  76. DEPEND[quic-client]=../libcrypto.a ../libssl.a {- $ex_lib -}
  77. SOURCE[quic-srtm]=quic-srtm.c driver.c fuzz_rand.c
  78. INCLUDE[quic-srtm]=../include {- $ex_inc -}
  79. DEPEND[quic-srtm]=../libcrypto.a ../libssl.a {- $ex_lib -}
  80. SOURCE[server]=server.c driver.c fuzz_rand.c
  81. INCLUDE[server]=../include {- $ex_inc -}
  82. DEPEND[server]=../libcrypto ../libssl {- $ex_lib -}
  83. SOURCE[x509]=x509.c driver.c fuzz_rand.c
  84. INCLUDE[x509]=../include {- $ex_inc -}
  85. DEPEND[x509]=../libcrypto {- $ex_lib -}
  86. ENDIF
  87. IF[{- !$disabled{tests} -}]
  88. PROGRAMS{noinst}=asn1-test asn1parse-test bignum-test bndiv-test client-test conf-test crl-test server-test smime-test
  89. PROGRAMS{noinst}=punycode-test pem-test decoder-test
  90. PROGRAMS{noinst}=v3name-test
  91. IF[{- !$disabled{"cmp"} -}]
  92. PROGRAMS{noinst}=cmp-test
  93. ENDIF
  94. IF[{- !$disabled{"cms"} -}]
  95. PROGRAMS{noinst}=cms-test
  96. ENDIF
  97. IF[{- !$disabled{"ct"} -}]
  98. PROGRAMS{noinst}=ct-test
  99. ENDIF
  100. IF[{- !$disabled{"ocsp"} -}]
  101. PROGRAMS{noinst}=x509-test
  102. ENDIF
  103. IF[{- !$disabled{"quic"} -}]
  104. PROGRAMS{noinst}=quic-client-test quic-srtm-test
  105. ENDIF
  106. SOURCE[asn1-test]=asn1.c test-corpus.c fuzz_rand.c
  107. INCLUDE[asn1-test]=../include
  108. DEPEND[asn1-test]=../libcrypto ../libssl
  109. SOURCE[asn1parse-test]=asn1parse.c test-corpus.c
  110. INCLUDE[asn1parse-test]=../include
  111. DEPEND[asn1parse-test]=../libcrypto
  112. SOURCE[bignum-test]=bignum.c test-corpus.c
  113. INCLUDE[bignum-test]=../include
  114. DEPEND[bignum-test]=../libcrypto
  115. SOURCE[bndiv-test]=bndiv.c test-corpus.c
  116. INCLUDE[bndiv-test]=../include
  117. DEPEND[bndiv-test]=../libcrypto
  118. SOURCE[client-test]=client.c test-corpus.c fuzz_rand.c
  119. INCLUDE[client-test]=../include
  120. DEPEND[client-test]=../libcrypto ../libssl
  121. SOURCE[cmp-test]=cmp.c test-corpus.c fuzz_rand.c
  122. INCLUDE[cmp-test]=../include
  123. DEPEND[cmp-test]=../libcrypto.a
  124. # referring to static lib allows using non-exported functions
  125. SOURCE[cms-test]=cms.c test-corpus.c
  126. INCLUDE[cms-test]=../include
  127. DEPEND[cms-test]=../libcrypto
  128. SOURCE[conf-test]=conf.c test-corpus.c
  129. INCLUDE[conf-test]=../include
  130. DEPEND[conf-test]=../libcrypto
  131. SOURCE[crl-test]=crl.c test-corpus.c
  132. INCLUDE[crl-test]=../include
  133. DEPEND[crl-test]=../libcrypto
  134. SOURCE[ct-test]=ct.c test-corpus.c
  135. INCLUDE[ct-test]=../include
  136. DEPEND[ct-test]=../libcrypto
  137. SOURCE[pem-test]=pem.c test-corpus.c
  138. INCLUDE[pem-test]=../include
  139. DEPEND[pem-test]=../libcrypto.a
  140. SOURCE[decoder-test]=decoder.c test-corpus.c fuzz_rand.c
  141. INCLUDE[decoder-test]=../include
  142. DEPEND[decoder-test]=../libcrypto
  143. SOURCE[punycode-test]=punycode.c test-corpus.c
  144. INCLUDE[punycode-test]=../include
  145. DEPEND[punycode-test]=../libcrypto.a
  146. SOURCE[smime-test]=smime.c test-corpus.c
  147. INCLUDE[smime-test]=../include
  148. DEPEND[smime-test]=../libcrypto ../libssl
  149. SOURCE[v3name-test]=v3name.c test-corpus.c
  150. INCLUDE[v3name-test]=../include
  151. DEPEND[v3name-test]=../libcrypto.a
  152. SOURCE[quic-client-test]=quic-client.c test-corpus.c fuzz_rand.c
  153. INCLUDE[quic-client-test]=../include
  154. DEPEND[quic-client-test]=../libcrypto.a ../libssl.a
  155. SOURCE[quic-srtm-test]=quic-srtm.c test-corpus.c fuzz_rand.c
  156. INCLUDE[quic-srtm-test]=../include
  157. DEPEND[quic-srtm-test]=../libcrypto.a ../libssl.a
  158. SOURCE[server-test]=server.c test-corpus.c fuzz_rand.c
  159. INCLUDE[server-test]=../include
  160. DEPEND[server-test]=../libcrypto ../libssl
  161. SOURCE[x509-test]=x509.c test-corpus.c fuzz_rand.c
  162. INCLUDE[x509-test]=../include
  163. DEPEND[x509-test]=../libcrypto
  164. ENDIF