scons 1.2.0 - Options -> Variables

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5882 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-12-24 23:40:38 +00:00
parent 6ade56370b
commit 59501c0174
2 changed files with 64 additions and 64 deletions

View file

@ -2,7 +2,7 @@ Import('defenv')
### Configuration options
cfg = Options()
cfg = Variables()
cfg.Add(
(
@ -37,7 +37,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_UNINSTALL_SUPPORT',
"enables the uninstaller support. Turn it off if your installers don't need uninstallers. Adds less than 1kb.",
'yes'
@ -45,7 +45,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_LICENSEPAGE',
'enables support for the installer to present a license page.',
'yes'
@ -53,7 +53,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_COMPONENTPAGE',
'enables support for the installer to present a page where you can select what sections are installed. with this disabled, all sections are installed by default',
'yes'
@ -61,7 +61,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_COMPONENTPAGE_ALTERNATIVE',
'enables an alternative components page behavior. Checkboxes will only be toggled when clicking on the checkbox itself and not on its label. .onMouseOverSection will only be called when the user selects the component and not when moving the mouse pointer over it.',
'no'
@ -69,7 +69,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_SILENT_SUPPORT',
'enables support for making installers that are completely silent.',
'yes'
@ -77,7 +77,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_VISIBLE_SUPPORT',
'enables support for making installers that are visible.',
'yes'
@ -85,7 +85,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_ENHANCEDUI_SUPPORT',
'enables support for CreateFont, SetCtlColors (used by some UIs), SetBrandingImage, .onGUIInit, etc.',
'yes'
@ -93,7 +93,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_COMPRESSION_SUPPORT',
'enables support for making installers that use compression (recommended).',
'yes'
@ -101,7 +101,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_COMPRESS_BZIP2_SMALLMODE',
"if defined, bzip2's decompressor uses bzip2's alternative decompression method that uses less runtime memory, at the expense of speed (and executable size). not recommended.",
'no'
@ -118,7 +118,7 @@ cfg.Add(
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_CRC_SUPPORT',
'enables support for installer verification. HIGHLY recommended.',
'yes'
@ -126,7 +126,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_CRC_ANAL',
'makes the CRC verification extremely careful, meaning extra bytes on the end of file, or the first 512 bytes changing, will give error. Enable this if you are paranoid, otherwise leaving it off seems safe (and is less prone to reporting virii). If you will be digitally signing your installers, leave this off.',
'no'
@ -134,7 +134,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_LOG',
'enables the logging facility. turning this on (by uncommenting it) adds about 4kb, but can be useful in debugging your installers.',
'no'
@ -142,7 +142,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_LOG_ODS',
'makes the logging facility use OutputDebugString instead of a file.',
'no'
@ -150,7 +150,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_LOG_STDOUT',
'makes the logging facility use stdout instead of a file.',
'no'
@ -158,7 +158,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_LOG_TIMESTAMP',
'adds a timestamp to each log line.',
'no'
@ -166,7 +166,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_BGBG',
'enables support for the blue (well, whatever color you want) gradient background window.',
'yes'
@ -174,7 +174,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_CODECALLBACKS',
'enables support for installer code callbacks. recommended, as it uses a minimum of space and allows for neat functionality.',
'yes'
@ -182,7 +182,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_MOVEONREBOOT',
'enables support for uninstallers that automatically delete themselves from the temp directory, as well as the reboot moving/deleting modes of Delete and Rename. Adds about 512 gay bytes..',
'yes'
@ -192,7 +192,7 @@ cfg.Add(
### Instruction enabling configuration
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_ACTIVEXREG',
'enables activeX plug-in registration and deregistration, as well as CallInstDLL',
'yes'
@ -200,7 +200,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_INTOPTS',
'enables support for IntCmp, IntCmpU, IntOp, and IntFmt.',
'yes'
@ -208,7 +208,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_STROPTS',
'enables support for StrCmp, StrCpy, and StrLen, as well as Get*Local.',
'yes'
@ -216,7 +216,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_STACK',
'enables support for the stack (Push, Pop, Exch)',
'yes'
@ -224,7 +224,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_FILEFUNCTIONS',
'enables support for FileOpen,FileClose, FileSeek, FileRead, and FileWrite.',
'yes'
@ -232,7 +232,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_FINDFIRST',
'enables support for FindFirst, FindNext, and FindClose.',
'yes'
@ -240,7 +240,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_CREATESHORTCUT',
'enables support for CreateShortCut.',
'yes'
@ -248,7 +248,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_INIFILES',
'enables support for ReadINIStr and WriteINIStr.',
'yes'
@ -256,7 +256,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_REGISTRYFUNCTIONS',
'enables support for ReadRegStr, ReadRegDWORD, WriteRegStr, etc etc etc.',
'yes'
@ -264,7 +264,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_COPYFILES',
'enables support for CopyFiles',
'yes'
@ -272,7 +272,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_REBOOT',
'enables support for Reboot, IfRebootFlag, SetRebootFlag',
'yes'
@ -280,7 +280,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_FNUTIL',
'enables support for GetFullPathName, GetTempFileName, and SearchPath',
'yes'
@ -288,7 +288,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_EXECUTE',
'enables support for Exec and ExecWait',
'yes'
@ -296,7 +296,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_SHELLEXECUTE',
'enables support for ExecShell',
'yes'
@ -304,7 +304,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_GETDLLVERSION',
'enables support for GetDLLVersion',
'yes'
@ -312,7 +312,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_GETFILETIME',
'enables support for GetFileTime',
'yes'
@ -320,7 +320,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_HWNDS',
'enables support for FindWindow, SendMessage, and IsWindow',
'yes'
@ -328,7 +328,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_ENVIRONMENT',
'enables support for ReadEnvStr and ExpandEnvStrings',
'yes'
@ -336,7 +336,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_RMDIR',
'enables support for RMDir',
'yes'
@ -344,7 +344,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_FILE',
'enables support for File (extracting files)',
'yes'
@ -352,7 +352,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_DELETE',
'enables support for Delete (delete files)',
'yes'
@ -360,7 +360,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_RENAME',
'enables support for Rename (rename files)',
'yes'
@ -368,7 +368,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_MESSAGEBOX',
'enables support for MessageBox',
'yes'
@ -376,7 +376,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_VERSION_INFO',
'enables support for version information in the installer',
'yes'
@ -384,7 +384,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_FIX_DEFINES_IN_STRINGS',
'fixes defines inside defines and handles chars $ perfectly',
'no'
@ -392,7 +392,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_SUPPORT_STANDARD_PREDEFINES',
'enables standard predefines - __FILE__, __LINE__, __DATE__, __TIME__ and __TIMESTAMP__',
'yes'
@ -400,7 +400,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_LOCKWINDOW_SUPPORT',
'enables the LockWindow command',
'yes'
@ -408,7 +408,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_PLUGIN_SUPPORT',
'enables installer plug-ins support',
'yes'
@ -416,7 +416,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_FIX_COMMENT_HANDLING',
'fixes comment handling',
'yes'
@ -424,7 +424,7 @@ cfg.Add(
)
cfg.Add(
BoolOption(
BoolVariable(
'NSIS_CONFIG_CONST_DATA_PATH',
'determines if plugins, includes, stubs etc. are located in a constant path set at build-time',
defenv['PLATFORM'] != 'win32'

View file

@ -90,7 +90,7 @@ if defenv.WhereIs('hhc', os.environ['PATH']):
from time import strftime, gmtime
cvs_version = strftime('%d-%b-%Y.cvs', gmtime())
opts = Options()
opts = Variables()
# load configuration options
# it's important this will be done here so NSIS_CONFIG_CONST_DATA_PATH
@ -139,28 +139,28 @@ opts.Add(('VER_REVISION', 'Revision of NSIS (recommended for dist-installer)', N
opts.Add(('VER_BUILD', 'Build version of NSIS (recommended for dist-installer)', None))
# installation
opts.Add(('PREFIX', 'Installation prefix', dirs['prefix']))
opts.Add(ListOption('SKIPSTUBS', 'A list of stubs that will not be built', 'none', stubs))
opts.Add(ListOption('SKIPPLUGINS', 'A list of plug-ins that will not be built', 'none', plugins))
opts.Add(ListOption('SKIPUTILS', 'A list of utilities that will not be built', 'none', utils))
opts.Add(ListOption('SKIPMISC', 'A list of plug-ins that will not be built', 'none', misc))
opts.Add(ListOption('SKIPDOC', 'A list of doc files that will not be built/installed', 'none', doc))
opts.Add(ListVariable('SKIPSTUBS', 'A list of stubs that will not be built', 'none', stubs))
opts.Add(ListVariable('SKIPPLUGINS', 'A list of plug-ins that will not be built', 'none', plugins))
opts.Add(ListVariable('SKIPUTILS', 'A list of utilities that will not be built', 'none', utils))
opts.Add(ListVariable('SKIPMISC', 'A list of plug-ins that will not be built', 'none', misc))
opts.Add(ListVariable('SKIPDOC', 'A list of doc files that will not be built/installed', 'none', doc))
opts.Add(('SKIPTESTS', 'A comma-separated list of test files that will not be ran', 'none'))
opts.Add(('IGNORETESTS', 'A comma-separated list of test files that will be ran but ignored', ignore_tests))
# build tools
opts.Add(('PATH', 'A colon-separated list of system paths instead of the default - TEMPORARY AND MAY DEPRECATE', None))
opts.Add(('TOOLSET', 'A comma-separated list of specific tools used for building instead of the default', None))
opts.Add(BoolOption('MSTOOLKIT', 'Use Microsoft Visual C++ Toolkit', 'no'))
opts.Add(BoolOption('CHMDOCS', 'Build CHM documentation, requires hhc.exe', hhc))
opts.Add(PathOption('APPEND_CPPPATH', 'Additional paths to search for include files', None))
opts.Add(PathOption('APPEND_LIBPATH', 'Additional paths to search for libraries', None))
opts.Add(BoolVariable('MSTOOLKIT', 'Use Microsoft Visual C++ Toolkit', 'no'))
opts.Add(BoolVariable('CHMDOCS', 'Build CHM documentation, requires hhc.exe', hhc))
opts.Add(PathVariable('APPEND_CPPPATH', 'Additional paths to search for include files', None))
opts.Add(PathVariable('APPEND_LIBPATH', 'Additional paths to search for libraries', None))
opts.Add(('APPEND_CCFLAGS', 'Additional C/C++ compiler flags'))
opts.Add(('APPEND_LINKFLAGS', 'Additional linker flags'))
# build options
opts.Add(BoolOption('DEBUG', 'Build executables with debugging information', 'no'))
opts.Add(PathOption('CODESIGNER', 'A program used to sign executables', None))
opts.Add(BoolOption('STRIP', 'Strips executables of any unrequired data such as symbols', 'yes'))
opts.Add(BoolOption('STRIP_CP', 'Strips cross-platform executables of any unrequired data such as symbols', 'yes'))
opts.Add(BoolOption('STRIP_W32', 'Strips Win32 executables of any unrequired data such as symbols', 'yes'))
opts.Add(BoolVariable('DEBUG', 'Build executables with debugging information', 'no'))
opts.Add(PathVariable('CODESIGNER', 'A program used to sign executables', None))
opts.Add(BoolVariable('STRIP', 'Strips executables of any unrequired data such as symbols', 'yes'))
opts.Add(BoolVariable('STRIP_CP', 'Strips cross-platform executables of any unrequired data such as symbols', 'yes'))
opts.Add(BoolVariable('STRIP_W32', 'Strips Win32 executables of any unrequired data such as symbols', 'yes'))
# path related build options
opts.Add(('PREFIX_DEST', 'Intermediate installation prefix (extra install time prefix)', dirs['dest']))
opts.Add(('PREFIX_CONF', 'Path to install nsisconf.nsh to', dirs['conf']))