Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/core_windows_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ jobs:
echo "OPENSSL_INCLUDE_DIR=$root/include" >> "$GITHUB_ENV"
echo "OPENSSL_CRYPTO_LIBRARY=$root/lib/VC/libcrypto64MT.lib" >> "$GITHUB_ENV"
echo "OPENSSL_SSL_LIBRARY=$root/lib/VC/libssl64MT.lib" >> "$GITHUB_ENV"
# SlProWeb installs provider DLLs beside openssl.exe, while its
# compiled MODULESDIR still names the default installation path.
echo "OPENSSL_MODULES=$root/bin" >> "$GITHUB_ENV"
echo "$root/bin" >> "$GITHUB_PATH"
else
echo "::error::OpenSSL developer libraries not found"
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,5 +103,3 @@ docs/superpowers/
.ccache/
.sccache/

# Generated by GenRevision; 02 writes it to the build tree instead.
src/shared/revision_data.h
7 changes: 3 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ cmake_minimum_required(VERSION 3.18 FATAL_ERROR)
# =============================================================================
# Project setup
# =============================================================================
project(MaNGOS VERSION 0.22.0 LANGUAGES C CXX)
# The version is not given here: cmake/Revision.cmake is its only home.
project(MaNGOS LANGUAGES C CXX)

# Build artefacts never land in the source tree. This is a test, not hygiene:
# sources here still carry relative includes like "../../dep/foo.h", and an
Expand Down Expand Up @@ -233,9 +234,7 @@ if(NOT WIN32 AND SCRIPT_LIB_ELUNA)
find_package(Readline REQUIRED)
endif()

include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/GenRevision.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/EnsureVersion.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/MangosParams.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/Revision.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/SetDefinitions.cmake)

if(PCH)
Expand Down
64 changes: 64 additions & 0 deletions cmake/BuildRevision.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/**
* SPDX-License-Identifier: GPL-3.0-or-later
*
* MaNGOS is a full featured server for World of Warcraft, supporting
* the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8
*
* Copyright (C) 2005-2026 MaNGOS <https://www.getmangos.eu>
*
* 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 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 General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*
* World of Warcraft, and all World of Warcraft or Warcraft art, images,
* and lore are copyrighted by Blizzard Entertainment, Inc.
*/

// Template for BuildRevision.h, written into the BUILD tree by
// cmake/Revision.cmake, which sets every value. Included by one file only:
// src/shared/Common/Revision.cpp. Everything else uses Revision.h.

#ifndef MANGOS_BUILD_REVISION_H
#define MANGOS_BUILD_REVISION_H

#define REVISION_STR R"(@MANGOS_REVISION@)"
#define REVISION_HASH R"(@MANGOS_REVISION_hash@)"
#define REVISION_DATE R"(@MANGOS_REVISION_date@)"
#define REVISION_ELUNA_STR R"(@MANGOS_ELUNA_REVISION@)"
#define REVISION_SD3_STR R"(@MANGOS_SD3_REVISION@)"

#define REVISION_PACKAGE_NAME "@MANGOS_PKG@"
#define REVISION_PROJECT_NR "@MANGOS_REVISION_NR@"
#define REVISION_BUILD_HOST R"(@MANGOS_BUILD_HOST@)"

#define REVISION_WORLD_DB_VERSION "@MANGOS_WORLD_DB_VERSION@"
#define REVISION_WORLD_DB_STRUCTURE "@MANGOS_WORLD_DB_STRUCTURE@"
#define REVISION_WORLD_DB_CONTENT "@MANGOS_WORLD_DB_CONTENT@"
#define REVISION_WORLD_DB_UPDATE "@MANGOS_WORLD_DB_UPDATE@"

#define REVISION_REALMD_DB_VERSION "@MANGOS_REALMD_DB_VERSION@"
#define REVISION_REALMD_DB_STRUCTURE "@MANGOS_REALMD_DB_STRUCTURE@"
#define REVISION_REALMD_DB_CONTENT "@MANGOS_REALMD_DB_CONTENT@"
#define REVISION_REALMD_DB_UPDATE "@MANGOS_REALMD_DB_UPDATE@"

#define REVISION_CHAR_DB_VERSION "@MANGOS_CHAR_DB_VERSION@"
#define REVISION_CHAR_DB_STRUCTURE "@MANGOS_CHAR_DB_STRUCTURE@"
#define REVISION_CHAR_DB_CONTENT "@MANGOS_CHAR_DB_CONTENT@"
#define REVISION_CHAR_DB_UPDATE "@MANGOS_CHAR_DB_UPDATE@"

#define REVISION_CONFIG_DIR R"(@CONF_INSTALL_DIR@/)"
#define REVISION_MANGOSD_CONF_VERSION @MANGOS_WORLD_VER@
#define REVISION_REALMD_CONF_VERSION @MANGOS_REALM_VER@
#define REVISION_AHBOT_CONF_VERSION @MANGOS_AHBOT_VER@
#define REVISION_PLAYERBOT_CONF_VERSION @MANGOS_PLAYERBOT_VER@

#endif
74 changes: 0 additions & 74 deletions cmake/EnsureVersion.cmake

This file was deleted.

Loading
Loading