tools/buildbot/bootstrap.pl
changeset 2521 b51c9b4515f0
parent 2495 bfd0404083fe
child 2522 bb1336c14492
     1.1 --- a/tools/buildbot/bootstrap.pl	Sun Jan 11 23:56:34 2009 -0500
     1.2 +++ b/tools/buildbot/bootstrap.pl	Mon Jan 12 00:36:36 2009 -0500
     1.3 @@ -27,7 +27,7 @@
     1.4  chdir(Build::PathFormat('../..'));
     1.5  
     1.6  #Get the source path.
     1.7 -my ($root) = getcwd();
     1.8 +our ($root) = getcwd();
     1.9  
    1.10  #Create output folder if it doesn't exist.
    1.11  if (!(-d 'OUTPUT')) {
    1.12 @@ -58,3 +58,34 @@
    1.13      Build::Command("chmod +x tools/versionchanger.pl");
    1.14  }
    1.15  Build::Command(Build::PathFormat('tools/versionchanger.pl') . ' --buildstring="-dev"');
    1.16 +
    1.17 +#Bootstrap extensions that have complex dependencies
    1.18 +
    1.19 +if ($^O eq "linux")
    1.20 +{
    1.21 +	BuildLibCurl_Linux();
    1.22 +}
    1.23 +else
    1.24 +{
    1.25 +	BuildLibCurl_Win32();
    1.26 +}
    1.27 +
    1.28 +sub BuildLibCurl_Win32
    1.29 +{
    1.30 +	chdir("extensions\\curl\\curl-src\\lib");
    1.31 +	Build::Command('"' . $ENV{'VC9BUILDER'} . '" /rebuild build_libcurl.vcproj LIB-Release');
    1.32 +	die "Unable to find libcurl.lib!\n" unless (-f "LIB-Release\\libcurl.lib");
    1.33 +	chdir("..\\..\\..\\..");
    1.34 +}
    1.35 +
    1.36 +sub BuildLibCurl_Linux
    1.37 +{
    1.38 +	chdir("extensions/curl/curl-src");
    1.39 +	Build::Command("mkdir -p Release");
    1.40 +	Build::Command("chmod +x configure");
    1.41 +	chdir("Release");
    1.42 +	Build::Command("../configure --enable-static --disable-shared --disable-ldap --without-ssl --without-zlib");
    1.43 +	Build::Command("make");
    1.44 +	die "Unable to find libcurl.a!\n" unless (-f "lib/.libs/libcurl.a");
    1.45 +	chdir("../../../..");
    1.46 +}