Home » Developing U++ » U++ Developers corner » umk static version
Re: umk static version [message #53394 is a reply to message #53382] |
Wed, 01 April 2020 09:25 |
|
mirek
Messages: 14105 Registered: November 2005
|
Ultimate Member |
|
|
dolik.rce wrote on Tue, 31 March 2020 21:17mirek wrote on Mon, 30 March 2020 23:28dolik.rce wrote on Mon, 30 March 2020 21:52One thing I'd definitely change about umk is the "UI". Fixed position parameters, no real help, some params prefixed with '-', some with '+', no long options... Explaining this to a common user would be nightmare Isn't it time to tweak this a little as well? I'd be willing to do the work. I know it's not hard, but I guess you have more important things to do, right?
I any case it would be good to show how do you want to change it before implementing...
I was thinking something like this:Usage:
umk [options] <package> [<output>]
Arguments:
<package> Package name
<output> Output file or directory. If omitted, <package> name will be used.
Options:
-A, --assembly <paths>
Comma separated paths to source directories or path to .var file.
-B, --build-method <build_method>
Build method name or path to .bm file. Default value is 'GCC'.
-f, --flags <FLAGS> Comma separated list of flags. Default value is 'GUI,MT'.
-a, --all Rebuild all.
-b, --blitz Use BLITZ.
-v, --verbose Be verbose.
-l, --silent Silent mode.
-u, --target Use target directory.
-m, --map Create a map file.
-d, --debug=[no|minimal|full]
Select debug mode:
no = release mode, full optimizations (default)
minimal = no debug symbols, no optimizations
full = with debug symbols, no optimizations
-s, --shared Use shared libraries.
-S, --all-shared Use shared libraries and build as shared libraries.
-M, --makefile Create makefile (to file <output>).
-x, --export Export project (to directory <output>), export only files used.
-X, --export-all Export project (to directory <output>), export all files.
-k, --no-delete Do not delete target directory out when exporting.
-H, --threads <N> Build using <N> threads. Default is number of logical cores available.
-h, --help Show this text.
Examples:
Build release version of TheIDE:
umk -b -A uppsrc ide ~/theide
Use custom build method:
umk -b -A uppsrc -B ~/.upp/theide/CLANG.bm ~/theide
Rebuild Bombs example in debug mode:
umk -ab --debug=full -A examples Bombs
Build Bombs example using source paths
umk -A upp/examples,upp/uppsrc Bombs
What do you think?
Honza
I believe that -A as option does not make much sense. What will umk do if you do not specify -A? Probably the same for -B. I mean, you do not want to write
cp --from=sourcefile.txt --to=targetfile.txt
either, do you?
Also, it would really be good if the new interface was backward compatible, as not to break exiting scripts (not only mine, but I know that there are users that depend on umk). I think making '+' synonyme of '-f', perhaps even hidden, should not cause any problems.
Finally (and that is a problem with current sources too), the commandline parsing should be shared between theide and umk.
Mirek
|
|
|
|
|
umk static version
By: mirek on Sun, 29 March 2020 16:12
|
|
|
Re: umk static version
By: koldo on Sun, 29 March 2020 17:01
|
|
|
Re: umk static version
By: mirek on Sun, 29 March 2020 17:13
|
|
|
Re: umk static version
|
|
|
Re: umk static version
By: mirek on Mon, 30 March 2020 10:24
|
|
|
Re: umk static version
By: mirek on Mon, 30 March 2020 10:25
|
|
|
Re: umk static version
|
|
|
Re: umk static version
By: mr_ped on Mon, 30 March 2020 12:38
|
|
|
Re: umk static version
By: amrein on Mon, 30 March 2020 13:24
|
|
|
Re: umk static version
By: mirek on Mon, 30 March 2020 14:55
|
|
|
Re: umk static version
|
|
|
Re: umk static version
|
|
|
Re: umk static version
By: mirek on Mon, 30 March 2020 16:30
|
|
|
Re: umk static version
By: koldo on Mon, 30 March 2020 20:43
|
|
|
Re: umk static version
|
|
|
Re: umk static version
By: amrein on Mon, 30 March 2020 22:33
|
|
|
Re: umk static version
By: mirek on Tue, 31 March 2020 11:58
|
|
|
Re: umk static version
By: amrein on Tue, 31 March 2020 12:52
|
|
|
Re: umk static version
By: mirek on Mon, 30 March 2020 23:28
|
|
|
Re: umk static version
|
|
|
Re: umk static version
By: Novo on Tue, 31 March 2020 22:20
|
|
|
Re: umk static version
By: amrein on Wed, 01 April 2020 08:53
|
|
|
Re: umk static version
By: mirek on Wed, 01 April 2020 09:36
|
|
|
Re: umk static version
By: mirek on Wed, 01 April 2020 09:25
|
|
|
Re: umk static version
By: amrein on Wed, 01 April 2020 09:44
|
|
|
Re: umk static version
|
|
|
Re: umk static version
By: amrein on Tue, 31 March 2020 22:34
|
|
|
Re: umk static version
By: amrein on Wed, 01 April 2020 10:05
|
|
|
Re: umk static version
By: mirek on Wed, 01 April 2020 10:26
|
|
|
Re: umk static version
By: amrein on Wed, 01 April 2020 16:20
|
|
|
Re: umk static version
By: amrein on Wed, 01 April 2020 16:27
|
|
|
Re: umk static version
By: mirek on Wed, 01 April 2020 16:54
|
|
|
Re: umk static version
By: mirek on Wed, 01 April 2020 16:55
|
|
|
Re: umk static version
By: Novo on Wed, 01 April 2020 17:59
|
|
|
Re: umk static version
By: mirek on Wed, 01 April 2020 20:39
|
|
|
Re: umk static version
By: Novo on Wed, 01 April 2020 21:08
|
|
|
Re: umk static version
By: Novo on Wed, 01 April 2020 21:15
|
|
|
Re: umk static version
By: amrein on Wed, 01 April 2020 21:47
|
|
|
Re: umk static version
By: mirek on Wed, 01 April 2020 23:35
|
|
|
Re: umk static version
By: mirek on Thu, 02 April 2020 09:22
|
|
|
Re: umk static version
By: mirek on Thu, 02 April 2020 16:36
|
|
|
Re: umk static version
By: mirek on Thu, 02 April 2020 17:35
|
|
|
Re: umk static version
|
|
|
Re: umk static version
By: Novo on Wed, 01 April 2020 15:38
|
Goto Forum:
Current Time: Thu Oct 31 23:50:09 CET 2024
Total time taken to generate the page: 0.01602 seconds
|