LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Distribution build order

If I'm creating a distribution that includes a DLL and several client applications for the DLL, all in the same workspace, does the distribution editor know to rebuild the DLL first prior to building the client applications?

 

I.e., the applications have a dependency on the DLL's import library.

 

I notice that at times the distribution editor does a popup indicating that one or more projects needs to be rebuilt.   Is it smart enough to rebuild all of the client applications that have a dependency on the DLL, after the DLL build?

 

In a related but separate question, if I do a batch build, do the build subdirectories go into subfolders under the folder containing the .cws file, or do they go into subfolders  under the original project folders?  It looks to me as if when I do a batch build I wind up with a second set of build subfolders, which is highly confusing, to say the least.  The senario is for a top level folder with the cws file, and a set of subfolders, each of which contains a project that is a member of the workspace.

 

Is there any way to configure this behavior?

 

Thanks.

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

Hi Menchar,

 

To answer your first question, the distribution editor currently does not have the functionality to automatically detect the presence of dependencies and build in that order. However, it is possible to ensure that your build occurs in a specific order.

 

You can set the order of the projects/libraries within a workspace by clicking on Edit-> Workspace, you can select the order of the elements in the project tree. You want to setup such that the elements with the least dependencies be on top of the project tree, and the one with the most dependencies at the bottom of the project tree. 

 

If you then perform a batch build, (after checking all the debug or all the release versions of the source files), it should build everything in the order of least dependent to most dependent. 

 

As far as the locations of the build directories. If you do a batch build, it will only put the build directories within the subfolders where the project files are located as opposed to in the top level directory. I hope this clarifies your question.

Raj
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,963 Views)