debug
This commit is contained in:
parent
9683dfa7f4
commit
fe22b68288
|
@ -16,7 +16,8 @@ add_executable(rtc_plugins
|
|||
include/MRTCEnginePlatForm.hpp
|
||||
util/RTCContext.cpp
|
||||
rtc_plugins.cpp
|
||||
util/RTCContext.cpp)
|
||||
util/RTCContext.cpp
|
||||
util/numpyConfig.h)
|
||||
|
||||
add_library(rtc_plugins_lib SHARED rtc_plugins.cpp
|
||||
util/RTCContext.cpp)
|
||||
|
|
|
@ -1,10 +1,6 @@
|
|||
// rtc_plugins.cpp
|
||||
#define PY_ARRAY_UNIQUE_SYMBOL MY_PROJECT_ARRAY_API // 必须与头文件一致
|
||||
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
||||
|
||||
#include <Python.h>
|
||||
#include <numpy/arrayobject.h>
|
||||
|
||||
#include "./util/numpyConfig.h"
|
||||
#include "./util/RTCContext.h"
|
||||
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
// RTCContext.h
|
||||
#pragma once
|
||||
|
||||
// 必须在所有include之前定义
|
||||
#define PY_ARRAY_UNIQUE_SYMBOL MY_PROJECT_ARRAY_API // 必须是项目唯一名称
|
||||
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
||||
#include "numpyConfig.h"
|
||||
|
||||
#include "IMRTCEngine.hpp"
|
||||
#include "MRTCEngineDefine.hpp"
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
// numpy_config.h
|
||||
#pragma once
|
||||
|
||||
// 使用更独特的项目前缀(建议:<PROJECT>_<MODULE>_<RANDOM_SUFFIX>)
|
||||
#define PY_ARRAY_UNIQUE_SYMBOL RTC_PLUGINS_7A3B_ARRAY_API
|
||||
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
|
||||
|
||||
// 确保只被包含一次
|
||||
#ifndef NUMPY_CONFIG_INCLUDED
|
||||
#define NUMPY_CONFIG_INCLUDED
|
||||
#include <Python.h>
|
||||
#include <numpy/arrayobject.h>
|
||||
#endif
|
Loading…
Reference in New Issue