mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-02 16:18:44 +00:00
1590bd15f1
Restores the build files mistakenly dropped in 86b1c5a5a4
.
43 lines
1.1 KiB
XML
43 lines
1.1 KiB
XML
<?xml version="1.0" ?>
|
|
<!-- $Id: unicodeopt.bkl 40 2006-12-02 15:22:02Z frm $ -->
|
|
|
|
<!--
|
|
|
|
Adds the logic for handling a UNICODE=0/1 option, which switches between unicode and
|
|
ansi builds.
|
|
|
|
Usage: use template "unicodeopt" for your targets:
|
|
|
|
<include file="presets/unicodeopt.bkl"/>
|
|
|
|
<exe id="myapp" template="unicodeopt">
|
|
<sources>myapp.cpp</sources>
|
|
</exe>
|
|
|
|
-->
|
|
|
|
<makefile>
|
|
|
|
<set var="UNICODE_DEFAULT" overwrite="0">0</set>
|
|
<option name="UNICODE">
|
|
<values>0,1</values>
|
|
<default-value>$(UNICODE_DEFAULT)</default-value>
|
|
<values-description>ANSI,Unicode</values-description>
|
|
<description>Set to 1 to build Unicode version</description>
|
|
</option>
|
|
|
|
<template id="unicodeopt">
|
|
<define>
|
|
$(substituteFromDict(UNICODE,{'1':'_UNICODE','0':''}))
|
|
</define>
|
|
</template>
|
|
|
|
|
|
<!-- The UNICODEBUILDPOSTFIX variable is useful to set the BUILDDIR variable
|
|
as done in presets/setbuilddir.bkl -->
|
|
<set var="UNICODEBUILDPOSTFIX">
|
|
<if cond="UNICODE=='0'">a</if>
|
|
<if cond="UNICODE=='1'">u</if>
|
|
</set>
|
|
|
|
</makefile>
|