diff --git a/webtools/build/config.cgi b/webtools/build/config.cgi index eaf1ca316e9f..8dcb22a98ceb 100755 --- a/webtools/build/config.cgi +++ b/webtools/build/config.cgi @@ -53,32 +53,9 @@ print "Content-type: text/html\n\n"; ######################################################### sub parse_params { - if ($query->param('nspr_option') eq 'userdefined') { - my $nspr_dir = $query->param('nspr_dir'); - $nspr_dir =~ s@/$@@; - $nspr_dir =~ s@/lib$@@; - $query->param(-name=>'--with-nspr', - -values=>[$nspr_dir]); - } - #if ($query->param('nspr_option') eq 'rpm') { - # $query->param(-name=>'--with-nspr', - # -values=>['/usr']); - #} - if ($query->param('nspr_option') eq 'tip') { - $query->param(-name=>'--with-nspr', - -values=>['@OBJDIR@/nspr']); - } - if ($query->param('debug_option') eq 'userdefined') { - $query->param(-name=>'--enable-debug', - -values=>[$query->param('debug_dirs')]); - } - if ($query->param('pthreads_'.$query->param('nspr_option')) eq 'yes') { - $query->param(-name=>'--with-pthreads', - -values=>['yes']); - } - if ($query->param('debug_option') eq 'yes') { - $query->param(-name=>'--enable-debug', - -values=>['yes']); + if ($query->param('MOZ_OBJDIR') eq '@TOPSRCDIR@') { + $query->param(-name=>'MOZ_OBJDIR', + -values=>['']); } } @@ -156,24 +133,20 @@ sub print_script_preview {
cvs co mozilla/client.mk
+ 1. cvs co mozilla/client.mk
cd mozilla
+ 2. cd mozilla
gmake -f client.mk
gmake -f client.mk
checkout build
)
+checkout depend build
)
viewer
-or apprunner
when the tree is built,
-cd <objdir>
-gmake run_viewer
-
gmake run_apprunner
client.mk
,
+then use your usual build steps.configure
will
+pick up the options in your .mozconfig
script.
Check out the Build Configuator FAQ for more information. @@ -195,10 +168,6 @@ sub print_script { print "#\n"; print "\n"; - print "# Options for client.mk.\n"; - print "# Note: client.mk also uses the following 'ac_add_options',\n"; - print "# --with-nspr=blah\n"; - print "# --with-pthreads\n"; foreach $param ($query->param()) { if ($param =~ /^MOZ_/) { my $value = $query->param($param); @@ -207,20 +176,26 @@ sub print_script { next if $value eq ''; next if $param eq 'MOZ_CO_MODULE' and $value eq 'SeaMonkeyEditor'; next if $param eq 'MOZ_CO_BRANCH' and $value eq 'HEAD'; + print "# Options for client.mk.\n" if not $have_client_mk_options; print "mk_add_options $param=".$value."\n"; - $need_blank_line = 1; + $have_client_mk_options = 1; } } - print "\n" if $need_blank_line; - print "# Options for 'configure' (same as command-line options).\n"; + print "\n" if $have_client_mk_options; foreach $param ($query->param()) { if ($param =~ /^--/) { next if $query->param($param) eq ''; + print "# Options for 'configure' (same as command-line options).\n" + if not $have_configure_options; print "ac_add_options $param"; print "=".$query->param($param) if $query->param($param) ne "yes"; print "\n"; + $have_configure_options = 1; } } + if (not $have_client_mk_options and not $have_configure_options) { + print "\n# No script needed. Only default values were selected\n"; + } } sub print_configure_form { @@ -252,15 +227,23 @@ sub print_configure_form { Unix Build Configurator
client.mk
+ or typing command-line options for configure
.
client.mk
":
+
| ||||||||||||||||||||
|
+