Open MaximeLussier opened 1 year ago
Does buildaction "Copy"
do what you're after? It was added in this PR #1978 it's not CopyToOutputDirectory
, but it might work, otherwise it's a UWP-specific element and we'll need to add CopyToOutputDirectory
for Windows.
Not really. The buildaction "copy" would require us to manually specify the source files and destination directory! The CopyToOutputDirectory automatically does it for the required libraries.
I think you're thinking of something else, the PR I linked shows an example through a unit test. https://github.com/premake/premake-core/blob/d150691d1eabfcc6e523a2649e367d11b129dfbf/modules/vstudio/tests/vc2010/test_files.lua#L110 https://github.com/premake/premake-core/blob/d150691d1eabfcc6e523a2649e367d11b129dfbf/modules/vstudio/tests/vc2010/test_files.lua#L115-L116 https://github.com/premake/premake-core/blob/d150691d1eabfcc6e523a2649e367d11b129dfbf/modules/vstudio/tests/vc2010/test_files.lua#L128-L133
Ah, we will need to take a look at that. But I believe we only specify the directory path of the libraries in the lua file (e.g ..\SourcesMeiWebRtc\ExternalCodecs\h264_lib\lib_win) and all the .dll are added to the vcxproj... The CopyToOutputDirectory was generated by GYP which we stopped using.
What problem will this solve? Projects using DLL not present in the system will not load them if not copied alongside the executable
What might be a solution? Add a flag to enable "CopyToOutputDirectory" or add it always
What other alternatives have you already considered? Currently, we SED the vcxproj after generation
Anything else we should know? This:
vs