Check-in [85a43dd6cd]
Overview
Comment:Added option for minimal builds
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:85a43dd6cdd18fadce820a2bd805ba53114fc24f
User & Date: rkeene on 2014-12-11 16:53:18
Other Links: manifest | tags
Context
2014-12-11
16:54
Fixed missing newline check-in: 2c3a155971 user: rkeene tags: trunk
16:53
Added option for minimal builds check-in: 85a43dd6cd user: rkeene tags: trunk
2014-12-02
15:45
Updated to ignore "dynamictk" if Tk is not being built check-in: b0b6fbd5aa user: rkeene tags: trunk
Changes

Modified build/web/building.cgi from [004f926c80] to [a012cc8bc9].

    57     57   					append description ", Unthreaded"
    58     58   				}
    59     59   			}
    60     60   			"debug" {
    61     61   				if {$value} {
    62     62   					append description ", With Symbols"
    63     63   				}
           64  +			}
           65  +			"minbuild" {
           66  +				if {$value} {
           67  +					append description ", Without Tcl pkgs/ and all encodings"
           68  +				}
    64     69   			}
    65     70   			"storage" {
    66     71   				switch -- $value {
    67     72   					"mk4" {
    68     73   						append description ", Metakit-based"
    69     74   					}
    70     75   					"zip" {

Modified build/web/kitcreator.vfs/index.rvt from [124531a226] to [0e1f9c72e8].

    78     78   
    79     79   		## Optional Arguments
    80     80   		set build_packages [list]
    81     81   		set build_options(threaded) 0
    82     82   		set build_options(kitdll) 0
    83     83   		set build_options(debug) 0
    84     84   		set build_options(dynamictk) 0
           85  +		set build_options(minbuild) 0
    85     86   		foreach arg [array names args] {
    86     87   			switch -glob -- $arg {
    87     88   				"option_package_*" {
    88     89   					set package [join [lrange [split $arg _] 2 end] _]
    89     90   
    90     91   					lappend build_packages $package
    91     92   				}
................................................................................
    97     98   				}
    98     99   				"option_debug" {
    99    100   					set build_options(debug) 1
   100    101   				}
   101    102   				"option_dynamictk" {
   102    103   					set build_options(dynamictk) 1
   103    104   				}
          105  +				"option_minbuild" {
          106  +					set build_options(minbuild) 1
          107  +				}
   104    108   				"option_storage" {
   105    109   					switch -- $args($arg) {
   106    110   						"mk4" - "zip" - "cvfs" {
   107    111   							set build_options(storage) $args($arg)
   108    112   						}
   109    113   					}
   110    114   				}
................................................................................
   326    330   <?  foreach package [lsort -dictionary [array names packages]] { ?>
   327    331               <input type="checkbox" name="option_package_<? puts -nonewline $package ?>" id="option_package_<? puts -nonewline $package ?>">Package: <? puts -nonewline $packages($package) ?><br>
   328    332   <? } ?>
   329    333               <input type="checkbox" name="option_threaded">Kit: Threaded<br>
   330    334               <input type="checkbox" name="option_debug">Kit: Debugging Build<br>
   331    335               <input type="checkbox" name="option_kitdll" id="option_kitdll">Kit: Build Library (KitDLL)<br>
   332    336               <input type="checkbox" name="option_dynamictk" id="option_dynamictk">Kit: Always link Tk dynamically (if Tk is built)
          337  +            <input type="checkbox" name="option_minbuild">Kit: "Minimal" build (remove extra packages shipped as part of Tcl and reduce encodings)
   333    338             </td>
   334    339           </tr>
   335    340   	<tr>
   336    341   		<td>Kit Storage:</td>
   337    342   		<td>
   338    343   			<select name="option_storage">
   339    344   				<option value="auto">Automatically Determined</option>

Modified build/web/process_queue from [13a499ffae] to [83cf154aae].

    81     81   			"storage" {
    82     82   				lappend args "--enable-kit-storage=$value"
    83     83   			}
    84     84   			"dynamictk" {
    85     85   				if {[lsearch -exact $buildinfo(packages) "tk"] != -1} {
    86     86   					set ::env(STATICTK) -1
    87     87   				}
           88  +			}
           89  +			"minbuild" {
           90  +				if {$value} {
           91  +					set ::env(KITCREATOR_MINENCODINGS) 1
           92  +					set ::env(KITCREATOR_MINBUILD) 1
           93  +				}
    88     94   			}
    89     95   			"staticmk4" {
    90     96   			}
    91     97   		}
    92     98   	}
    93     99   
    94    100   	catch {
................................................................................
   100    106   	}
   101    107   
   102    108   	catch {
   103    109   		set cmd [list $script $buildinfo(tcl_version) {*}$args]
   104    110   		set fd [open "${outfile}.log" w+]
   105    111   		puts $fd "Running: export KITCREATOR_PKGS=\"$::env(KITCREATOR_PKGS)\""
   106    112   
   107         -		if {[info exists ::env(STRIP)]} {
   108         -			puts $fd "Running: export STRIP=\"$::env(STRIP)\""
   109         -		}
   110         -		if {[info exists ::env(STATICTK)]} {
   111         -			puts $fd "Running: export STATICTK=\"$::env(STATICTK)\""
          113  +		foreach variable [list STRIP STATICTK KITCREATOR_MINENCODINGS KITCREATOR_MINBUILD] {
          114  +			if {[info exists ::env($variable)]} {
          115  +				puts $fd "Running: export $variable=\"$::env($variable)\""
          116  +			}
   112    117   		}
   113    118   
   114    119   		puts $fd "Running: $cmd"
   115    120   		close $fd
   116    121   	}
   117    122   
   118    123   	catch {