view contrib/wix/locale.wxs @ 34962:a18eef03d879

run-tests: $TESTDIR can be something else than $PWD $TESTDIR is expected to be the directory were the test lives, and is often used to reference helper functions. However, it is now set to $PWD at test invocation time, so if `run-tests.py` is called from another folder, the test will fail. The solution is to force $TESTDIR to be the base directory of the test itself, irrespective of where the runner is called from.
author Matthieu Laneuville <matthieu.laneuville@octobus.net>
date Wed, 02 Aug 2017 13:27:45 +0900
parents 14e8fef9158d
children
line wrap: on
line source

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">

  <?include defines.wxi ?>

  <?define hglocales =
    da;de;el;fr;it;ja;pt_BR;ro;ru;sv;zh_CN;zh_TW
  ?>

  <Fragment>
    <ComponentGroup Id="localeFolder">
      <?foreach LOC in $(var.hglocales) ?>
        <ComponentRef Id="hg.locale.$(var.LOC)"/>
      <?endforeach?>
    </ComponentGroup>
  </Fragment>

  <Fragment>
    <DirectoryRef Id="INSTALLDIR">
      <Directory Id="localedir" Name="locale" FileSource="$(var.SourceDir)">
        <?foreach LOC in $(var.hglocales) ?>
          <Directory Id="hg.locale.$(var.LOC)" Name="$(var.LOC)">
            <Directory Id="hg.locale.$(var.LOC).LC_MESSAGES" Name="LC_MESSAGES">
              <Component Id="hg.locale.$(var.LOC)" Guid="*" Win64='$(var.IsX64)'>
                <File Id="hg.mo.$(var.LOC)" Name="hg.mo" KeyPath="yes" />
              </Component>
            </Directory>
          </Directory>
        <?endforeach?>
      </Directory>
    </DirectoryRef>
  </Fragment>

</Wix>