Refactored CMakeLists.txt

* new pip_module() macro
 * fixed exports
 * automatic gather all exports and pass them to Doxygen and PICodeParser
This commit is contained in:
2020-08-01 21:29:32 +03:00
parent 21111b3e67
commit c7ac4fa551
79 changed files with 389 additions and 531 deletions

View File

@@ -111,7 +111,7 @@ public:
virtual bool waitFor(PIMutex& lk, int timeoutMs, const std::function<bool()>& condition);
private:
PRIVATE_DECLARATION
PRIVATE_DECLARATION(PIP_EXPORT)
};

View File

@@ -28,7 +28,7 @@
template<typename T = PIByteArray>
class PIP_EXPORT PIGrabberBase: public PIThread
class PIGrabberBase: public PIThread
{
PIOBJECT_SUBCLASS(PIGrabberBase, PIThread)
public:

View File

@@ -59,7 +59,7 @@ private:
void init();
void destroy();
PRIVATE_DECLARATION
PRIVATE_DECLARATION(PIP_EXPORT)
};

View File

@@ -243,7 +243,7 @@ protected:
PITimeMeasurer tmf_, tms_, tmr_;
PIThread::Priority priority_;
ThreadFunc ret_func;
PRIVATE_DECLARATION
PRIVATE_DECLARATION(PIP_EXPORT)
private:
bool _startThread(void * func);

View File

@@ -24,7 +24,7 @@
#include <atomic>
class PIThreadPoolExecutor {
class PIP_EXPORT PIThreadPoolExecutor {
public:
explicit PIThreadPoolExecutor(size_t corePoolSize = -1, PIBlockingDequeue<std::function<void()> > * taskQueue_ = 0);