1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-27 18:24:27 +01:00

project: revert UNITY_VERSION_* to unity.h

This commit is contained in:
Vitalii Shylienkov
2020-04-14 11:02:24 +02:00
parent b397a72e89
commit a2af08c773
5 changed files with 29 additions and 40 deletions

View File

@@ -4,15 +4,6 @@
#
# license: MIT
#
conf_data = configuration_data()
conf_data.set('PROJECT_VERSION', meson.project_version())
conf_data.set('PROJECT_VERSION_MAJOR',meson.project_version().split('.')[0])
conf_data.set('PROJECT_VERSION_MINOR',meson.project_version().split('.')[1])
conf_data.set('PROJECT_VERSION_PATCH',meson.project_version().split('.')[2])
unity_version_template = join_paths(meson.source_root(), 'cmake/templates/unity_version.h.in')
unity_version_file =configure_file(input : unity_version_template,
output : 'unity_version.h',
configuration : conf_data)
unity_dir = include_directories('.')
unity_lib = static_library(meson.project_name(),

View File

@@ -8,7 +8,10 @@
#define UNITY_FRAMEWORK_H
#define UNITY
#include "unity_version.h"
#define UNITY_VERSION_MAJOR 2
#define UNITY_VERSION_MINOR 5
#define UNITY_VERSION_BUILD 0
#define UNITY_VERSION ((UNITY_VERSION_MAJOR << 16) | (UNITY_VERSION_MINOR << 8) | UNITY_VERSION_BUILD)
#ifdef __cplusplus
extern "C"