makefile.vc: package with include folder requires this folder to exist
A compiled and installed TCL 9.0.1 is in c:\myprograms\tcl9.0_x64. A checkout of tdbc-main is in C:\test\fossil\tdbc\tdbc-main.
An VS2022 64 bit native prompt gets the following commands:
% nmake -f makefile.vc TCLDIR=c:\myprograms\tcl9.0_x64 % nmake -f makefile.vc install TCLDIR=c:\myprograms\tcl9.0_x64 INSTALLDIR=..\..\install_x64 ... Installing headers to '..\..\install_x64\..\include'
When looking in the install folder (e.g. "..\.."), there is:
- if folder "include" did not exist in advance: a file named "include" with the contents of "tdbcDecls.h" in the build directory (wrong behaviour)
- if folder "include" existed in advance: two files "tdbc.h" and "tdbcDecls.h" are written to the folder (correct behaviour)
It might be helpful, to create the folder '..\..\install_x64\..\include', if it does not exist.
The relevant entries in makefile.vc are:
PRJ_HEADERS_PUBLIC = \ $(GENERICDIR)\tdbc.h \ $(GENERICDIR)\tdbcDecls.h
I am reporting this here, as IMHO, the machinery for this is here and not in tdbc-main.
Thanks for all, Harald
a5086d777bFix [3335120320]. Create include dir for installing extensions in non-default locations check-in2025-05-20 05:30:15761808a5e8Fix [3335120320]. Create include dir for installing extensions in non-default locations check-in2025-05-20 05:26:02ee68735740Bug [3335120320]. Fix for case where extension is installed into a directory other than where Tcl is installed check-in2025-05-18 15:53:31
Proposed fix in branch apn-bug-3335120320.
Fixed in [761808a5e8]. Harald, please verify for your case.
Thanks for the fix, it works.
What I still find interesting is, that the folder "include" is created beside the given INSTALLDIR, not in the installdir.
It is also interesting, that the mostly useless documentation files (*.n) are written into the installation folder.
Also, tdbcstub.lib and tdbcConfig.sh are written into the installation folder, which are IMHO expected in lib.
So, anything what is normally in doc/lib goes into the installation folder, with the exception of the include folder.
I suppose, this is done to work as bundled package.
Anyway, great fix.
Thanks for all, Harald