Skip to content

Commit bbaf392

Browse files
committed
Tune: Prototype .dll to .def to .lib conversion via custom command line.
1 parent 5b701ea commit bbaf392

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

SolutionProjectModel/testCppApp.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ void main(void)
3131
[](PlatformConfigurationProperties* props)
3232
{
3333
CustomBuildToolProperties& custtool= *((CustomBuildToolProperties*)props);
34-
custtool.Command = "echo Hello world";
34+
CStringW cmd = "..\\cppexec.exe %(FullPath) >$(IntermediateOutputPath)%(Filename).def";
35+
cmd += "\n";
36+
cmd += "lib /nologo /def:$(IntermediateOutputPath)%(Filename).def /machine:$(Platform) /out:$(IntermediateOutputPath)%(Filename)_lib.lib";
37+
custtool.Message = "Generating static library for %(Identity)...";
38+
custtool.Command = cmd;
39+
custtool.Outputs = "$(IntermediateOutputPath)%(Filename)_lib.lib";
3540
}
3641
, &CustomBuildToolProperties::GetType());
3742

0 commit comments

Comments
 (0)