C++版本
This commit is contained in:
21
fast_lowcmd_cpp/setup.py
Normal file
21
fast_lowcmd_cpp/setup.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from pathlib import Path
|
||||
|
||||
from setuptools import Extension, setup
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parent
|
||||
|
||||
setup(
|
||||
name="go1_fast_lowcmd",
|
||||
version="0.1.0",
|
||||
description="Native CPython LowCmd builder/encrypter for go1_pro_sdk",
|
||||
py_modules=["fast_lowcmd"],
|
||||
ext_modules=[
|
||||
Extension(
|
||||
"go1_fast_lowcmd",
|
||||
sources=[str(ROOT / "go1_fast_lowcmd.cpp")],
|
||||
language="c++",
|
||||
extra_compile_args=["-std=c++17", "-O3"],
|
||||
)
|
||||
],
|
||||
)
|
||||
Reference in New Issue
Block a user