-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include minizip's headers in the nuget pkg #7
Conversation
BillHoag
commented
Jun 10, 2021
•
edited
Loading
edited
- make minizip's headers available to consumers of the zlib nuget pkg
- add param iMatchJustFileName to unzLocateFile ()
Zlib.autopkg
Outdated
"; | ||
copyright: @"Copyright (c) 2018."; | ||
tags: { zlib, CoApp, compression, vs2017, native }; | ||
}; | ||
|
||
files | ||
{ | ||
nestedInclude: { #destination=${d_include}Zlib; *.h }; | ||
nested2Include: { #destination=${d_include}Zlib; "*.h" }; | ||
nested1Include: { #destination=${d_include}contrib\minizip; "*.h" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it should be something like (untested):
{ #destination=${d_include}Zlib\contrib\minizip; "contrib\minizip\*.h" };
^
We want the contrib to go under Zlib, so that the consumer does:
#include <ZLib/contrib/minizip/ioapi.h>
instead of
#include <contrib/minizip/ioapi.h>
<<<< not Zlib specific, it does not look good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦 I thought I saw the correct ones there before - I'm sorry waste your time with this one. Re 7zip, yeah, I've got *.nupkg associated with 7zip. Fixed nupkg is here. Corrected autopkg has been force pushed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update and np on me trying out that version. Will test it on Monday!
Was it built on your machine?
One thing that I still have to look into is that pesky warning:
warning LNK4098: defaultlib 'libcmt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
Not exactly sure what project is "at fault" and how I can solve this but I will look on Monday
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, built on my machine. Time permitting, I'll try your branch and this nupkg on my branch today, and see if I can learn anything about that warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The resulting nuget package does not have the files that we need ioapi.h
and unzip.h
69679e3
to
15b51e2
Compare
"; | ||
copyright: @"Copyright (c) 2018."; | ||
tags: { zlib, CoApp, compression, vs2017, native }; | ||
}; | ||
|
||
files | ||
{ | ||
nestedInclude: { #destination=${d_include}Zlib; *.h }; | ||
nested2Include: { #destination=${d_include}Zlib; "*.h" }; | ||
nested1Include: { #destination=${d_include}Zlib\contrib\minizip; "contrib\minizip\*.h" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Will test on Monday :)
This is necessary so the minizip headers will be found by the compiler and successfully compiled in SnagitWin when using the zlib NuGet pkg.
a45d440
to
8658568
Compare
8658568
to
98d3044
Compare
It all looks good. Used the nuget package that @BillHoag built locally and confirm this would work just fine in SnagitWin 👍 |