class Vcpkg::Config
- Vcpkg::Config
- Reference
- Object
Overview
Configuration options for finding packages, setting up the tree and emitting metadata to crystal
Defined in:
config.crConstant Summary
-
Log =
::Log.for(self)
Constructors
Instance Method Summary
-
#copy_dlls=(copy_dlls : Bool)
should DLLs be copied to OUT_DIR? property copy_dlls : Bool = false
-
#copy_dlls? : Bool
should DLLs be copied to OUT_DIR? property copy_dlls : Bool = false
-
#crystal_metadata : Bool
should the crystal metadata actually be emitted
-
#crystal_metadata=(crystal_metadata : Bool)
should the crystal metadata actually be emitted
- #do_dll_copy(rlib : Library) : Ok(Int32) | Err(LibNotFound)
- #do_dll_copy2(rlib : Library) : Ok(Nil) | Err(LibNotFound)
-
#emit_includes : Bool
should crystal:include= metadata be emitted (defaults to false)
-
#emit_includes=(emit_includes : Bool)
should crystal:include= metadata be emitted (defaults to false)
- #emit_libs(rlib : Library, vcpkg_target : VcpkgTarget) : Ok(Int32) | Err(LibNotFound)
- #envify(name : String)
-
#find_package(port_name : String)
Define the find_package method
-
#get_target_triplet : Ok(TargetTriplet) | Err(NotMSVC)
Define the get_target_triplet method
-
#lib_name(lib_stem : String)
Override the name of the library to look for if it differs from the package name.
-
#lib_names(lib_stem : String, dll_stem : String)
Override the name of the library to look for if it differs from the package name.
-
#required_dlls : Array(String)
.dlls that must be found for probing to be considered successful
-
#required_dlls=(required_dlls : Array(String))
.dlls that must be found for probing to be considered successful
-
#required_libs : Array(String)
.lib/.a files that must be found for probing to be considered successful
-
#required_libs=(required_libs : Array(String))
.lib/.a files that must be found for probing to be considered successful
- #target : TargetTriplet | Nil
- #target=(target : TargetTriplet | Nil)
-
#vcpkg_installed_root : Path | Nil
override vcpkg installed path, regardless of both VCPKG_ROOT/installed and VCPKG_INSTALLED_ROOT environment variables
-
#vcpkg_installed_root=(vcpkg_installed_root : Path | Nil)
override vcpkg installed path, regardless of both VCPKG_ROOT/installed and VCPKG_INSTALLED_ROOT environment variables
-
#vcpkg_root : Path | Nil
override VCPKG_ROOT environment variable
-
#vcpkg_root=(vcpkg_root : Path | Nil)
override VCPKG_ROOT environment variable
Constructor Detail
Instance Method Detail
should DLLs be copied to OUT_DIR? property copy_dlls : Bool = false
should crystal:include= metadata be emitted (defaults to false)
Define the get_target_triplet method
Override the name of the library to look for if it differs from the package name.
It should not be necessary to use #lib_name
anymore. Calling #find_package
with a package name
will result in the correct library names.
This may be called more than once if multiple libs are required.
All libs must be found for the probe to succeed. .probe()
must
be run with a different configuration to look for libraries under one of several names.
.libname("ssleay32")
will look for ssleay32.lib and also ssleay32.dll if
dynamic linking is selected.
Override the name of the library to look for if it differs from the package name.
It should not be necessary to use #lib_names
anymore. Calling #find_package
with a package name
will result in the correct library names.
This may be called more than once if multiple libs are required.
All libs must be found for the probe to succeed. .probe()
must
be run with a different configuration to look for libraries under one of several names.
.lib_names("libcurl_imp","curl")
will look for libcurl_imp.lib and also curl.dll if
dynamic linking is selected.
.dlls that must be found for probing to be considered successful
.dlls that must be found for probing to be considered successful
.lib/.a files that must be found for probing to be considered successful
.lib/.a files that must be found for probing to be considered successful
override vcpkg installed path, regardless of both VCPKG_ROOT/installed and VCPKG_INSTALLED_ROOT environment variables
override vcpkg installed path, regardless of both VCPKG_ROOT/installed and VCPKG_INSTALLED_ROOT environment variables