diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-03 11:17:50 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-03 11:17:50 +0100 |
commit | 04437fd6684fe00f6f8c43cf4a1a838153e33414 (patch) | |
tree | c2ea75b3a2c314ae5fc2b2ee682edbd5e01595a3 /api/api.vcxproj | |
parent | example: add sal markings (diff) | |
download | wintun-04437fd6684fe00f6f8c43cf4a1a838153e33414.tar.xz wintun-04437fd6684fe00f6f8c43cf4a1a838153e33414.zip |
api: conditionalize quasi expensive prelinkevent
It would be better to do this only if either nci.def or nci.h are newer
than nci.lib, but who knows if msbuild is expressive enough for this.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r-- | api/api.vcxproj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/api.vcxproj b/api/api.vcxproj index b50289e..d28c006 100644 --- a/api/api.vcxproj +++ b/api/api.vcxproj @@ -115,7 +115,7 @@ <PreprocessorDefinitions Condition="'$(Platform)'=='ARM'">_M_ARM=7;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions Condition="'$(Platform)'=='ARM64'">_M_ARM64=1;%(PreprocessorDefinitions)</PreprocessorDefinitions> </ResourceCompile> - <PreLinkEvent> + <PreLinkEvent Condition="!exists('$(IntDir)nci.lib')"> <Command>cl.exe /nologo /DGENERATE_LIB /Ob0 /c /Fo"$(IntDir)nci.obj" /Tc nci.h lib.exe /def:nci.def /out:"$(IntDir)nci.lib" /machine:$(PlatformTarget) /nologo "$(IntDir)nci.obj"</Command> </PreLinkEvent> |