Code Monkey home page Code Monkey logo

miraicp-template's Introduction

MiraiCP-template

留意和MiraiCP loader/plugin 的版本对应

当前文件版本是 GitHub release (latest SemVer)

如果要旧版去tag里找

您可以完全自定义您的cmake项目。如果您对cmake不太了解,请参考如下使用方法。

  • clone本仓库,或下载zip并解压

  • 通过cmake生成项目。推荐使用Clion进行开发,可以自动加载、重载cmake项目,否则请参考下面的项目生成tips。源文件以及头文件请添加进src/目录。每次添加或重命名.cpp文件时,需要在Clion中重新加载cmake项目,或者重新执行下面的cmake命令。

    • Windows上使用Visual Studio开发:首先需要下载cmake并确保cmake已经被添加到PATH。在本目录下新建文件夹build,在build文件夹中打开powershell窗口,执行

      cmake .. -A x64 --config Release

      即可生成Visual Studio项目。双击MiraiCPPlugin.sln打开项目编写、编译。

    • Linux:请先根据您的发行版安装cmake。在本目录下执行

      mkdir build
      cd build
      cmake -DCMAKE_BUILD_TYPE=Release ..

      build文件夹中使用make编译代码。

  • 生成的文件在build目录下,后缀为.dll.so。和MiraiCP loader/plugin 配合用(在loader/plugin的config.json里写路径, 见MiraiCP文档

miraicp-template's People

Contributors

nambers avatar antares0982 avatar gcq1999 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.