Na tej stronie

Qbs

Qbs to wszechstronne narzędzie do kompilacji, które generuje schemat kompilacji na podstawie ogólnego opisu projektu (podobnie jak qmake czy CMake) i wykonuje polecenia zawarte w szczegółowym schemacie kompilacji (podobnie jak make).

Aby użyć Qbs do kompilacji projektu, należy utworzyć plik ` .qbs ` dla tego projektu. Można skorzystać z narzędzia ` Qt Creator `, aby utworzyć projekt w języku C lub C++, który będzie kompilowany za pomocą Qbs. Więcej informacji na temat Qbs można znaleźć w podręczniku Qbs.

Aplikacja jest kompilowana przy użyciu domyślnego profilu Qbs powiązanego z zestawem do kompilacji i uruchamiania. Program „ Qt Creator ” automatycznie tworzy profil Qbs dla każdego zestawu. Profile kompilacji można edytować, dodając nowe klucze i wartości.

Aby sprawdzić, która wersja Qbs jest używana, wybierz opcję „ Preferences ” > „ Qbs ” > „ General ”.

Kompilacja Qbs

Jeśli samodzielnie kompilujesz program „ Qt Creator ” z repozytorium Git „ Qt Creator ”, musisz również pobrać podmoduł Qbs, aby uzyskać obsługę Qbs:

  1. Pobierz podmoduł Qbs do swojego checkoutu gitowego Qt Creator za pomocą polecenia git submodule update --init.
  2. Uruchom qmake na Qt Creator i ponownie skompiluj Qt Creator.

Zobacz także : Wybór systemu kompilacji, Otwieranie projektów, Ustawianie katalogu profilu Qbs, Konfiguracja kompilacji Qbs oraz Określanie ustawień uruchamiania.

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.