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:
parent
6ade56370b
commit
59501c0174
2 changed files with 64 additions and 64 deletions
|
@ -2,7 +2,7 @@ Import('defenv')
|
||||||
|
|
||||||
### Configuration options
|
### Configuration options
|
||||||
|
|
||||||
cfg = Options()
|
cfg = Variables()
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
(
|
(
|
||||||
|
@ -37,7 +37,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_UNINSTALL_SUPPORT',
|
'NSIS_CONFIG_UNINSTALL_SUPPORT',
|
||||||
"enables the uninstaller support. Turn it off if your installers don't need uninstallers. Adds less than 1kb.",
|
"enables the uninstaller support. Turn it off if your installers don't need uninstallers. Adds less than 1kb.",
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -45,7 +45,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_LICENSEPAGE',
|
'NSIS_CONFIG_LICENSEPAGE',
|
||||||
'enables support for the installer to present a license page.',
|
'enables support for the installer to present a license page.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -53,7 +53,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_COMPONENTPAGE',
|
'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',
|
'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'
|
'yes'
|
||||||
|
@ -61,7 +61,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_COMPONENTPAGE_ALTERNATIVE',
|
'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.',
|
'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'
|
'no'
|
||||||
|
@ -69,7 +69,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_SILENT_SUPPORT',
|
'NSIS_CONFIG_SILENT_SUPPORT',
|
||||||
'enables support for making installers that are completely silent.',
|
'enables support for making installers that are completely silent.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -77,7 +77,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_VISIBLE_SUPPORT',
|
'NSIS_CONFIG_VISIBLE_SUPPORT',
|
||||||
'enables support for making installers that are visible.',
|
'enables support for making installers that are visible.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -85,7 +85,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_ENHANCEDUI_SUPPORT',
|
'NSIS_CONFIG_ENHANCEDUI_SUPPORT',
|
||||||
'enables support for CreateFont, SetCtlColors (used by some UIs), SetBrandingImage, .onGUIInit, etc.',
|
'enables support for CreateFont, SetCtlColors (used by some UIs), SetBrandingImage, .onGUIInit, etc.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -93,7 +93,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_COMPRESSION_SUPPORT',
|
'NSIS_CONFIG_COMPRESSION_SUPPORT',
|
||||||
'enables support for making installers that use compression (recommended).',
|
'enables support for making installers that use compression (recommended).',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -101,7 +101,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_COMPRESS_BZIP2_SMALLMODE',
|
'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.",
|
"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'
|
'no'
|
||||||
|
@ -118,7 +118,7 @@ cfg.Add(
|
||||||
|
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_CRC_SUPPORT',
|
'NSIS_CONFIG_CRC_SUPPORT',
|
||||||
'enables support for installer verification. HIGHLY recommended.',
|
'enables support for installer verification. HIGHLY recommended.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -126,7 +126,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_CRC_ANAL',
|
'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.',
|
'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'
|
'no'
|
||||||
|
@ -134,7 +134,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_LOG',
|
'NSIS_CONFIG_LOG',
|
||||||
'enables the logging facility. turning this on (by uncommenting it) adds about 4kb, but can be useful in debugging your installers.',
|
'enables the logging facility. turning this on (by uncommenting it) adds about 4kb, but can be useful in debugging your installers.',
|
||||||
'no'
|
'no'
|
||||||
|
@ -142,7 +142,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_LOG_ODS',
|
'NSIS_CONFIG_LOG_ODS',
|
||||||
'makes the logging facility use OutputDebugString instead of a file.',
|
'makes the logging facility use OutputDebugString instead of a file.',
|
||||||
'no'
|
'no'
|
||||||
|
@ -150,7 +150,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_LOG_STDOUT',
|
'NSIS_CONFIG_LOG_STDOUT',
|
||||||
'makes the logging facility use stdout instead of a file.',
|
'makes the logging facility use stdout instead of a file.',
|
||||||
'no'
|
'no'
|
||||||
|
@ -158,7 +158,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_LOG_TIMESTAMP',
|
'NSIS_CONFIG_LOG_TIMESTAMP',
|
||||||
'adds a timestamp to each log line.',
|
'adds a timestamp to each log line.',
|
||||||
'no'
|
'no'
|
||||||
|
@ -166,7 +166,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_BGBG',
|
'NSIS_SUPPORT_BGBG',
|
||||||
'enables support for the blue (well, whatever color you want) gradient background window.',
|
'enables support for the blue (well, whatever color you want) gradient background window.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -174,7 +174,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_CODECALLBACKS',
|
'NSIS_SUPPORT_CODECALLBACKS',
|
||||||
'enables support for installer code callbacks. recommended, as it uses a minimum of space and allows for neat functionality.',
|
'enables support for installer code callbacks. recommended, as it uses a minimum of space and allows for neat functionality.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -182,7 +182,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_MOVEONREBOOT',
|
'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..',
|
'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'
|
'yes'
|
||||||
|
@ -192,7 +192,7 @@ cfg.Add(
|
||||||
### Instruction enabling configuration
|
### Instruction enabling configuration
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_ACTIVEXREG',
|
'NSIS_SUPPORT_ACTIVEXREG',
|
||||||
'enables activeX plug-in registration and deregistration, as well as CallInstDLL',
|
'enables activeX plug-in registration and deregistration, as well as CallInstDLL',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -200,7 +200,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_INTOPTS',
|
'NSIS_SUPPORT_INTOPTS',
|
||||||
'enables support for IntCmp, IntCmpU, IntOp, and IntFmt.',
|
'enables support for IntCmp, IntCmpU, IntOp, and IntFmt.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -208,7 +208,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_STROPTS',
|
'NSIS_SUPPORT_STROPTS',
|
||||||
'enables support for StrCmp, StrCpy, and StrLen, as well as Get*Local.',
|
'enables support for StrCmp, StrCpy, and StrLen, as well as Get*Local.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -216,7 +216,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_STACK',
|
'NSIS_SUPPORT_STACK',
|
||||||
'enables support for the stack (Push, Pop, Exch)',
|
'enables support for the stack (Push, Pop, Exch)',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -224,7 +224,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_FILEFUNCTIONS',
|
'NSIS_SUPPORT_FILEFUNCTIONS',
|
||||||
'enables support for FileOpen,FileClose, FileSeek, FileRead, and FileWrite.',
|
'enables support for FileOpen,FileClose, FileSeek, FileRead, and FileWrite.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -232,7 +232,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_FINDFIRST',
|
'NSIS_SUPPORT_FINDFIRST',
|
||||||
'enables support for FindFirst, FindNext, and FindClose.',
|
'enables support for FindFirst, FindNext, and FindClose.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -240,7 +240,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_CREATESHORTCUT',
|
'NSIS_SUPPORT_CREATESHORTCUT',
|
||||||
'enables support for CreateShortCut.',
|
'enables support for CreateShortCut.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -248,7 +248,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_INIFILES',
|
'NSIS_SUPPORT_INIFILES',
|
||||||
'enables support for ReadINIStr and WriteINIStr.',
|
'enables support for ReadINIStr and WriteINIStr.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -256,7 +256,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_REGISTRYFUNCTIONS',
|
'NSIS_SUPPORT_REGISTRYFUNCTIONS',
|
||||||
'enables support for ReadRegStr, ReadRegDWORD, WriteRegStr, etc etc etc.',
|
'enables support for ReadRegStr, ReadRegDWORD, WriteRegStr, etc etc etc.',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -264,7 +264,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_COPYFILES',
|
'NSIS_SUPPORT_COPYFILES',
|
||||||
'enables support for CopyFiles',
|
'enables support for CopyFiles',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -272,7 +272,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_REBOOT',
|
'NSIS_SUPPORT_REBOOT',
|
||||||
'enables support for Reboot, IfRebootFlag, SetRebootFlag',
|
'enables support for Reboot, IfRebootFlag, SetRebootFlag',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -280,7 +280,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_FNUTIL',
|
'NSIS_SUPPORT_FNUTIL',
|
||||||
'enables support for GetFullPathName, GetTempFileName, and SearchPath',
|
'enables support for GetFullPathName, GetTempFileName, and SearchPath',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -288,7 +288,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_EXECUTE',
|
'NSIS_SUPPORT_EXECUTE',
|
||||||
'enables support for Exec and ExecWait',
|
'enables support for Exec and ExecWait',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -296,7 +296,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_SHELLEXECUTE',
|
'NSIS_SUPPORT_SHELLEXECUTE',
|
||||||
'enables support for ExecShell',
|
'enables support for ExecShell',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -304,7 +304,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_GETDLLVERSION',
|
'NSIS_SUPPORT_GETDLLVERSION',
|
||||||
'enables support for GetDLLVersion',
|
'enables support for GetDLLVersion',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -312,7 +312,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_GETFILETIME',
|
'NSIS_SUPPORT_GETFILETIME',
|
||||||
'enables support for GetFileTime',
|
'enables support for GetFileTime',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -320,7 +320,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_HWNDS',
|
'NSIS_SUPPORT_HWNDS',
|
||||||
'enables support for FindWindow, SendMessage, and IsWindow',
|
'enables support for FindWindow, SendMessage, and IsWindow',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -328,7 +328,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_ENVIRONMENT',
|
'NSIS_SUPPORT_ENVIRONMENT',
|
||||||
'enables support for ReadEnvStr and ExpandEnvStrings',
|
'enables support for ReadEnvStr and ExpandEnvStrings',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -336,7 +336,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_RMDIR',
|
'NSIS_SUPPORT_RMDIR',
|
||||||
'enables support for RMDir',
|
'enables support for RMDir',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -344,7 +344,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_FILE',
|
'NSIS_SUPPORT_FILE',
|
||||||
'enables support for File (extracting files)',
|
'enables support for File (extracting files)',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -352,7 +352,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_DELETE',
|
'NSIS_SUPPORT_DELETE',
|
||||||
'enables support for Delete (delete files)',
|
'enables support for Delete (delete files)',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -360,7 +360,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_RENAME',
|
'NSIS_SUPPORT_RENAME',
|
||||||
'enables support for Rename (rename files)',
|
'enables support for Rename (rename files)',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -368,7 +368,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_MESSAGEBOX',
|
'NSIS_SUPPORT_MESSAGEBOX',
|
||||||
'enables support for MessageBox',
|
'enables support for MessageBox',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -376,7 +376,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_VERSION_INFO',
|
'NSIS_SUPPORT_VERSION_INFO',
|
||||||
'enables support for version information in the installer',
|
'enables support for version information in the installer',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -384,7 +384,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_FIX_DEFINES_IN_STRINGS',
|
'NSIS_FIX_DEFINES_IN_STRINGS',
|
||||||
'fixes defines inside defines and handles chars $ perfectly',
|
'fixes defines inside defines and handles chars $ perfectly',
|
||||||
'no'
|
'no'
|
||||||
|
@ -392,7 +392,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_SUPPORT_STANDARD_PREDEFINES',
|
'NSIS_SUPPORT_STANDARD_PREDEFINES',
|
||||||
'enables standard predefines - __FILE__, __LINE__, __DATE__, __TIME__ and __TIMESTAMP__',
|
'enables standard predefines - __FILE__, __LINE__, __DATE__, __TIME__ and __TIMESTAMP__',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -400,7 +400,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_LOCKWINDOW_SUPPORT',
|
'NSIS_LOCKWINDOW_SUPPORT',
|
||||||
'enables the LockWindow command',
|
'enables the LockWindow command',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -408,7 +408,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_PLUGIN_SUPPORT',
|
'NSIS_CONFIG_PLUGIN_SUPPORT',
|
||||||
'enables installer plug-ins support',
|
'enables installer plug-ins support',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -416,7 +416,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_FIX_COMMENT_HANDLING',
|
'NSIS_FIX_COMMENT_HANDLING',
|
||||||
'fixes comment handling',
|
'fixes comment handling',
|
||||||
'yes'
|
'yes'
|
||||||
|
@ -424,7 +424,7 @@ cfg.Add(
|
||||||
)
|
)
|
||||||
|
|
||||||
cfg.Add(
|
cfg.Add(
|
||||||
BoolOption(
|
BoolVariable(
|
||||||
'NSIS_CONFIG_CONST_DATA_PATH',
|
'NSIS_CONFIG_CONST_DATA_PATH',
|
||||||
'determines if plugins, includes, stubs etc. are located in a constant path set at build-time',
|
'determines if plugins, includes, stubs etc. are located in a constant path set at build-time',
|
||||||
defenv['PLATFORM'] != 'win32'
|
defenv['PLATFORM'] != 'win32'
|
||||||
|
|
30
SConstruct
30
SConstruct
|
@ -90,7 +90,7 @@ if defenv.WhereIs('hhc', os.environ['PATH']):
|
||||||
from time import strftime, gmtime
|
from time import strftime, gmtime
|
||||||
cvs_version = strftime('%d-%b-%Y.cvs', gmtime())
|
cvs_version = strftime('%d-%b-%Y.cvs', gmtime())
|
||||||
|
|
||||||
opts = Options()
|
opts = Variables()
|
||||||
|
|
||||||
# load configuration options
|
# load configuration options
|
||||||
# it's important this will be done here so NSIS_CONFIG_CONST_DATA_PATH
|
# 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))
|
opts.Add(('VER_BUILD', 'Build version of NSIS (recommended for dist-installer)', None))
|
||||||
# installation
|
# installation
|
||||||
opts.Add(('PREFIX', 'Installation prefix', dirs['prefix']))
|
opts.Add(('PREFIX', 'Installation prefix', dirs['prefix']))
|
||||||
opts.Add(ListOption('SKIPSTUBS', 'A list of stubs that will not be built', 'none', stubs))
|
opts.Add(ListVariable('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(ListVariable('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(ListVariable('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(ListVariable('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('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(('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))
|
opts.Add(('IGNORETESTS', 'A comma-separated list of test files that will be ran but ignored', ignore_tests))
|
||||||
# build tools
|
# build tools
|
||||||
opts.Add(('PATH', 'A colon-separated list of system paths instead of the default - TEMPORARY AND MAY DEPRECATE', None))
|
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(('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(BoolVariable('MSTOOLKIT', 'Use Microsoft Visual C++ Toolkit', 'no'))
|
||||||
opts.Add(BoolOption('CHMDOCS', 'Build CHM documentation, requires hhc.exe', hhc))
|
opts.Add(BoolVariable('CHMDOCS', 'Build CHM documentation, requires hhc.exe', hhc))
|
||||||
opts.Add(PathOption('APPEND_CPPPATH', 'Additional paths to search for include files', None))
|
opts.Add(PathVariable('APPEND_CPPPATH', 'Additional paths to search for include files', None))
|
||||||
opts.Add(PathOption('APPEND_LIBPATH', 'Additional paths to search for libraries', 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_CCFLAGS', 'Additional C/C++ compiler flags'))
|
||||||
opts.Add(('APPEND_LINKFLAGS', 'Additional linker flags'))
|
opts.Add(('APPEND_LINKFLAGS', 'Additional linker flags'))
|
||||||
# build options
|
# build options
|
||||||
opts.Add(BoolOption('DEBUG', 'Build executables with debugging information', 'no'))
|
opts.Add(BoolVariable('DEBUG', 'Build executables with debugging information', 'no'))
|
||||||
opts.Add(PathOption('CODESIGNER', 'A program used to sign executables', None))
|
opts.Add(PathVariable('CODESIGNER', 'A program used to sign executables', None))
|
||||||
opts.Add(BoolOption('STRIP', 'Strips executables of any unrequired data such as symbols', 'yes'))
|
opts.Add(BoolVariable('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(BoolVariable('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('STRIP_W32', 'Strips Win32 executables of any unrequired data such as symbols', 'yes'))
|
||||||
# path related build options
|
# path related build options
|
||||||
opts.Add(('PREFIX_DEST', 'Intermediate installation prefix (extra install time prefix)', dirs['dest']))
|
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']))
|
opts.Add(('PREFIX_CONF', 'Path to install nsisconf.nsh to', dirs['conf']))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue