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:
@@ -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(),
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user