]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Use env to determine config in installer build
authorKevin Wasserman <kevin.wasserman@painless-security.com>
Thu, 26 Jul 2012 10:57:35 +0000 (06:57 -0400)
committerBen Kaduk <kaduk@mit.edu>
Wed, 29 Aug 2012 18:50:19 +0000 (14:50 -0400)
Use NODEBUG and DEBUG_SYMBOL from the environment to determine whether or
not to define Debug and DebugSyms for the installer build.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7319 (new)
queue: kfw
target_version: 1.10.4
tags: pullup

src/windows/installer/wix/config.wxi
src/windows/installer/wix/site-local.wxi

index 3bb1cc95cd156fd840117e2b3b751b802c313525..806fe36f21d124487b2f9d736cb267458ff0c259 100644 (file)
     <?include lang\config_$(var.BuildLang).wxi?>
     
     <!-- Parameters for the features containing debug symbols -->
+    <?ifdef env.NODEBUG?>
+         <?ifdef env.DEBUG_SYMBOL?>
+              <?define DebugSyms?>
+         <?endif?>
+    <?else?>
+         <?define Debug?>
+         <?define DebugSyms?>
+    <?endif?>
     <?ifdef DebugSyms?>
          <?ifdef Debug?>
              <?define DebugSymInstallDefault="followParent"?>
index 80defd94a0ac99746760fbf1d3172f4456ee5812..c3ebc02b07c1a8687c0bcf19ff75081600f90cd9 100644 (file)
 
     <!-- At most one of the following could be defined and must correspond
          to the type of build performed. -->
-    <?define Debug?>
     <!--<?define Release?>-->
 
-    <!-- We are including debug symbols anyway.  Undefine this for a leaner
-         installer without debug syms. -->
-    <?define DebugSyms?>
-
     <!-- Optional defines -->
     <!-- <?define Beta="1"?>  --> <!-- Numeric Beta identifier -->
     <!-- <?define OldHelp?> --> <!-- Specifies the use of the old leash32.hlp file