mkxp.pro: Add proper method to define RGSS version

Eg. `qmake RGSS_VER=3` for VX Ace. Default is 1 (XP).
This commit is contained in:
Jonas Kulla 2014-08-17 00:16:43 +02:00
parent 52e2f2304a
commit 858c40591b
1 changed files with 26 additions and 5 deletions

View File

@ -45,13 +45,34 @@ contains(BINDING, NULL) {
CONFIG += BINDING_NULL CONFIG += BINDING_NULL
} }
RGSS2 { # TODO: Use RGSS_VER macro instead of RGSSN in C++ sources
DEFINES += RGSS2 isEmpty(RGSS_VER) {
RGSS_VER = 1
} }
# Requires RGSS2 contains(RGSS_VER, 1) {
RGSS3 { _HAVE_RGSS_VER = YES
DEFINES += RGSS3 DEFINES += "RGSS_VER=1"
}
contains(RGSS_VER, 2) {
contains(_HAVE_RGSS_VER, YES) {
error("Only one RGSS version may be selected")
}
_HAVE_RGSS_VER = YES
CONFIG += RGSS2
DEFINES += RGSS2 "RGSS_VER=2"
}
contains(RGSS_VER, 3) {
contains(_HAVE_RGSS_VER, YES) {
error("Only one RGSS version may be selected")
}
_HAVE_RGSS_VER = YES
CONFIG += RGSS2 RGSS3
DEFINES += RGSS2 RGSS3 "RGSS_VER=3"
} }
unix { unix {