{"id":18753274,"url":"https://github.com/hanxi/skynet-cmake","last_synced_at":"2025-04-13T00:31:40.286Z","repository":{"id":192121431,"uuid":"685646561","full_name":"hanxi/skynet-cmake","owner":"hanxi","description":"使用 CMake 编译 skynet，无侵入式支持vs2022中编译skynet","archived":false,"fork":false,"pushed_at":"2024-11-28T01:41:17.000Z","size":33688,"stargazers_count":30,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-26T18:57:06.967Z","etag":null,"topics":["cmake","skynet","vs2022","windows"],"latest_commit_sha":null,"homepage":"https://github.com/hanxi/skynet-cmake","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanxi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-31T17:32:12.000Z","updated_at":"2025-03-06T10:19:59.000Z","dependencies_parsed_at":"2024-05-06T05:29:22.600Z","dependency_job_id":"2097f679-b812-4af3-9657-ffecaca3593d","html_url":"https://github.com/hanxi/skynet-cmake","commit_stats":null,"previous_names":["hanxi/skynet-cmake"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Fskynet-cmake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Fskynet-cmake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Fskynet-cmake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanxi%2Fskynet-cmake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanxi","download_url":"https://codeload.github.com/hanxi/skynet-cmake/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650590,"owners_count":21139670,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","skynet","vs2022","windows"],"created_at":"2024-11-07T17:25:05.452Z","updated_at":"2025-04-13T00:31:35.274Z","avatar_url":"https://github.com/hanxi.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"# 使用 CMake 编译 skynet\n\n[skynet-cmake](https://github.com/hanxi/skynet-cmake) 是 [skynet](https://github.com/cloudwu/skynet) 的使用 cmake 的多平台的实现。\n\n主要特点是支持在 vs2022 中编译运行，且 skynet 以 submodule 的方式链接，方便升级，确保不改。\n\n## 在 Windows 下\n\n基于 [Visual Studio 2022](https://visualstudio.microsoft.com/zh-hans/downloads/) ，需要安装 CMake 和 Clang 模块。\n\n- [安装CMake](https://learn.microsoft.com/en-us/cpp/build/cmake-projects-in-visual-studio?view=msvc-170)\n- [安装Clang](https://learn.microsoft.com/en-us/cpp/build/clang-support-cmake?view=msvc-170)\n\n下载工程和更新 submodule\n\n```bash\ngit checkout https://github.com/hanxi/skynet-cmake.git\ncd skynet-cmake\ngit submodule update --init\n```\n\n使用 vs2022 打开此工程目录 skynet-cmake (即CMakeLists.txt 文件所在目录）\n\n## 在 Linux MacOSX 下\n\n没多大必要，直接用 make 可能更方便。\n\n```bash\nmkdir build\ncd build\n    Makefile:\n        cmake ../\n    Xcode:\n        cmake -G Xcode ../\n```\n\n## 参考\n\n- [cloudfreexiao/skynet/tree/windows](https://github.com/cloudfreexiao/skynet/tree/windows)\n- [dpull/skynet-mingw](https://github.com/dpull/skynet-mingw)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanxi%2Fskynet-cmake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanxi%2Fskynet-cmake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanxi%2Fskynet-cmake/lists"}