mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-20 18:48:16 +00:00
There is an option to enable/disable libsodium via the Visual Studio UI. This is not practical for command-line usage (via msbuild). Solution: add configure.bat that searches for libsodium in sibling directory to libzmq; if it finds it, defines HAVE_LIBSODIUM 1. This is consistent with zproject, which has the same problem and is getting the same solution for all dependency resolution on Windows. Note that this approach also provides a way to support tweetnacl via a configure option. Also, removed duplicate props files and re-copy in configure.bat as it was an insane nightmare to update these by hand. (and not clear that they were identical. Now it's forced.)
21 lines
1.0 KiB
XML
21 lines
1.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ProjectSchemaDefinitions xmlns="clr-namespace:Microsoft.Build.Framework.XamlTypes;assembly=Microsoft.Build.Framework">
|
|
<Rule Name="libzmq-uiextension" PageTemplate="tool" DisplayName="ZMQ Options" SwitchPrefix="/" Order="1">
|
|
<Rule.Categories>
|
|
<Category Name="openpgm" DisplayName="openpgm" />
|
|
<Category Name="gssapi" DisplayName="gssapi" />
|
|
</Rule.Categories>
|
|
<Rule.DataSource>
|
|
<DataSource Persistence="ProjectFile" ItemType="" />
|
|
</Rule.DataSource>
|
|
<EnumProperty Name="Option-openpgm" DisplayName="Enable OpenPGM" Description="Enable the OpenPGM build option" Category="openpgm">
|
|
<EnumValue Name="" DisplayName="No" />
|
|
<EnumValue Name="true" DisplayName="Yes" />
|
|
</EnumProperty>
|
|
<EnumProperty Name="Option-gssapi" DisplayName="Enable GSS API" Description="Enable GSS API build option" Category="gssapi">
|
|
<EnumValue Name="" DisplayName="No" />
|
|
<EnumValue Name="true" DisplayName="Yes" />
|
|
</EnumProperty>
|
|
</Rule>
|
|
</ProjectSchemaDefinitions>
|