LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to automatically build lib's

Hi,

CVI 6.0 on Win2000

I have a number of small CVI projects that generate static libries for a
larger CVI project,
what I would like to be able to do is similar to the makefile functionality
on Unix and that is
when I mark all for compliation that the libries shall be automatically
re-built as well, so I
can really do a full build including dependences.

The only way I can see to do it is the get rid of the smaller libray
projects and include everything
but I'm not to keen on doing that.

Also is the anything similar to make clean.


thanks

Danny Thomson
0 Kudos
Message 1 of 3
(3,151 Views)
Actually, you are in luck. A new feature of CVI 6.0 is project workspaces. Workspaces can have multiple projects in them and batch building can be done on the entire workspace. Here is what you do:

1) Open your main project that uses the static libs.

2) In the Project window, go to Edit->Worspaces... and Add the static lib projects to the Workspace and close this window.

3) Notice that you will now be able to quickly switch between the project by going to File->Set Active Project.

4) Also, notice that you can now build all of the projects in a batch mode by selecting Build->Batch Build... The building will go in the order of the projects in the workspace so make sure your static lib projects are listed first.

This is also a handy featu
re for building the debug and release modes of your project at the same time.

Hope this helps,

Chris Matthews
National Instruments
Message 2 of 3
(3,151 Views)
Excellent does the job for me..thanks Chris

"Chris Matthews" wrote in message
news:506500000005000000A2440000-1001806086000@exchange.ni.com...
> Actually, you are in luck. A new feature of CVI 6.0 is project
> workspaces. Workspaces can have multiple projects in them and batch
> building can be done on the entire workspace. Here is what you do:
>
> 1) Open your main project that uses the static libs.
>
> 2) In the Project window, go to Edit->Worspaces... and Add the static
> lib projects to the Workspace and close this window.
>
> 3) Notice that you will now be able to quickly switch between the
> project by going to File->Set Active Project.
>
> 4) Also, notice that you can now build all of the projects in a batch
> mode by selecting B
uild->Batch Build... The building will go in the
> order of the projects in the workspace so make sure your static lib
> projects are listed first.
>
> This is also a handy feature for building the debug and release modes
> of your project at the same time.
>
> Hope this helps,
>
> Chris Matthews
> National Instruments
0 Kudos
Message 3 of 3
(3,151 Views)