{"id":5082,"date":"2022-04-04T16:55:30","date_gmt":"2022-04-04T07:55:30","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=5082"},"modified":"2022-04-06T09:42:16","modified_gmt":"2022-04-06T00:42:16","slug":"ninja","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/5082","title":{"rendered":"Ninja"},"content":{"rendered":"<p>\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb<\/p>\n<p>Make \u306e\u7f6e\u63db\u3048\u3092\u72d9\u3063\u305f\u9ad8\u901f\u306a\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3002cmake\u3092\u5c0e\u5165\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308c\u3070, Make \u304b\u3089 Ninja \u3078\u306e\u79fb\u884c\u306f\u5bb9\u6613\u3067\u3042\u308b\u3002<\/p>\n<p><!--more--><\/p>\n<h3>1. cmake\u306b\u3088\u308b\u30d3\u30eb\u30c9\u30b9\u30af\u30ea\u30d7\u30c8\u751f\u6210<\/h3>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ cmake -G Ninja -B build<\/pre>\n<p>out-of-source \u306e\u4f8b\u3002\u30b5\u30d6\u30d5\u30a9\u30eb\u30c0 build \u306b &quot;build.ninja&quot; \u306a\u3069\u3092\u751f\u6210\u3059\u308b\u3002<\/p>\n<h3>2. \u30d3\u30eb\u30c9\u5b9f\u884c\u4f8b<\/h3>\n<h4>2.1. \u8a73\u7d30\u8868\u793a\u306a\u3057<\/h4>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ ninja<\/pre>\n<h4>2.2. \u8a73\u7d30\u8868\u793a\u3042\u308a<\/h4>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ ninja -v<\/pre>\n<h3>3. \u30af\u30ea\u30fc\u30f3\u5b9f\u884c<\/h3>\n<h4>3.1. Ninja\u306e\u30b5\u30d6\u30c4\u30fc\u30eb\u3092\u547c\u3073\u51fa\u3059<\/h4>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ ninja -t clean<\/pre>\n<h4>3.2. \u30bf\u30fc\u30b2\u30c3\u30c8 clean \u3092\u5b9f\u884c\u3059\u308b<\/h4>\n<pre class=\"lang:sh highlight:0 decode:true \" >$ ninja clean<\/pre>\n<h3>4. \u30d1\u30c3\u30b1\u30fc\u30b8\u540d<\/h3>\n<p>Ubuntu(apt)\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306f &quot;ninja-build&quot;\u3002&quot;ninja&quot; \u3067\u306f\u306a\u3044\u3002<\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >Package: ninja-build\r\n...\r\nHomepage: https:\/\/ninja-build.org\/\r\nDescription-en: small build system closest in spirit to Make\r\n Ninja is yet another build system. It takes as input the interdependencies of\r\n files (typically source code and output executables) and orchestrates\r\n building them, quickly.\r\n .\r\n Ninja joins a sea of other build systems. Its distinguishing goal is to be\r\n fast. It is born from the Chromium browser project, which has over 30,000\r\n source files and whose other build systems can take ten seconds to start\r\n building after changing one file. Ninja is under a second.<\/pre>\n<h3>5. \u53c2\u8003\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"https:\/\/ninja-build.org\/\">Ninja Official Site<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/ninja-build\/ninja\">GitHub repository of Ninja<\/a>\n<\/li>\n<li><a href=\"https:\/\/ja.wikipedia.org\/wiki\/Ninja_(%E3%82%BD%E3%83%95%E3%83%88%E3%82%A6%E3%82%A7%E3%82%A2)\">Wikipedia: Ninja\uff08\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\uff09<\/a><\/li>\n<p>  <!--\n  \n\n<li><a href=\"\"><\/a><\/li>\n\n\n  \n\n<li><a href=\"\"><\/a><\/li>\n\n\n  -->\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb Make \u306e\u7f6e\u63db\u3048\u3092\u72d9\u3063\u305f\u9ad8\u901f\u306a\u30d3\u30eb\u30c9\u30c4\u30fc\u30eb\u3002cmake\u3092\u5c0e\u5165\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u3042\u308c\u3070, Make \u304b\u3089 Ninja \u3078\u306e\u79fb\u884c\u306f\u5bb9\u6613\u3067\u3042\u308b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-5082","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=5082"}],"version-history":[{"count":14,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5082\/revisions"}],"predecessor-version":[{"id":5108,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/5082\/revisions\/5108"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=5082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=5082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=5082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}