export headers for QAD, PIQt and cd_utils
This commit is contained in:
@@ -6,6 +6,8 @@ file(GLOB CPPS_UTILS "cdutils_*.cpp")
|
||||
file(GLOB HDRS_UTILS "cdutils_*.h")
|
||||
add_library(${PROJECT_NAME} SHARED ${CPPS_UTILS} ${HDRS_UTILS})
|
||||
target_link_libraries(${PROJECT_NAME} ${PIP_LIBRARY})
|
||||
generate_export_header(${PROJECT_NAME})
|
||||
list(APPEND HDRS_UTILS "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}_export.h")
|
||||
|
||||
add_executable(cdutilstest "cdutilstest.cpp" "cdtest.h")
|
||||
target_link_libraries(cdutilstest ${PIP_LIBRARY} ${PROJECT_NAME})
|
||||
|
||||
@@ -21,12 +21,13 @@
|
||||
#define CDUTILS_C_H
|
||||
|
||||
#include "cdutils_interface.h"
|
||||
#include "cd_utils_export.h"
|
||||
|
||||
|
||||
namespace CDUtils {
|
||||
|
||||
|
||||
class CInterface: public Interface
|
||||
class CD_UTILS_EXPORT CInterface: public Interface
|
||||
{
|
||||
PIOBJECT_SUBCLASS(CInterface, Interface)
|
||||
public:
|
||||
@@ -40,6 +41,6 @@ public:
|
||||
|
||||
}
|
||||
|
||||
extern CDUtils::CInterface C;
|
||||
extern CD_UTILS_EXPORT CDUtils::CInterface C;
|
||||
|
||||
#endif // CDUTILS_C_H
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "cdutils_protocol.h"
|
||||
#include "piconnection.h"
|
||||
#include "pidatatransfer.h"
|
||||
#include "cd_utils_export.h"
|
||||
|
||||
|
||||
namespace CDUtils {
|
||||
@@ -31,7 +32,7 @@ namespace CDUtils {
|
||||
class CDCore;
|
||||
|
||||
|
||||
class __Core_Initializer__ {
|
||||
class CD_UTILS_EXPORT __Core_Initializer__ {
|
||||
public:
|
||||
__Core_Initializer__();
|
||||
~__Core_Initializer__();
|
||||
@@ -40,7 +41,7 @@ public:
|
||||
};
|
||||
|
||||
|
||||
class CDCore: public PIObject
|
||||
class CD_UTILS_EXPORT CDCore: public PIObject
|
||||
{
|
||||
PIOBJECT(CDUtils::CDCore)
|
||||
friend class __Core_Initializer__;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "cdutils_types.h"
|
||||
#include "piobject.h"
|
||||
#include "cd_utils_export.h"
|
||||
|
||||
|
||||
namespace CDUtils {
|
||||
@@ -29,7 +30,7 @@ namespace CDUtils {
|
||||
class CDCore;
|
||||
|
||||
|
||||
class Interface: public PIObject
|
||||
class CD_UTILS_EXPORT Interface: public PIObject
|
||||
{
|
||||
PIOBJECT(CDUtils::Interface)
|
||||
public:
|
||||
|
||||
@@ -21,12 +21,13 @@
|
||||
#define CDUTILS_K_H
|
||||
|
||||
#include "cdutils_interface.h"
|
||||
#include "cd_utils_export.h"
|
||||
|
||||
|
||||
namespace CDUtils {
|
||||
|
||||
|
||||
class KInterface: public Interface
|
||||
class CD_UTILS_EXPORT KInterface: public Interface
|
||||
{
|
||||
PIOBJECT_SUBCLASS(KInterface, Interface)
|
||||
public:
|
||||
@@ -41,6 +42,6 @@ public:
|
||||
|
||||
}
|
||||
|
||||
extern CDUtils::KInterface K;
|
||||
extern CD_UTILS_EXPORT CDUtils::KInterface K;
|
||||
|
||||
#endif // CDUTILS_K_H
|
||||
|
||||
@@ -21,12 +21,13 @@
|
||||
#define CDUTILS_M_H
|
||||
|
||||
#include "cdutils_interface.h"
|
||||
#include "cd_utils_export.h"
|
||||
|
||||
|
||||
namespace CDUtils {
|
||||
|
||||
|
||||
class MInterface: public Interface
|
||||
class CD_UTILS_EXPORT MInterface: public Interface
|
||||
{
|
||||
PIOBJECT_SUBCLASS(MInterface, Interface)
|
||||
public:
|
||||
@@ -50,6 +51,6 @@ private:
|
||||
|
||||
}
|
||||
|
||||
extern CDUtils::MInterface M;
|
||||
extern CD_UTILS_EXPORT CDUtils::MInterface M;
|
||||
|
||||
#endif // CDUTILS_M_H
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#ifndef CDUTILS_PARSER_H
|
||||
#define CDUTILS_PARSER_H
|
||||
|
||||
#include "cd_utils_export.h"
|
||||
|
||||
class PIIODevice;
|
||||
|
||||
@@ -29,7 +30,7 @@ class CDSection;
|
||||
|
||||
namespace CDParser {
|
||||
|
||||
CDSection parse(PIIODevice * d, int cdsection_type);
|
||||
CD_UTILS_EXPORT CDSection parse(PIIODevice * d, int cdsection_type);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
#ifndef CDUTILS_PROTOCOL_H
|
||||
#define CDUTILS_PROTOCOL_H
|
||||
|
||||
#include "pibytearray.h"
|
||||
#include "pistring.h"
|
||||
#include "cd_utils_export.h"
|
||||
|
||||
namespace CDUtils {
|
||||
|
||||
@@ -48,12 +49,12 @@ namespace CDUtils {
|
||||
|
||||
# pragma pack(push,1)
|
||||
|
||||
struct PacketHeader {
|
||||
struct CD_UTILS_EXPORT PacketHeader {
|
||||
int type; // CDPacketType
|
||||
int session_id;
|
||||
};
|
||||
|
||||
struct PacketKDirectChange {
|
||||
struct CD_UTILS_EXPORT PacketKDirectChange {
|
||||
PIDeque<int> path;
|
||||
PIString value;
|
||||
};
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "pistring.h"
|
||||
#include "pimap.h"
|
||||
#include "pivariant.h"
|
||||
#include "cd_utils_export.h"
|
||||
|
||||
class PIIODevice;
|
||||
class PIEvaluator;
|
||||
@@ -47,7 +48,7 @@ enum MessageType {
|
||||
|
||||
typedef PIFlags<UpdateMode> UpdateModeFlags;
|
||||
|
||||
class CDType {
|
||||
class CD_UTILS_EXPORT CDType {
|
||||
friend class CDSection;
|
||||
friend class CDCore;
|
||||
friend class Interface;
|
||||
@@ -112,7 +113,7 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
class CDSection {
|
||||
class CD_UTILS_EXPORT CDSection {
|
||||
friend class CDCore;
|
||||
friend class Interface;
|
||||
friend class XInterface;
|
||||
|
||||
@@ -21,12 +21,13 @@
|
||||
#define CDUTILS_X_H
|
||||
|
||||
#include "cdutils_interface.h"
|
||||
#include "cd_utils_export.h"
|
||||
|
||||
|
||||
namespace CDUtils {
|
||||
|
||||
|
||||
class XInterface: public Interface
|
||||
class CD_UTILS_EXPORT XInterface: public Interface
|
||||
{
|
||||
PIOBJECT_SUBCLASS(XInterface, Interface)
|
||||
public:
|
||||
@@ -51,6 +52,6 @@ public:
|
||||
|
||||
}
|
||||
|
||||
extern CDUtils::XInterface X;
|
||||
extern CD_UTILS_EXPORT CDUtils::XInterface X;
|
||||
|
||||
#endif // CDUTILS_X_H
|
||||
|
||||
Reference in New Issue
Block a user