mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-31 01:43:02 +08:00
6a9af8ed62
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.)
34 lines
1.8 KiB
XML
34 lines
1.8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<ProjectSchemaDefinitions xmlns="clr-namespace:Microsoft.Build.Framework.XamlTypes;assembly=Microsoft.Build.Framework">
|
|
<Rule Name="libzmq-options-uiextension" PageTemplate="tool" DisplayName="ZMQ Options" SwitchPrefix="/" Order="1">
|
|
<Rule.Categories>
|
|
<Category Name="openpgm" DisplayName="openpgm" />
|
|
</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 the GSS API build option" Category="gssapi">
|
|
<EnumValue Name="" DisplayName="No" />
|
|
<EnumValue Name="true" DisplayName="Yes" />
|
|
</EnumProperty>
|
|
</Rule>
|
|
<Rule Name="libzmq-linkage-uiextension" PageTemplate="tool" DisplayName="Local Dependencies" SwitchPrefix="/" Order="1">
|
|
<Rule.Categories>
|
|
<Category Name="libzmq" DisplayName="libzmq" />
|
|
</Rule.Categories>
|
|
<Rule.DataSource>
|
|
<DataSource Persistence="ProjectFile" ItemType="" />
|
|
</Rule.DataSource>
|
|
<EnumProperty Name="Linkage-libzmq" DisplayName="Linkage" Description="How libzmq will be linked into the output of this project" Category="libzmq">
|
|
<EnumValue Name="" DisplayName="Not linked" />
|
|
<EnumValue Name="dynamic" DisplayName="Dynamic (DLL)" />
|
|
<EnumValue Name="static" DisplayName="Static (LIB)" />
|
|
<EnumValue Name="ltcg" DisplayName="Static using link time compile generation (LTCG)" />
|
|
</EnumProperty>
|
|
</Rule>
|
|
</ProjectSchemaDefinitions>
|