Content originally posted in LPCWare by MichelKuenemann on Thu Dec 18 19:56:03 MST 2014
Hello R2D2,
I think we are close to the goal.
1 - Yes, you are 100% right, Smart Update adds the settings of the COMPILED library in the main project, not in the WS. But if I change a source file making up the library it won't be compiled unless I have put the library PROJECT itself in the WS. So I need to include both projects in the WS (the main and the lib project) to have them compiled. Is that correct ?
2 - This is annoying, because I work with many different workspaces on different computers. That implies that each time I import a "main" project in a WS, I must know which static lib PROJECT goes with it and import it "manually". Otherwise, the lib will not be eventually updated, but just linked "as is". Is that correct ?
3 - It would be much more EFFICIENT to put a reference to the static lib PROJECT inside the main project, so the static lib would be compiled if something has changed in the static lib source files. As a side effect, loading the main project would be sufficient. But obviously, this feature seems not supported currently. Am I right ?
EDIT: I have just tested assumptions 1 and 2- they are correct.
IMPORTANT: I had errors after removing the static lib project from the WS because Smart Updates creates a path including the workspace itself, like "${workspace_loc:/LARM_LPC1769/Debug}" in the main project Library search path. I had to replace it by a relative path to the library file to get rid of this error, like "..\..\..\sw_LARM\prj_LPC1769\Debug".
I have also put the static library (lib*.a) files under version control, like regular source files, so I am confident that I will always link an updated object file to my main project. Now I can import the main project alone and build it. YESSS
I hope this can help other people.
I have loaded LPCxpresso 7.5.0 and I can now add the project to a "working set". Could this be a solution to have the main project and the lib project "together" outside of a WS ?
Regards,
Michel