Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

librarydetectionconfig.h

/*
* This file is part of lib_finder plugin for Code::Blocks Studio
* Copyright (C) 2006-2007  Bartlomiej Swiecki
*
* wxSmith 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 2 of the License, or
* (at your option) any later version.
*
* wxSmith 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 wxSmith; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*
* $Revision: 4504 $
* $Id: wxsmithpluginregistrants.cpp 4504 2007-10-02 21:52:30Z byo $
* $HeadURL: svn+ssh://byo@svn.berlios.de/svnroot/repos/codeblocks/trunk/src/plugins/contrib/wxSmith/plugin/wxsmithpluginregistrants.cpp $
*/

#ifndef LIBRARYCONFIG_H
#define LIBRARYCONFIG_H

#include <wx/arrstr.h>
#include <wx/string.h>
#include <vector>

/** \brief Requirement which must be meet for this library to be detected */
00032 struct LibraryDetectionFilter
{
00034     enum FilterType
    {
00036         None,       ///< \brief Nothing is required by this filter
00037         File,       ///< \brief Some file is required
00038         Platform,   ///< \brief Some platform is required
00039         Exec,       ///< \brief Some executable is required
00040         PkgConfig,  ///< \brief Configuration in pkg-config is required
00041         Compiler,   ///< \brief Some compiler is required
    };

    /** \brief Type of filter */
00045     FilterType Type;

    /** \brief Value required by the filter (f.ex. file name pattern) */
00048     wxString Value;
};

/** \brief Configuration of the library */
00052 struct LibraryDetectionConfig
{
    /** \brief Description of the library */
00055     wxString Description;

    /** \brief Pkg-Config variable name */
00058     wxString PkgConfigVar;

    /** \brief Set of filters required by the library */
00061     std::vector<LibraryDetectionFilter> Filters;

    /** \brief Set of include directories. If more than one is provided,
     *  first one will be set in global var, other will be added through
     *  cflags.
     *
     *  Include path may use internal variables in form $(VAR_NAME) and
     *  variable $(BASE_DIR) pointing to base directory */
00069     wxArrayString IncludePaths;

    /** \brief Set of lib directories. If more than one is provided,
     *  first one will be set in global var, other will be added through
     *  lflags.
     *
     *  Lib path may use internal variables in form $(VAR_NAME) and
     *  variable $(BASE_DIR) pointing to base directory */
00077     wxArrayString LibPaths;

    /** \brief List of libraries which should be added */
00080     wxArrayString Libs;

    /** \brief List of defines which should be added */
00083     wxArrayString Defines;

    /** \brief Set of obj directories. If more than one is provided,
     *  first one will be set in global var, other will be added through
     *  lflags.
     *
     *  Obj path may use internal variables in form $(VAR_NAME) and
     *  variable $(BASE_DIR) pointing to base directory */
00091     wxArrayString ObjPaths;

    /** \brief Global cflags
     *
     * Internal variables and $(BASE_DIR) may be used here. */
00096     wxArrayString CFlags;

    /** \brief Global lflags
     *
     * Internal variables and $(BASE_DIR) may be used here. */
00101     wxArrayString LFlags;

    /** \brief List of headers used by this library */
00104     wxArrayString Headers;

    /** \brief List of other libraries required by this one */
00107     wxArrayString Require;
};

/** \brief Structure containing set of detection configurations for given library */
00111 struct LibraryDetectionConfigSet
{
    /** \brief Library's shortcode */
00114     wxString ShortCode;

    /** \brief Name of library, may use internal variables in form $(VAR_NAME) */
00117     wxString LibraryName;

    /** \brief Category list */
00120     wxArrayString Categories;

    /** \brief Version of detection settings */
00123     int Version;

    /** \brief Detection settings */
00126     std::vector< LibraryDetectionConfig > Configurations;
};

#endif

Generated by  Doxygen 1.6.0   Back to index