summaryrefslogtreecommitdiff
path: root/src/common/Configuration/BuiltInConfig.h
blob: 7c0f2cf39aed2d37c2c2020fadb76a3f493e308d (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
/*
 * Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU AGPL v3 license: https://github.com/azerothcore/azerothcore-wotlk/blob/master/LICENSE-AGPL3
 * Copyright (C) 2021+ WarheadCore <https://github.com/WarheadCore>
 */

#ifndef BUILT_IN_CONFIG_H
#define BUILT_IN_CONFIG_H

#include "Define.h"
#include <string>

/// Provides helper functions to access built-in values
/// which can be overwritten in config
namespace BuiltInConfig
{
    /// Returns the CMake command when any is specified in the config,
    /// returns the built-in path otherwise
    AC_COMMON_API std::string GetCMakeCommand();

    /// Returns the build directory path when any is specified in the config,
    /// returns the built-in one otherwise
    AC_COMMON_API std::string GetBuildDirectory();

    /// Returns the source directory path when any is specified in the config,
    /// returns the built-in one otherwise
    AC_COMMON_API std::string GetSourceDirectory();

    /// Returns the path to the mysql executable (`mysql`) when any is specified
    /// in the config, returns the built-in one otherwise
    AC_COMMON_API std::string GetMySQLExecutable();

} // namespace BuiltInConfig

#endif // BUILT_IN_CONFIG_H