build: make clearer mandatory installer-needed macros.

Instead of replacing various needed macros with random hardcoded values,
just make them mandatory and exit with explicit error when a needed
macro is missing.
This commit is contained in:
Jehan 2022-03-19 13:48:37 +01:00
parent e4cbfab5ae
commit 4b9f7b2512
1 changed files with 21 additions and 13 deletions

View File

@ -80,20 +80,28 @@
#pragma option -e+
#ifndef VERSION
#define DEVEL "is6"
#define VERSION "2.10.12"
#define NOFILES
#define GIMP_DIR "W:\msys64-gtk2\opt\output\2.10.12"
#define DIR32 "i686-w64-mingw32"
#define DIR64 "x86_64-w64-mingw32"
#define DEPS_DIR "W:\msys64-gtk2\opt\comb"
#define DDIR32 "mingw32"
#define DDIR64 "mingw64"
#define PYTHON
#define LUA
#define DEBUG_SYMBOLS
#define NOCOMPRESSION
#error VERSION must be defined
#endif
#ifndef GIMP_DIR
#error GIMP_DIR must be defined
#endif
#ifndef DIR32
#error DIR32 must be defined
#endif
#ifndef DIR64
#error DIR64 must be defined
#endif
#ifndef DEPS_DIR
#error DEPS_DIR must be defined
#endif
#ifndef DDIR32
#error DDIR32 must be defined
#endif
#ifndef DDIR64
#error DDIR64 must be defined
#endif
; Optional: PYTHON, LUA, DEBUG_SYMBOLS, NOCOMPRESSION, NOFILES, DEVEL
#include "directories.isi"
#include "version.isi"