Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Build a project composed by multiple shared libs
Re: Build a project composed by multiple shared libs [message #41765 is a reply to message #41762] |
Sat, 18 January 2014 08:15 |
|
Hi Max,
Would a scripting be possible workaround? You could have a main package for each of your libs, with proper target. Then you'd have a one "super main", that would include all of these packages and a macro file (something.usc). The supermain package doesn't need to be compiled, it would be just used to run the compilation of all the libs.
The macro would be quite simple, something like
macro "Build all libs" Ctrl+Alt+F5 {
ClearConsole();
// list of libs to build
libs = [ "lib1", "lib2", lib3 ]
for (p in libs) {
// Get .upp file location for the package
upp = PackageDir(p) + "/"+p+".upp";
// Construct the target name
target = "lib"+p+".so";
// Build that package with currently set flags
BuildProject(upp, Flags(), target);
}
}
I know that it is not really a solution, but it could save you some time before a better way to do it is found
Best regards,
Honza
|
|
|
Goto Forum:
Current Time: Wed Apr 24 10:03:44 CEST 2024
Total time taken to generate the page: 0.01581 seconds
|