This is an automated email from the git hooks/post-receive script. nicobou-guest pushed a commit to branch master in repository oolite.
commit d15cb188008f2cb76405bf4d175870a2981d8d6a Author: Nicolas Boulenguez <[email protected]> Date: Thu Jul 28 14:02:25 2016 +0200 Simplify preprocessor variables data flow. --- debian/patches/series | 1 + debian/patches/simplify_gnumakefile.diff | 185 +++++++++++++++++++++++++++++++ 2 files changed, 186 insertions(+) diff --git a/debian/patches/series b/debian/patches/series index 9a00ca2..2573430 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,5 +5,6 @@ secure-format-log-string-1.84.diff # gnustep_app_builder.diff avoid_date_cpp_macro.diff fix-desktop-file.diff +simplify_gnumakefile.diff avoid_depending_on_xcode.diff typo-identifer.diff diff --git a/debian/patches/simplify_gnumakefile.diff b/debian/patches/simplify_gnumakefile.diff new file mode 100644 index 0000000..6c8e961 --- /dev/null +++ b/debian/patches/simplify_gnumakefile.diff @@ -0,0 +1,185 @@ +Description: simplify preprocessor variables data flow + Each prepocessor variable is either never defined or defined once in + GNUMakefile with value 1 (so that #if and #ifdef are equivalent). + . + Style: factorize espeak lines with a DYNAMIC_LIBRARY_EXTENSION variable. + . + Initial motivation: remove numerous CPP warnings about + OO_CHECK_GL_HEAVY being defined twice. + . + Style: make explicit GNUMakefile that OO_OXP_VERIFIER_ENABLED is + influenced by BUILD_WITH_DEBUG_FUNCTIONALITY. + . + Fix: OO_LOCALIZATION_TOOLS was enabled when + DEPLOYMENT_RELEASE_CONFIGURATION=no and OO_LOCALIZATION_TOOLS=no, + which was probably not intended. + . + Fix: typo in -DOO_FOV_INFLIGHT_CONTROL_ENABLEDD=0. +Author: Nicolas Boulenguez <[email protected]> + +--- a/GNUmakefile ++++ b/GNUmakefile +@@ -34,11 +34,7 @@ + ADDITIONAL_LDFLAGS += + endif + oolite_LIB_DIRS += -L$(GNUSTEP_LOCAL_ROOT)/lib -L$(WIN_DEPS_DIR)/lib -L$(JS_LIB_DIR) +- ifeq ($(ESPEAK),yes) +- ADDITIONAL_OBJC_LIBS += -lespeak.dll +- ADDITIONAL_OBJCFLAGS +=-DHAVE_LIBESPEAK=1 +- GNUSTEP_OBJ_DIR_NAME := $(GNUSTEP_OBJ_DIR_NAME).spk +- endif ++ DYNAMIC_LIBRARY_EXTENSION := .dll + else + ADDITIONAL_INCLUDE_DIRS = -Isrc/SDL -Isrc/Core -Isrc/BSDCompat -Isrc/Core/Scripting -Isrc/Core/Materials -Isrc/Core/Entities -Isrc/Core/OXPVerifier -Isrc/Core/Debug -Isrc/Core/Tables + ADDITIONAL_OBJC_LIBS = -lgnustep-base -lstdc++ +@@ -53,11 +49,6 @@ + else + PKG_CONFIG_LIBRARIES += libpng + endif +- ifeq ($(ESPEAK),yes) +- ADDITIONAL_OBJC_LIBS += -lespeak +- ADDITIONAL_OBJCFLAGS += -DHAVE_LIBESPEAK=1 +- GNUSTEP_OBJ_DIR_NAME := $(GNUSTEP_OBJ_DIR_NAME).spk +- endif + ifeq ($(OO_JAVASCRIPT_TRACE),yes) + ADDITIONAL_OBJCFLAGS += -DMOZ_TRACE_JSCALLS=1 + endif +@@ -77,11 +68,18 @@ + ADDITIONAL_CFLAGS += -g -O0 + ADDITIONAL_OBJCFLAGS += -g -O0 + GNUSTEP_OBJ_DIR_NAME := $(GNUSTEP_OBJ_DIR_NAME).dbg +- ADDITIONAL_CFLAGS += -DDEBUG -DOO_DEBUG -DOO_CHECK_GL_HEAVY=1 +- ADDITIONAL_OBJCFLAGS += -DDEBUG -DOO_DEBUG -DOO_CHECK_GL_HEAVY=1 ++ ADDITIONAL_CFLAGS += -DDEBUG -DOO_DEBUG ++ ADDITIONAL_OBJCFLAGS += -DDEBUG -DOO_DEBUG + endif + + # these are common settings for both test and deployment release configurations ++ ++ifeq ($(ESPEAK),yes) ++ ADDITIONAL_OBJC_LIBS += -lespeak$(DYNAMIC_LIBRARY_EXTENSION) ++ ADDITIONAL_OBJCFLAGS += -DHAVE_LIBESPEAK ++ GNUSTEP_OBJ_DIR_NAME := $(GNUSTEP_OBJ_DIR_NAME).spk ++endif ++ + ifeq ($(NO_SHADERS),yes) + ADDITIONAL_CFLAGS += -DNO_SHADERS=1 + ADDITIONAL_OBJCFLAGS += -DNO_SHADERS=1 +@@ -93,46 +91,62 @@ + + # DEPLOYMENT_RELEASE_CONFIGURATION value is passed from Makefile. Note that the deployment release settings + # are forced, while test release settings are adjustable. ++ + ifeq ($(DEPLOYMENT_RELEASE_CONFIGURATION),yes) + ADDITIONAL_CFLAGS += -DNDEBUG + ADDITIONAL_OBJCFLAGS += -DNDEBUG +- ADDITIONAL_CFLAGS += -DOO_CHECK_GL_HEAVY=0 +- ADDITIONAL_OBJCFLAGS += -DOO_CHECK_GL_HEAVY=0 +- ADDITIONAL_CFLAGS += -DOO_EXCLUDE_DEBUG_SUPPORT=1 +- ADDITIONAL_OBJCFLAGS += -DOO_EXCLUDE_DEBUG_SUPPORT=1 +- ADDITIONAL_CFLAGS += -DOO_OXP_VERIFIER_ENABLED=0 +- ADDITIONAL_OBJCFLAGS += -DOO_OXP_VERIFIER_ENABLED=0 +- ADDITIONAL_CFLAGS += -DOO_LOCALIZATION_TOOLS=0 +- ADDITIONAL_OBJCFLAGS += -DOO_LOCALIZATION_TOOLS=0 +- ADDITIONAL_CFLAGS += -DDEBUG_GRAPHVIZ=0 +- ADDITIONAL_OBJCFLAGS += -DDEBUG_GRAPHVIZ=0 +- ADDITIONAL_CFLAGS += -DOO_FOV_INFLIGHT_CONTROL_ENABLED=0 +- ADDITIONAL_OBJCFLAGS += -DOO_FOV_INFLIGHT_CONTROL_ENABLEDD=0 + else + ifeq ($(BUILD_WITH_DEBUG_FUNCTIONALITY),no) + ADDITIONAL_CFLAGS += -DNDEBUG + ADDITIONAL_OBJCFLAGS += -DNDEBUG + endif ++endif ++ ++ifeq ($(DEPLOYMENT_RELEASE_CONFIGURATION),no) + ifeq ($(OO_CHECK_GL_HEAVY),yes) + ADDITIONAL_CFLAGS += -DOO_CHECK_GL_HEAVY=1 + ADDITIONAL_OBJCFLAGS += -DOO_CHECK_GL_HEAVY=1 ++ else ifeq ($(debug),yes) ++ ADDITIONAL_CFLAGS += -DOO_CHECK_GL_HEAVY ++ ADDITIONAL_OBJCFLAGS += -DOO_CHECK_GL_HEAVY + endif ++endif ++ ++ifeq ($(DEPLOYMENT_RELEASE_CONFIGURATION),yes) ++ ADDITIONAL_CFLAGS += -DOO_EXCLUDE_DEBUG_SUPPORT ++ ADDITIONAL_OBJCFLAGS += -DOO_EXCLUDE_DEBUG_SUPPORT ++else + ifeq ($(OO_EXCLUDE_DEBUG_SUPPORT),yes) + ADDITIONAL_CFLAGS += -DOO_EXCLUDE_DEBUG_SUPPORT=1 + ADDITIONAL_OBJCFLAGS += -DOO_EXCLUDE_DEBUG_SUPPORT=1 + endif ++endif ++ ++ifeq ($(DEPLOYMENT_RELEASE_CONFIGURATION),no) + ifeq ($(OO_OXP_VERIFIER_ENABLED),yes) + ADDITIONAL_CFLAGS += -DOO_OXP_VERIFIER_ENABLED=1 + ADDITIONAL_OBJCFLAGS += -DOO_OXP_VERIFIER_ENABLED=1 ++ else ifeq ($(BUILD_WITH_DEBUG_FUNCTIONALITY),yes) ++ ADDITIONAL_CFLAGS += -DOO_OXP_VERIFIER_ENABLED ++ ADDITIONAL_OBJCFLAGS += -DOO_OXP_VERIFIER_ENABLED + endif ++endif ++ ++ifeq ($(DEPLOYMENT_RELEASE_CONFIGURATION),no) + ifeq ($(OO_LOCALIZATION_TOOLS),yes) + ADDITIONAL_CFLAGS += -DOO_LOCALIZATION_TOOLS=1 + ADDITIONAL_OBJCFLAGS += -DOO_LOCALIZATION_TOOLS=1 + endif ++endif ++ ++ifeq ($(DEPLOYMENT_RELEASE_CONFIGURATION),no) + ifeq ($(DEBUG_GRAPHVIZ),yes) + ADDITIONAL_CFLAGS += -DDEBUG_GRAPHVIZ=1 + ADDITIONAL_OBJCFLAGS += -DDEBUG_GRAPHVIZ=1 + endif ++endif ++ ++ifeq ($(DEPLOYMENT_RELEASE_CONFIGURATION),no) + ifeq ($(OO_FOV_INFLIGHT_CONTROL_ENABLED),yes) + ADDITIONAL_CFLAGS += -DOO_FOV_INFLIGHT_CONTROL_ENABLED=1 + ADDITIONAL_OBJCFLAGS += -DOO_FOV_INFLIGHT_CONTROL_ENABLED=1 +--- a/src/Core/OOOpenGL.h ++++ b/src/Core/OOOpenGL.h +@@ -222,10 +222,6 @@ + OOGLEND() calls glEnd(). + CheckOpenGLErrorsHeavy() does nothing (including not performing any parameter side-effects). + */ +-#ifndef OO_CHECK_GL_HEAVY +-#define OO_CHECK_GL_HEAVY 0 +-#endif +- + + #if OO_CHECK_GL_HEAVY + +--- a/src/Core/Universe.h ++++ b/src/Core/Universe.h +@@ -159,10 +159,6 @@ + // once this number has been in a stable release, cannot easily be changed + #define SYSTEM_REPOPULATION_INTERVAL 20.0f; + +-#ifndef OO_LOCALIZATION_TOOLS +-#define OO_LOCALIZATION_TOOLS 1 +-#endif +- + #ifndef MASS_DEPENDENT_FUEL_PRICES + #define MASS_DEPENDENT_FUEL_PRICES 1 + #endif +--- a/src/Core/OXPVerifier/OOOXPVerifier.h ++++ b/src/Core/OXPVerifier/OOOXPVerifier.h +@@ -29,14 +29,6 @@ + + */ + +-#ifndef OO_OXP_VERIFIER_ENABLED +- #ifdef NDEBUG +- #define OO_OXP_VERIFIER_ENABLED 0 +- #else +- #define OO_OXP_VERIFIER_ENABLED 1 +- #endif +-#endif +- + #if OO_OXP_VERIFIER_ENABLED + + #import "OOCocoa.h" -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/oolite.git _______________________________________________ Pkg-games-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

