Moved version stuff to q_version.h

This commit is contained in:
OM 2023-06-19 19:57:50 +02:00
parent f7e18fe7c1
commit 19b4ba5db0
4 changed files with 40 additions and 11 deletions

View file

@ -29,6 +29,8 @@ target_include_directories(qcommon INTERFACE "../qcommon" "../script")
target_compile_features(qcommon INTERFACE cxx_nullptr)
target_compile_features(qcommon INTERFACE c_variadic_macros)
include("./q_version.cmake")
# Source files for standalone executable
set(SOURCES_COMMON
"${CMAKE_SOURCE_DIR}/code/qcommon/alias.c"

View file

@ -19,27 +19,20 @@ along with Quake III Arena source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
//
#pragma once
// q_shared.h -- included first by ALL program modules.
// A user mod should never modify this file
#pragma once
#include "q_version.h"
#if defined(__cplusplus)
extern "C" {
#endif
#define PRODUCT_NAME "OpenMoHAA"
//
// Version
//
// These values are the only one that must be set for the version
#define PRODUCT_VERSION_MAJOR 0
#define PRODUCT_VERSION_MINOR 55
#define PRODUCT_VERSION_PATCH 1
#define PRODUCT_VERSION_STAGE "alpha"
//
// Version display
//

View file

34
code/qcommon/q_version.h Normal file
View file

@ -0,0 +1,34 @@
/*
===========================================================================
Copyright (C) 2023 the OpenMoHAA team
This file is part of OpenMoHAA source code.
OpenMoHAA source code 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.
OpenMoHAA source code 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 OpenMoHAA source code; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
===========================================================================
*/
// q_version.h -- file versioning
#pragma once
//
// Version
//
// These values are the only one that must be set for the version
#define PRODUCT_VERSION_MAJOR 0
#define PRODUCT_VERSION_MINOR 55
#define PRODUCT_VERSION_PATCH 1
#define PRODUCT_VERSION_STAGE "alpha"