Autotools
This plugin provides the autotools buildsystem as foreign-buildsystem to nitto.
To enable this plugin, put plugin "autotools" at the top of your buildfile.
Working
Currently, the plugin works as follows:
- it checks if a
configurescript exists, if not it tries to run autoreconf - it then checks if it needs to run
configure: It hashes all inputs (arguments as well as env-variables) and checks with a.hashfile if they match. If they do, this step is skipped. - if
configurewas run, or we have not all files we want (viacopy_result),makeis executed to build the artifacts.
Subcommands
Additionally to the subcommands below, the block for the buildsystem command also allows the if-command.
configure
Set options for a call to configure. Also allows the if-command.
no_target_triplet
Prevents nitto from setting --build, --host and --target. Should only be used if you know what you are doing.
no-create
Sets the --no-create flag.
prefix
Sets --prefix or --exec-prefix.
| Arguments | |||
|---|---|---|---|
| # | Name | Type | Info |
| 0 |
value
|
str
|
Expanded?: ❌ |
| 1 |
exec
(optional)
|
sym
|
When present, --exec-prefix is set instead of --prefix. Allowed values:
|
setDir
Sets directories such as --bindir, --sbindir and so on.
| Arguments | |||
|---|---|---|---|
| # | Name | Type | Info |
| 0 |
type
|
sym
|
Allowed values:
|
| 1 |
dir
|
str
|
Expanded?: ❌ |
env
Sets environment variables.
| Arguments | |||
|---|---|---|---|
| # | Name | Type | Info |
| 0 |
key
|
sym
|
|
| 1 |
value
|
str
|
Expanded?: ❌ |
arg
Adds an commandline argument.
| Arguments | |||
|---|---|---|---|
| # | Name | Type | Info |
| 0 |
name
|
str
|
Expanded?: ❌ |
| 1 |
value
(optional)
|
str
|
When present, --name=value is given to configure instead of a plain --name Expanded?: ❌ |
make
Options for running make.
parallel
Sets the count of parallel jobs (-j). Per default this is half your core count. Cannot be set higher than your actual core count.
| Arguments | |||
|---|---|---|---|
| # | Name | Type | Info |
| 0 |
jobs
|
num
|
|
copy_result
Copies a file from the source dir into nitto’s build-dir.
| Arguments | |||
|---|---|---|---|
| # | Name | Type | Info |
| 0 |
from
|
str
|
Expanded?: ✅ |
| 1 |
to
|
str
|
If omitted, the same value as "from" is used instead. Expanded?: ✅ |
autoreconf
Options for running autoreconf.
arg
Adds an commandline argument.
| Arguments | |||
|---|---|---|---|
| # | Name | Type | Info |
| 0 |
name
|
str
|
Expanded?: ❌ |
| 1 |
value
(optional)
|
str
|
When present, --name=value is given to configure instead of a plain --name Expanded?: ❌ |
clean_target
Sets the makefile rule called when wanting to do cleanup; eg clean for make clean.
| Arguments | |||
|---|---|---|---|
| # | Name | Type | Info |
| 0 |
name
|
str
|
Expanded?: ✅ |