Struct FlatpakBuildOptions

Source
pub struct FlatpakBuildOptions {
Show 26 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 env: FlatpakBuildOptionsEnv, 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).

§env: FlatpakBuildOptionsEnv§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§

Source§

impl Clone for FlatpakBuildOptions

Source§

fn clone(&self) -> FlatpakBuildOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FlatpakBuildOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FlatpakBuildOptions

Source§

fn default() -> FlatpakBuildOptions

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for FlatpakBuildOptions

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for FlatpakBuildOptions

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Serialize for FlatpakBuildOptions

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,