项目作者: ysc3839

项目描述 :
Python binding plugin for VC:MP.
高级语言: C++
项目地址: git://github.com/ysc3839/vcmp-python-plugin.git
创建时间: 2017-08-25T08:28:29Z
项目社区:https://github.com/ysc3839/vcmp-python-plugin

开源协议:MIT License

下载


vcmp-python-plugin Build status

Python binding plugin for VC:MP.

Building

This project uses CMake build system.

Cloning

This project includes pybind11 submodule, use:

git clone --recursive https://github.com/ysc3839/vcmp-python-plugin.git

Linux

You need to install python3-dev and camke.

On Debian-like systems just run:
sudo apt install python3-dev cmake

After installation, run:

  1. mkdir build
  2. cd build
  3. cmake -DCMAKE_BUILD_TYPE=Release ..
  4. make

For both Linux and Windows, you can use -DPYTHON_EXECUTABLE=path/to/python to specify Python executable.

For example: cmake -DPYTHON_EXECUTABLE="C:\Program Files\Python36\python.exe" ..

TODO: Cross compile for other architecture.

Windows

Download & install CMake and Python.

After installation, run:

  1. mkdir build
  2. cd build
  3. cmake ..
  4. cmake --build . --config Release

Or you can open generated solution files in Visual Studio.

The default architecture for cmake is 32 bit. If you want to build a 64 bit binary, you need to specify a 64 bit generator.

Run cmake --help and you can see all generators. Most cases you just need to use Visual Studio 15 2017 Win64 generator.

For example: cmake -G "Visual Studio 15 2017 Win64" ..