#NEWLINE# def _do_package( cmake_builder , destdir , build_type = 'Release' , standalone = False ) : #NEWLINE# #INDENT# ' Helper function. On linux and mac this is only called\n    once.\n\n    On Windows this is called twice, both in debug and release\n    This is because usually debug and release version of a library\n    are incompatible on Windows.\n\n    ' #NEWLINE# cmake_builder . build_config . build_type = build_type #NEWLINE# cmake_builder . dep_types = [ 'build' ] #NEWLINE# ui . info ( ui . blue , '::' , ui . reset , ui . bold , ( 'Configuring ... (%s)' % build_type ) ) #NEWLINE# cmake_builder . configure ( ) #NEWLINE# ui . info ( ui . blue , '::' , ui . reset , ui . bold , ( 'Building    ... (%s)' % build_type ) ) #NEWLINE# cmake_builder . build ( ) #NEWLINE# if destdir : #NEWLINE# #INDENT# cmake_builder . dep_types = [ 'runtime' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cmake_builder . dep_types = list ( ) #NEWLINE# #UNINDENT# ui . info ( ui . blue , '::' , ui . reset , ui . bold , ( 'Installing  ... (%s)' % build_type ) ) #NEWLINE# if standalone : #NEWLINE# #INDENT# cmake_builder . install ( destdir , components = [ 'runtime' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# cmake_builder . install ( destdir )