mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kdecore: export private class used in tests when testing is enabled
fixes testing build Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bf28f42e43
commit
d356e8f8ff
6 changed files with 13 additions and 6 deletions
|
@ -91,3 +91,6 @@ int snprintf(char *str, size_t n, char const *fmt, ...);
|
||||||
|
|
||||||
/* Defined to 1 if you have a d_type member in struct dirent */
|
/* Defined to 1 if you have a d_type member in struct dirent */
|
||||||
#cmakedefine HAVE_DIRENT_D_TYPE 1
|
#cmakedefine HAVE_DIRENT_D_TYPE 1
|
||||||
|
|
||||||
|
/* Define to 1 if testing is enabled */
|
||||||
|
#cmakedefine ENABLE_TESTING 1
|
||||||
|
|
|
@ -21,17 +21,24 @@
|
||||||
#ifndef KLOCALE_P_H
|
#ifndef KLOCALE_P_H
|
||||||
#define KLOCALE_P_H
|
#define KLOCALE_P_H
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include "klocale.h"
|
#include "klocale.h"
|
||||||
#include "kdayperiod_p.h"
|
#include "kdayperiod_p.h"
|
||||||
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
|
#ifdef ENABLE_TESTING
|
||||||
|
# define KLOCALEPRIVATE_EXPORT KDECORE_EXPORT
|
||||||
|
#else
|
||||||
|
# define KLOCALEPRIVATE_EXPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
class KCatalog;
|
class KCatalog;
|
||||||
|
|
||||||
// Used by both KLocale and KLocalizedString, since they call each other.
|
// Used by both KLocale and KLocalizedString, since they call each other.
|
||||||
std::recursive_mutex& kLocaleMutex();
|
std::recursive_mutex& kLocaleMutex();
|
||||||
|
|
||||||
class KLocalePrivate
|
class KLOCALEPRIVATE_EXPORT KLocalePrivate
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,7 +18,5 @@
|
||||||
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#cmakedefine ENABLE_TESTING
|
|
||||||
|
|
||||||
#cmakedefine UDEV_FOUND
|
#cmakedefine UDEV_FOUND
|
||||||
#cmakedefine LIBCDIO_FOUND
|
#cmakedefine LIBCDIO_FOUND
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include "managerbase_p.h"
|
#include "managerbase_p.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <config-solid.h>
|
|
||||||
|
|
||||||
#include "backends/fstab/fstabmanager.h"
|
#include "backends/fstab/fstabmanager.h"
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
#include <QtCore/QString>
|
#include <QtCore/QString>
|
||||||
|
|
||||||
#include "config-solid.h"
|
#include "config.h"
|
||||||
#include "solid/solid_export.h"
|
#include "solid/solid_export.h"
|
||||||
|
|
||||||
#ifdef ENABLE_TESTING
|
#ifdef ENABLE_TESTING
|
||||||
|
|
|
@ -5,7 +5,6 @@ include_directories(
|
||||||
${KDE4_KDEUI_INCLUDES}
|
${KDE4_KDEUI_INCLUDES}
|
||||||
${KDE4_KIO_INCLUDES}
|
${KDE4_KIO_INCLUDES}
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/../solid/backends/fakehw
|
${CMAKE_CURRENT_SOURCE_DIR}/../solid/backends/fakehw
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/../solid
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue