forked from qt-creator/qt-creator
CMake build: Fix remaining issues with Devel package
On Linux (and Windows) we should not create toplevel files (README.md etc) or directories (doc/, scripts/ etc). On macOS, move the whole Devel package contents into the app bundle, because that is installed toplevel in the Qt installers, and we shouldn't even create include/, lib/ or any other directory at the toplevel at all. Since the prefix path must now point to the Resources folder inside the app bundle, adapt build_plugin.py to also accept --qtc-path pointing to the app bundle (Qt Creator.app) itself, and also to the app bundles parent directory. Adapt the Qt Creator plugin project template similarly. Task-number: QTCREATORBUG-25414 Fixes: QTCREATORBUG-25415 Change-Id: Ic756237fb920b54b1ec95d076649ad947b39a7e8 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -69,6 +69,14 @@ def build(args, paths):
|
||||
if not os.path.exists(paths.result):
|
||||
os.makedirs(paths.result)
|
||||
prefix_paths = [os.path.abspath(fp) for fp in args.prefix_paths] + [paths.qt_creator, paths.qt]
|
||||
if common.is_mac_platform():
|
||||
# --qtc-path may be
|
||||
# "/path/Qt Creator.app/Contents/Resources",
|
||||
# "/path/Qt Creator.app", or
|
||||
# "/path",
|
||||
# so add some variants to the prefix path
|
||||
prefix_paths += [os.path.join(paths.qt_creator, 'Contents', 'Resources'),
|
||||
os.path.join(paths.qt_creator, 'Qt Creator.app', 'Contents', 'Resources')]
|
||||
prefix_paths = [common.to_posix_path(fp) for fp in prefix_paths]
|
||||
separate_debug_info_option = 'ON' if args.with_debug_info else 'OFF'
|
||||
cmake_args = ['cmake',
|
||||
|
Reference in New Issue
Block a user