From 9d7cd404cc2d09c82b65be4828be0ac74eca20a7 Mon Sep 17 00:00:00 2001 From: gcontini <1121667+gcontini@users.noreply.github.com> Date: 周三, 01 1月 2020 20:26:43 +0800 Subject: [PATCH] cleanup & new api --- src/templates/licensecc_properties.h.in | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/templates/licensecc_properties.h.in b/src/templates/licensecc_properties.h.in index 52b7d98..6839823 100644 --- a/src/templates/licensecc_properties.h.in +++ b/src/templates/licensecc_properties.h.in @@ -1,17 +1,19 @@ #ifndef BUILD_PROPERTIES_H_ #define BUILD_PROPERTIES_H_ -#define PROJECT_INT_VERSION @LICENSECC_INT_VERSION@ -#define PROJECT_VERSION "@LICENSECC_VERSION@" +#define LCC_PROJECT_NAME "@LCC_PROJECT_NAME@" //License retrieval configuration -#define FIND_LICENSE_NEAR_MODULE 1 -#define FIND_LICENSE_WITH_ENV_VAR 1 +#define FIND_LICENSE_NEAR_MODULE true +#define FIND_LICENSE_WITH_ENV_VAR false +#define LICENSE_FILE_EXTENSION ".lic" #define LICENSE_LOCATION_ENV_VAR "LICENSE_LOCATION" #define LICENSE_DATA_ENV_VAR "LICENSE_DATA" //Internal data structures limits -#define MAX_LICENSE_LENGTH 256*1024 +#define MAX_LICENSE_LENGTH 256 * 1024 + +#define VERIFY_MAGIC (lic_info.m_magic == @LCC_PROJECT_MAGIC_NUM@) #endif -- Gitblit v1.9.1