LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Include File in Build by Configuration

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

0 Kudos
Message 1 of 3
(2,601 Views)

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

0 Kudos
Message 2 of 3
(2,567 Views)

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
0 Kudos
Message 3 of 3
(2,505 Views)