summaryrefslogtreecommitdiff
path: root/src/plugins/boostbuildprojectmanager/b2projectmanagerconstants.h
blob: a6db0a1b5b23f8b467a16b9431e656332e7ef2d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//
// Copyright (C) 2013 Mateusz Łoskot <mateusz@loskot.net>
//
// This file is part of Qt Creator Boost.Build plugin project.
//
// This is free software; you can redistribute and/or modify it under
// the terms of the GNU Lesser General Public License, Version 2.1
// as published by the Free Software Foundation.
// See accompanying file LICENSE.txt or copy at
// http://www.gnu.org/licenses/lgpl-2.1-standalone.html.
//
#ifndef BBPROJECTMANAGERCONSTANTS_HPP
#define BBPROJECTMANAGERCONSTANTS_HPP

#include <qglobal.h>

namespace BoostBuildProjectManager {
namespace Constants {

char const BOOSTBUILD[] = "Boost.Build";

char const PROJECT_CONTEXT[] = "BoostBuildProjectManager.ProjectContext";
char const PROJECT_ID[] = "BoostBuildProjectManager.Project";
char const PROJECT_WIZARD_ID[] = "BoostBuildProjectManager.Project.Wizard";
char const PROJECT_READER_TASK_ID[] = "BoostBuildProjectManager.ProjectReader.Task";

char const BUILDCONFIGURATION_ID[] = "BoostBuildProjectManager.BuildConfiguration";
char const BUILDSTEP_ID[] = "BoostBuildProjectManager.BuildStep";

// Keys for class map registry
char const P_KEY_PROJECTNAME[] = "BoostBuildProjectManager.Project.ProjectName";
char const BC_KEY_WORKDIR[] = "BoostBuildProjectManager.BuildConfiguration.WorkingDirectory";
char const BS_KEY_CLEAN[] = "BoostBuildProjectManager.BuildStep.Clean";
char const BS_KEY_ARGUMENTS[] = "BoostBuildProjectManager.BuildStep.AdditionalArguments";

// MIME types and file patterns
char const MIMETYPE_PROJECT[] = "text/x-boostbuild-project";
char const MIMETYPE_JAMFILE[] = "application/vnd.boostbuild.v2";
char const MIMETYPE_JAMFILE_FILES[] = "application/vnd.qtcreator.boostbuild.files";
const char MIMETYPE_JAMFILE_INCLUDES[] = "application/vnd.qtcreator.boostbuild.includes";
char const EXT_JAMFILE_FILES[] = ".qtcreator.files";
char const EXT_JAMFILE_INCLUDES[] = ".qtcreator.includes";

// Command and options
char const COMMAND_BB2[] = "b2";
char const COMMAND_BJAM[] = "bjam";

char const VARIANT_DEBUG[] = QT_TR_NOOP("Debug");
char const VARIANT_RELEASE[] = QT_TR_NOOP("Release");

// ${BOOST}/tools/build/v2/doc/src/architecture.xml
// Since Boost.Build almost always generates targets under the "bin"
char const BUILD_DIR_NAME[] = "bin";

// FileSelectionWizardPage
char const HIDE_FILE_FILTER_SETTING[] = "BoostBuildProjectManager/FileFilter";
char const HIDE_FILE_FILTER_DEFAULT[] = "Makefile*; *.o; *.obj; *~; *.files; *.config; *.creator; *.user; *.includes; *.autosave";
char const SHOW_FILE_FILTER_SETTING[] = "BoostBuildProjectManager/ShowFileFilter";
char const SHOW_FILE_FILTER_DEFAULT[] = "*.c; *.cc; *.cpp; *.cp; *.cxx; *.c++; *.h; *.hh; *.h; *.hxx;";

// Meaningful names for common boolean values
bool const FileNotGenerated = false;
bool const ReturnValueNotIgnored = false;

} // namespace Constants
} // namespace BoostBuildProjectManager

#endif // BBPROJECTMANAGERCONSTANTS_HPP