Skip to content

Commit

Permalink
update build system
Browse files Browse the repository at this point in the history
  • Loading branch information
guanzhi committed Dec 26, 2017
1 parent a9b31e1 commit d8e57c5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Expand Up @@ -17,9 +17,11 @@

# *all* Makefiles
Makefile
*.tmp

# Java
/java/*.class
/java/Makefile*

# Links under apps
/apps/CA.pl
Expand Down Expand Up @@ -203,6 +205,6 @@ apps/gmssl

include/openssl/srp.h

/build.sh
/*.sh


17 changes: 16 additions & 1 deletion Configure
Expand Up @@ -436,13 +436,14 @@ my @disablables = (
"rsa",
"pem",
"pkcs7",
"pkcs12",
"serpent",
"speck",
"base58",
"java",
"ca",
"gmtls",
"fuzz",
"test",
);
foreach my $proto ((@tls, @dtls))
{
Expand Down Expand Up @@ -932,6 +933,20 @@ foreach (sort (keys %disabled))
push @{$config{openssl_other_defines}}, "OPENSSL_NO_ENGINE";
print " OPENSSL_NO_ENGINE (skip engines)";
}
elsif (/^test$/)
{
@{$config{dirs}} = grep !/^test$/, @{$config{dirs}};
#@{$config{sdirs}} = grep !/^engine$/, @{$config{sdirs}};
#push @{$config{openssl_other_defines}}, "OPENSSL_NO_ENGINE";
print " OPENSSL_NO_TEST (skip test)";
}
elsif (/^fuzz$/)
{
@{$config{dirs}} = grep !/^fuzz$/, @{$config{dirs}};
#@{$config{sdirs}} = grep !/^engine$/, @{$config{sdirs}};
#push @{$config{openssl_other_defines}}, "OPENSSL_NO_ENGINE";
print " OPENSSL_NO_FUZZ (skip fuzz)";
}
else
{
my ($WHAT, $what);
Expand Down
6 changes: 5 additions & 1 deletion fuzz/build.info
Expand Up @@ -61,7 +61,11 @@ IF[{- !$disabled{"fuzz-afl"} || !$disabled{"fuzz-libfuzzer"} -}]
ENDIF

IF[{- !$disabled{tests} -}]
PROGRAMS_NO_INST=asn1-test asn1parse-test bignum-test bndiv-test conf-test crl-test server-test x509-test
PROGRAMS_NO_INST=asn1-test asn1parse-test bignum-test bndiv-test conf-test crl-test x509-test

IF[{- !$disabled{"rsa"} -}]
PROGRAMS_NO_INST=server-test
ENDIF

IF[{- !$disabled{"cms"} -}]
PROGRAMS_NO_INST=cms-test
Expand Down

0 comments on commit d8e57c5

Please sign in to comment.