抛弃GdCpp*.dll/pdb历史重新建库。libhv和Sqlite的dll保留
This commit is contained in:
26
include/GdCpp_Exports.h
Normal file
26
include/GdCpp_Exports.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef _GD_CPP_EXPORTS_H_
|
||||
#define _GD_CPP_EXPORTS_H_
|
||||
|
||||
#ifdef GDCPP_DLL // 编译或使用DLL的项目定义GDCPP_DLL
|
||||
#ifdef GDCPP_EXPORTS // 编译DLL的项目定义GDCPP_EXPORTS
|
||||
#define GDCPP_API __declspec(dllexport)
|
||||
#else // 使用DLL的项目
|
||||
#define GDCPP_API __declspec(dllimport)
|
||||
#ifdef _DEBUG
|
||||
#pragma comment(lib, "GdCppD.lib")
|
||||
#else
|
||||
#pragma comment(lib, "GdCpp.lib")
|
||||
#endif
|
||||
#endif
|
||||
#elif GDCPP_STATIC // 编译成静态库,
|
||||
#define GDCPP_API
|
||||
#ifdef _DEBUG
|
||||
#pragma comment(lib, "GdCppStaticD.lib")
|
||||
#else
|
||||
#pragma comment(lib, "GdCppStatic.lib")
|
||||
#endif
|
||||
#else // 直接使用源码使用
|
||||
#define GDCPP_API
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user