build: stop defining unused VERSION
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 23 Nov 2018 16:37:50 +0000 (16:37 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Mon, 26 Nov 2018 22:05:02 +0000 (22:05 +0000)
Scons and autotools don't define it, and as of last commit nothing
uses it.

`VERSION` is also a generic enough name that something somewhere will
eventually clash, and we don't want to repeat the LLVM `DEBUG` fiasco.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Android.common.mk
meson.build

index aa1b266a393266293b3aba6606a390107e038d3a..60459d16ebae49723a5602b2d09bb65b5f2073b3 100644 (file)
@@ -37,7 +37,6 @@ LOCAL_CFLAGS += \
        -Wno-missing-field-initializers \
        -Wno-initializer-overrides \
        -Wno-mismatched-tags \
-       -DVERSION=\"$(MESA_VERSION)\" \
        -DPACKAGE_VERSION=\"$(MESA_VERSION)\" \
        -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\"
 
index 33f4e5ad3cf3b620ad2a79a2c29f9bd0bf323868..df9043e03fd8a1a1132b8ea0cb5ce130df5d28e7 100644 (file)
@@ -43,8 +43,7 @@ pre_args = [
   '-D__STDC_CONSTANT_MACROS',
   '-D__STDC_FORMAT_MACROS',
   '-D__STDC_LIMIT_MACROS',
-  '-DVERSION="@0@"'.format(meson.project_version()),
-  '-DPACKAGE_VERSION=VERSION',
+  '-DPACKAGE_VERSION="@0@"'.format(meson.project_version()),
   '-DPACKAGE_BUGREPORT="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa"',
 ]