按 align-linuxcnc 约束补 Python plugin probe 源码依据
This commit is contained in:
@@ -111,6 +111,7 @@ case "$mode" in
|
||||
;;
|
||||
python-plugin-link)
|
||||
python_plugin_shim=$(./list-linuxcnc-wasm-safe-shims.sh python_plugin.cc)
|
||||
grep -F 'LinuxCNC source basis: src/emc/pythonplugin/python_plugin.cc and' core/wasm_shims/pythonplugin/python_plugin_probe_main.cc >/dev/null
|
||||
sources+=(
|
||||
"$python_plugin_shim"
|
||||
core/wasm_shims/pythonplugin/python_plugin_probe_main.cc
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
#include "pythonplugin/python_plugin.hh"
|
||||
|
||||
// LinuxCNC source basis: src/emc/pythonplugin/python_plugin.cc and
|
||||
// python_plugin.hh define the PythonPlugin API exercised by this link probe.
|
||||
int main() {
|
||||
auto *plugin = PythonPlugin::instantiate(nullptr);
|
||||
if (!plugin) {
|
||||
|
||||
Reference in New Issue
Block a user