{"id":155438,"date":"2020-08-31T17:40:34","date_gmt":"2020-08-31T09:40:34","guid":{"rendered":"http:\/\/4563.org\/?p=155438"},"modified":"2020-08-31T17:40:34","modified_gmt":"2020-08-31T09:40:34","slug":"%e5%a6%82%e6%9e%9c-ci-%e7%b3%bb%e7%bb%9f%e5%8f%aa%e8%83%bd%e8%8e%b7%e5%8f%96%e5%88%b0%e5%bc%80%e6%ba%90%e4%bb%a3%e7%a0%81%e7%9a%84%e6%ba%90%e7%a0%81%e5%8c%85%ef%bc%8c%e6%98%af%e5%90%a6%e5%ba%94","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=155438","title":{"rendered":"\u5982\u679c CI \u7cfb\u7edf\u53ea\u80fd\u83b7\u53d6\u5230\u5f00\u6e90\u4ee3\u7801\u7684\u6e90\u7801\u5305\uff0c\u662f\u5426\u5e94\u5f53\u4f7f\u7528 C++\u5305\u7ba1\u7406\u5668\u6765\u7ba1\u7406\u5185\u90e8\u9879\u76ee\u7684\u4f9d\u8d56\u5462?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u5982\u679c CI \u7cfb\u7edf\u53ea\u80fd\u83b7\u53d6\u5230\u5f00\u6e90\u4ee3\u7801\u7684\u6e90\u7801\u5305\uff0c\u662f\u5426\u5e94\u5f53\u4f7f\u7528 C++\u5305\u7ba1\u7406\u5668\u6765\u7ba1\u7406\u5185\u90e8\u9879\u76ee\u7684\u4f9d\u8d56\u5462?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zwy100e72 <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u5728\u5f00\u53d1\u4e00\u4e2a\u5185\u90e8\u7684 C++ SDK\uff0c\u8be5 SDK \u4f9d\u8d56\u4e8e\u4e00\u4e9b\u5f00\u6e90\u9879\u76ee\u3002\u6211\u76ee\u524d\u4f7f\u7528 <code>conan<\/code> \u4f5c\u4e3a\u5305\u7ba1\u7406\u5668\uff0c\u4ece conan center \u4e0b\u8f7d\u4e8c\u8fdb\u5236\u5305\u5e76\u914d\u7f6e CMake \u7684<code>find_package<\/code>\u3002\u4f46\u662f\u516c\u53f8\u7684 CI \u7cfb\u7edf\u65e0\u6cd5\u8bbf\u95ee\u516c\u7f51\uff0c\u53ea\u80fd\u8bbf\u95ee\u5185\u90e8\u7ad9\u70b9\u4e0a\u6258\u7ba1\u7684\u5f00\u6e90\u9879\u76ee\u7684\u6e90\u7801\u3002<\/p>\n<p>\u6211\u60f3\u628a SDK \u548c\u4f9d\u8d56\u6253\u5305\u5230\u4e00\u8d77\u4ee5\u4e8c\u8fdb\u5236\u5f62\u5f0f\u53d1\u5e03\uff0c\u56e0\u6b64\u5fc5\u987b\u4ece\u5f53\u524d\u914d\u7f6e\uff08 conan \u4ece conan center \u4e0b\u8f7d\u4e8c\u8fdb\u5236\u5305\uff09\u8fc1\u79fb\u5230\u4e00\u79cd CI \u7cfb\u7edf\u4e5f\u80fd\u4f7f\u7528\u7684\u65b9\u6cd5\u4e0a\u3002\u6211\u60f3\u6211\u6709\u8fd9\u4e48\u51e0\u79cd\u9009\u9879\uff1a<\/p>\n<ul>\n<li>\u76f4\u63a5\u4f7f\u7528\u811a\u672c\u4e0b\u8f7d\u9700\u8981\u7684\u6e90\u7801\u5305\uff0c\u7136\u540e\u7f16\u5199\u811a\u672c\u548c CMake \u914d\u7f6e\u6587\u4ef6\u6765\u7f16\u8bd1 SDK \u548c SDK \u7684\u4f9d\u8d56<\/li>\n<li>\u5185\u5d4c\u4e00\u4e2a\u5305\u7ba1\u7406\u5668\uff0c\u7ed9\u5305\u7ba1\u7406\u5668\u7f16\u5199\u811a\u672c\uff0c\u7528\u5305\u7ba1\u7406\u5668\u6765\u7ba1\u7406\u6784\u5efa\u4e2d\u7684\u4f9d\u8d56\u5173\u7cfb<\/li>\n<li>\u66f4\u8fdb\u4e00\u6b65\uff0c\u5c06\u5305\u7ba1\u7406\u5668\u5206\u53d1\u7ed9\u4e0b\u6e38\u5f00\u53d1\u8005\uff0c\u4e3a\u4ed6\u4eec\u81ea\u52a8\u914d\u7f6e SDK \u7684\u4f9d\u8d56\u5173\u7cfb<\/li>\n<\/ul>\n<p>\u6240\u4ee5\u95ee\u9898\u6765\u4e86\uff1a\u5230\u5e95\u8981\u4e0d\u8981\u7528\u5305\u7ba1\u7406\u5668\uff0c\u5982\u679c\u7528\u7684\u8bdd\uff0c<code>vcpkg<\/code> \u548c <code>conan<\/code> \u8be5\u600e\u4e48\u9009? \u6211\u4e24\u79cd\u5305\u7ba1\u7406\u5668\u90fd\u7528\u8fc7\u4e00\u6bb5\u65f6\u95f4\u3002<\/p>\n<p>PS\uff1a\u8fd9\u4e2a SDK \u662f\u7528 cmake + visual studio \u6765\u7f16\u8bd1\u7684\uff1b\u4e0d\u8fc7\u540e\u7eed\u53ef\u80fd\u8981\u505a\u8de8\u5e73\u53f0\u5230 Android \u548c iOS \u4e0a\u9762\u53bb<\/p>\n<p>\uff08\u672c\u95ee\u9898\u82f1\u6587\u7248\u672c\u662f\u6211\u672c\u4eba\u53d1\u5e03\u4e8e Reddit \u7684\uff0c\u4e2d\u6587\u7248\u672c\u4e5f\u662f\u6211\u81ea\u5df1\u7f16\u5199\u7684\u3002\uff09<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3290548\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nightwitch <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u81ea\u5e26\u6e90\u7801\u5457, \u653e third_party \u91cc\u9762\u3002\u9700\u8981\u5347\u7ea7\u7684\u65f6\u5019\u66ff\u6362\u6587\u4ef6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3290549\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zwy100e72 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nightwitch \u8fd9\u79cd\u60c5\u51b5\u4e0b\u8fd8\u6709\u522b\u7684\u9650\u5236\u3002\u6e90\u7801\u7248\u672c\u7ba1\u7406\u662f git\uff0c\u4e0d\u592a\u60f3\u76f4\u63a5\u5e26\u5f00\u6e90\u7684\u6e90\u7801\uff0c\u6216\u8005\u662f\u4e8c\u8fdb\u5236\u5305\uff0cgit \u4ed3\u5e93\u7684\u4f53\u79ef\u4f1a\u53d8\u5f97\u5f88\u5927\uff0c\u4e5f\u53ef\u80fd\u4f1a\u4e0d\u5c0f\u5fc3\u6539\u6389\u522b\u4eba\u7684\u6e90\u7801\uff1b\u5f88\u591a\u4e09\u65b9\u5e93\u4e0d\u662f\u7528 cmake \u7ba1\u7406\u7684\uff0c\u8fd8\u5f97\u7ed9\u4ed6\u4eec\u5199 FindX.cmake \u914d\u7f6e\u6587\u4ef6                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3290550\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : secondwtq <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \/r\/cpp_questions \u662f\u4ec0\u4e48\u5730\u65b9 &#8230; \/r\/cpp \u8981\u6d3b\u8dc3\u7684\u591a<\/p>\n<p>\u6211\u60f3\u4e86\u4e00\u4e0b\u6211\u4eec\u8fd9\u8fb9\u7684\u4f9d\u8d56\u662f\u628a binary \u7edf\u4e00\u653e\u5728\u4e00\u4e2a\u6587\u4ef6\u670d\u52a1\u5668\u91cc\u9762\uff08 binary \u6765\u6e90\u4e0d\u660e\uff09\uff0c\u6240\u6709\u5176\u4ed6\u670d\u52a1\u5668\u90fd\u80fd\u8bbf\u95ee\u8be5\u6587\u4ef6\u670d\u52a1\u5668\uff0c\u7136\u540e\u6bcf\u4e2a\u7248\u672c\u90fd\u5199\u6b7b\u4f9d\u8d56\u7248\u672c\u7684\u3002<\/p>\n<p>\u5206\u53d1\u7684\u65f6\u5019\u76f4\u63a5\u5199 CMake \u628a\u6240\u6709\u4f9d\u8d56\u7684\u5e93\u5168\u90fd\u62f7\u4e00\u904d\u3002\u4e0d\u8fc7\u8fd9\u4e2a\u9879\u76ee\u662f\u76f4\u63a5\u53ef\u6267\u884c\u7684\u8f6f\u4ef6\uff0c\u4e0d\u662f SDK \u3002<\/p>\n<p>\u4f60\u8fd9\u4e2a\u5982\u679c\u4f9d\u8d56\u4e8e\u5305\u7ba1\u7406\u5668\u7684\u8bdd\uff0c\u4f1a\u4e0d\u4f1a\u9020\u6210 SDK \u7528\u6237\u4e5f\u5fc5\u987b\u4f7f\u7528\u5305\u7ba1\u7406\u5668\uff0c\u4ed6\u4eec\u80fd\u4e0d\u80fd\u63a5\u53d7\u5462                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3290551\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : zwy100e72 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @secondwtq \u6309\u7167\u6211\u7406\u89e3 \/r\/cpp \u662f\u7528\u6765\u53d1\u65b0\u95fb \/ \u53d1 blog \u7684\uff0c\u6240\u4ee5\u6ca1\u5f80\u90a3\u8fb9\u53d1<\/p>\n<p>&gt; \u4f1a\u4e0d\u4f1a\u9020\u6210 SDK \u7528\u6237\u4e5f\u5fc5\u987b\u4f7f\u7528\u5305\u7ba1\u7406\u5668<\/p>\n<p>\u5e0c\u671b\u8fbe\u6210\u7684\u6548\u679c\u662f\uff0c\u7528\u7684\u8bdd\u66f4\u65b9\u4fbf\uff0c\u4e0d\u7528\u7684\u8bdd\u90a3\u4e48\u624b\u52a8\u914d\u7f6e\u4e5f\u4e0d\u662f\u4e0d\u884c\u3002\u4e0b\u6e38\u7684\u5f00\u53d1\u8005\u8fd8\u662f Visual Studio \u5de5\u7a0b\uff0c\u8fd9\u79cd\u60c5\u51b5\u4ed6\u6700\u5dee\u4e5f\u5c31\u662f\u624b\u52a8\u914d\u7f6e\u4e0b                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3290552\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shynome <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             git submodule \uff1f\u628a\u7b2c\u4e09\u65b9\u4f9d\u8d56\u7684\u653e\u5230\u53e6\u5916\u4e00\u4e2a\u4ed3\u5e93\u91cc                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3290553\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : waruqi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u7528 xmake \u652f\u6301 vcpkg conan clib brew \u7b49\u5305\u4ed3\u5e93\uff0c\u4e5f\u6709\u5185\u7f6e\u81ea\u5efa\u7684\u5b98\u65b9\u5305\u4ed3\u5e93\uff0c\u4e5f\u652f\u6301\u7528\u6237\u81ea\u5efa\u7684\u5206\u5e03\u5f0f\u4ed3\u5e93\uff0c\u4ee5\u53ca\u79c1\u6709\u4ed3\u5e93<\/p>\n<p>https:\/\/xmake.io\/#\/zh-cn\/package\/remote_package                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c CI \u7cfb\u7edf\u53ea\u80fd\u83b7\u53d6\u5230\u5f00\u6e90\u4ee3\u7801&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/155438"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=155438"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/155438\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=155438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=155438"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=155438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}