Struct flatpak_rs::module::FlatpakBuildOptions
source · [−]pub struct FlatpakBuildOptions {Show 25 fields
pub cflags: String,
pub cflags_override: Option<bool>,
pub cppflags: String,
pub cppflags_override: Option<bool>,
pub cxxflags: String,
pub cxxflags_override: Option<bool>,
pub ldflags: String,
pub ldflags_override: Option<bool>,
pub prefix: String,
pub libdir: String,
pub append_path: String,
pub prepend_path: String,
pub append_ld_library_path: String,
pub prepend_ld_library_path: String,
pub append_pkg_config_path: String,
pub prepend_pkg_config_path: String,
pub build_args: Vec<String>,
pub test_args: Vec<String>,
pub config_opts: Vec<String>,
pub make_args: Vec<String>,
pub make_install_args: Vec<String>,
pub strip: Option<bool>,
pub no_debuginfo: Option<bool>,
pub no_debuginfo_compression: Option<bool>,
pub arch: BTreeMap<String, FlatpakBuildOptions>,
}
Expand description
Build options specify the build environment of a module, and can be specified globally as well as per-module. Options can also be specified on a per-architecture basis using the arch property.
Fields
cflags: String
This is set in the environment variable CFLAGS during the build. Multiple specifications of this (in e.g. per-arch area) are concatenated, separated by spaces.
cflags_override: Option<bool>
If this is true, clear cflags from previous build options before adding it from these options.
cppflags: String
This is set in the environment variable CPPFLAGS during the build. Multiple specifications of this (in e.g. per-arch area) are concatenated, separated by spaces.
cppflags_override: Option<bool>
If this is true, clear cppflags from previous build options before adding it from these options.
cxxflags: String
This is set in the environment variable CXXFLAGS during the build. Multiple specifications of this (in e.g. per-arch area) are concatenated, separated by spaces.
cxxflags_override: Option<bool>
If this is true, clear cxxflags from previous build options before adding it from these options.
ldflags: String
This is set in the environment variable LDFLAGS during the build. Multiple specifications of this (in e.g. per-arch area) are concatenated, separated by spaces.
ldflags_override: Option<bool>
If this is true, clear ldflags from previous build options before adding it from these options.
prefix: String
The build prefix for the modules (defaults to /app for applications and /usr for runtimes).
libdir: String
The build libdir for the modules (defaults to /app/lib for applications and /usr/lib for runtimes).
append_path: String
This will get appended to PATH in the build environment (with an leading colon if needed).
prepend_path: String
This will get prepended to PATH in the build environment (with an trailing colon if needed).
append_ld_library_path: String
This will get appended to LD_LIBRARY_PATH in the build environment (with an leading colon if needed).
prepend_ld_library_path: String
This will get prepended to LD_LIBRARY_PATH in the build environment (with an trailing colon if needed).
append_pkg_config_path: String
This will get appended to PKG_CONFIG_PATH in the build environment (with an leading colon if needed).
prepend_pkg_config_path: String
This will get prepended to PKG_CONFIG_PATH in the build environment (with an trailing colon if needed).
build_args: Vec<String>
This is an array containing extra options to pass to flatpak build.
test_args: Vec<String>
Similar to build-args but affects the tests, not the normal build.
config_opts: Vec<String>
This is an array containing extra options to pass to configure.
make_args: Vec<String>
An array of extra arguments that will be passed to make
make_install_args: Vec<String>
An array of extra arguments that will be passed to make install
strip: Option<bool>
If this is true (the default is false) then all ELF files will be stripped after install.
no_debuginfo: Option<bool>
By default (if strip is not true) flatpak-builder extracts all debug info in ELF files to a separate files and puts this in an extension. If you want to disable this, set no-debuginfo to true.
no_debuginfo_compression: Option<bool>
By default when extracting debuginfo we compress the debug sections. If you want to disable this, set no-debuginfo-compression to true.
arch: BTreeMap<String, FlatpakBuildOptions>
This is a dictionary defining for each arch a separate build options object that override the main one.
Trait Implementations
sourceimpl Clone for FlatpakBuildOptions
impl Clone for FlatpakBuildOptions
sourcefn clone(&self) -> FlatpakBuildOptions
fn clone(&self) -> FlatpakBuildOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FlatpakBuildOptions
impl Debug for FlatpakBuildOptions
sourceimpl Default for FlatpakBuildOptions
impl Default for FlatpakBuildOptions
sourcefn default() -> FlatpakBuildOptions
fn default() -> FlatpakBuildOptions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for FlatpakBuildOptions where
FlatpakBuildOptions: Default,
impl<'de> Deserialize<'de> for FlatpakBuildOptions where
FlatpakBuildOptions: Default,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Hash for FlatpakBuildOptions
impl Hash for FlatpakBuildOptions
sourceimpl Serialize for FlatpakBuildOptions
impl Serialize for FlatpakBuildOptions
Auto Trait Implementations
impl RefUnwindSafe for FlatpakBuildOptions
impl Send for FlatpakBuildOptions
impl Sync for FlatpakBuildOptions
impl Unpin for FlatpakBuildOptions
impl UnwindSafe for FlatpakBuildOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more