{"id":302824,"date":"2020-04-30T15:01:12","date_gmt":"2020-04-30T15:01:12","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=302824"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=302824","title":{"rendered":"Qbs: \u0428\u0430\u0431\u043b\u043e\u043d \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/183020\/\">\n<h5>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h5>\n<p>  <\/p>\n<p>\u0414\u0430\u0432\u043d\u044b\u043c \u0434\u0430\u0432\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 Qbs \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0448\u043b\u0430, \u044f \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e, \u043d\u043e \u0442\u0430\u043a \u0435\u0451 \u0438 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u2026 \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0435\u0435 \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c. \u0421 \u0442\u0435\u0445 \u043f\u043e\u0440 \u043c\u043d\u043e\u0433\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c, \u0443 Qbs \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u043d\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 (\u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e) \u0432 \u043d\u0435\u0439 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d (\u043f\u043e\u0447\u0442\u0438) \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Qt.Widgets. \u041f\u043e-\u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443, \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c C++, \u043d\u043e \u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043b\u0435\u043d\u0438\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 UI \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0410\u041f\u0418 \u043f\u043e\u0434 3 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (&quot;\u0440\u044b\u0431\u0443&quot;), \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u043e, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/a89\/7b9\/87c\/a897b987c3ad58127b9ff1ed38d71055.png\" alt=\"image\"><\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u0434 \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d \u043d\u0430 <a href=\"https:\/\/github.com\/ABBAPOH\/qbsfish\/tree\/habr\" rel=\"nofollow\">\u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>, \u0438 \u0431\u044b\u043b \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043f\u043e\u0434 Windows, Linux \u0438 macOS.<\/p>\n<p>  <\/p>\n<p>\u042f \u043d\u0435 \u0431\u0443\u0434\u0443 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0431\u043e\u0440\u043a\u0438, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 Qbs, \u044d\u0442\u043e \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e <a href=\"https:\/\/doc.qt.io\/qbs\/setup.html\" rel=\"nofollow\">\u043e\u043f\u0438\u0441\u0430\u043d\u043e<\/a> \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0435\u0434\u0432\u043e\u0441\u0445\u0438\u0449\u0430\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0439 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e Qbs \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0430 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0435\u0439 \u0432 \u043f\u043e\u043b\u044c\u0437\u0443 CMake \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u0434\u043b\u044f Qt, \u0441\u0440\u0430\u0437\u0443 \u043e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e\u0435\u043a\u0442 \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u0441\u0442\u0432\u043e\u043c \u0438 \u043d\u0435\u0434\u0430\u0432\u043d\u043e <a href=\"https:\/\/www.qt.io\/blog\/qbs-1.16.0-released\" rel=\"nofollow\">\u0432\u044b\u0448\u043b\u0430<\/a> \u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f.<\/p>\n<p>  <\/p>\n<h5>\u0418 \u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c.<\/h5>\n<p>  <\/p>\n<p>\u041b\u044e\u0431\u043e\u0439 Qbs \u043f\u0440\u043e\u0435\u043a\u0442 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 Project, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432 \u0441\u0435\u0431\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0434\u0438\u043d \u0438\u043b\u0438 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e <a href=\"https:\/\/doc.qt.io\/qbs\/qml-qbslanguageitems-product.html\" rel=\"nofollow\">\u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432<\/a>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430\u0434 \u043f\u043e\u0434\u043f\u0440\u043e\u0435\u043a\u0442\u044b (\u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438, \u043a\u0430\u0436\u0434\u0430\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u0430\u044f \u043f\u0430\u043f\u043a\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u043e\u0434\u043f\u0440\u043e\u0435\u043a\u0442). Product \u2014 \u044d\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0441\u0431\u043e\u0440\u043a\u0438 \u0447\u0435\u0433\u043e-\u043b\u0438\u0431\u043e \u2014 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f\/\u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u0441\u0433\u0435\u043d\u0435\u0440\u0451\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u043e\u0432, \u0438 \u0442\u043e\u043c\u0443 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435. \u041f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u043c\u043e\u0433\u0443\u0442 \u0437\u0430\u0432\u0438\u0441\u0435\u0442\u044c \u043b\u0438\u0431\u043e \u043e\u0442 <a href=\"https:\/\/doc.qt.io\/qbs\/qml-qbslanguageitems-module.html\" rel=\"nofollow\">\u043c\u043e\u0434\u0443\u043b\u0435\u0439<\/a> (\u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u043c\u043e\u0434\u0443\u043b\u044c cpp, \u043c\u043e\u0434\u0443\u043b\u0438 Qt), \u043b\u0438\u0431\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432.<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0444\u0430\u0439\u043b \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u0435\u043d:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">Project {     name: &quot;Qbs Fish&quot;     minimumQbsVersion: &quot;1.16&quot;     references: [          &quot;src\/src.qbs&quot;,          &quot;tests\/tests.qbs&quot;,     ]     qbsSearchPaths: &quot;qbs&quot;      AutotestRunner {} }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Qbs. \u0414\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u0430 \u0432\u0435\u0440\u0441\u0438\u044f Qbs 1.16 \u0442\u0430\u043a \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u0438\u0447\u0438, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u044d\u0442\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0434\u0443\u043b\u044c <em>freedesktop<\/em>). \u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e <code>references<\/code> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043f\u043e\u0434\u043f\u0440\u043e\u0435\u043a\u0442\u044b (\u043f\u0430\u043f\u043a\u0438 src \u0438 tests). AutotestRunner \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u043f\u0440\u0438 <strong>\u0441\u0431\u043e\u0440\u043a\u0435<\/strong> \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0442\u0435\u0441\u0442\u044b. \u041f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f <code>qbsSearchPaths<\/code> \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0442\u043e, \u0433\u0434\u0435 Qbs \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0438 \u0430\u0439\u0442\u0435\u043c\u044b \u0438 \u0437\u0430\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u0438\u0434\u0435 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e (\u043e\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0444\u0430\u0439\u043b\u0430) \u043f\u0443\u0442\u0438. \u041f\u0430\u043f\u043a\u0430 qbs \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0434\u0432\u0435 \u043f\u043e\u0434\u043f\u0430\u043f\u043a\u0438 \u2014 modules (\u0434\u043b\u044f, \u0433\u043c, \u043c\u043e\u0434\u0443\u043b\u0435\u0439) \u0438 imports (\u0434\u043b\u044f \u0430\u0439\u0442\u0435\u043c\u043e\u0432).<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0435 \u0430\u0439\u0442\u0435\u043c\u044b \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043d\u0438\u0445 \u043e\u0431\u0449\u0438\u0435 \u0432\u0435\u0449\u0438, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0444\u043b\u0430\u0433\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430, \u0432\u0435\u0440\u0441\u0438\u044f \u044f\u0437\u044b\u043a\u0430 C++, \u043e\u0431\u0449\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u0438 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043d\u0438\u0445, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 <a href=\"https:\/\/ru.wikipedia.org\/wiki\/Don%E2%80%99t_repeat_yourself\" rel=\"nofollow\">\u043a\u043e\u043f\u0438-\u043f\u0430\u0441\u0442\u0438\u0442\u044c<\/a> \u043e\u0434\u043d\u043e \u0438 \u0442\u043e \u0436\u0435.<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u043b\u043e\u0433\u0438\u0447\u043d\u043e \u043e\u0431\u044a\u044f\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u0430\u0439\u0442\u0435\u043c, \u0441\u043a\u0430\u0436\u0435\u043c, MyProduct, \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 Product, \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043d\u0435\u0433\u043e \u0432\u0441\u0451 \u043e\u0431\u0449\u0435\u0435 \u0438 \u043e\u0442\u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u044c \u043e\u0442 \u043d\u0435\u0433\u043e MyApplication, MyLibrary, MyPlugin\u2026 \u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0442\u043e\u0433\u0434\u0430 \u043c\u044b \u043f\u043e\u0442\u0435\u0440\u044f\u0435\u043c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u044b\u0435 \u0430\u0439\u0442\u0435\u043c\u044b, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a CppApplication, DynamicLibrary \u0438 \u0438\u0436\u0435 \u0441 \u043d\u0438\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a Qbs \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435. \u042d\u0442\u0438 \u0430\u0439\u0442\u0435\u043c\u044b \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0442 \u0440\u044f\u0434 \u0443\u0434\u043e\u0431\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0439 \u2014 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430, \u0435\u0433\u043e \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0438 \u043c\u0443\u043b\u044c\u0442\u0435\u043f\u043b\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c &quot;fat binaries&quot; \u043f\u043e\u0434 iOS).<\/p>\n<p>  <\/p>\n<p>\u0420\u0430\u0437 \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0430\u0433\u0440\u0435\u0433\u0430\u0446\u0438\u044f. \u0412\u044b\u043d\u0435\u0441\u0435\u043c \u043e\u0431\u0449\u0438\u0435 \u0432\u0435\u0449\u0438 \u0432 \u043c\u043e\u0434\u0443\u043b\u044c (\u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0433\u043e, \u0441\u043a\u0430\u0436\u0435\u043c, buildconfig), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u0430 \u043d\u0430\u0448\u0438 \u0430\u0439\u0442\u0435\u043c\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c.<\/p>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u0440\u0430\u0437\u0431\u0435\u0440\u0435\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043c\u043e\u0434\u0443\u043b\u044f <a href=\"https:\/\/github.com\/ABBAPOH\/qbsfish\/blob\/habr\/qbs\/modules\/buildconfig\/buildconfig.qbs\" rel=\"nofollow\">buildconfig<\/a>. \u0421\u043f\u0435\u0440\u0432\u0430 \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c &quot;\u0432\u0445\u043e\u0434\u043d\u044b\u0435&quot; \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0441\u0430\u043d\u0438\u0442\u0430\u0439\u0437\u0435\u0440\u0430.<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">Module {     property bool staticBuild: false     property bool frameworksBuild: qbs.targetOS.contains(&quot;macos&quot;) &amp;&amp; !staticBuild      property bool enableAddressSanitizer: false     property bool enableUbSanitizer: false     property bool enableThreadSanitizer: false      property string libDirName: &quot;lib&quot;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0442\u044c \u044d\u0442\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0441 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043c\u043e\u0436\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">qbs modules.buildconfig.staticBuild:true modules.buildconfig.enableUbSanitizer:true<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u044b \u2014 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0443\u0442\u0438 \u043a\u0443\u0434\u0430 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0447\u0430\u0441\u0442\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 (\u0442\u0430\u043c \u043c\u043d\u043e\u0433\u043e \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0445 &quot;\u0441\u0432\u0438\u0442\u0447\u0435\u0439&quot; \u043f\u043e \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u043c\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0443 \u0442\u0430\u043a\u0438\u0445 &quot;\u0441\u0432\u0438\u0442\u0447\u0435\u0439&quot;):<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">    readonly property string appTarget:         qbs.targetOS.contains(&quot;macos&quot;) ? &quot;Fish&quot; : &quot;fish&quot;      readonly property string installAppPath: {         if (qbs.targetOS.contains(&quot;macos&quot;))             return &quot;Applications&quot;;         else if (qbs.targetOS.contains(&quot;windows&quot;))             return &quot;.&quot;;         else             return &quot;bin&quot;;     }<\/code><\/pre>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">\u041f\u043e\u043b\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<ul>\n<li><code>appTarget<\/code> \u2014 \u0438\u043c\u044f \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430 (\u0431\u0430\u043d\u0434\u043b\u0430 \u043d\u0430 \u043c\u0430\u043a\u0435)<\/li>\n<li><code>installAppPath<\/code> \u2014 \u043f\u0443\u0442\u044c, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 &quot;Applications&quot; \u043d\u0430 \u043c\u0430\u043a\u0435 \u0438\u043b\u0438 &quot;bin&quot; \u043d\u0430 \u043b\u0438\u043d\u0443\u043a\u0441\u0435<\/li>\n<li><code>installBinaryPath<\/code> \u2014 \u043f\u0443\u0442\u044c, \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0438 (\u043d\u0430 \u043c\u0430\u043a\u0435 \u043a\u043b\u0430\u0434\u0443\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u044c \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u0431\u0430\u043d\u0434\u043b\u0430, \u043d\u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445 \u0440\u044f\u0434\u043e\u043c \u0441 \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u043c)<\/li>\n<li><code>installLibraryPath<\/code> \u2014 \u043f\u0443\u0442\u044c, \u043a\u0443\u0434\u0430 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u043b\u043b\u043a\u0438<\/li>\n<li><code>installPluginPath<\/code> \u2014 \u043f\u0443\u0442\u044c, \u043a\u0443\u0434\u0430 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d\u044b<\/li>\n<li><code>installDataPath<\/code> \u2014 \u043f\u0443\u0442\u044c, \u043a\u0443\u0434\u0430 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u0438 \u0434\u0430\u043d\u043d\u044b\u0435<\/li>\n<\/ul>\n<\/div><\/div>\n<p>  <\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u043e\u0431\u0449\u0438\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0444\u043b\u0430\u0433\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0438 \u0432\u0435\u0440\u0441\u0438\u044f \u044f\u0437\u044b\u043a\u0430:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">    Depends { name: &quot;cpp&quot; } \/\/ \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043c\u043e\u0434\u0443\u043b\u044c, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0421\/\u0421++      cpp.cxxLanguageVersion: &quot;c++17&quot; \/\/ \u0437\u0430\u0434\u0430\u0435\u043c \u0432\u0435\u0440\u0441\u0438\u044e \u044f\u0437\u044b\u043a\u0430     cpp.separateDebugInformation: true \/\/ \u0444\u043e\u0440\u0441\u0438\u043c \u043e\u0442\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0435\u0431\u0430\u0433 \u0438\u043d\u0444\u044b      Properties {         condition: qbs.toolchain.contains(&quot;gcc&quot;)         cpp.cxxFlags: { \/\/ \u0444\u043b\u0430\u0433\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 (\u043d\u043e \u043d\u0435 \u043b\u0438\u043d\u043a\u043e\u0432\u0449\u0438\u043a\u0430)             var flags = [];             if (enableAddressSanitizer)                 flags.push(&quot;-fno-omit-frame-pointer&quot;);             return flags;         }         cpp.driverFlags: { \/\/ \u0444\u043b\u0430\u0433\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430 \u0418 \u043b\u0438\u043d\u043a\u043e\u0432\u0449\u0438\u043a\u0430             var flags = [];             if (enableAddressSanitizer)                 flags.push(&quot;-fsanitize=address&quot;);             if (enableUbSanitizer)                 flags.push(&quot;-fsanitize=undefined&quot;);             if (enableThreadSanitizer)                 flags.push(&quot;-fsanitize=thread&quot;);             return flags;         }     } }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0438\u043c\u0435\u044f \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0435 \u0430\u0439\u0442\u0435\u043c\u044b. \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0430\u0439\u0442\u0435\u043c\u0430, \u043e\u0431\u0449\u0435\u0433\u043e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u2014 <a href=\"https:\/\/github.com\/ABBAPOH\/qbsfish\/blob\/habr\/qbs\/imports\/MyLibrary.qbs\" rel=\"nofollow\">MyLibrary<\/a>. \u041c\u044b \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u0430\u0439\u0442\u0435\u043c\u0430 Library \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044c \u043e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043c\u043e\u0434\u0443\u043b\u0435\u0439:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">Library {     Depends { name: &quot;buildconfig&quot; }     Depends { name: &quot;bundle&quot; }     Depends { name: &quot;cpp&quot; }<\/code><\/pre>\n<p>  <\/p>\n<p><code>buildconfig<\/code> \u2014 \u044d\u0442\u043e \u043d\u0430\u0448 \u043a\u0430\u0441\u0442\u043e\u043c\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c<br \/>  <code>bundle<\/code> \u2014 \u044d\u0442\u043e \u043c\u043e\u0434\u0443\u043b\u044c, \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0449\u0438\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u0431\u0430\u043d\u0434\u043b\u043e\u0432 \u043d\u0430 \u044f\u0431\u043b\u043e\u0447\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445<br \/>  <code>cpp<\/code> \u2014 \u044d\u0442\u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044c \u043c\u044b \u0443\u0436\u0435 \u0432\u0438\u0434\u0435\u043b\u0438 \u0432\u044b\u0448\u0435, \u0432 \u043d\u0435\u043c \u0436\u0438\u0432\u0435\u0442 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 C\/C++\/Objective-C.<\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u043d\u0430\u0448\u0435\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0442\u043e\u0433\u043e, \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0431\u0438\u043b\u0434 \u0438\u043b\u0438 \u043d\u0435\u0442, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0438\u043b\u0438 \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443 \u0432 \u0431\u0430\u043d\u0434\u043b:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">    type: buildconfig.staticBuild ? &quot;staticlibrary&quot; : &quot;dynamiclibrary&quot;      bundle.isBundle: buildconfig.frameworksBuild<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c includePaths \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0442\u0430\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u043d\u043a\u043b\u044e\u0434\u044b \u043a \u043d\u0430\u0448\u0438\u043c \u0445\u0435\u0434\u0435\u0440\u0430\u043c \u0432\u043a\u043b\u044e\u0447\u0430\u043b\u0438 \u0438\u043c\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438: <code>#include &lt;library\/header&gt;<\/code>. \u0422\u0430\u043a\u0436\u0435, \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0432\u0441\u043c\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0434\u0435\u0444\u0430\u0439\u043d\u044b, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0449\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0441 <a href=\"https:\/\/github.com\/ABBAPOH\/qbsfish\/blob\/habr\/src\/libs\/fishlib\/fishlib_global.h\" rel=\"nofollow\">\u043c\u0430\u043a\u0440\u043e\u0441\u0430\u043c\u0438<\/a> \u0438\u043c\u043f\u043e\u0440\u0442\u0430\/\u044d\u0441\u043f\u043e\u0440\u0442\u0430 (\u0441\u043a\u043e\u0440\u0435\u0439 \u0431\u044b \u043c\u043e\u0434\u0443\u043b\u0438!).<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">     cpp.includePaths: [&quot;..&quot;]      cpp.defines: buildconfig.staticBuild                ? [&quot;FISH_STATIC_LIBRARY&quot;]                : [&quot;FISH_LIBRARY&quot;]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0438\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 sonamePrefix \u0438 rpaths. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 sonamePrefix \u043d\u0443\u0436\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043c\u0430\u043a\u0435, \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e soname \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043f\u043e\u043b\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043a \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 (\u0430 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u043c\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438), \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0439 \u043f\u0443\u0442\u044c \u043d\u0430 <code>&quot;@rpath&quot;<\/code> \u2014 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043f\u0443\u0442\u0435\u0439 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430. \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u044d\u0442\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a (rpaths) \u0440\u0430\u0432\u043d\u044b\u043c \u043e\u0434\u043d\u043e\u043c\u0443 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0443 \u2014 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u0430\u043f\u043a\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (rpathOrigin, \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 <code>&quot;$ORIGIN&quot;<\/code> \u043d\u0430 \u043b\u0438\u043d\u0443\u043a\u0441\u0435 \u0438\u043b\u0438 <code>&quot;@loader_path&quot;<\/code> \u043d\u0430 \u043c\u0430\u043a\u0435). \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0432\u0441\u0435 \u043d\u0430\u0448\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0440\u044f\u0434\u043e\u043c \u0441 \u0441\u043e\u0431\u043e\u0439:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">cpp.sonamePrefix: qbs.targetOS.contains(&quot;macos&quot;) ? &quot;@rpath&quot; : undefined cpp.rpaths: cpp.rpathOrigin<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u0435\u043c \u043c\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u0435\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0448\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442, \u0442\u043e \u0435\u0441\u0442\u044c \u0442\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0432\u0438\u0441\u044f\u0442 \u043e\u0442 \u043d\u0430\u0448\u0435\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">    Export {         Depends { name: &quot;cpp&quot; }         cpp.includePaths: [&quot;..&quot;]         cpp.defines: buildconfig.staticBuild ? [&quot;FISH_STATIC_LIBRARY&quot;] : []     }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u0438 \u0432\u044b\u0448\u0435, \u043c\u044b \u044d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c includePaths, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0435 \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \u2014 \u0442\u0435\u043f\u0435\u0440\u044c \u043b\u044e\u0431\u043e\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442, \u0433\u0434\u0435 \u0431\u044b \u043e\u043d \u043d\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0441\u044f \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0441\u043c\u043e\u0436\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c <code>#include &lt;library\/header&gt;<\/code>. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0432 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0435 \u0432\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u044f\u043b\u0438 \u043c\u0430\u043a\u0440\u043e\u0441 <code>&quot;FISH_STATIC_LIBRARY&quot;<\/code>, \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043d\u0430\u0448\u0435\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438, \u043e\u043d\u0438 \u0431\u0443\u0434\u0443\u0442 \u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0438\u0437 \u043d\u0435\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 dll (\u0432\u0435\u043d\u0434\u0430 \u0431\u043e\u043b\u044c).<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u043c\u044b \u0433\u043e\u0432\u043e\u0440\u0438\u043c, \u043a\u0443\u0434\u0430 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">    install: !buildconfig.staticBuild     installDir: buildconfig.installLibraryPath     installDebugInformation: !buildconfig.staticBuild }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0430\u0439\u0442\u0435\u043c, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440 \u0433\u043e\u0442\u043e\u0432\u043e\u0439 <a href=\"https:\/\/github.com\/ABBAPOH\/qbsfish\/blob\/habr\/src\/libs\/fishlib\/fishlib.qbs\" rel=\"nofollow\">\u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 FishLib<\/a>. \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u043d\u0430\u043c \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a <code>libFishLib.so<\/code> (FishLib.dll \u043d\u0430 \u0432\u0438\u043d\u0434\u0435, libFishLib.dylib \u043d\u0430 \u043c\u0430\u043a\u0435) \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442 \u0435\u0433\u043e \u0438 \u0435\u0433\u043e \u043e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0435 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u043f\u0430\u043f\u043a\u0443:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">MyLibrary {     name: &quot;FishLib&quot;     files: [         &quot;class.cpp&quot;,         &quot;class.h&quot;,         &quot;fishlib_global.h&quot;,     ] }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0427\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0449\u0435!<\/p>\n<p>  <\/p>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 <a href=\"https:\/\/github.com\/ABBAPOH\/qbsfish\/blob\/habr\/qbs\/imports\/MyApp.qbs\" rel=\"nofollow\">\u0430\u0439\u0442\u0435\u043c<\/a> \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0441\u0438\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u2014 \u044d\u0442\u043e \u0442\u043e, \u043a\u0430\u043a \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c rpaths:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">    cpp.rpaths: FileInfo.joinPaths(cpp.rpathOrigin,                                    &quot;..&quot;,                                    qbs.targetOS.contains(&quot;macos&quot;)                                    ? &quot;Frameworks&quot;                                    : buildconfig.installLibraryPath)<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f <code>&quot;$ORIGIN\/..\/lib\/fish&quot;<\/code> \u043d\u0430 \u043b\u0438\u043d\u0443\u043a\u0441\u0435 \u0438 <code>&quot;@loader_path\/..\/Frameworks\/&quot;<\/code> \u043d\u0430 \u043c\u0430\u043a\u0435 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u044b \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u0435\u043c\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0432\u044b\u0448\u0435 \u043e\u0442 bin (\u0438\u043b\u0438 \u043f\u0430\u043f\u043a\u0438 MacOS \u0432\u043d\u0443\u0442\u0440\u0438 \u0431\u0430\u043d\u0434\u043b\u0430) \u0438 \u0441\u043f\u0443\u0441\u043a\u0430\u0435\u043c\u0441\u044f \u0432 lib\/fish (\u0438\u043b\u0438 Frameworks). \u0412 Windows \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0441\u0442\u0430\u0432\u044f\u0442\u0441\u044f \u0440\u044f\u0434\u043e\u043c \u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u043e\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043c rpath \u043d\u0435 \u0437\u0430\u0432\u0435\u0437\u043b\u0438.<\/p>\n<p>  <\/p>\n<p>\u0411\u0430\u0437\u043e\u0432\u044b\u0439 <a href=\"https:\/\/github.com\/ABBAPOH\/qbsfish\/blob\/habr\/qbs\/imports\/MyPlugin.qbs\" rel=\"nofollow\">\u0430\u0439\u0442\u0435\u043c<\/a> \u0434\u043b\u044f \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u0432 \u0438 <a href=\"https:\/\/github.com\/ABBAPOH\/qbsfish\/blob\/habr\/src\/plugins\/fishplugin\/fishplugin.qbs\" rel=\"nofollow\">\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043b\u0430\u0433\u0438\u043d\u0430<\/a> \u044f \u0440\u0430\u0441\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u0442\u0430\u043c \u0432\u0441\u0451 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e, \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c MyLibrary.qbs.<\/p>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430\u0441\u0442\u0430\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u044d\u0442\u043e \u0432\u0441\u0451 \u0432 \u0433\u043e\u0442\u043e\u0432\u043e\u0435 <a href=\"https:\/\/github.com\/ABBAPOH\/qbsfish\/blob\/habr\/src\/apps\/fishapp\/fishapp.qbs\" rel=\"nofollow\">\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/a>. \u041a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e, \u043c\u044b \u043d\u0430\u0441\u043b\u0435\u0434\u0443\u0435\u043c \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0430\u0439\u0442\u0435\u043c \u0438 \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u044b. \u0421\u0442\u043e\u0438\u0442 \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0440\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043c\u044b \u044f\u0432\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441 \u043d\u0438\u043c \u043d\u0435 \u043d\u0430\u0434\u043e \u043b\u0438\u043d\u043a\u043e\u0432\u0430\u0442\u044c\u0441\u044f (\u043d\u043e \u0435\u0433\u043e \u043d\u0430\u0434\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0434\u043e \u0441\u0431\u043e\u0440\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f). \u0422\u0430\u043a\u0436\u0435, \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u0435, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043c\u043e\u0434\u0443\u043b\u044c <code>ib<\/code> \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044f\u0431\u043b\u043e\u0447\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">MyApp {     Depends { name: &quot;buildconfig&quot; }     Depends { name: &quot;ib&quot;; condition: qbs.targetOS.contains(&quot;macos&quot;) }     Depends { name: &quot;freedesktop&quot; }     Depends { name: &quot;Qt.core&quot; }     Depends { name: &quot;Qt.widgets&quot; }     Depends { name: &quot;FishLib&quot; }     Depends { name: &quot;FishPlugin&quot;; cpp.link: false }<\/code><\/pre>\n<p>  <\/p>\n<p>\u041c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u0438 \u0438\u043c\u044f \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0444\u0430\u0439\u043b \u043d\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0431\u0443\u043a\u0432\u044b \u043d\u0430 \u041c\u0430\u043a\u0435 \u0438 \u0441 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u043e\u0439 \u043d\u0430 \u041b\u0438\u043d\u0443\u043a\u0441\u0435 \u0438 \u0412\u0438\u043d\u0434\u0435 (Fish.app, fish \u0438 fish.exe, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e); &quot;\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435&quot; \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 <code>buildconfig.appTarget<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">    name: &quot;Fish&quot;     targetName: buildconfig.appTarget<\/code><\/pre>\n<p>  <\/p>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u0444\u0430\u0439\u043b\u043e\u0432:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">    files: [         &quot;Fish-Info.plist&quot;,         &quot;fish.desktop&quot;,         &quot;fish.rc&quot;,         &quot;fish.xcassets&quot;,         &quot;main.cpp&quot;,         &quot;mainwindow.cpp&quot;,         &quot;mainwindow.h&quot;,         &quot;mainwindow.ui&quot;,     ]<\/code><\/pre>\n<p>  <\/p>\n<p><em>Fish-Info.plist<\/em> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0431\u0430\u043d\u0434\u043b\u0430 \u043d\u0430 \u043c\u0430\u043a\u0435 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043f\u0438\u0440\u0430\u0439\u0442). \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 Info.plist Qbs \u0433\u0435\u043d\u0435\u0440\u0438\u0442 \u0441\u0430\u043c\u0430, \u043d\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0440\u0443\u043a\u0430\u043c\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \u0438\u043b\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <a href=\"https:\/\/doc.qt.io\/qbs\/qml-qbsmodules-bundle.html#infoPlist-prop\" rel=\"nofollow\">bundle.infoPlist<\/a>.<\/p>\n<p>  <\/p>\n<p><em>fish.desktop<\/em> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u041b\u0438\u043d\u0443\u043a\u0441\u0435 \u2014 \u0438\u043c\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 &quot;\u043c\u0435\u043d\u044e \u043f\u0443\u0441\u043a&quot;, \u043a\u0430\u043a\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c, \u043a\u0430\u043a\u0443\u044e \u0438\u043a\u043e\u043d\u043a\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c. \u042d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043c\u043e\u0434\u0443\u043b\u044f <em>freedesktop<\/em>.<\/p>\n<p>  <\/p>\n<p>\u0410\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e, <em>fish.rc<\/em> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u044d\u043a\u0437\u0435\u0448\u043d\u0438\u043a\u0430 \u0432 Windows (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u0441\u0451 \u0442\u043e \u0436\u0435 \u0438\u043c\u044f \u0438\u043a\u043e\u043d\u043a\u0438).<\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u0442\u0430\u043b\u043e\u0433 <em>fish.xcassets<\/em> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0434\u043b\u044f \u0438\u043a\u043e\u043d\u043a\u0438 \u043d\u0430 \u043c\u0430\u043a\u0435, \u0438\u043c\u044f \u0438\u043a\u043e\u043d\u043a\u0438 \u043c\u044b \u0437\u0430\u0434\u0430\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043c\u043e\u0434\u0443\u043b\u044f <a href=\"https:\/\/doc.qt.io\/qbs\/qml-qbsmodules-ib.html\" rel=\"nofollow\">ib<\/a>: <\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">    Properties {         condition: qbs.targetOS.contains(&quot;macos&quot;)         ib.appIconName: &quot;Fish&quot;     }<\/code><\/pre>\n<p>  <\/p>\n<p>Qbs \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442 \u0438\u0437 png-\u0444\u0430\u0439\u043b\u043e\u0432 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f, \u043d\u0430\u0445\u043e\u0434\u044f\u0449\u0438\u0445\u0441\u044f \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 <em>fish.xcassets\/Fish.appiconset<\/em> \u0444\u0430\u0439\u043b <em>Fish.icns<\/em> \u0438 \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u0442 \u0438\u043c\u044f \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 Info.plist. \u0422\u0430\u043a \u043a\u0430\u043a \u043c\u043e\u0434\u0443\u043b\u044c <code>ib<\/code> \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044f\u0431\u043b\u043e\u0447\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u0445, \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0435\u0433\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0432 <a href=\"https:\/\/doc.qt.io\/qbs\/qml-qbslanguageitems-properties.html\" rel=\"nofollow\">Properties<\/a>, \u0438\u043d\u0430\u0447\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u0448\u0438\u0431\u043a\u0443 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 <code>ib.appIconName<\/code> \u043d\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u0421\u0442\u0430\u0432\u0438\u043c \u0438\u043a\u043e\u043d\u043a\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u041b\u0438\u043d\u0443\u043a\u0441\u0435. \u041c\u043e\u0434\u0443\u043b\u044c freedesktop \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0442\u0430\u0432\u0438\u0442\u044c svg \u0438\u043a\u043e\u043d\u043a\u0438 \u0432 share\/icons\/hicolor\/scalable\/apps, \u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u0432\u0435\u043a\u0442\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430 \u0438\u043a\u043e\u043d\u043a\u0438, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0441\u0442\u0430\u0432\u0438\u043c &quot;\u0440\u0443\u0447\u043a\u0430\u043c\u0438&quot; \u0432 share\/pixmaps:<\/p>\n<p>  <\/p>\n<pre><code class=\"javascript\">    Group {         name: &quot;fish.png&quot;         condition: qbs.targetOS.contains(&quot;linux&quot;)         files: [ &quot;fish.png&quot; ]         qbs.install: true         qbs.installDir: &quot;share\/pixmaps&quot;     }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438\u0441\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u043e\u0432:<\/p>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">Linux<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>\u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435, \u043c\u044b \u0441\u0442\u0430\u0432\u0438\u043c \u0432 &lt;install-root&gt;\/usr\/local, \u043d\u043e \u043e\u043f\u0443\u0441\u0442\u0438\u043c \u043f\u0440\u0435\u0444\u0438\u043a\u0441 \u0438 install-root:<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">\/bin \/bin\/fish \/bin\/fish.debug \/bin\/tool \/bin\/tool.debug \/lib \/lib\/fish \/lib\/fish\/libFishLib.so \/lib\/fish\/libFishLib.so.debug \/lib\/fish\/plugins \/lib\/fish\/plugins\/libFishPlugin.so \/lib\/fish\/plugins\/libFishPlugin.so.debug \/share \/share\/applications \/share\/applications\/fish.desktop \/share\/pixmaps \/share\/pixmaps\/fish.png<\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">macOS<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<p>\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043f\u0430\u043f\u043e\u043a *dSYM\/ \u043e\u043f\u0443\u0449\u0435\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b<\/p>\n<p>  <\/p>\n<pre><code class=\"plaintext\">\/Applications\/Fish.app \/Applications\/Fish.app.dSYM \/Applications\/Fish.app\/Contents \/Applications\/Fish.app\/Contents\/Frameworks \/Applications\/Fish.app\/Contents\/Frameworks\/FishLib.framework \/Applications\/Fish.app\/Contents\/Frameworks\/FishLib.framework.dSYM \/Applications\/Fish.app\/Contents\/Info.plist \/Applications\/Fish.app\/Contents\/MacOS \/Applications\/Fish.app\/Contents\/MacOS\/Fish \/Applications\/Fish.app\/Contents\/MacOS\/tool \/Applications\/Fish.app\/Contents\/MacOS\/tool.dSYM \/Applications\/Fish.app\/Contents\/PkgInfo \/Applications\/Fish.app\/Contents\/PlugIns \/Applications\/Fish.app\/Contents\/PlugIns\/libFishPlugin.dylib \/Applications\/Fish.app\/Contents\/PlugIns\/libFishPlugin.dylib.dSYM \/Applications\/Fish.app\/Contents\/Resources \/Applications\/Fish.app\/Contents\/Resources\/Fish.icns<\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<div class=\"spoiler\" role=\"button\" tabindex=\"0\">                         <b class=\"spoiler_title\">Windows<\/b>                         <\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"plaintext\">\/FishLib.dll \/FishLib.pdb \/fish.exe \/fish.pdb \/plugins \/plugins\/FishPlugin.dll \/plugins\/FishPlugin.pdb \/tool.exe \/tool.pdb<\/code><\/pre>\n<\/div><\/div>\n<p>  <\/p>\n<h5>\u0412\u044b\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h5>\n<p>  <\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e, Qbs \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b, \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b (\u0432\u043a\u043b\u044e\u0447\u0430\u044f Android, iOS \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 <a href=\"https:\/\/habr.com\/ru\/post\/480132\/\">\u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u044b<\/a>). \u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u043c\u0443 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0443, \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u044d\u0442\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439 \u0441\u0431\u043e\u0440\u043a\u0438 \u043e\u0434\u043d\u043e \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u0435, \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c\u0438 \u0438 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/183020\/\"> https:\/\/habr.com\/ru\/post\/183020\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/183020\/\">\n<h5>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h5>\n<p>  <\/p>\n<p>\u0414\u0430\u0432\u043d\u044b\u043c \u0434\u0430\u0432\u043d\u043e, \u043a\u043e\u0433\u0434\u0430 Qbs \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0448\u043b\u0430, \u044f \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e, \u043d\u043e \u0442\u0430\u043a \u0435\u0451 \u0438 \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u2026 \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0435\u0435 \u0434\u043e\u043f\u0438\u0441\u0430\u0442\u044c. \u0421 \u0442\u0435\u0445 \u043f\u043e\u0440 \u043c\u043d\u043e\u0433\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c, \u0443 Qbs \u043d\u0430\u043a\u043e\u043d\u0435\u0446-\u0442\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f, \u043d\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 (\u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e) \u0432 \u043d\u0435\u0439 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043a\u0430\u043a \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d (\u043f\u043e\u0447\u0442\u0438) \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0433\u043e \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Qt.Widgets. \u041f\u043e-\u0445\u043e\u0440\u043e\u0448\u0435\u043c\u0443, \u0431\u044b\u043b\u043e \u0431\u044b \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u044d\u0442\u043e \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c C++, \u043d\u043e \u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043b\u0435\u043d\u0438\u0432, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 UI \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e \u0410\u041f\u0418 \u043f\u043e\u0434 3 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b. \u0414\u043b\u044f \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 (&quot;\u0440\u044b\u0431\u0443&quot;), \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0438 \u043f\u043b\u0430\u0433\u0438\u043d\u0430, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043c\u044b \u0438 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u0433\u043e \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b\u043e, \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-302824","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302824","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=302824"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/302824\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=302824"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=302824"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=302824"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}