{"id":207802,"date":"2020-11-26T05:22:06","date_gmt":"2020-11-25T21:22:06","guid":{"rendered":"http:\/\/4563.org\/?p=207802"},"modified":"2020-11-27T16:12:12","modified_gmt":"2020-11-27T08:12:12","slug":"xrepo%ef%bc%9a%e4%b8%80%e4%b8%aa%e7%8e%b0%e4%bb%a3%e5%8c%96%e7%9a%84%e8%b7%a8%e5%b9%b3%e5%8f%b0-c-c-%e5%8c%85%e7%ae%a1%e7%90%86%e5%99%a8","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=207802","title":{"rendered":"Xrepo\uff1a\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u8de8\u5e73\u53f0 C\/C++ \u5305\u7ba1\u7406\u5668"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Xrepo\uff1a\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u8de8\u5e73\u53f0 C\/C++ \u5305\u7ba1\u7406\u5668               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : waruqi <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>xrepo \u662f\u4e00\u4e2a\u57fa\u4e8e Xmake \u7684\u8de8\u5e73\u53f0 C\/C++ \u5305\u7ba1\u7406\u5668\u3002<\/p>\n<ul>\n<li>\u9879\u76ee\u6e90\u7801<\/li>\n<li>\u5b98\u65b9\u6587\u6863<\/li>\n<\/ul>\n<p>\u5b83\u57fa\u4e8e xmake \u63d0\u4f9b\u7684\u8fd0\u884c\u65f6\uff0c\u4f46\u5374\u662f\u4e00\u4e2a\u5b8c\u6574\u72ec\u7acb\u7684\u5305\u7ba1\u7406\u7a0b\u5e8f\uff0c\u76f8\u6bd4 vcpkg\/homebrew \u6b64\u7c7b\u5305\u7ba1\u7406\u5668\uff0cxrepo \u80fd\u591f\u540c\u65f6\u63d0\u4f9b\u66f4\u591a\u5e73\u53f0\u548c\u67b6\u6784\u7684 C\/C++ \u5305\u3002<\/p>\n<p>\u5e76\u4e14\u8fd8\u652f\u6301\u591a\u7248\u672c\u8bed\u4e49\u9009\u62e9\uff0c\u53e6\u5916\u5b83\u8fd8\u662f\u4e00\u4e2a\u53bb\u4e2d\u5fc3\u5316\u7684\u5206\u5e03\u5f0f\u4ed3\u5e93\uff0c\u4e0d\u4ec5\u4ec5\u63d0\u4f9b\u4e86\u5b98\u65b9\u7684 xmake-repo \u4ed3\u5e93\uff0c\u8fd8\u652f\u6301\u7528\u6237\u81ea\u5efa\u591a\u4e2a\u79c1\u6709\u4ed3\u5e93\u3002<\/p>\n<p>\u540c\u65f6\uff0cxrepo \u4e5f\u652f\u6301\u4ece vcpkg\/homebrew\/conan \u7b49\u7b2c\u4e09\u65b9\u5305\u7ba1\u7406\u5668\u4e2d\u5b89\u88c5\u5305\uff0c\u5e76\u63d0\u4f9b\u7edf\u4e00\u4e00\u81f4\u7684\u5e93\u94fe\u63a5\u4fe1\u606f\uff0c\u65b9\u4fbf\u4e0e\u7b2c\u4e09\u65b9\u9879\u76ee\u7684\u96c6\u6210\u5bf9\u63a5\u3002<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u8981\u4e86\u89e3\u66f4\u591a\uff0c\u8bf7\u53c2\u8003\uff1a\u5728\u7ebf\u6587\u6863, Github \u4ee5\u53ca Gitee<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201127_5fc0b4534026a.gif\" alt=\"Xrepo\uff1a\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u8de8\u5e73\u53f0 C\/C++ \u5305\u7ba1\u7406\u5668\" \/><\/p>\n<h2>\u5b89\u88c5<\/h2>\n<p>\u6211\u4eec\u53ea\u9700\u8981\u5b89\u88c5\u4e0a xmake \u5c31\u53ef\u4ee5\u4f7f\u7528 xrepo \u547d\u4ee4\uff0c\u5173\u4e8e xmake \u7684\u5b89\u88c5\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u4e0b\uff1axmake \u5b89\u88c5\u6587\u6863\u3002<\/p>\n<h2>\u652f\u6301\u5e73\u53f0<\/h2>\n<ul>\n<li>Windows (x86, x64)<\/li>\n<li>macOS (i386, x86_64, arm64)<\/li>\n<li>Linux (i386, x86_64, cross-toolchains ..)<\/li>\n<li>*BSD (i386, x86_64)<\/li>\n<li>Android (x86, x86_64, armeabi, armeabi-v7a, arm64-v8a)<\/li>\n<li>iOS (armv7, armv7s, arm64, i386, x86_64)<\/li>\n<li>MSYS (i386, x86_64)<\/li>\n<li>MinGW (i386, x86_64, arm, arm64)<\/li>\n<li>Cross Toolchains<\/li>\n<\/ul>\n<h2>\u652f\u6301\u7684\u5305\u7ba1\u7406\u4ed3\u5e93<\/h2>\n<ul>\n<li>\u5b98\u65b9\u81ea\u5efa\u4ed3\u5e93 xmake-repo (tbox &gt;1.6.1)<\/li>\n<li>\u7528\u6237\u81ea\u5efa\u4ed3\u5e93<\/li>\n<li>Conan (conan::openssl\/1.1.1g)<\/li>\n<li>Vcpkg (vcpkg:ffmpeg)<\/li>\n<li>Homebrew\/Linuxbrew (brew::pcre2\/libpcre2-8)<\/li>\n<li>Pacman on archlinux\/msys2 (pacman::libcurl)<\/li>\n<li>Clib (clib::clibs\/[email&#160;protected])<\/li>\n<li>Dub (dub::log 0.4.3)<\/li>\n<\/ul>\n<h2>\u5206\u5e03\u5f0f\u4ed3\u5e93\u652f\u6301<\/h2>\n<p>\u9664\u4e86\u53ef\u4ee5\u76f4\u63a5\u4ece\u5b98\u65b9\u4ed3\u5e93\uff1axmake-repo \u68c0\u7d22\u5b89\u88c5\u5305\u4e4b\u5916\uff0c \u6211\u4eec\u8fd8\u53ef\u4ee5\u6dfb\u52a0\u4efb\u610f\u591a\u4e2a\u81ea\u5efa\u7684\u4ed3\u5e93\uff0c\u751a\u81f3\u53ef\u4ee5\u5b8c\u5168\u9694\u79bb\u5916\u7f51\uff0c\u4ec5\u4ec5\u5728\u516c\u53f8\u5185\u90e8\u7f51\u7edc\u7ef4\u62a4\u79c1\u6709\u5305\u7684\u5b89\u88c5\u96c6\u6210\u3002<\/p>\n<p>\u53ea\u9700\u8981\u901a\u8fc7\u4e0b\u9762\u7684\u547d\u4ee4\uff0c\u6dfb\u52a0\u4e0a\u81ea\u5df1\u7684\u4ed3\u5e93\u5730\u5740\uff1a<\/p>\n<pre><code>$ xrepo add-repo myrepo https:\/\/github.com\/mygroup\/myrepo <\/code><\/pre>\n<h2>\u4e0e xmake \u7684\u5de5\u7a0b\u65e0\u7f1d\u96c6\u6210<\/h2>\n<pre><code>add_requires(\"tbox &gt;1.6.1\", \"libuv master\", \"vcpkg::ffmpeg\", \"brew::pcre2\/libpcre2-8\") add_requires(\"conan::openssl\/1.1.1g\", {alias = \"openssl\", optional = true, debug = true}) target(\"test\")     set_kind(\"binary\")     add_files(\"src\/*.c\")     add_packages(\"tbox\", \"libuv\", \"vcpkg::ffmpeg\", \"brew::pcre2\/libpcre2-8\", \"openssl\") <\/code><\/pre>\n<p>\u4e0b\u9762\u662f\u4e0e xmake \u96c6\u6210\u7684\u6574\u4f53\u67b6\u6784\u548c\u7f16\u8bd1\u6d41\u7a0b\u3002<\/p>\n<p> <img decoding=\"async\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/20201127_5fc0b45355267.png\" alt=\"Xrepo\uff1a\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u8de8\u5e73\u53f0 C\/C++ \u5305\u7ba1\u7406\u5668\" \/> <\/p>\n<h2>\u5feb\u901f\u4e0a\u624b<\/h2>\n<h3>\u5b89\u88c5\u5305<\/h3>\n<h4>\u57fa\u672c\u4f7f\u7528<\/h4>\n<pre><code>$ xrepo install zlib tbox <\/code><\/pre>\n<h4>\u5b89\u88c5\u6307\u5b9a\u7248\u672c\u5305<\/h4>\n<p>\u5b8c\u6574\u652f\u6301 Semantic Versioning (\u8bed\u4e49\u7248\u672c)\u3002<\/p>\n<pre><code>$ xrepo install \"zlib 1.2.x\" $ xrepo install \"zlib &gt;=1.2.0\" <\/code><\/pre>\n<h4>\u5b89\u88c5\u6307\u5b9a\u5e73\u53f0\u5305<\/h4>\n<pre><code>$ xrepo install -p iphoneos -a arm64 zlib $ xrepo install -p android [--ndk=\/xxx] zlib $ xrepo install -p mingw [--mingw=\/xxx] zlib $ xrepo install -p cross --sdk=\/xxx\/arm-linux-musleabi-cross zlib <\/code><\/pre>\n<h4>\u5b89\u88c5\u8c03\u8bd5\u7248\u672c\u5305<\/h4>\n<pre><code>$ xrepo install -m debug zlib <\/code><\/pre>\n<h4>\u5b89\u88c5\u52a8\u6001\u5e93\u7248\u672c\u5305<\/h4>\n<pre><code>$ xrepo install -k shared zlib <\/code><\/pre>\n<h4>\u5b89\u88c5\u6307\u5b9a\u914d\u7f6e\u5305<\/h4>\n<pre><code>$ xrepo install -f \"vs_runtime=MD\" zlib $ xrepo install -f \"regex=true,thread=true\" boost <\/code><\/pre>\n<h4>\u5b89\u88c5\u7b2c\u4e09\u65b9\u5305\u7ba1\u7406\u5668\u7684\u5305<\/h4>\n<pre><code>$ xrepo install brew::zlib $ xrepo install vcpkg::zlib $ xrepo install conan::zlib\/1.2.11 $ xrepo install pacman:libpng $ xrepo install dub:log <\/code><\/pre>\n<h3>\u67e5\u627e\u5305\u7684\u5e93\u4f7f\u7528\u4fe1\u606f<\/h3>\n<pre><code>$ xrepo fetch pcre2 {   {     linkdirs = {       \"\/usr\/local\/Cellar\/pcre2\/10.33\/lib\"     },     links = {       \"pcre2-8\"     },     defines = {       \"PCRE2_CODE_UNIT_WIDTH=8\"     },     includedirs = \"\/usr\/local\/Cellar\/pcre2\/10.33\/include\"   } } <\/code><\/pre>\n<pre><code>$ xrepo fetch --ldflags openssl -L\/Users\/ruki\/.xmake\/packages\/o\/openssl\/1.1.1\/d639b7d6e3244216b403b39df5101abf\/lib -lcrypto -lssl <\/code><\/pre>\n<pre><code>$ xrepo fetch --cflags openssl -I\/Users\/ruki\/.xmake\/packages\/o\/openssl\/1.1.1\/d639b7d6e3244216b403b39df5101abf\/include <\/code><\/pre>\n<pre><code>$ xrepo fetch -p [iphoneos|android] --cflags \"zlib 1.2.x\" -I\/Users\/ruki\/.xmake\/packages\/z\/zlib\/1.2.11\/df72d410e7e14391b1a4375d868a240c\/include <\/code><\/pre>\n<pre><code>$ xrepo fetch --cflags --ldflags conan::zlib\/1.2.11 -I\/Users\/ruki\/.conan\/data\/zlib\/1.2.11\/_\/_\/package\/f74366f76f700cc6e991285892ad7a23c30e6d47\/include -L\/Users\/ruki\/.conan\/data\/zlib\/1.2.11\/_\/_\/package\/f74366f76f700cc6e991285892ad7a23c30e6d47\/lib -lz <\/code><\/pre>\n<h3>\u5bfc\u51fa\u5b89\u88c5\u540e\u7684\u5305<\/h3>\n<p>xrepo \u53ef\u4ee5\u5feb\u901f\u5bfc\u51fa\u5df2\u7ecf\u5b89\u88c5\u540e\u7684\u5305\uff0c\u5305\u62ec\u5bf9\u5e94\u7684\u5e93\u6587\u4ef6\uff0c\u5934\u6587\u4ef6\u7b49\u7b49\u3002<\/p>\n<pre><code>$ xrepo export -o \/tmp\/output zlib <\/code><\/pre>\n<h3>\u641c\u7d22\u652f\u6301\u7684\u5305<\/h3>\n<pre><code>$ xrepo search zlib \"pcr*\"     zlib:       -&gt; zlib: A Massively Spiffy Yet Delicately Unobtrusive Compression Library (in xmake-repo)     pcr*:       -&gt; pcre2: A Perl Compatible Regular Expressions Library (in xmake-repo)       -&gt; pcre: A Perl Compatible Regular Expressions Library (in xmake-repo) <\/code><\/pre>\n<h3>\u67e5\u770b\u5305\u73af\u5883\u4fe1\u606f<\/h3>\n<pre><code>$ xrepo env --show luajit {   OLDPWD = \"\/mnt\/tbox\",   HOME = \"\/home\/ruki\",   PATH = \"\/home\/ruki\/.xmake\/packages\/l\/luajit\/2.1.0-beta3\/fbac76d823b844f0b91abf3df0a3bc61\/bin:\/tmp:\/tmp\/arm-linux-musleabi-cross\/bin:~\/.local\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/usr\/bin:\/sbin:\/bin\",   TERM = \"xterm\",   PWD = \"\/mnt\/xmake\",   XMAKE_PROGRAM_DIR = \"\/mnt\/xmake\/xmake\",   HOSTNAME = \"e6edd61ff1ab\",   LD_LIBRARY_PATH = \"\/home\/ruki\/.xmake\/packages\/l\/luajit\/2.1.0-beta3\/fbac76d823b844f0b91abf3df0a3bc61\/lib\",   SHLVL = \"1\",   _ = \"\/mnt\/xmake\/scripts\/xrepo.sh\" } <\/code><\/pre>\n<h3>\u52a0\u8f7d\u6267\u884c\u5305\u73af\u5883\u5e76\u8fd0\u884c\u547d\u4ee4<\/h3>\n<pre><code>$ xrepo env luajit LuaJIT 2.1.0-beta3 -- Copyright (C) 2005-2017 Mike Pall. http:\/\/luajit.org\/ JIT: ON SSE2 SSE3 SSE4.1 BMI2 fold cse dce fwd dse narrow loop abc sink fuse &gt; <\/code><\/pre>\n<pre><code>$ xrepo env -b \"luajit 2.x\" luajit $ xrepo env -p iphoneos -b \"zlib,libpng,luajit 2.x\" cmake .. <\/code><\/pre>\n<h3>\u67e5\u770b\u5305\u4fe1\u606f<\/h3>\n<pre><code>$ xrepo info zlib The package info of project:     require(zlib):       -&gt; description: A Massively Spiffy Yet Delicately Unobtrusive Compression Library       -&gt; version: 1.2.11       -&gt; urls:          -&gt; http:\/\/zlib.net\/zlib-1.2.11.tar.gz             -&gt; c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1          -&gt; https:\/\/downloads.sourceforge.net\/project\/libpng\/zlib\/1.2.11\/zlib-1.2.11.tar.gz             -&gt; c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1       -&gt; repo: xmake-repo https:\/\/gitee.com\/tboox\/xmake-repo.git master       -&gt; cachedir: \/Users\/ruki\/.xmake\/cache\/packages\/2010\/z\/zlib\/1.2.11       -&gt; installdir: \/Users\/ruki\/.xmake\/packages\/z\/zlib\/1.2.11\/d639b7d6e3244216b403b39df5101abf       -&gt; searchdirs:       -&gt; searchnames: zlib-1.2.11.tar.gz       -&gt; fetchinfo: 1.2.11, system           -&gt; version: 1.2.11           -&gt; links: z           -&gt; linkdirs: \/usr\/local\/Cellar\/zlib\/1.2.11\/lib           -&gt; includedirs: \/usr\/local\/Cellar\/zlib\/1.2.11\/include       -&gt; platforms: iphoneos, [email&#160;protected], macosx, [email&#160;protected],macosx, [email&#160;protected],macosx, windows, linux       -&gt; requires:          -&gt; plat: macosx          -&gt; arch: x86_64          -&gt; configs:             -&gt; debug: false             -&gt; vs_runtime: MT             -&gt; shared: false       -&gt; configs:       -&gt; configs (builtin):          -&gt; debug: Enable debug symbols. (default: false)          -&gt; shared: Enable shared library. (default: false)          -&gt; cflags: Set the C compiler flags.          -&gt; cxflags: Set the C\/C++ compiler flags.          -&gt; cxxflags: Set the C++ compiler flags.          -&gt; asflags: Set the assembler flags.          -&gt; vs_runtime: Set vs compiler runtime. (default: MT)             -&gt; values: {\"MT\",\"MD\"} <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>18<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4330302\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mepwang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nice job!                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330303\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yazoox <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u4ec0\u4e48\u4e0d\u53eb crepo \u6216\u8005 cpprepo\uff0c\u8fd9\u4e2a xrepo \u6211\u90fd\u6ca1\u60f3\u5230\u662f c\/c++\u5305\u7ba1\u7406\u5de5\u5177\u3002<br \/>\u6ca1\u60f3\u5230\u8fc7\u4e86\u8fd9\u4e48\u591a\u5e74\uff0cc++\u4e5f\u7ec8\u4e8e\u6709\u5305\u7ba1\u7406\u5de5\u5177\u4e86\u3002<br \/>\u4e0d\u9519\u3002\u770b\u770b\u3002<br \/>p.s.\u867d\u7136\u591a\u5e74\u4e0d\u5199 c\/c++\u4e86\uff08\u9664\u4e86 leetcode \uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330304\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : northisland <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u9897\u8d5b\u8247\u3002\u6ca1\u60f3\u5230 android ios \u7684\u5fae\u67b6\u6784\u8fd9\u4e48\u591a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330305\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : waruqi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yazoox `x` \u5f00\u5934\uff0c\u91cd\u70b9\u7a81\u51fa\u8de8\u5e73\u53f0\u7684\u6982\u5ff5\uff0c\u53e6\u5916\u4e5f\u8003\u8651\u5230\u662f \u57fa\u4e8e xmake \u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330306\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : waruqi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yazoox \u8fd8\u6709\u5c31\u662f\u9664\u4e86 c\/c++\u5305\uff0c\u4e00\u4e9b\u8f6f\u4ef6\u5305 \u4ee5\u53ca\u5176\u4ed6\u8bed\u8a00\u7684\u5305\uff0c\u53ea\u8981\u80fd\u8ddf C\/C++\u4e00\u8d77\u53c2\u4e0e\u6df7\u5408\u7f16\u8bd1\u94fe\u63a5\u7684\uff0c\u4e5f\u90fd\u53ef\u4ee5\u6536\u5f55\u5b89\u88c5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330307\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : waruqi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @northisland \u8fd8\u597d\u5427\uff0carm, arm64 x86_64 \u4e3b\u8981\u4e5f\u5c31\u8fd9\u4e48\u51e0\u4e2a\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330308\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : omph <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7c7b\u4f3c pkgbuild \u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330309\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : PPing520 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u819c\u62dc\u5927\u4f6c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330310\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : waruqi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @omph \u8ddf homebrew \u7684\u6a21\u5f0f\u66f4\u50cf\u70b9\uff0c\u4e0d\u8fc7\u652f\u6301\u7684\u5e73\u53f0\u66f4\u591a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330311\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bfjm <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u771f\u4e0d\u9519                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330312\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dbskcnc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u652f\u6301\uff0c\u4e0d\u8fc7\u751f\u6001\u662f\u4e2a\u95ee\u9898\uff0c\u529b\u91cf\u8ddf cmake,vcpkg conna \u8fd9\u4e9b\u52a0\u8d77\u6765\u8fd8\u662f\u5c0f\u592a\u591a\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330313\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : waruqi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @dbskcnc \u8fd9\u5f71\u54cd\u4e0d\u5927\uff0cxrepo \u540c\u6837\u53ef\u4ee5\u76f4\u63a5\u96c6\u6210\u5b89\u88c5 vcpkg\/conan \u7684\u5305\uff0c\u53ea\u4e0d\u8fc7\u5728\u8fd9\u57fa\u7840\u4e0a\uff0c\u63d0\u4f9b\u4e86\u66f4\u591a\u7279\u6027\u548c\u8de8\u5e73\u53f0\u652f\u6301\uff0c\u6bd4\u5982\uff1a\u5b8c\u5168\u652f\u6301\u7528\u6237\u81ea\u5efa\u4ed3\u5e93\uff0c\u6bd4\u5982\u4e00\u4e9b\u516c\u53f8\u5185\u90e8\u7f51\u7edc\uff0c\u53ef\u4ee5\u81ea\u5efa\u79c1\u6709\u4ed3\u5e93\u5355\u72ec\u7ef4\u62a4\u4f9d\u8d56\u5305\u7b49\u7b49\u3002<\/p>\n<p>\u800c\u4e14\u5982\u679c\u524d\u671f\u751f\u6001\u4e0d\u5b8c\u5584\uff0c\u6709\u4e9b\u5305\u6ca1\u6709\uff0c\u7528\u6237\u5b8c\u5168\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u5207\u6362\u5305\u6e90\u5230 vcpkg\/conan\uff0c\u5e76\u4e0d\u5f71\u54cd\u4f7f\u7528<\/p>\n<p>\u53e6\u5916\uff0c\u76ee\u524d\u5df2\u7ecf\u6709\u5f88\u591a\u7528\u6237\u4e00\u76f4\u5728\u5e2e\u5fd9\u8d21\u732e\u548c\u4e30\u5bcc xmake \u7684\u5b98\u65b9\u5305\u6e90\u4e86\uff0c\u6211\u76f8\u4fe1\u4e4b\u540e\u4f1a\u8d8a\u6765\u8d8a\u5b8c\u5584~                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330314\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : waruqi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e07\u4e8b\u5f00\u5934\u96be\uff0c\u4f46\u603b\u5f52\u8981\u6709\u4eba\u8fc8\u51fa\u90a3\u4e00\u6b65\uff0c\u4e0d\u80fd\u8bf4\u56e0\u4e3a\u751f\u6001\u4e0d\u884c\uff0c\u5c31\u653e\u5f03\u4e86\uff0c\u5373\u4f7f\u662f vcpkg\/conan \u4e5f\u90fd\u662f\u4ece 0 \u5f00\u59cb \u4e00\u70b9\u70b9\u53d1\u5c55\u8d77\u6765\u7684\uff0c\u53e6\u5916 xrepo \u8ddf vcpkg\/conan \u5e76\u4e0d\u4e92\u65a5\uff0c\u662f\u76f8\u8f85\u76f8\u6210\u7684\u5173\u7cfb\uff0c\u76f8\u4e92\u8865\u5145\u5305\u6e90\uff0c\u5982\u679c\u6709\u4e9b c\/c++ \u5305\uff0cvcpkg\/conan \u91cc\u9762\u6ca1\u6709\u5bf9\u5e94\u5e73\u53f0\u652f\u6301\uff0c\u53ef\u4ee5\u5c1d\u8bd5 xrepo\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u7ee7\u7eed\u4f7f\u7528 vcpkg\/conan \u3002<\/p>\n<p>\u540e\u671f xrepo \u9664\u4e86\u5df2\u7ecf\u5bf9\u63a5\u96c6\u6210 vcpkg\/conan\/clib\/dun\/pacman\/homebrew \u5305\u4e4b\u5916\uff0c\u8fd8\u4f1a\u65b0\u589e\u5176\u4ed6\u66f4\u591a\u5305\u4ed3\u5e93\u7684\u96c6\u6210\uff0c\u6bd4\u5982 apt\/dnf \u7b49\u7b49                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330315\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vsitebon <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u597d\u6d3b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330316\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : AndyAO <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2020\/11\/8oRV15Jy.png\" alt=\"Xrepo\uff1a\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u8de8\u5e73\u53f0 C\/C++ \u5305\u7ba1\u7406\u5668\"> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330317\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mrcn <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u652f\u6301\u4f5c\u8005\uff0c\u8c22\u8c22\u4f5c\u8005\u7684\u4ed8\u51fa\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330318\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : edimetia3d <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7a81\u7136\u6bd4\u8f83\u597d\u5947\uff0c \u4e3b\u505a\u8fd9\u4e9b\u5de5\u5177\u611f\u89c9\u4e0d\u592a\u76c8\u5229 \uff0c\u4f30\u8ba1\u65f6\u95f4\u5f97\u6295\u5165\u4e0d\u5c11\uff0c\u96be\u9053\u7528\u7231\u53d1\u7535\u5417\uff1f                                                             <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4330319\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : waruqi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @edimetia3d \u662f\u554a \u6301\u7eed\u53d1\u7535\u4e2d\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Xrepo\uff1a\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684\u8de8\u5e73\u53f0 C&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\/207802"}],"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=207802"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/207802\/revisions"}],"predecessor-version":[{"id":207804,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/207802\/revisions\/207804"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=207802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=207802"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=207802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}