def patch_build(): # replace build directory paths in install_root locations replace_build_paths(MAKE_INSTALL_ROOT_DIR) # remove system specific paths from qconfig.pri if not ANDROID_BUILD and not QNX_BUILD: replace_system_paths() # fix qmake prl build fir references erase_qmake_prl_build_dir() if ANDROID_BUILD: if bldinstallercommon.is_win_platform(): install_path = MAKE_INSTALL_ROOT_DIR + os.sep + SINGLE_INSTALL_DIR_NAME install_path = 'C' + install_path[1:] lib_path_essentials = os.path.normpath(install_path + os.sep + INSTALL_PREFIX + os.sep) bldinstallercommon.rename_android_soname_files(lib_path_essentials) patch_android_prl_files() if QNX_BUILD: patch_qnx6_files('lib', 'libQt5.*\.prl', 'QMAKE_PRL_LIBS', '-L[^ ]* ') patch_qnx6_files('lib', 'libQt5.*\.la', 'dependency_libs', '-L[^ ]* ') # QT-701: internal qnx bug report patch_qnx6_files('common', 'qcc-base-qnx\.conf', 'QMAKE_LFLAGS ', '\n', ' -Wl,-rpath-link,$$[QT_INSTALL_LIBS]') patch_qnx6_files('pkgconfig', 'Qt5.*\.pc', 'Libs.private', '-L[^ ]* ') # patch RPath if requested if QT_BUILD_OPTIONS.replace_rpath: replace_rpath() # patch icu_install paths from files if bldinstallercommon.is_linux_platform(): bld_icu_tools.patch_icu_paths(MAKE_INSTALL_ROOT_DIR) # make sure the 'fixqt4headers.pl' ends up in final package if it does not exist there already fixqt4headers_filename = 'fixqt4headers.pl' fixqt4headers_file = bldinstallercommon.locate_file(MAKE_INSTALL_ROOT_DIR, fixqt4headers_filename) if not fixqt4headers_file: # copy it from the used src package fixqt4headers_file = bldinstallercommon.locate_file(QT_SOURCE_DIR, fixqt4headers_filename) target_dir = bldinstallercommon.locate_directory(os.path.join(MAKE_INSTALL_ROOT_DIR, ESSENTIALS_INSTALL_DIR_NAME), 'bin') if fixqt4headers_file and target_dir: shutil.copy(fixqt4headers_file, target_dir)
callerArguments=callerArguments) if ret: raise RuntimeError('Failure running the last command: %i' % ret) ret = runInstallCommand( ['install', 'INSTALL_ROOT=' + qtModuleInstallDirectory], currentWorkingDirectory=qtModuleBuildDirectory, callerArguments=callerArguments, init_environment=environment) if ret: raise RuntimeError('Failure running the last command: %i' % ret) # patch .so filenames on Windows/Android if bldinstallercommon.is_win_platform() and os.environ.get( 'DO_PATCH_ANDROID_SONAME_FILES'): bldinstallercommon.rename_android_soname_files(qtModuleInstallDirectory) #doc collection if callerArguments.collectDocs: doc_list = bldinstallercommon.make_files_list(qtModuleSourceDirectory, '\\.qch') doc_install_dir = os.path.join(qtModuleInstallDirectory, 'doc') bldinstallercommon.create_dirs(doc_install_dir) for item in doc_list: shutil.copy(item, doc_install_dir) # enginio etc. docs creation if callerArguments.makeDocs: # build docs first ret = runInstallCommand('docs', currentWorkingDirectory=qtModuleBuildDirectory,
runCommand(generateCommand, currentWorkingDirectory = qtModuleBuildDirectory, callerArguments = callerArguments, init_environment = environment) ret = runBuildCommand(currentWorkingDirectory = qtModuleBuildDirectory, callerArguments = callerArguments) if ret: raise RuntimeError('Failure running the last command: %i' % ret) ret = runInstallCommand(['install', 'INSTALL_ROOT=' + qtModuleInstallDirectory], currentWorkingDirectory = qtModuleBuildDirectory, callerArguments = callerArguments, init_environment = environment) if ret: raise RuntimeError('Failure running the last command: %i' % ret) # patch .so filenames on Windows/Android if bldinstallercommon.is_win_platform() and os.environ.get('DO_PATCH_ANDROID_SONAME_FILES'): bldinstallercommon.rename_android_soname_files(qtModuleInstallDirectory) #doc collection if callerArguments.collectDocs: doc_list = bldinstallercommon.make_files_list(qtModuleSourceDirectory, '\\.qch') doc_install_dir = os.path.join(qtModuleInstallDirectory, 'doc') bldinstallercommon.create_dirs(doc_install_dir) for item in doc_list: shutil.copy(item, doc_install_dir) # enginio etc. docs creation if callerArguments.makeDocs: # build docs first ret = runInstallCommand('docs', currentWorkingDirectory = qtModuleBuildDirectory, callerArguments = callerArguments, init_environment = environment)