

def build_icu(layout, debug, profile):
    os.chdir('source')
    if (sys.platform == 'darwin'):
        sdk.sh('chmod', '+x', 'configure', 'runConfigureICU')
        sdk.sh('bash', 'runConfigureICU', 'MacOSX', ('--prefix=%s' % layout['root']), '--disable-debug', '--enable-release')
        sdk.sh('make')
        sdk.sh('make', 'install')
    elif (sys.platform == 'linux2'):
        sdk.sh('chmod', '+x', 'configure', 'runConfigureICU')
        sdk.sh('bash', 'runConfigureICU', 'Linux', ('--prefix=%s' % layout['root']), '--disable-debug', '--enable-release')
        sdk.sh('make')
        sdk.sh('make', 'install')
    elif (sys.platform == 'win32'):
        cy_install_root = layout['root'].replace('\\', '/')
        cy_install_root = cy_install_root.replace('C:/', '/cygdrive/c/')
        sdk.sh('bash', 'runConfigureICU', 'Cygwin/MSVC', ('--prefix=%s' % cy_install_root), '--disable-debug', '--enable-release')
        sdk.sh('bash', '-c', 'make')
        sdk.sh('bash', '-c', 'make install')
    else:
        sdk.die('You have to rebuild ICU only on OS X or Windows')

dataset/ETHPy150Open develersrl/qt-pyqt-sdk-builder/build.py build_icu/original