1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

Corrected compilation of UAVTalk plugin for windows (class export)

OP-15: Added stub plugin for rawhid code

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@322 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
julien 2010-03-15 22:09:47 +00:00 committed by julien
parent 2dbbe2ffc5
commit b15c803328
23 changed files with 181 additions and 30 deletions

View File

@ -18,6 +18,11 @@ plugin_coreplugin.subdir = coreplugin
plugin_welcome.subdir = welcome
plugin_welcome.depends = plugin_coreplugin
# RawHID plug-in
SUBDIRS += plugin_rawhid
plugin_rawhid.subdir = rawhid
plugin_rawhid.depends = plugin_coreplugin
# UAVObjects plug-in
SUBDIRS += plugin_uavobjects
plugin_uavobjects.subdir = uavobjects

View File

@ -0,0 +1,10 @@
<plugin name="RawHID" version="1.0.0" compatVersion="1.0.0">
<vendor>The OpenPilot Project</vendor>
<copyright>(C) 2010 OpenPilot Project</copyright>
<license>GNU Public License (GPL) Version 3</license>
<description>Connection to OpenPilot board using RawHID USB interface</description>
<url>http://www.openpilot.org</url>
<dependencyList>
<dependency name="Core" version="1.0.0"/>
</dependencyList>
</plugin>

View File

@ -0,0 +1,3 @@
include(rawhid_dependencies.pri)
LIBS *= -l$$qtLibraryTarget(RawHID)

View File

@ -0,0 +1,15 @@
TEMPLATE = lib
TARGET = RawHID
include(../../openpilotgcsplugin.pri)
include(rawhid_dependencies.pri)
HEADERS += rawhidplugin.h
SOURCES += rawhidplugin.cpp
FORMS +=
RESOURCES +=
DEFINES += RAWHID_LIBRARY
OTHER_FILES += RawHID.pluginspec

View File

@ -0,0 +1 @@
include(../../plugins/coreplugin/coreplugin.pri)

View File

@ -0,0 +1,59 @@
/**
******************************************************************************
*
* @file rawhidplugin.cpp
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup welcomeplugin
* @{
*
*****************************************************************************/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include "rawhidplugin.h"
#include <extensionsystem/pluginmanager.h>
#include <QtCore/QtPlugin>
RawHIDPlugin::RawHIDPlugin()
{
}
RawHIDPlugin::~RawHIDPlugin()
{
}
void RawHIDPlugin::extensionsInitialized()
{
}
bool RawHIDPlugin::initialize(const QStringList & arguments, QString * errorString)
{
Q_UNUSED(arguments);
Q_UNUSED(errorString);
return true;
}
Q_EXPORT_PLUGIN(RawHIDPlugin)

View File

@ -0,0 +1,50 @@
/**
******************************************************************************
*
* @file rawhid.h
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup welcomeplugin
* @{
*
*****************************************************************************/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef RAWHIDPLUGIN_H
#define RAWHIDPLUGIN_H
#include <extensionsystem/iplugin.h>
class RawHIDPlugin
: public ExtensionSystem::IPlugin
{
Q_OBJECT
public:
RawHIDPlugin();
~RawHIDPlugin();
bool initialize(const QStringList &arguments, QString *error_message);
void extensionsInitialized();
};
#endif // RAWHIDPLUGIN_H

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/
@ -28,12 +28,13 @@
#ifndef UAVDATAOBJECT_H
#define UAVDATAOBJECT_H
#include "uavobjects_global.h"
#include "uavobject.h"
#include "uavobjectfield.h"
#include "uavmetaobject.h"
#include <QList>
class UAVDataObject: public UAVObject
class UAVOBJECTS_EXPORT UAVDataObject: public UAVObject
{
Q_OBJECT

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/
@ -28,9 +28,10 @@
#ifndef UAVMETAOBJECT_H
#define UAVMETAOBJECT_H
#include "uavobjects_global.h"
#include "uavobject.h"
class UAVMetaObject: public UAVObject
class UAVOBJECTS_EXPORT UAVMetaObject: public UAVObject
{
Q_OBJECT

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/
@ -28,6 +28,7 @@
#ifndef UAVOBJECT_H
#define UAVOBJECT_H
#include "uavobjects_global.h"
#include <QtGlobal>
#include <QObject>
#include <QMutex>
@ -38,7 +39,7 @@
class UAVObjectField;
class UAVObject: public QObject
class UAVOBJECTS_EXPORT UAVObject: public QObject
{
Q_OBJECT

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/
@ -28,11 +28,12 @@
#ifndef UAVOBJECTFIELD_H
#define UAVOBJECTFIELD_H
#include "uavobjects_global.h"
#include "uavobject.h"
class UAVObject;
class UAVObjectField: public QObject
class UAVOBJECTS_EXPORT UAVObjectField: public QObject
{
Q_OBJECT

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/
@ -28,6 +28,7 @@
#ifndef UAVOBJECTMANAGER_H
#define UAVOBJECTMANAGER_H
#include "uavobjects_global.h"
#include "uavobject.h"
#include "uavdataobject.h"
#include "uavmetaobject.h"
@ -35,7 +36,7 @@
#include <QMutex>
#include <QMutexLocker>
class UAVObjectManager: public QObject
class UAVOBJECTS_EXPORT UAVObjectManager: public QObject
{
Q_OBJECT

View File

@ -4,7 +4,8 @@ TARGET = UAVObjects
include(../../openpilotgcsplugin.pri)
include(uavobjects_dependencies.pri)
HEADERS += uavobject.h \
HEADERS += uavobjects_global.h \
uavobject.h \
uavmetaobject.h \
uavobjectmanager.h \
uavdataobject.h \
@ -20,4 +21,5 @@ SOURCES += uavobject.cpp \
uavobjectsinit.cpp \
uavobjectsplugin.cpp
DEFINES += UAVOBJECTS_LIBRARY
OTHER_FILES += UAVObjects.pluginspec

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/

View File

@ -6,7 +6,7 @@
* Parts by Nokia Corporation (qt-info@nokia.com) Copyright (C) 2009.
* @brief
* @see The GNU Public License (GPL) Version 3
* @defgroup
* @defgroup uavobjects_plugin
* @{
*
*****************************************************************************/
@ -28,11 +28,12 @@
#ifndef UAVOBJECTSPLUGIN_H
#define UAVOBJECTSPLUGIN_H
#include "uavobjects_global.h"
#include <extensionsystem/iplugin.h>
#include <QtPlugin>
#include "uavobjectmanager.h"
class UAVObjectsPlugin:
class UAVOBJECTS_EXPORT UAVObjectsPlugin:
public ExtensionSystem::IPlugin
{
Q_OBJECT

View File

@ -37,4 +37,4 @@
# define WELCOME_EXPORT Q_DECL_IMPORT
#endif
#endif // CPPEDITOR_GLOBAL_H
#endif // WELCOME_GLOBAL_H