parameters: (env)
docstring: Add Builders and construction variables for WiX to an Environment.
docstring_summary: Add Builders and construction variables for WiX to an Environment.
docstring_tokens: Add Builders and construction variables for WiX to an Environment .
function: def generate(env):
      """Add Builders and construction variables for WiX to an Environment."""
      if not exists(env):
        return
  
      env['WIXCANDLEFLAGS'] = ['-nologo']
      env['WIXCANDLEINCLUDE'] = []
      env['WIXCANDLECOM'] = '$WIXCANDLE $WIXCANDLEFLAGS -I $WIXCANDLEINCLUDE -o ${TARGET} ${SOURCE}'
  
      env['WIXLIGHTFLAGS'].append( '-nologo' )
      env['WIXLIGHTCOM'] = "$WIXLIGHT $WIXLIGHTFLAGS -out ${TARGET} ${SOURCES}"
  
  #BEGIN_OMAHA_ADDITION
  # Necessary to build multiple MSIs from a single .wxs without explicitly
  # building the .wixobj.
  # Follows the convention of obj file prefixes in other tools, such as
  # OBJPREFIX in msvc.py.
      env['WIXOBJPREFIX'] = ''
  #END_OMAHA_ADDITION
  
      object_builder = SCons.Builder.Builder(
          action      = '$WIXCANDLECOM',
  #BEGIN_OMAHA_ADDITION
          prefix      = '$WIXOBJPREFIX',
  #END_OMAHA_ADDITION
  #BEGIN_OMAHA_CHANGE
  # The correct/default suffix is .wixobj, not .wxiobj.
  #       suffix      = '.wxiobj',
          suffix      = '.wixobj',
  #END_OMAHA_CHANGE
          src_suffix  = '.wxs')
  
      linker_builder = SCons.Builder.Builder(
          action      = '$WIXLIGHTCOM',
  #BEGIN_OMAHA_CHANGE
  # The correct/default suffix is .wixobj, not .wxiobj.
  #       src_suffix  = '.wxiobj',
          src_suffix  = '.wixobj',
  #END_OMAHA_CHANGE
          src_builder = object_builder)
  
      env['BUILDERS']['WiX'] = linker_builder
function_tokens: def generate ( env ) : if not exists ( env ) : return env [ 'WIXCANDLEFLAGS' ] = [ '-nologo' ] env [ 'WIXCANDLEINCLUDE' ] = [ ] env [ 'WIXCANDLECOM' ] = '$WIXCANDLE $WIXCANDLEFLAGS -I $WIXCANDLEINCLUDE -o ${TARGET} ${SOURCE}' env [ 'WIXLIGHTFLAGS' ] . append ( '-nologo' ) env [ 'WIXLIGHTCOM' ] = "$WIXLIGHT $WIXLIGHTFLAGS -out ${TARGET} ${SOURCES}" #BEGIN_OMAHA_ADDITION # Necessary to build multiple MSIs from a single .wxs without explicitly # building the .wixobj. # Follows the convention of obj file prefixes in other tools, such as # OBJPREFIX in msvc.py. env [ 'WIXOBJPREFIX' ] = '' #END_OMAHA_ADDITION object_builder = SCons . Builder . Builder ( action = '$WIXCANDLECOM' , #BEGIN_OMAHA_ADDITION prefix = '$WIXOBJPREFIX' , #END_OMAHA_ADDITION #BEGIN_OMAHA_CHANGE # The correct/default suffix is .wixobj, not .wxiobj. #       suffix      = '.wxiobj', suffix = '.wixobj' , #END_OMAHA_CHANGE src_suffix = '.wxs' ) linker_builder = SCons . Builder . Builder ( action = '$WIXLIGHTCOM' , #BEGIN_OMAHA_CHANGE # The correct/default suffix is .wixobj, not .wxiobj. #       src_suffix  = '.wxiobj', src_suffix = '.wixobj' , #END_OMAHA_CHANGE src_builder = object_builder ) env [ 'BUILDERS' ] [ 'WiX' ] = linker_builder