12-15-2017 07:39 AM
I have a situation where I'd like to build against two different lib files depending on which DLL will be used in the final distribution. LabWIndows/CVI has the ability to Include/Exclude File in Build, but there doesn't appear to be a way to have this change based on the selected configuration.
Is there a way to do this, or could someone suggest another way that I can accomplish this?
Thanks,
Al
12-18-2017 02:42 PM
Hi Al,
Could you help me get a better understanding of your use case? Could this be resolved by using two separate distributions, or no? Or could you included all the necessary files regardless of the distribution?
Regards,
Brian Poteet
National Instruments
01-16-2018 01:40 AM
I don't know if that helps, but I have a similar issue when i compile for Linux and I want to exclude a Windows/Linux library and replace it by another. The simplest way I found is to edit the project file with a script and then compile it. My script is something like this:
cp Client.prj Client_.prj #! /bin/bash LINE_NO=$(grep -n "Path Rel.*ShLwApi.Lib" Client_.prj | sed 's/:.*//' ) sed -i "$(($LINE_NO-5)),$(($LINE_NO+5)) d" Client_.prj LINE_NO=$(grep -n "Path Rel.*shell32.lib" Client_.prj | sed 's/:.*//' ) sed -i "$(($LINE_NO-5)),$(($LINE_NO+5)) d" Client_.prj cvicc Client_.prj || exit 2 rm Client_.prj