diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-04-11 17:38:50 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-04-11 17:38:50 -0400 |
commit | 84a44fc59b8b3a232542b00ee455646d0626e6ef (patch) | |
tree | b4f9cf2d6b17a3ee2ce7a9b865b7b68f54709c25 /devtools/sizes | |
parent | e4fb88cfb9f90ba663e7cf44d3f2722833d31149 (diff) | |
download | gpsd-84a44fc59b8b3a232542b00ee455646d0626e6ef.tar.gz |
Give up on configure-like options, return to scons-style persistent variables.
There was lots of user demand for *persistent* configuration variables.
While it is theoretically possible that I could have made this work with
the configure-like options, the code would have beenn a fragile kluge.
So, fall back in scons practive for command-line cinfiguration variables.
Diffstat (limited to 'devtools/sizes')
-rwxr-xr-x | devtools/sizes | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/devtools/sizes b/devtools/sizes index d10f6c9f..1fa92202 100755 --- a/devtools/sizes +++ b/devtools/sizes @@ -6,64 +6,64 @@ import os # NMEA variants other than vanilla NMEA nmea_variants = [ - "--disable-fv18", - "--disable-mtk3301", - "--disable-tnt", - "--disable-oceanserver", - "--disable-gpsclock", + "fv18=no", + "mtk3301=no", + "tnt=no", + "oceanserver=no", + "gpsclock=no", ] # Binary GPS protocols binary_gps = [ - "--disable-oncore", - "--disable-sirf", - "--disable-superstar2", - "--disable-tsip", - "--disable-tripmate", - "--disable-earthmate", - "--disable-itrax", - "--disable-ashtech", - "--disable-navcom", - "--disable-garmin", - "--disable-garmintxt", - "--disable-ubx", - "--disable-geostar", - "--disable-evermore", + "oncore=no", + "sirf=no", + "superstar2=no", + "tsip=no", + "tripmate=no", + "earthmate=no", + "itrax=no", + "ashtech=no", + "navcom=no", + "garmin=no", + "garmintxt=no", + "ubx=no", + "geostar=no", + "evermore=no", ] # Differential correction and AIVDM non_gps = [ - "--disable-rtcm104v2", - "--disable-rtcm104v3", - "--disable-ntrip", - "--disable-aivdm", + "rtcm104v2=no", + "rtcm104v3=no", + "ntrip=no", + "aivdm=no", ] # Time service -time_service = ["--disable-ntpshm", "--disable-pps"] +time_service = ["ntpshm=no", "pps=no"] # Debugging and profiling debugging = [ - "--disable-timing", - "--disable-clientdebug", - "--disable-oldstyle", + "timing=no", + "clientdebug=no", + "oldstyle=no", ] def sizeit(legend, tag, options): print legend + ":" print "Options:", " ".join(options) - os.system("scons --disable-shared " + " ".join(options) + " >/dev/null") + os.system("scons shared=no " + " ".join(options) + " >/dev/null") os.rename("gpsd", "gpsd-" + tag + "-build") # Main sequence os.system("uname -a") sizeit("Minimalist build, stripped to NMEA only with shm interface", "minimalist", - ["--disable-socket-export", - "--disable-control-socket", - "--disable-ipv6", - "--enable-fixed-port-speed=9600", - "--enable-limited-max-devices=1", + ["socket-export=no", + "control=no-socket", + "ipv6=no", + "fixed_port_speed=9600", + "limited_max_devices=1", ] + nmea_variants+binary_gps+non_gps+time_service+debugging) sizeit("Normal build, configure options defaulted", "normal", []) os.system("size gpsd-*-build") |