mix cmake (mix_cmake v0.1.0) View Source
Generate CMake buiid scripts and then build/install the application.
$ mix cmake [opt] [build_dir] [source_dir]
Command line options
--config
- generate build script--generator
- specify generator--parallel
- parallel jobs level--target
- build target--clean
- clean before build target--strip
- remove debug info from executable--verbose
- print process detail
Configuration
Add following configurations at project/1 in your mix.exs if you need.
def project do
[
cmake: [...]
]
end
:build_dir
- working directory {:local, :global, any_directory}:source_dir
- source directory:generator
- specify generator:build_parallel_level
- parallel jobs level
Link to this section Summary
Functions
Add an environment variable for child process.
Get application name.
Invoke cmake command with args
.
Return a map of default environment variables.
Get :cmake configuration from Mix.exs.
Get build/source directory.
parse command line arguments. (custom)
Remove cmake build directory. (interpret pseudo-path)
Callback implementation for Mix.Task.run/1
.
Link to this section Functions
Add an environment variable for child process.
Get application name.
Invoke cmake command with args
.
Return a map of default environment variables.
Get :cmake configuration from Mix.exs.
Get build/source directory.
See OptionParser.next/2
.
parse command line arguments. (custom)
Remove cmake build directory. (interpret pseudo-path)
Callback implementation for Mix.Task.run/1
.