Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:CobrA_SK
fcmake
app.h
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File app.h of Package fcmake
/*************************************************************************** * Copyright (C) 2008 Brno University of Technology, * * Faculty of Information Technology * * Author(s): Marek Vavrusa <xvavru00 AT stud.fit.vutbr.cz> * * Zdenek Vasicek <vasicek AT fit.vutbr.cz> * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU Library General Public License as * * published by the Free Software Foundation; either version 2 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 Library General Public * * License along with this program; if not, write to the * * Free Software Foundation, Inc., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #ifndef FCMAKEAPP_H #define FCMAKEAPP_H #include <QString> #include <QDomElement> #include <QList> #include <QDir> #define LIBFITKIT_PATH "mcu/libfitkit" typedef QList<QDir> QDirList; namespace FCMake { class Category; class App { public: static const char* MCU_DIR; static const char* FPGA_DIR; enum Target { Unknown = 0, Project, Library, Package }; public: App(const QString& path = QString(), Category* cat = 0); ~App(); bool load(const QString& path); QString path(); bool parse(); bool createMakefile(const QString& fcmakePath = QString(), const QString& fkflashPath = QString()); bool clean(bool cleanAll = false); Category* category(); const QString& name(); const QString& revision(); const QString& author(); const QString& email(); const QString& description(); const QString& outputPrefix(); const QString& binFilePath(); const QString& hexFilePath(); const QString& readme(); bool isCompiled(); bool isUpdated(); bool hasReadme(); protected: bool parse(bool isInclude); bool checkElement(QDomElement& element); bool getElementFiles(const QString& section, QDomElement& element, QStringList* list, QDirList& dirList); bool getFpgaFiles(QDomElement& element, QDirList* dirs = 0); bool getMcuFiles(QDomElement& element, QDirList* dirs = 0); bool parseInclude(const QString& section, const QString& path, QStringList* list); bool cleanDir(QString path, bool isBuildDir, bool cleanAll); bool parseCheck(); private: class Private; Private *d; }; } #endif
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor