mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
build: 重构IUP库依赖和项目结构
- 删除旧版iup-3.31_Win64_dllw6_lib目录及其所有二进制文件 - 将IUP和CD库重新组织为独立目录结构,包含头文件和静态库 - 更新CMakeLists.txt以链接新的静态库(iupcontrols、iupimglib、cd等) - 修改main.c以显式初始化IupControls和IupImageLib扩展库 - 更新回调函数签名以匹配IUP Matrix控件的实际参数 - 调整UI工具函数以使用Matrix控件的属性(MARKED、NUMLIN等) - 更新安装脚本仅复制实际依赖的DLL文件 - 添加所有缺失的IUP和CD头文件以支持完整功能
This commit is contained in:
@@ -0,0 +1,83 @@
|
||||
#ifndef __IUP_EXPORT_H
|
||||
#define __IUP_EXPORT_H
|
||||
|
||||
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
|
||||
/** @cond DOXYGEN_SHOULD_IGNORE_THIS */
|
||||
|
||||
/* Mark the official functions */
|
||||
#ifndef IUP_API
|
||||
#ifdef IUP_BUILD_LIBRARY
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
#define IUP_API EMSCRIPTEN_KEEPALIVE
|
||||
#elif WIN32
|
||||
#define IUP_API __declspec(dllexport)
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define IUP_API __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#define IUP_API
|
||||
#endif
|
||||
#else
|
||||
#define IUP_API
|
||||
#endif /* IUP_BUILD_LIBRARY */
|
||||
#endif /* IUP_API */
|
||||
|
||||
/* Mark the internal SDK functions (some not official but need to be exported) */
|
||||
#ifndef IUP_SDK_API
|
||||
#ifdef IUP_BUILD_LIBRARY
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
#define IUP_SDK_API EMSCRIPTEN_KEEPALIVE
|
||||
#elif WIN32
|
||||
#define IUP_SDK_API __declspec(dllexport)
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define IUP_SDK_API __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#define IUP_SDK_API
|
||||
#endif
|
||||
#else
|
||||
#define IUP_SDK_API
|
||||
#endif /* IUP_BUILD_LIBRARY */
|
||||
#endif /* IUP_SDK_API */
|
||||
|
||||
/* Mark the driver functions that need to be exported */
|
||||
#ifndef IUP_DRV_API
|
||||
#ifdef IUP_BUILD_LIBRARY
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
#define IUP_DRV_API EMSCRIPTEN_KEEPALIVE
|
||||
#elif WIN32
|
||||
#define IUP_DRV_API __declspec(dllexport)
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define IUP_DRV_API __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#define IUP_DRV_API
|
||||
#endif
|
||||
#else
|
||||
#define IUP_DRV_API
|
||||
#endif /* IUP_BUILD_LIBRARY */
|
||||
#endif /* IUP_DRV_API */
|
||||
|
||||
/* Mark the IupImageLib function, it does not have a header of its own */
|
||||
#ifndef IUPIMGLIB_API
|
||||
#ifdef IUPIMGLIB_BUILD_LIBRARY
|
||||
#ifdef __EMSCRIPTEN__
|
||||
#include <emscripten.h>
|
||||
#define IUPIMGLIB_API EMSCRIPTEN_KEEPALIVE
|
||||
#elif WIN32
|
||||
#define IUPIMGLIB_API __declspec(dllexport)
|
||||
#elif defined(__GNUC__) && __GNUC__ >= 4
|
||||
#define IUPIMGLIB_API __attribute__ ((visibility("default")))
|
||||
#else
|
||||
#define IUPIMGLIB_API
|
||||
#endif
|
||||
#else
|
||||
#define IUPIMGLIB_API
|
||||
#endif /* IUPIMGLIB_BUILD_LIBRARY */
|
||||
#endif /* IUPIMGLIB_API */
|
||||
|
||||
/** @endcond DOXYGEN_SHOULD_IGNORE_THIS */
|
||||
#endif /* DOXYGEN_SHOULD_IGNORE_THIS */
|
||||
|
||||
|
||||
#endif /* __IUP_EXPORT_H */
|
||||
Reference in New Issue
Block a user