|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Building & using U++ without TheIDE
Re: Building & using U++ without TheIDE [message #11455 is a reply to message #11360] |
Thu, 13 September 2007 15:43 |
sergei
Messages: 94 Registered: September 2007
|
Member |
|
|
I'm starting to see the big picture. There are 2 options:
1) Compiler decides what goes in and what doesn't.
2) User decides what goes in and what doesn't.
I wanted to go for option 1 - that way, if user uses PDF, PDF goes in. I understand that U++ works according to option 2 - what's in, is used. That is actually easier to implement.
My current idea goes like this:
1) Take the source, create a project (in any compiler/IDE) for a static library.
2) Add all files in all packages (according to .upp to exclude forgotten/unused files, and maybe exclude TheIDE-only packages).
3) Remove .icpps from the project (they will not be compiled).
4) Build debug/release/whatever libs.
5) Make a new project (that will use U++).
6) Include main headers of packages used, and icpps of packages used (only once, into one of the project's cpps).
7) Build the project - linker will throw out unused packages, and initialize used packages since the icpps were included.
I'd like to automate this process. I'll try to make a program to scan folder structure, parse .upps, create static lib project (e.g. include only used files), and create package headers.
By package headers, I mean it will be a header that handles icpps and dependencies inside. Example (upppkg/CtrlLib.h):
#ifndef UPPPKG_CTRLLIB_H
#define UPPPKG_CTRLLIB_H
// Uses
#include <upppkg/CtrlCore.h>
#include <upppkg/RichText.h>
// Uses (platform)
#ifdef flagLINUX
#include <upppkg/PdfDraw.h>
#endif
#ifdef flagFREEBSD
#include <upppkg/PdfDraw.h>
#endif
#ifdef flagOSX11
#include <upppkg/PdfDraw.h>
#endif
// Header
#include <CtrlLib/CtrlLib.h>
// ICPP
#include <CtrlLib/CtrlLib.icpp>
#endif
Linking to libUpp and including this file should basically provide a similar environment as TheIDE provides, when you write #include <CtrlLib/CtrlLib.h> and add this package.
What do you think of this idea? It would take a second to generate headers from U++ source, another ~20 mins to build the library, and U++ is ready to use.
Questions:
1) Is the first header in file section of .upp always the most important one of that package? If not, how can the main header be determined?
2) I've found files with other extensions (not h/hpp/c/cpp/icpp) that maybe should be handled somehow - .dli, .iml, .in, .lay, .patch, .t, .upt, .usc, .vc. How should I take care of these?
3) Having a static lib + correct includes, there should be no problem using them in any project - exe/dll/lib, right? I've seen in another thread that there are problems with using U++ DLL in U++ EXE - wouldn't static linking each to U++ just work (OK, 1MB or so wasted, but still)?
P.S. I've tried to start making that parser, encountered 3 problems:
1) ToUnixName is implemented in Path.cpp but not defined in Path.h - can't use it.
2) I didn't find anything looking like this in the sources:
#ifdef PLATFORM_WIN32
const char cDirSep = '\\';
#else
const char cDirSep = '/';
#endif
Is there any reason for constantly using the chars '\\' and '/' and checking the OS?
3) I don't understand how unicode is implemented. There is String, AString, WString, but there is no TString, or whatever the name, like there is TCHAR that expands into char or wchar_t, depending on whether UNICODE/_UNICODE is defined. How do I define whether I'm in unicode or not? I mean, MessageBox will expand into MessageBoxA or MessageBoxW? And why path handling routines use char - can I handle unicode filenames with U++?
|
|
|
|
|
Building & using U++ without TheIDE
By: sergei on Sun, 09 September 2007 22:03
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 09 September 2007 23:47
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 01:48
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 10:16
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 10:30
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 12:25
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 13:56
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 15:53
|
|
|
Re: Building & using U++ without TheIDE
By: Ulti on Mon, 10 September 2007 16:56
|
|
|
Re: Building & using U++ without TheIDE
By: Zardos on Mon, 10 September 2007 17:17
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 17:57
|
|
|
Re: Building & using U++ without TheIDE
By: Zardos on Tue, 11 September 2007 09:25
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:22
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 17:57
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:09
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:12
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 18:15
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 20:59
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 10 September 2007 21:31
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 10 September 2007 22:35
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:16
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 11 September 2007 02:21
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 11 September 2007 22:21
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 02:25
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 09:20
|
|
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 18:20
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 18:47
|
|
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 20:04
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 22:01
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 12:31
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 14:25
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 15:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 12 September 2007 17:34
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 12 September 2007 18:00
|
|
|
Re: Building & using U++ without TheIDE
By: Novo on Wed, 12 September 2007 18:31
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 01:19
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 13 September 2007 05:45
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 02:21
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 13 September 2007 15:43
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 13 September 2007 23:58
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 14 September 2007 02:21
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 20:11
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 21:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:00
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 22:16
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:48
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 16 September 2007 01:43
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 16 September 2007 01:55
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 16 September 2007 01:58
|
|
|
Re: Building & using U++ without TheIDE
By: cbpporter on Mon, 17 September 2007 07:53
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 10:10
|
|
|
Re: Building & using U++ without TheIDE
By: cbpporter on Mon, 17 September 2007 10:53
|
|
|
Re: Building & using U++ without TheIDE
By: tvanriper on Tue, 18 September 2007 02:35
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 15 September 2007 18:57
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 15 September 2007 22:06
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 11:07
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 11:22
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 13:50
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 15:46
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 18:33
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 22:20
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 17 September 2007 22:28
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 17 September 2007 23:47
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 18 September 2007 00:08
|
|
|
Re: Building & using U++ without TheIDE
By: unodgs on Tue, 18 September 2007 08:30
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 00:32
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 03:04
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 18 September 2007 18:05
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 18 September 2007 19:04
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 00:43
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 09:34
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 10:12
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 10:45
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 11:18
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 11:33
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 11:39
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 12:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 12:39
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 11:40
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 14:22
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 19 September 2007 23:06
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 19 September 2007 23:56
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 20 September 2007 05:39
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 13:29
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 20 September 2007 14:51
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 15:11
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 20 September 2007 21:57
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 21 September 2007 03:36
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Fri, 21 September 2007 09:49
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Fri, 21 September 2007 13:41
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 22 September 2007 00:16
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sat, 22 September 2007 00:18
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 23 September 2007 10:54
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 23 September 2007 16:22
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 23 September 2007 20:51
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 25 September 2007 11:44
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 25 September 2007 16:18
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 25 September 2007 23:07
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 00:52
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 13:41
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 15:13
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 18:25
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 18:44
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 19:26
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 26 September 2007 21:01
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 26 September 2007 22:56
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 09 October 2007 19:14
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 09 October 2007 23:39
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 10 October 2007 00:02
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 10 October 2007 00:51
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 11 October 2007 05:40
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 15 October 2007 00:35
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 15 October 2007 07:27
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 15 October 2007 10:48
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 15 October 2007 12:18
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 17 October 2007 19:12
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Wed, 17 October 2007 21:58
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Wed, 17 October 2007 22:54
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 18 October 2007 01:34
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Thu, 18 October 2007 14:44
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 18 October 2007 17:49
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 21 October 2007 02:54
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 21 October 2007 22:26
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 22 October 2007 01:39
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sat, 27 October 2007 19:40
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Sun, 28 October 2007 02:04
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Mon, 29 October 2007 00:38
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Thu, 01 November 2007 12:30
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Sun, 04 November 2007 12:34
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 05 November 2007 09:06
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Mon, 05 November 2007 11:10
|
|
|
Re: Building & using U++ without TheIDE
By: sergei on Tue, 06 November 2007 14:07
|
|
|
Re: Building & using U++ without TheIDE
By: mirek on Tue, 06 November 2007 21:19
|
Goto Forum:
Current Time: Tue May 14 21:19:17 CEST 2024
Total time taken to generate the page: 0.03555 seconds
|
|
|