jon.recoil.org

Module OpamVariable.FullSource

Fully qualified variable.

Sourcetype scope =
  1. | Global
    (*

    Note: this is attributed to unqualified variables, and may also design self-referring ones

    *)
  2. | Self
    (*

    Variable in a package-specific file referring to that package _:varname

    *)
  3. | Package of OpamPackage.Name.t
    (*

    pkgname:varname

    *)

Returns the scope of the variable

Returns the unqualified variable name

Sourceval is_global : OpamVariable.Full.t -> bool

Return the package corresponding to the scope of the variable

Create a variable local for a given library/syntax extension

Create a global variable

Create a variable in the Self scope

Looks up for an environment override through the environment, by means of OPAMVAR_glovar or OPAMVAR_pkg_pkgvar