From f3bb495761c77c0c5ecf99cbb2b2f5532f9ed8be Mon Sep 17 00:00:00 2001 From: Timotei Dolean Date: Fri, 6 Aug 2010 21:43:07 +0000 Subject: [PATCH] eclipse plugin: add macro parameters --- .../utils/PreprocessorUtils.java | 9 +++++++-- .../ui/contentassist/WMLProposalProvider.java | 13 ++++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/PreprocessorUtils.java b/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/PreprocessorUtils.java index a94cc42dfff..1c7a0907228 100644 --- a/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/PreprocessorUtils.java +++ b/utils/java/eclipse_plugin/src/wesnoth_eclipse_plugin/utils/PreprocessorUtils.java @@ -104,14 +104,19 @@ public class PreprocessorUtils arguments.add(macrosFile); } + //TODO: remove me when trimming is done + if (defines == null) + defines = new ArrayList(); + defines.add("NO_TERRAIN_GFX"); + if (defines != null && !defines.isEmpty()) { String argument = "-p="; - for(int i=0;i