2
0

generate_buildtest.pl 793 B

12345678910111213141516171819202122232425262728293031323334
  1. #! /usr/bin/env perl
  2. # Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
  3. #
  4. # Licensed under the OpenSSL license (the "License"). You may not use
  5. # this file except in compliance with the License. You can obtain a copy
  6. # in the file LICENSE in the source distribution or at
  7. # https://www.openssl.org/source/license.html
  8. use strict;
  9. use warnings;
  10. # First argument is name;
  11. my $name = shift @ARGV;
  12. my $name_uc = uc $name;
  13. # All other arguments are ignored for now
  14. print <<"_____";
  15. /*
  16. * Generated with test/generate_buildtest.pl, to check that such a simple
  17. * program builds.
  18. */
  19. #include <openssl/opensslconf.h>
  20. #ifndef OPENSSL_NO_STDIO
  21. # include <stdio.h>
  22. #endif
  23. #ifndef OPENSSL_NO_${name_uc}
  24. # include <openssl/$name.h>
  25. #endif
  26. int main(void)
  27. {
  28. return 0;
  29. }
  30. _____