mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 02:06:04 +02:00
Building Poco 1.5.2 for Synology RS812+ (Intel Atom) #405
This commit is contained in:
@@ -120,6 +120,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// Define to disable compilation of DirectoryWatcher
|
||||||
|
// on platforms with no inotify.
|
||||||
|
// #define POCO_NO_INOTIFY
|
||||||
|
|
||||||
|
|
||||||
// Following are options to remove certain features
|
// Following are options to remove certain features
|
||||||
// to reduce library/executable size for smaller
|
// to reduce library/executable size for smaller
|
||||||
// embedded platforms. By enabling these options,
|
// embedded platforms. By enabling these options,
|
||||||
|
|||||||
@@ -41,6 +41,11 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "Poco/Foundation.h"
|
#include "Poco/Foundation.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef POCO_NO_INOTIFY
|
||||||
|
|
||||||
|
|
||||||
#include "Poco/File.h"
|
#include "Poco/File.h"
|
||||||
#include "Poco/BasicEvent.h"
|
#include "Poco/BasicEvent.h"
|
||||||
#include "Poco/Runnable.h"
|
#include "Poco/Runnable.h"
|
||||||
@@ -242,4 +247,8 @@ inline const File& DirectoryWatcher::directory() const
|
|||||||
} // namespace Poco
|
} // namespace Poco
|
||||||
|
|
||||||
|
|
||||||
|
#endif // POCO_NO_INOTIFY
|
||||||
|
|
||||||
|
|
||||||
#endif // Foundation_DirectoryWatcher_INCLUDED
|
#endif // Foundation_DirectoryWatcher_INCLUDED
|
||||||
|
|
||||||
|
|||||||
@@ -35,6 +35,11 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "Poco/DirectoryWatcher.h"
|
#include "Poco/DirectoryWatcher.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef POCO_NO_INOTIFY
|
||||||
|
|
||||||
|
|
||||||
#include "Poco/Path.h"
|
#include "Poco/Path.h"
|
||||||
#include "Poco/Glob.h"
|
#include "Poco/Glob.h"
|
||||||
#include "Poco/DirectoryIterator.h"
|
#include "Poco/DirectoryIterator.h"
|
||||||
@@ -616,3 +621,6 @@ bool DirectoryWatcher::supportsMoveEvents() const
|
|||||||
|
|
||||||
|
|
||||||
} // namespace Poco
|
} // namespace Poco
|
||||||
|
|
||||||
|
|
||||||
|
#endif // POCO_NO_INOTIFY
|
||||||
|
|||||||
@@ -31,6 +31,11 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "DirectoryWatcherTest.h"
|
#include "DirectoryWatcherTest.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef POCO_NO_INOTIFY
|
||||||
|
|
||||||
|
|
||||||
#include "CppUnit/TestCaller.h"
|
#include "CppUnit/TestCaller.h"
|
||||||
#include "CppUnit/TestSuite.h"
|
#include "CppUnit/TestSuite.h"
|
||||||
#include "Poco/DirectoryWatcher.h"
|
#include "Poco/DirectoryWatcher.h"
|
||||||
@@ -312,3 +317,6 @@ CppUnit::Test* DirectoryWatcherTest::suite()
|
|||||||
|
|
||||||
return pSuite;
|
return pSuite;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#endif // POCO_NO_INOTIFY
|
||||||
|
|||||||
@@ -37,6 +37,11 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "Poco/Foundation.h"
|
#include "Poco/Foundation.h"
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef POCO_NO_INOTIFY
|
||||||
|
|
||||||
|
|
||||||
#include "Poco/DirectoryWatcher.h"
|
#include "Poco/DirectoryWatcher.h"
|
||||||
#include "Poco/Path.h"
|
#include "Poco/Path.h"
|
||||||
#include "CppUnit/TestCase.h"
|
#include "CppUnit/TestCase.h"
|
||||||
@@ -80,4 +85,9 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // POCO_NO_INOTIFY
|
||||||
|
|
||||||
|
|
||||||
#endif // DirectoryWatcherTest_INCLUDED
|
#endif // DirectoryWatcherTest_INCLUDED
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,9 @@ CppUnit::Test* FilesystemTestSuite::suite()
|
|||||||
pSuite->addTest(PathTest::suite());
|
pSuite->addTest(PathTest::suite());
|
||||||
pSuite->addTest(FileTest::suite());
|
pSuite->addTest(FileTest::suite());
|
||||||
pSuite->addTest(GlobTest::suite());
|
pSuite->addTest(GlobTest::suite());
|
||||||
|
#ifndef POCO_NO_INOTIFY
|
||||||
pSuite->addTest(DirectoryWatcherTest::suite());
|
pSuite->addTest(DirectoryWatcherTest::suite());
|
||||||
|
#endif // POCO_NO_INOTIFY
|
||||||
pSuite->addTest(DirectoryIteratorsTest::suite());
|
pSuite->addTest(DirectoryIteratorsTest::suite());
|
||||||
|
|
||||||
return pSuite;
|
return pSuite;
|
||||||
|
|||||||
Reference in New Issue
Block a user