Home » Developing U++ » U++ Developers corner » umk static version
Re: umk static version [message #53392 is a reply to message #53382] |
Wed, 01 April 2020 08:53   |
 |
amrein
Messages: 278 Registered: August 2008 Location: France
|
Experienced 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
Yes! It would be great. It's more POSIX friendly.
Options to add:
-c, --config <path>
Path to configuration files (default ~/.upp/umk).
-C, --cache <path>
Path to cache directory (default ~/.upp/umk/_out).
-e, --define <variable="value">
Overwrite an internal config value (advanced option).
Examples:
Build Bombs example using var paths and define a different cache location
umk -A examples.var -C $PWD/build Bombs
Build Bombs example using GCC build method but with a different compiler name
umk -A upp/examples,upp/uppsrc -e COMPILER="gcc-42" Bombs
|
|
|
 |
|
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: Wed Jul 16 15:13:59 CEST 2025
Total time taken to generate the page: 0.03837 seconds
|