Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/__init__.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/compiler.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/data.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/display.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/theme.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/__init__.py +571 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/__pycache__/_typing.cpython-310.pyc +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/_config.py +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/_typing.py +1153 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/channels.py +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/core.py +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/mixins.py +1600 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/vega-lite-schema.json +0 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/vega-themes.json +1187 -0
- mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/theme.py +125 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeASMInformation.cmake +101 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCSharpCompilerId.cs.in +71 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCSharpInformation.cmake +70 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCUDACompiler.cmake.in +87 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCUDACompilerABI.cu +26 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCompilerIdDetection.cmake +162 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineASM_MASMCompiler.cmake +18 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineCXXCompiler.cmake +242 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindWMake.cmake +7 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeForceCompiler.cmake +114 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeGraphVizOptions.cmake +150 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeISPCInformation.cmake +67 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeImportBuildSettings.cmake +13 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeOBJCCompilerABI.m +22 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakePlatformId.h.in +359 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeRCInformation.cmake +52 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeSwiftCompiler.cmake.in +18 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeSystemSpecificInformation.cmake +64 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestASMCompiler.cmake +25 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestGNU.c +10 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestHIPCompiler.cmake +116 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CTestTargets.cmake +109 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckFunctionExists.c +28 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckOBJCSourceCompiles.cmake +61 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckOBJCXXSourceCompiles.cmake +61 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckStructHasMember.cmake +90 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckSymbolExists.cmake +189 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckTypeSizeMap.cmake.in +1 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/DeployQt4.cmake +399 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindASPELL.cmake +32 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindBacktrace.cmake +113 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindCUDAToolkit.cmake +1409 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindCurses.cmake +276 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindFLTK.cmake +344 -0
- openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindGIF.cmake +133 -0
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (12.2 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/compiler.cpython-310.pyc
ADDED
|
Binary file (915 Bytes). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/data.cpython-310.pyc
ADDED
|
Binary file (827 Bytes). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/display.cpython-310.pyc
ADDED
|
Binary file (4.41 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/__pycache__/theme.cpython-310.pyc
ADDED
|
Binary file (4.37 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/__init__.py
ADDED
|
@@ -0,0 +1,571 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ruff: noqa: F403, F405
|
| 2 |
+
# The contents of this file are automatically written by
|
| 3 |
+
# tools/generate_schema_wrapper.py. Do not modify directly.
|
| 4 |
+
|
| 5 |
+
from altair.vegalite.v5.schema import channels, core
|
| 6 |
+
from altair.vegalite.v5.schema.channels import *
|
| 7 |
+
from altair.vegalite.v5.schema.core import *
|
| 8 |
+
|
| 9 |
+
SCHEMA_VERSION = "v5.20.1"
|
| 10 |
+
|
| 11 |
+
SCHEMA_URL = "https://vega.github.io/schema/vega-lite/v5.20.1.json"
|
| 12 |
+
|
| 13 |
+
__all__ = [
|
| 14 |
+
"SCHEMA_URL",
|
| 15 |
+
"SCHEMA_VERSION",
|
| 16 |
+
"URI",
|
| 17 |
+
"X2",
|
| 18 |
+
"Y2",
|
| 19 |
+
"Aggregate",
|
| 20 |
+
"AggregateOp",
|
| 21 |
+
"AggregateTransform",
|
| 22 |
+
"AggregatedFieldDef",
|
| 23 |
+
"Align",
|
| 24 |
+
"AllSortString",
|
| 25 |
+
"Angle",
|
| 26 |
+
"AngleDatum",
|
| 27 |
+
"AngleValue",
|
| 28 |
+
"AnyMark",
|
| 29 |
+
"AnyMarkConfig",
|
| 30 |
+
"AreaConfig",
|
| 31 |
+
"ArgmaxDef",
|
| 32 |
+
"ArgminDef",
|
| 33 |
+
"AutoSizeParams",
|
| 34 |
+
"AutosizeType",
|
| 35 |
+
"Axis",
|
| 36 |
+
"AxisConfig",
|
| 37 |
+
"AxisOrient",
|
| 38 |
+
"AxisResolveMap",
|
| 39 |
+
"BBox",
|
| 40 |
+
"BarConfig",
|
| 41 |
+
"BaseTitleNoValueRefs",
|
| 42 |
+
"Baseline",
|
| 43 |
+
"BinExtent",
|
| 44 |
+
"BinParams",
|
| 45 |
+
"BinTransform",
|
| 46 |
+
"BindCheckbox",
|
| 47 |
+
"BindDirect",
|
| 48 |
+
"BindInput",
|
| 49 |
+
"BindRadioSelect",
|
| 50 |
+
"BindRange",
|
| 51 |
+
"Binding",
|
| 52 |
+
"BinnedTimeUnit",
|
| 53 |
+
"Blend",
|
| 54 |
+
"BoxPlot",
|
| 55 |
+
"BoxPlotConfig",
|
| 56 |
+
"BoxPlotDef",
|
| 57 |
+
"BrushConfig",
|
| 58 |
+
"CalculateTransform",
|
| 59 |
+
"Categorical",
|
| 60 |
+
"Color",
|
| 61 |
+
"ColorDatum",
|
| 62 |
+
"ColorDef",
|
| 63 |
+
"ColorName",
|
| 64 |
+
"ColorScheme",
|
| 65 |
+
"ColorValue",
|
| 66 |
+
"Column",
|
| 67 |
+
"CompositeMark",
|
| 68 |
+
"CompositeMarkDef",
|
| 69 |
+
"CompositionConfig",
|
| 70 |
+
"ConcatSpecGenericSpec",
|
| 71 |
+
"ConditionalAxisColor",
|
| 72 |
+
"ConditionalAxisLabelAlign",
|
| 73 |
+
"ConditionalAxisLabelBaseline",
|
| 74 |
+
"ConditionalAxisLabelFontStyle",
|
| 75 |
+
"ConditionalAxisLabelFontWeight",
|
| 76 |
+
"ConditionalAxisNumber",
|
| 77 |
+
"ConditionalAxisNumberArray",
|
| 78 |
+
"ConditionalAxisPropertyAlignnull",
|
| 79 |
+
"ConditionalAxisPropertyColornull",
|
| 80 |
+
"ConditionalAxisPropertyFontStylenull",
|
| 81 |
+
"ConditionalAxisPropertyFontWeightnull",
|
| 82 |
+
"ConditionalAxisPropertyTextBaselinenull",
|
| 83 |
+
"ConditionalAxisPropertynumberArraynull",
|
| 84 |
+
"ConditionalAxisPropertynumbernull",
|
| 85 |
+
"ConditionalAxisPropertystringnull",
|
| 86 |
+
"ConditionalAxisString",
|
| 87 |
+
"ConditionalMarkPropFieldOrDatumDef",
|
| 88 |
+
"ConditionalMarkPropFieldOrDatumDefTypeForShape",
|
| 89 |
+
"ConditionalParameterMarkPropFieldOrDatumDef",
|
| 90 |
+
"ConditionalParameterMarkPropFieldOrDatumDefTypeForShape",
|
| 91 |
+
"ConditionalParameterStringFieldDef",
|
| 92 |
+
"ConditionalParameterValueDefGradientstringnullExprRef",
|
| 93 |
+
"ConditionalParameterValueDefTextExprRef",
|
| 94 |
+
"ConditionalParameterValueDefnumber",
|
| 95 |
+
"ConditionalParameterValueDefnumberArrayExprRef",
|
| 96 |
+
"ConditionalParameterValueDefnumberExprRef",
|
| 97 |
+
"ConditionalParameterValueDefstringExprRef",
|
| 98 |
+
"ConditionalParameterValueDefstringnullExprRef",
|
| 99 |
+
"ConditionalPredicateMarkPropFieldOrDatumDef",
|
| 100 |
+
"ConditionalPredicateMarkPropFieldOrDatumDefTypeForShape",
|
| 101 |
+
"ConditionalPredicateStringFieldDef",
|
| 102 |
+
"ConditionalPredicateValueDefAlignnullExprRef",
|
| 103 |
+
"ConditionalPredicateValueDefColornullExprRef",
|
| 104 |
+
"ConditionalPredicateValueDefFontStylenullExprRef",
|
| 105 |
+
"ConditionalPredicateValueDefFontWeightnullExprRef",
|
| 106 |
+
"ConditionalPredicateValueDefGradientstringnullExprRef",
|
| 107 |
+
"ConditionalPredicateValueDefTextBaselinenullExprRef",
|
| 108 |
+
"ConditionalPredicateValueDefTextExprRef",
|
| 109 |
+
"ConditionalPredicateValueDefnumber",
|
| 110 |
+
"ConditionalPredicateValueDefnumberArrayExprRef",
|
| 111 |
+
"ConditionalPredicateValueDefnumberArraynullExprRef",
|
| 112 |
+
"ConditionalPredicateValueDefnumberExprRef",
|
| 113 |
+
"ConditionalPredicateValueDefnumbernullExprRef",
|
| 114 |
+
"ConditionalPredicateValueDefstringExprRef",
|
| 115 |
+
"ConditionalPredicateValueDefstringnullExprRef",
|
| 116 |
+
"ConditionalStringFieldDef",
|
| 117 |
+
"ConditionalValueDefGradientstringnullExprRef",
|
| 118 |
+
"ConditionalValueDefTextExprRef",
|
| 119 |
+
"ConditionalValueDefnumber",
|
| 120 |
+
"ConditionalValueDefnumberArrayExprRef",
|
| 121 |
+
"ConditionalValueDefnumberExprRef",
|
| 122 |
+
"ConditionalValueDefstringExprRef",
|
| 123 |
+
"ConditionalValueDefstringnullExprRef",
|
| 124 |
+
"Config",
|
| 125 |
+
"CsvDataFormat",
|
| 126 |
+
"Cursor",
|
| 127 |
+
"Cyclical",
|
| 128 |
+
"Data",
|
| 129 |
+
"DataFormat",
|
| 130 |
+
"DataSource",
|
| 131 |
+
"Datasets",
|
| 132 |
+
"DateTime",
|
| 133 |
+
"DatumChannelMixin",
|
| 134 |
+
"DatumDef",
|
| 135 |
+
"Day",
|
| 136 |
+
"DensityTransform",
|
| 137 |
+
"DerivedStream",
|
| 138 |
+
"Description",
|
| 139 |
+
"DescriptionValue",
|
| 140 |
+
"Detail",
|
| 141 |
+
"DictInlineDataset",
|
| 142 |
+
"DictSelectionInit",
|
| 143 |
+
"DictSelectionInitInterval",
|
| 144 |
+
"Diverging",
|
| 145 |
+
"DomainUnionWith",
|
| 146 |
+
"DsvDataFormat",
|
| 147 |
+
"Element",
|
| 148 |
+
"Encoding",
|
| 149 |
+
"EncodingSortField",
|
| 150 |
+
"ErrorBand",
|
| 151 |
+
"ErrorBandConfig",
|
| 152 |
+
"ErrorBandDef",
|
| 153 |
+
"ErrorBar",
|
| 154 |
+
"ErrorBarConfig",
|
| 155 |
+
"ErrorBarDef",
|
| 156 |
+
"ErrorBarExtent",
|
| 157 |
+
"EventStream",
|
| 158 |
+
"EventType",
|
| 159 |
+
"Expr",
|
| 160 |
+
"ExprRef",
|
| 161 |
+
"ExtentTransform",
|
| 162 |
+
"Facet",
|
| 163 |
+
"FacetEncodingFieldDef",
|
| 164 |
+
"FacetFieldDef",
|
| 165 |
+
"FacetSpec",
|
| 166 |
+
"FacetedEncoding",
|
| 167 |
+
"FacetedUnitSpec",
|
| 168 |
+
"Feature",
|
| 169 |
+
"FeatureCollection",
|
| 170 |
+
"FeatureGeometryGeoJsonProperties",
|
| 171 |
+
"Field",
|
| 172 |
+
"FieldChannelMixin",
|
| 173 |
+
"FieldDefWithoutScale",
|
| 174 |
+
"FieldEqualPredicate",
|
| 175 |
+
"FieldGTEPredicate",
|
| 176 |
+
"FieldGTPredicate",
|
| 177 |
+
"FieldLTEPredicate",
|
| 178 |
+
"FieldLTPredicate",
|
| 179 |
+
"FieldName",
|
| 180 |
+
"FieldOneOfPredicate",
|
| 181 |
+
"FieldOrDatumDefWithConditionDatumDefGradientstringnull",
|
| 182 |
+
"FieldOrDatumDefWithConditionDatumDefnumber",
|
| 183 |
+
"FieldOrDatumDefWithConditionDatumDefnumberArray",
|
| 184 |
+
"FieldOrDatumDefWithConditionDatumDefstringnull",
|
| 185 |
+
"FieldOrDatumDefWithConditionMarkPropFieldDefGradientstringnull",
|
| 186 |
+
"FieldOrDatumDefWithConditionMarkPropFieldDefTypeForShapestringnull",
|
| 187 |
+
"FieldOrDatumDefWithConditionMarkPropFieldDefnumber",
|
| 188 |
+
"FieldOrDatumDefWithConditionMarkPropFieldDefnumberArray",
|
| 189 |
+
"FieldOrDatumDefWithConditionStringDatumDefText",
|
| 190 |
+
"FieldOrDatumDefWithConditionStringFieldDefText",
|
| 191 |
+
"FieldOrDatumDefWithConditionStringFieldDefstring",
|
| 192 |
+
"FieldRange",
|
| 193 |
+
"FieldRangePredicate",
|
| 194 |
+
"FieldValidPredicate",
|
| 195 |
+
"Fill",
|
| 196 |
+
"FillDatum",
|
| 197 |
+
"FillOpacity",
|
| 198 |
+
"FillOpacityDatum",
|
| 199 |
+
"FillOpacityValue",
|
| 200 |
+
"FillValue",
|
| 201 |
+
"FilterTransform",
|
| 202 |
+
"Fit",
|
| 203 |
+
"FlattenTransform",
|
| 204 |
+
"FoldTransform",
|
| 205 |
+
"FontStyle",
|
| 206 |
+
"FontWeight",
|
| 207 |
+
"FormatConfig",
|
| 208 |
+
"Generator",
|
| 209 |
+
"GenericUnitSpecEncodingAnyMark",
|
| 210 |
+
"GeoJsonFeature",
|
| 211 |
+
"GeoJsonFeatureCollection",
|
| 212 |
+
"GeoJsonProperties",
|
| 213 |
+
"Geometry",
|
| 214 |
+
"GeometryCollection",
|
| 215 |
+
"Gradient",
|
| 216 |
+
"GradientStop",
|
| 217 |
+
"GraticuleGenerator",
|
| 218 |
+
"GraticuleParams",
|
| 219 |
+
"HConcatSpecGenericSpec",
|
| 220 |
+
"Header",
|
| 221 |
+
"HeaderConfig",
|
| 222 |
+
"HexColor",
|
| 223 |
+
"Href",
|
| 224 |
+
"HrefValue",
|
| 225 |
+
"ImputeMethod",
|
| 226 |
+
"ImputeParams",
|
| 227 |
+
"ImputeSequence",
|
| 228 |
+
"ImputeTransform",
|
| 229 |
+
"InlineData",
|
| 230 |
+
"InlineDataset",
|
| 231 |
+
"Interpolate",
|
| 232 |
+
"IntervalSelectionConfig",
|
| 233 |
+
"IntervalSelectionConfigWithoutType",
|
| 234 |
+
"JoinAggregateFieldDef",
|
| 235 |
+
"JoinAggregateTransform",
|
| 236 |
+
"JsonDataFormat",
|
| 237 |
+
"Key",
|
| 238 |
+
"LabelOverlap",
|
| 239 |
+
"LatLongDef",
|
| 240 |
+
"LatLongFieldDef",
|
| 241 |
+
"Latitude",
|
| 242 |
+
"Latitude2",
|
| 243 |
+
"Latitude2Datum",
|
| 244 |
+
"Latitude2Value",
|
| 245 |
+
"LatitudeDatum",
|
| 246 |
+
"LayerRepeatMapping",
|
| 247 |
+
"LayerRepeatSpec",
|
| 248 |
+
"LayerSpec",
|
| 249 |
+
"LayoutAlign",
|
| 250 |
+
"Legend",
|
| 251 |
+
"LegendBinding",
|
| 252 |
+
"LegendConfig",
|
| 253 |
+
"LegendOrient",
|
| 254 |
+
"LegendResolveMap",
|
| 255 |
+
"LegendStreamBinding",
|
| 256 |
+
"LineConfig",
|
| 257 |
+
"LineString",
|
| 258 |
+
"LinearGradient",
|
| 259 |
+
"LocalMultiTimeUnit",
|
| 260 |
+
"LocalSingleTimeUnit",
|
| 261 |
+
"Locale",
|
| 262 |
+
"LoessTransform",
|
| 263 |
+
"LogicalAndPredicate",
|
| 264 |
+
"LogicalNotPredicate",
|
| 265 |
+
"LogicalOrPredicate",
|
| 266 |
+
"Longitude",
|
| 267 |
+
"Longitude2",
|
| 268 |
+
"Longitude2Datum",
|
| 269 |
+
"Longitude2Value",
|
| 270 |
+
"LongitudeDatum",
|
| 271 |
+
"LookupSelection",
|
| 272 |
+
"LookupTransform",
|
| 273 |
+
"Mark",
|
| 274 |
+
"MarkConfig",
|
| 275 |
+
"MarkDef",
|
| 276 |
+
"MarkInvalidDataMode",
|
| 277 |
+
"MarkPropDefGradientstringnull",
|
| 278 |
+
"MarkPropDefnumber",
|
| 279 |
+
"MarkPropDefnumberArray",
|
| 280 |
+
"MarkPropDefstringnullTypeForShape",
|
| 281 |
+
"MarkType",
|
| 282 |
+
"MergedStream",
|
| 283 |
+
"Month",
|
| 284 |
+
"MultiLineString",
|
| 285 |
+
"MultiPoint",
|
| 286 |
+
"MultiPolygon",
|
| 287 |
+
"MultiTimeUnit",
|
| 288 |
+
"NamedData",
|
| 289 |
+
"NonArgAggregateOp",
|
| 290 |
+
"NonLayerRepeatSpec",
|
| 291 |
+
"NonNormalizedSpec",
|
| 292 |
+
"NumberLocale",
|
| 293 |
+
"NumericArrayMarkPropDef",
|
| 294 |
+
"NumericMarkPropDef",
|
| 295 |
+
"OffsetDef",
|
| 296 |
+
"Opacity",
|
| 297 |
+
"OpacityDatum",
|
| 298 |
+
"OpacityValue",
|
| 299 |
+
"Order",
|
| 300 |
+
"OrderFieldDef",
|
| 301 |
+
"OrderOnlyDef",
|
| 302 |
+
"OrderValue",
|
| 303 |
+
"OrderValueDef",
|
| 304 |
+
"Orient",
|
| 305 |
+
"Orientation",
|
| 306 |
+
"OverlayMarkDef",
|
| 307 |
+
"Padding",
|
| 308 |
+
"ParameterExtent",
|
| 309 |
+
"ParameterName",
|
| 310 |
+
"ParameterPredicate",
|
| 311 |
+
"Parse",
|
| 312 |
+
"ParseValue",
|
| 313 |
+
"PivotTransform",
|
| 314 |
+
"Point",
|
| 315 |
+
"PointSelectionConfig",
|
| 316 |
+
"PointSelectionConfigWithoutType",
|
| 317 |
+
"PolarDef",
|
| 318 |
+
"Polygon",
|
| 319 |
+
"Position",
|
| 320 |
+
"Position2Def",
|
| 321 |
+
"PositionDatumDef",
|
| 322 |
+
"PositionDatumDefBase",
|
| 323 |
+
"PositionDef",
|
| 324 |
+
"PositionFieldDef",
|
| 325 |
+
"PositionFieldDefBase",
|
| 326 |
+
"PositionValueDef",
|
| 327 |
+
"Predicate",
|
| 328 |
+
"PredicateComposition",
|
| 329 |
+
"PrimitiveValue",
|
| 330 |
+
"Projection",
|
| 331 |
+
"ProjectionConfig",
|
| 332 |
+
"ProjectionType",
|
| 333 |
+
"QuantileTransform",
|
| 334 |
+
"RadialGradient",
|
| 335 |
+
"Radius",
|
| 336 |
+
"Radius2",
|
| 337 |
+
"Radius2Datum",
|
| 338 |
+
"Radius2Value",
|
| 339 |
+
"RadiusDatum",
|
| 340 |
+
"RadiusValue",
|
| 341 |
+
"RangeConfig",
|
| 342 |
+
"RangeEnum",
|
| 343 |
+
"RangeRaw",
|
| 344 |
+
"RangeRawArray",
|
| 345 |
+
"RangeScheme",
|
| 346 |
+
"RectConfig",
|
| 347 |
+
"RegressionTransform",
|
| 348 |
+
"RelativeBandSize",
|
| 349 |
+
"RepeatMapping",
|
| 350 |
+
"RepeatRef",
|
| 351 |
+
"RepeatSpec",
|
| 352 |
+
"Resolve",
|
| 353 |
+
"ResolveMode",
|
| 354 |
+
"Root",
|
| 355 |
+
"Row",
|
| 356 |
+
"RowColLayoutAlign",
|
| 357 |
+
"RowColboolean",
|
| 358 |
+
"RowColnumber",
|
| 359 |
+
"RowColumnEncodingFieldDef",
|
| 360 |
+
"SampleTransform",
|
| 361 |
+
"Scale",
|
| 362 |
+
"ScaleBinParams",
|
| 363 |
+
"ScaleBins",
|
| 364 |
+
"ScaleConfig",
|
| 365 |
+
"ScaleDatumDef",
|
| 366 |
+
"ScaleFieldDef",
|
| 367 |
+
"ScaleInterpolateEnum",
|
| 368 |
+
"ScaleInterpolateParams",
|
| 369 |
+
"ScaleInvalidDataConfig",
|
| 370 |
+
"ScaleInvalidDataShowAsValueangle",
|
| 371 |
+
"ScaleInvalidDataShowAsValuecolor",
|
| 372 |
+
"ScaleInvalidDataShowAsValuefill",
|
| 373 |
+
"ScaleInvalidDataShowAsValuefillOpacity",
|
| 374 |
+
"ScaleInvalidDataShowAsValueopacity",
|
| 375 |
+
"ScaleInvalidDataShowAsValueradius",
|
| 376 |
+
"ScaleInvalidDataShowAsValueshape",
|
| 377 |
+
"ScaleInvalidDataShowAsValuesize",
|
| 378 |
+
"ScaleInvalidDataShowAsValuestroke",
|
| 379 |
+
"ScaleInvalidDataShowAsValuestrokeDash",
|
| 380 |
+
"ScaleInvalidDataShowAsValuestrokeOpacity",
|
| 381 |
+
"ScaleInvalidDataShowAsValuestrokeWidth",
|
| 382 |
+
"ScaleInvalidDataShowAsValuetheta",
|
| 383 |
+
"ScaleInvalidDataShowAsValuex",
|
| 384 |
+
"ScaleInvalidDataShowAsValuexOffset",
|
| 385 |
+
"ScaleInvalidDataShowAsValuey",
|
| 386 |
+
"ScaleInvalidDataShowAsValueyOffset",
|
| 387 |
+
"ScaleInvalidDataShowAsangle",
|
| 388 |
+
"ScaleInvalidDataShowAscolor",
|
| 389 |
+
"ScaleInvalidDataShowAsfill",
|
| 390 |
+
"ScaleInvalidDataShowAsfillOpacity",
|
| 391 |
+
"ScaleInvalidDataShowAsopacity",
|
| 392 |
+
"ScaleInvalidDataShowAsradius",
|
| 393 |
+
"ScaleInvalidDataShowAsshape",
|
| 394 |
+
"ScaleInvalidDataShowAssize",
|
| 395 |
+
"ScaleInvalidDataShowAsstroke",
|
| 396 |
+
"ScaleInvalidDataShowAsstrokeDash",
|
| 397 |
+
"ScaleInvalidDataShowAsstrokeOpacity",
|
| 398 |
+
"ScaleInvalidDataShowAsstrokeWidth",
|
| 399 |
+
"ScaleInvalidDataShowAstheta",
|
| 400 |
+
"ScaleInvalidDataShowAsx",
|
| 401 |
+
"ScaleInvalidDataShowAsxOffset",
|
| 402 |
+
"ScaleInvalidDataShowAsy",
|
| 403 |
+
"ScaleInvalidDataShowAsyOffset",
|
| 404 |
+
"ScaleResolveMap",
|
| 405 |
+
"ScaleType",
|
| 406 |
+
"SchemaBase",
|
| 407 |
+
"SchemeParams",
|
| 408 |
+
"SecondaryFieldDef",
|
| 409 |
+
"SelectionConfig",
|
| 410 |
+
"SelectionInit",
|
| 411 |
+
"SelectionInitInterval",
|
| 412 |
+
"SelectionInitIntervalMapping",
|
| 413 |
+
"SelectionInitMapping",
|
| 414 |
+
"SelectionParameter",
|
| 415 |
+
"SelectionResolution",
|
| 416 |
+
"SelectionType",
|
| 417 |
+
"SequenceGenerator",
|
| 418 |
+
"SequenceParams",
|
| 419 |
+
"SequentialMultiHue",
|
| 420 |
+
"SequentialSingleHue",
|
| 421 |
+
"Shape",
|
| 422 |
+
"ShapeDatum",
|
| 423 |
+
"ShapeDef",
|
| 424 |
+
"ShapeValue",
|
| 425 |
+
"SharedEncoding",
|
| 426 |
+
"SingleDefUnitChannel",
|
| 427 |
+
"SingleTimeUnit",
|
| 428 |
+
"Size",
|
| 429 |
+
"SizeDatum",
|
| 430 |
+
"SizeValue",
|
| 431 |
+
"Sort",
|
| 432 |
+
"SortArray",
|
| 433 |
+
"SortByChannel",
|
| 434 |
+
"SortByChannelDesc",
|
| 435 |
+
"SortByEncoding",
|
| 436 |
+
"SortField",
|
| 437 |
+
"SortOrder",
|
| 438 |
+
"Spec",
|
| 439 |
+
"SphereGenerator",
|
| 440 |
+
"StackOffset",
|
| 441 |
+
"StackTransform",
|
| 442 |
+
"StandardType",
|
| 443 |
+
"Step",
|
| 444 |
+
"StepFor",
|
| 445 |
+
"Stream",
|
| 446 |
+
"StringFieldDef",
|
| 447 |
+
"StringFieldDefWithCondition",
|
| 448 |
+
"StringValueDefWithCondition",
|
| 449 |
+
"Stroke",
|
| 450 |
+
"StrokeCap",
|
| 451 |
+
"StrokeDash",
|
| 452 |
+
"StrokeDashDatum",
|
| 453 |
+
"StrokeDashValue",
|
| 454 |
+
"StrokeDatum",
|
| 455 |
+
"StrokeJoin",
|
| 456 |
+
"StrokeOpacity",
|
| 457 |
+
"StrokeOpacityDatum",
|
| 458 |
+
"StrokeOpacityValue",
|
| 459 |
+
"StrokeValue",
|
| 460 |
+
"StrokeWidth",
|
| 461 |
+
"StrokeWidthDatum",
|
| 462 |
+
"StrokeWidthValue",
|
| 463 |
+
"StyleConfigIndex",
|
| 464 |
+
"SymbolShape",
|
| 465 |
+
"Text",
|
| 466 |
+
"TextBaseline",
|
| 467 |
+
"TextDatum",
|
| 468 |
+
"TextDef",
|
| 469 |
+
"TextDirection",
|
| 470 |
+
"TextValue",
|
| 471 |
+
"Theta",
|
| 472 |
+
"Theta2",
|
| 473 |
+
"Theta2Datum",
|
| 474 |
+
"Theta2Value",
|
| 475 |
+
"ThetaDatum",
|
| 476 |
+
"ThetaValue",
|
| 477 |
+
"TickConfig",
|
| 478 |
+
"TickCount",
|
| 479 |
+
"TimeInterval",
|
| 480 |
+
"TimeIntervalStep",
|
| 481 |
+
"TimeLocale",
|
| 482 |
+
"TimeUnit",
|
| 483 |
+
"TimeUnitParams",
|
| 484 |
+
"TimeUnitTransform",
|
| 485 |
+
"TimeUnitTransformParams",
|
| 486 |
+
"TitleAnchor",
|
| 487 |
+
"TitleConfig",
|
| 488 |
+
"TitleFrame",
|
| 489 |
+
"TitleOrient",
|
| 490 |
+
"TitleParams",
|
| 491 |
+
"Tooltip",
|
| 492 |
+
"TooltipContent",
|
| 493 |
+
"TooltipValue",
|
| 494 |
+
"TopLevelConcatSpec",
|
| 495 |
+
"TopLevelFacetSpec",
|
| 496 |
+
"TopLevelHConcatSpec",
|
| 497 |
+
"TopLevelLayerSpec",
|
| 498 |
+
"TopLevelParameter",
|
| 499 |
+
"TopLevelRepeatSpec",
|
| 500 |
+
"TopLevelSelectionParameter",
|
| 501 |
+
"TopLevelSpec",
|
| 502 |
+
"TopLevelUnitSpec",
|
| 503 |
+
"TopLevelVConcatSpec",
|
| 504 |
+
"TopoDataFormat",
|
| 505 |
+
"Transform",
|
| 506 |
+
"Type",
|
| 507 |
+
"TypeForShape",
|
| 508 |
+
"TypedFieldDef",
|
| 509 |
+
"UnitSpec",
|
| 510 |
+
"UnitSpecWithFrame",
|
| 511 |
+
"Url",
|
| 512 |
+
"UrlData",
|
| 513 |
+
"UrlValue",
|
| 514 |
+
"UtcMultiTimeUnit",
|
| 515 |
+
"UtcSingleTimeUnit",
|
| 516 |
+
"VConcatSpecGenericSpec",
|
| 517 |
+
"ValueChannelMixin",
|
| 518 |
+
"ValueDefWithConditionMarkPropFieldOrDatumDefGradientstringnull",
|
| 519 |
+
"ValueDefWithConditionMarkPropFieldOrDatumDefTypeForShapestringnull",
|
| 520 |
+
"ValueDefWithConditionMarkPropFieldOrDatumDefnumber",
|
| 521 |
+
"ValueDefWithConditionMarkPropFieldOrDatumDefnumberArray",
|
| 522 |
+
"ValueDefWithConditionMarkPropFieldOrDatumDefstringnull",
|
| 523 |
+
"ValueDefWithConditionStringFieldDefText",
|
| 524 |
+
"ValueDefnumber",
|
| 525 |
+
"ValueDefnumberwidthheightExprRef",
|
| 526 |
+
"VariableParameter",
|
| 527 |
+
"Vector2DateTime",
|
| 528 |
+
"Vector2Vector2number",
|
| 529 |
+
"Vector2boolean",
|
| 530 |
+
"Vector2number",
|
| 531 |
+
"Vector2string",
|
| 532 |
+
"Vector3number",
|
| 533 |
+
"Vector7string",
|
| 534 |
+
"Vector10string",
|
| 535 |
+
"Vector12string",
|
| 536 |
+
"VegaLiteSchema",
|
| 537 |
+
"ViewBackground",
|
| 538 |
+
"ViewConfig",
|
| 539 |
+
"WindowEventType",
|
| 540 |
+
"WindowFieldDef",
|
| 541 |
+
"WindowOnlyOp",
|
| 542 |
+
"WindowTransform",
|
| 543 |
+
"X",
|
| 544 |
+
"X2Datum",
|
| 545 |
+
"X2Value",
|
| 546 |
+
"XDatum",
|
| 547 |
+
"XError",
|
| 548 |
+
"XError2",
|
| 549 |
+
"XError2Value",
|
| 550 |
+
"XErrorValue",
|
| 551 |
+
"XOffset",
|
| 552 |
+
"XOffsetDatum",
|
| 553 |
+
"XOffsetValue",
|
| 554 |
+
"XValue",
|
| 555 |
+
"Y",
|
| 556 |
+
"Y2Datum",
|
| 557 |
+
"Y2Value",
|
| 558 |
+
"YDatum",
|
| 559 |
+
"YError",
|
| 560 |
+
"YError2",
|
| 561 |
+
"YError2Value",
|
| 562 |
+
"YErrorValue",
|
| 563 |
+
"YOffset",
|
| 564 |
+
"YOffsetDatum",
|
| 565 |
+
"YOffsetValue",
|
| 566 |
+
"YValue",
|
| 567 |
+
"channels",
|
| 568 |
+
"core",
|
| 569 |
+
"load_schema",
|
| 570 |
+
"with_property_setters",
|
| 571 |
+
]
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/__pycache__/_typing.cpython-310.pyc
ADDED
|
Binary file (16.7 kB). View file
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/_config.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/_typing.py
ADDED
|
@@ -0,0 +1,1153 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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by
|
| 2 |
+
# tools/generate_schema_wrapper.py. Do not modify directly.
|
| 3 |
+
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
import re
|
| 7 |
+
import sys
|
| 8 |
+
from collections.abc import Mapping, Sequence
|
| 9 |
+
from datetime import date, datetime
|
| 10 |
+
from typing import Annotated, Any, Generic, Literal, TypeVar, Union, get_args
|
| 11 |
+
|
| 12 |
+
if sys.version_info >= (3, 14): # https://peps.python.org/pep-0728/
|
| 13 |
+
from typing import TypedDict
|
| 14 |
+
else:
|
| 15 |
+
from typing_extensions import TypedDict
|
| 16 |
+
|
| 17 |
+
if sys.version_info >= (3, 13):
|
| 18 |
+
from typing import TypeIs
|
| 19 |
+
else:
|
| 20 |
+
from typing_extensions import TypeIs
|
| 21 |
+
|
| 22 |
+
if sys.version_info >= (3, 12):
|
| 23 |
+
from typing import TypeAliasType
|
| 24 |
+
else:
|
| 25 |
+
from typing_extensions import TypeAliasType
|
| 26 |
+
|
| 27 |
+
if sys.version_info >= (3, 11):
|
| 28 |
+
from typing import LiteralString
|
| 29 |
+
else:
|
| 30 |
+
from typing_extensions import LiteralString
|
| 31 |
+
|
| 32 |
+
if sys.version_info >= (3, 10):
|
| 33 |
+
from typing import TypeAlias
|
| 34 |
+
else:
|
| 35 |
+
from typing_extensions import TypeAlias
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
__all__ = [
|
| 39 |
+
"AggregateOp_T",
|
| 40 |
+
"Align_T",
|
| 41 |
+
"AllSortString_T",
|
| 42 |
+
"AutosizeType_T",
|
| 43 |
+
"AxisOrient_T",
|
| 44 |
+
"BinnedTimeUnit_T",
|
| 45 |
+
"Blend_T",
|
| 46 |
+
"BoxPlot_T",
|
| 47 |
+
"ColorHex",
|
| 48 |
+
"ColorName_T",
|
| 49 |
+
"ColorScheme_T",
|
| 50 |
+
"CompositeMark_T",
|
| 51 |
+
"Cursor_T",
|
| 52 |
+
"ErrorBand_T",
|
| 53 |
+
"ErrorBarExtent_T",
|
| 54 |
+
"ErrorBar_T",
|
| 55 |
+
"FontWeight_T",
|
| 56 |
+
"ImputeMethod_T",
|
| 57 |
+
"Interpolate_T",
|
| 58 |
+
"LayoutAlign_T",
|
| 59 |
+
"LegendOrient_T",
|
| 60 |
+
"Map",
|
| 61 |
+
"MarkInvalidDataMode_T",
|
| 62 |
+
"MarkType_T",
|
| 63 |
+
"Mark_T",
|
| 64 |
+
"MultiTimeUnit_T",
|
| 65 |
+
"NonArgAggregateOp_T",
|
| 66 |
+
"OneOrSeq",
|
| 67 |
+
"Orient_T",
|
| 68 |
+
"Orientation_T",
|
| 69 |
+
"PaddingKwds",
|
| 70 |
+
"PrimitiveValue_T",
|
| 71 |
+
"ProjectionType_T",
|
| 72 |
+
"RangeEnum_T",
|
| 73 |
+
"ResolveMode_T",
|
| 74 |
+
"RowColKwds",
|
| 75 |
+
"ScaleInterpolateEnum_T",
|
| 76 |
+
"ScaleType_T",
|
| 77 |
+
"SelectionResolution_T",
|
| 78 |
+
"SelectionType_T",
|
| 79 |
+
"SingleDefUnitChannel_T",
|
| 80 |
+
"SingleTimeUnit_T",
|
| 81 |
+
"SortByChannel_T",
|
| 82 |
+
"SortOrder_T",
|
| 83 |
+
"StackOffset_T",
|
| 84 |
+
"StandardType_T",
|
| 85 |
+
"StepFor_T",
|
| 86 |
+
"StrokeCap_T",
|
| 87 |
+
"StrokeJoin_T",
|
| 88 |
+
"Temporal",
|
| 89 |
+
"TextBaseline_T",
|
| 90 |
+
"TextDirection_T",
|
| 91 |
+
"TimeInterval_T",
|
| 92 |
+
"TitleAnchor_T",
|
| 93 |
+
"TitleFrame_T",
|
| 94 |
+
"TitleOrient_T",
|
| 95 |
+
"TypeForShape_T",
|
| 96 |
+
"Type_T",
|
| 97 |
+
"Value",
|
| 98 |
+
"VegaThemes",
|
| 99 |
+
"WindowOnlyOp_T",
|
| 100 |
+
"is_color_hex",
|
| 101 |
+
]
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
T = TypeVar("T")
|
| 105 |
+
OneOrSeq = TypeAliasType("OneOrSeq", Union[T, Sequence[T]], type_params=(T,))
|
| 106 |
+
"""
|
| 107 |
+
One of ``T`` specified type(s), or a `Sequence` of such.
|
| 108 |
+
|
| 109 |
+
Examples
|
| 110 |
+
--------
|
| 111 |
+
The parameters ``short``, ``long`` accept the same range of types::
|
| 112 |
+
|
| 113 |
+
# ruff: noqa: UP006, UP007
|
| 114 |
+
|
| 115 |
+
def func(
|
| 116 |
+
short: OneOrSeq[str | bool | float],
|
| 117 |
+
long: Union[str, bool, float, Sequence[Union[str, bool, float]],
|
| 118 |
+
): ...
|
| 119 |
+
"""
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
class Value(TypedDict, Generic[T]):
|
| 123 |
+
"""
|
| 124 |
+
A `Generic`_ single item ``dict``.
|
| 125 |
+
|
| 126 |
+
Parameters
|
| 127 |
+
----------
|
| 128 |
+
value: T
|
| 129 |
+
Wrapped value.
|
| 130 |
+
|
| 131 |
+
.. _Generic:
|
| 132 |
+
https://typing.readthedocs.io/en/latest/spec/generics.html#generics
|
| 133 |
+
"""
|
| 134 |
+
|
| 135 |
+
value: T
|
| 136 |
+
|
| 137 |
+
|
| 138 |
+
ColorHex = Annotated[
|
| 139 |
+
LiteralString,
|
| 140 |
+
re.compile(r"#[0-9a-f]{2}[0-9a-f]{2}[0-9a-f]{2}([0-9a-f]{2})?", re.IGNORECASE),
|
| 141 |
+
]
|
| 142 |
+
"""
|
| 143 |
+
A `hexadecimal`_ color code.
|
| 144 |
+
|
| 145 |
+
Corresponds to the ``json-schema`` string format:
|
| 146 |
+
|
| 147 |
+
{"format": "color-hex", "type": "string"}
|
| 148 |
+
|
| 149 |
+
Examples
|
| 150 |
+
--------
|
| 151 |
+
:
|
| 152 |
+
|
| 153 |
+
"#f0f8ff"
|
| 154 |
+
"#7fffd4"
|
| 155 |
+
"#000000"
|
| 156 |
+
"#0000FF"
|
| 157 |
+
"#0000ff80"
|
| 158 |
+
|
| 159 |
+
.. _hexadecimal:
|
| 160 |
+
https://www.w3schools.com/html/html_colors_hex.asp
|
| 161 |
+
"""
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
def is_color_hex(obj: Any) -> TypeIs[ColorHex]:
|
| 165 |
+
"""Return ``True`` if the object is a hexadecimal color code."""
|
| 166 |
+
# NOTE: Extracts compiled pattern from metadata,
|
| 167 |
+
# to avoid defining in multiple places.
|
| 168 |
+
it = iter(get_args(ColorHex))
|
| 169 |
+
next(it)
|
| 170 |
+
pattern: re.Pattern[str] = next(it)
|
| 171 |
+
return bool(pattern.fullmatch(obj))
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
class RowColKwds(TypedDict, Generic[T], total=False):
|
| 175 |
+
"""
|
| 176 |
+
A `Generic`_ two-item ``dict``.
|
| 177 |
+
|
| 178 |
+
Parameters
|
| 179 |
+
----------
|
| 180 |
+
column: T
|
| 181 |
+
row: T
|
| 182 |
+
|
| 183 |
+
.. _Generic:
|
| 184 |
+
https://typing.readthedocs.io/en/latest/spec/generics.html#generics
|
| 185 |
+
"""
|
| 186 |
+
|
| 187 |
+
column: T
|
| 188 |
+
row: T
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
class PaddingKwds(TypedDict, total=False):
|
| 192 |
+
bottom: float
|
| 193 |
+
left: float
|
| 194 |
+
right: float
|
| 195 |
+
top: float
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
Temporal: TypeAlias = Union[date, datetime]
|
| 199 |
+
|
| 200 |
+
VegaThemes: TypeAlias = Literal[
|
| 201 |
+
"carbong10",
|
| 202 |
+
"carbong100",
|
| 203 |
+
"carbong90",
|
| 204 |
+
"carbonwhite",
|
| 205 |
+
"dark",
|
| 206 |
+
"excel",
|
| 207 |
+
"fivethirtyeight",
|
| 208 |
+
"ggplot2",
|
| 209 |
+
"googlecharts",
|
| 210 |
+
"latimes",
|
| 211 |
+
"powerbi",
|
| 212 |
+
"quartz",
|
| 213 |
+
"urbaninstitute",
|
| 214 |
+
"vox",
|
| 215 |
+
]
|
| 216 |
+
Map: TypeAlias = Mapping[str, Any]
|
| 217 |
+
PrimitiveValue_T: TypeAlias = Union[str, bool, float, None]
|
| 218 |
+
AggregateOp_T: TypeAlias = Literal[
|
| 219 |
+
"argmax",
|
| 220 |
+
"argmin",
|
| 221 |
+
"average",
|
| 222 |
+
"count",
|
| 223 |
+
"distinct",
|
| 224 |
+
"max",
|
| 225 |
+
"mean",
|
| 226 |
+
"median",
|
| 227 |
+
"min",
|
| 228 |
+
"missing",
|
| 229 |
+
"product",
|
| 230 |
+
"q1",
|
| 231 |
+
"q3",
|
| 232 |
+
"ci0",
|
| 233 |
+
"ci1",
|
| 234 |
+
"stderr",
|
| 235 |
+
"stdev",
|
| 236 |
+
"stdevp",
|
| 237 |
+
"sum",
|
| 238 |
+
"valid",
|
| 239 |
+
"values",
|
| 240 |
+
"variance",
|
| 241 |
+
"variancep",
|
| 242 |
+
"exponential",
|
| 243 |
+
"exponentialb",
|
| 244 |
+
]
|
| 245 |
+
Align_T: TypeAlias = Literal["left", "center", "right"]
|
| 246 |
+
AllSortString_T: TypeAlias = Literal[
|
| 247 |
+
"ascending",
|
| 248 |
+
"descending",
|
| 249 |
+
"x",
|
| 250 |
+
"y",
|
| 251 |
+
"color",
|
| 252 |
+
"fill",
|
| 253 |
+
"stroke",
|
| 254 |
+
"strokeWidth",
|
| 255 |
+
"size",
|
| 256 |
+
"shape",
|
| 257 |
+
"fillOpacity",
|
| 258 |
+
"strokeOpacity",
|
| 259 |
+
"opacity",
|
| 260 |
+
"text",
|
| 261 |
+
"-x",
|
| 262 |
+
"-y",
|
| 263 |
+
"-color",
|
| 264 |
+
"-fill",
|
| 265 |
+
"-stroke",
|
| 266 |
+
"-strokeWidth",
|
| 267 |
+
"-size",
|
| 268 |
+
"-shape",
|
| 269 |
+
"-fillOpacity",
|
| 270 |
+
"-strokeOpacity",
|
| 271 |
+
"-opacity",
|
| 272 |
+
"-text",
|
| 273 |
+
]
|
| 274 |
+
AutosizeType_T: TypeAlias = Literal["pad", "none", "fit", "fit-x", "fit-y"]
|
| 275 |
+
AxisOrient_T: TypeAlias = Literal["top", "bottom", "left", "right"]
|
| 276 |
+
BinnedTimeUnit_T: TypeAlias = Literal[
|
| 277 |
+
"binnedyear",
|
| 278 |
+
"binnedyearquarter",
|
| 279 |
+
"binnedyearquartermonth",
|
| 280 |
+
"binnedyearmonth",
|
| 281 |
+
"binnedyearmonthdate",
|
| 282 |
+
"binnedyearmonthdatehours",
|
| 283 |
+
"binnedyearmonthdatehoursminutes",
|
| 284 |
+
"binnedyearmonthdatehoursminutesseconds",
|
| 285 |
+
"binnedyearweek",
|
| 286 |
+
"binnedyearweekday",
|
| 287 |
+
"binnedyearweekdayhours",
|
| 288 |
+
"binnedyearweekdayhoursminutes",
|
| 289 |
+
"binnedyearweekdayhoursminutesseconds",
|
| 290 |
+
"binnedyeardayofyear",
|
| 291 |
+
"binnedutcyear",
|
| 292 |
+
"binnedutcyearquarter",
|
| 293 |
+
"binnedutcyearquartermonth",
|
| 294 |
+
"binnedutcyearmonth",
|
| 295 |
+
"binnedutcyearmonthdate",
|
| 296 |
+
"binnedutcyearmonthdatehours",
|
| 297 |
+
"binnedutcyearmonthdatehoursminutes",
|
| 298 |
+
"binnedutcyearmonthdatehoursminutesseconds",
|
| 299 |
+
"binnedutcyearweek",
|
| 300 |
+
"binnedutcyearweekday",
|
| 301 |
+
"binnedutcyearweekdayhours",
|
| 302 |
+
"binnedutcyearweekdayhoursminutes",
|
| 303 |
+
"binnedutcyearweekdayhoursminutesseconds",
|
| 304 |
+
"binnedutcyeardayofyear",
|
| 305 |
+
]
|
| 306 |
+
Blend_T: TypeAlias = Literal[
|
| 307 |
+
None,
|
| 308 |
+
"multiply",
|
| 309 |
+
"screen",
|
| 310 |
+
"overlay",
|
| 311 |
+
"darken",
|
| 312 |
+
"lighten",
|
| 313 |
+
"color-dodge",
|
| 314 |
+
"color-burn",
|
| 315 |
+
"hard-light",
|
| 316 |
+
"soft-light",
|
| 317 |
+
"difference",
|
| 318 |
+
"exclusion",
|
| 319 |
+
"hue",
|
| 320 |
+
"saturation",
|
| 321 |
+
"color",
|
| 322 |
+
"luminosity",
|
| 323 |
+
]
|
| 324 |
+
BoxPlot_T: TypeAlias = Literal["boxplot"]
|
| 325 |
+
ColorName_T: TypeAlias = Literal[
|
| 326 |
+
"black",
|
| 327 |
+
"silver",
|
| 328 |
+
"gray",
|
| 329 |
+
"white",
|
| 330 |
+
"maroon",
|
| 331 |
+
"red",
|
| 332 |
+
"purple",
|
| 333 |
+
"fuchsia",
|
| 334 |
+
"green",
|
| 335 |
+
"lime",
|
| 336 |
+
"olive",
|
| 337 |
+
"yellow",
|
| 338 |
+
"navy",
|
| 339 |
+
"blue",
|
| 340 |
+
"teal",
|
| 341 |
+
"aqua",
|
| 342 |
+
"orange",
|
| 343 |
+
"aliceblue",
|
| 344 |
+
"antiquewhite",
|
| 345 |
+
"aquamarine",
|
| 346 |
+
"azure",
|
| 347 |
+
"beige",
|
| 348 |
+
"bisque",
|
| 349 |
+
"blanchedalmond",
|
| 350 |
+
"blueviolet",
|
| 351 |
+
"brown",
|
| 352 |
+
"burlywood",
|
| 353 |
+
"cadetblue",
|
| 354 |
+
"chartreuse",
|
| 355 |
+
"chocolate",
|
| 356 |
+
"coral",
|
| 357 |
+
"cornflowerblue",
|
| 358 |
+
"cornsilk",
|
| 359 |
+
"crimson",
|
| 360 |
+
"cyan",
|
| 361 |
+
"darkblue",
|
| 362 |
+
"darkcyan",
|
| 363 |
+
"darkgoldenrod",
|
| 364 |
+
"darkgray",
|
| 365 |
+
"darkgreen",
|
| 366 |
+
"darkgrey",
|
| 367 |
+
"darkkhaki",
|
| 368 |
+
"darkmagenta",
|
| 369 |
+
"darkolivegreen",
|
| 370 |
+
"darkorange",
|
| 371 |
+
"darkorchid",
|
| 372 |
+
"darkred",
|
| 373 |
+
"darksalmon",
|
| 374 |
+
"darkseagreen",
|
| 375 |
+
"darkslateblue",
|
| 376 |
+
"darkslategray",
|
| 377 |
+
"darkslategrey",
|
| 378 |
+
"darkturquoise",
|
| 379 |
+
"darkviolet",
|
| 380 |
+
"deeppink",
|
| 381 |
+
"deepskyblue",
|
| 382 |
+
"dimgray",
|
| 383 |
+
"dimgrey",
|
| 384 |
+
"dodgerblue",
|
| 385 |
+
"firebrick",
|
| 386 |
+
"floralwhite",
|
| 387 |
+
"forestgreen",
|
| 388 |
+
"gainsboro",
|
| 389 |
+
"ghostwhite",
|
| 390 |
+
"gold",
|
| 391 |
+
"goldenrod",
|
| 392 |
+
"greenyellow",
|
| 393 |
+
"grey",
|
| 394 |
+
"honeydew",
|
| 395 |
+
"hotpink",
|
| 396 |
+
"indianred",
|
| 397 |
+
"indigo",
|
| 398 |
+
"ivory",
|
| 399 |
+
"khaki",
|
| 400 |
+
"lavender",
|
| 401 |
+
"lavenderblush",
|
| 402 |
+
"lawngreen",
|
| 403 |
+
"lemonchiffon",
|
| 404 |
+
"lightblue",
|
| 405 |
+
"lightcoral",
|
| 406 |
+
"lightcyan",
|
| 407 |
+
"lightgoldenrodyellow",
|
| 408 |
+
"lightgray",
|
| 409 |
+
"lightgreen",
|
| 410 |
+
"lightgrey",
|
| 411 |
+
"lightpink",
|
| 412 |
+
"lightsalmon",
|
| 413 |
+
"lightseagreen",
|
| 414 |
+
"lightskyblue",
|
| 415 |
+
"lightslategray",
|
| 416 |
+
"lightslategrey",
|
| 417 |
+
"lightsteelblue",
|
| 418 |
+
"lightyellow",
|
| 419 |
+
"limegreen",
|
| 420 |
+
"linen",
|
| 421 |
+
"magenta",
|
| 422 |
+
"mediumaquamarine",
|
| 423 |
+
"mediumblue",
|
| 424 |
+
"mediumorchid",
|
| 425 |
+
"mediumpurple",
|
| 426 |
+
"mediumseagreen",
|
| 427 |
+
"mediumslateblue",
|
| 428 |
+
"mediumspringgreen",
|
| 429 |
+
"mediumturquoise",
|
| 430 |
+
"mediumvioletred",
|
| 431 |
+
"midnightblue",
|
| 432 |
+
"mintcream",
|
| 433 |
+
"mistyrose",
|
| 434 |
+
"moccasin",
|
| 435 |
+
"navajowhite",
|
| 436 |
+
"oldlace",
|
| 437 |
+
"olivedrab",
|
| 438 |
+
"orangered",
|
| 439 |
+
"orchid",
|
| 440 |
+
"palegoldenrod",
|
| 441 |
+
"palegreen",
|
| 442 |
+
"paleturquoise",
|
| 443 |
+
"palevioletred",
|
| 444 |
+
"papayawhip",
|
| 445 |
+
"peachpuff",
|
| 446 |
+
"peru",
|
| 447 |
+
"pink",
|
| 448 |
+
"plum",
|
| 449 |
+
"powderblue",
|
| 450 |
+
"rosybrown",
|
| 451 |
+
"royalblue",
|
| 452 |
+
"saddlebrown",
|
| 453 |
+
"salmon",
|
| 454 |
+
"sandybrown",
|
| 455 |
+
"seagreen",
|
| 456 |
+
"seashell",
|
| 457 |
+
"sienna",
|
| 458 |
+
"skyblue",
|
| 459 |
+
"slateblue",
|
| 460 |
+
"slategray",
|
| 461 |
+
"slategrey",
|
| 462 |
+
"snow",
|
| 463 |
+
"springgreen",
|
| 464 |
+
"steelblue",
|
| 465 |
+
"tan",
|
| 466 |
+
"thistle",
|
| 467 |
+
"tomato",
|
| 468 |
+
"turquoise",
|
| 469 |
+
"violet",
|
| 470 |
+
"wheat",
|
| 471 |
+
"whitesmoke",
|
| 472 |
+
"yellowgreen",
|
| 473 |
+
"rebeccapurple",
|
| 474 |
+
]
|
| 475 |
+
ColorScheme_T: TypeAlias = Literal[
|
| 476 |
+
"accent",
|
| 477 |
+
"category10",
|
| 478 |
+
"category20",
|
| 479 |
+
"category20b",
|
| 480 |
+
"category20c",
|
| 481 |
+
"dark2",
|
| 482 |
+
"paired",
|
| 483 |
+
"pastel1",
|
| 484 |
+
"pastel2",
|
| 485 |
+
"set1",
|
| 486 |
+
"set2",
|
| 487 |
+
"set3",
|
| 488 |
+
"tableau10",
|
| 489 |
+
"tableau20",
|
| 490 |
+
"blues",
|
| 491 |
+
"tealblues",
|
| 492 |
+
"teals",
|
| 493 |
+
"greens",
|
| 494 |
+
"browns",
|
| 495 |
+
"greys",
|
| 496 |
+
"purples",
|
| 497 |
+
"warmgreys",
|
| 498 |
+
"reds",
|
| 499 |
+
"oranges",
|
| 500 |
+
"turbo",
|
| 501 |
+
"viridis",
|
| 502 |
+
"inferno",
|
| 503 |
+
"magma",
|
| 504 |
+
"plasma",
|
| 505 |
+
"cividis",
|
| 506 |
+
"bluegreen",
|
| 507 |
+
"bluegreen-3",
|
| 508 |
+
"bluegreen-4",
|
| 509 |
+
"bluegreen-5",
|
| 510 |
+
"bluegreen-6",
|
| 511 |
+
"bluegreen-7",
|
| 512 |
+
"bluegreen-8",
|
| 513 |
+
"bluegreen-9",
|
| 514 |
+
"bluepurple",
|
| 515 |
+
"bluepurple-3",
|
| 516 |
+
"bluepurple-4",
|
| 517 |
+
"bluepurple-5",
|
| 518 |
+
"bluepurple-6",
|
| 519 |
+
"bluepurple-7",
|
| 520 |
+
"bluepurple-8",
|
| 521 |
+
"bluepurple-9",
|
| 522 |
+
"goldgreen",
|
| 523 |
+
"goldgreen-3",
|
| 524 |
+
"goldgreen-4",
|
| 525 |
+
"goldgreen-5",
|
| 526 |
+
"goldgreen-6",
|
| 527 |
+
"goldgreen-7",
|
| 528 |
+
"goldgreen-8",
|
| 529 |
+
"goldgreen-9",
|
| 530 |
+
"goldorange",
|
| 531 |
+
"goldorange-3",
|
| 532 |
+
"goldorange-4",
|
| 533 |
+
"goldorange-5",
|
| 534 |
+
"goldorange-6",
|
| 535 |
+
"goldorange-7",
|
| 536 |
+
"goldorange-8",
|
| 537 |
+
"goldorange-9",
|
| 538 |
+
"goldred",
|
| 539 |
+
"goldred-3",
|
| 540 |
+
"goldred-4",
|
| 541 |
+
"goldred-5",
|
| 542 |
+
"goldred-6",
|
| 543 |
+
"goldred-7",
|
| 544 |
+
"goldred-8",
|
| 545 |
+
"goldred-9",
|
| 546 |
+
"greenblue",
|
| 547 |
+
"greenblue-3",
|
| 548 |
+
"greenblue-4",
|
| 549 |
+
"greenblue-5",
|
| 550 |
+
"greenblue-6",
|
| 551 |
+
"greenblue-7",
|
| 552 |
+
"greenblue-8",
|
| 553 |
+
"greenblue-9",
|
| 554 |
+
"orangered",
|
| 555 |
+
"orangered-3",
|
| 556 |
+
"orangered-4",
|
| 557 |
+
"orangered-5",
|
| 558 |
+
"orangered-6",
|
| 559 |
+
"orangered-7",
|
| 560 |
+
"orangered-8",
|
| 561 |
+
"orangered-9",
|
| 562 |
+
"purplebluegreen",
|
| 563 |
+
"purplebluegreen-3",
|
| 564 |
+
"purplebluegreen-4",
|
| 565 |
+
"purplebluegreen-5",
|
| 566 |
+
"purplebluegreen-6",
|
| 567 |
+
"purplebluegreen-7",
|
| 568 |
+
"purplebluegreen-8",
|
| 569 |
+
"purplebluegreen-9",
|
| 570 |
+
"purpleblue",
|
| 571 |
+
"purpleblue-3",
|
| 572 |
+
"purpleblue-4",
|
| 573 |
+
"purpleblue-5",
|
| 574 |
+
"purpleblue-6",
|
| 575 |
+
"purpleblue-7",
|
| 576 |
+
"purpleblue-8",
|
| 577 |
+
"purpleblue-9",
|
| 578 |
+
"purplered",
|
| 579 |
+
"purplered-3",
|
| 580 |
+
"purplered-4",
|
| 581 |
+
"purplered-5",
|
| 582 |
+
"purplered-6",
|
| 583 |
+
"purplered-7",
|
| 584 |
+
"purplered-8",
|
| 585 |
+
"purplered-9",
|
| 586 |
+
"redpurple",
|
| 587 |
+
"redpurple-3",
|
| 588 |
+
"redpurple-4",
|
| 589 |
+
"redpurple-5",
|
| 590 |
+
"redpurple-6",
|
| 591 |
+
"redpurple-7",
|
| 592 |
+
"redpurple-8",
|
| 593 |
+
"redpurple-9",
|
| 594 |
+
"yellowgreenblue",
|
| 595 |
+
"yellowgreenblue-3",
|
| 596 |
+
"yellowgreenblue-4",
|
| 597 |
+
"yellowgreenblue-5",
|
| 598 |
+
"yellowgreenblue-6",
|
| 599 |
+
"yellowgreenblue-7",
|
| 600 |
+
"yellowgreenblue-8",
|
| 601 |
+
"yellowgreenblue-9",
|
| 602 |
+
"yellowgreen",
|
| 603 |
+
"yellowgreen-3",
|
| 604 |
+
"yellowgreen-4",
|
| 605 |
+
"yellowgreen-5",
|
| 606 |
+
"yellowgreen-6",
|
| 607 |
+
"yellowgreen-7",
|
| 608 |
+
"yellowgreen-8",
|
| 609 |
+
"yellowgreen-9",
|
| 610 |
+
"yelloworangebrown",
|
| 611 |
+
"yelloworangebrown-3",
|
| 612 |
+
"yelloworangebrown-4",
|
| 613 |
+
"yelloworangebrown-5",
|
| 614 |
+
"yelloworangebrown-6",
|
| 615 |
+
"yelloworangebrown-7",
|
| 616 |
+
"yelloworangebrown-8",
|
| 617 |
+
"yelloworangebrown-9",
|
| 618 |
+
"yelloworangered",
|
| 619 |
+
"yelloworangered-3",
|
| 620 |
+
"yelloworangered-4",
|
| 621 |
+
"yelloworangered-5",
|
| 622 |
+
"yelloworangered-6",
|
| 623 |
+
"yelloworangered-7",
|
| 624 |
+
"yelloworangered-8",
|
| 625 |
+
"yelloworangered-9",
|
| 626 |
+
"darkblue",
|
| 627 |
+
"darkblue-3",
|
| 628 |
+
"darkblue-4",
|
| 629 |
+
"darkblue-5",
|
| 630 |
+
"darkblue-6",
|
| 631 |
+
"darkblue-7",
|
| 632 |
+
"darkblue-8",
|
| 633 |
+
"darkblue-9",
|
| 634 |
+
"darkgold",
|
| 635 |
+
"darkgold-3",
|
| 636 |
+
"darkgold-4",
|
| 637 |
+
"darkgold-5",
|
| 638 |
+
"darkgold-6",
|
| 639 |
+
"darkgold-7",
|
| 640 |
+
"darkgold-8",
|
| 641 |
+
"darkgold-9",
|
| 642 |
+
"darkgreen",
|
| 643 |
+
"darkgreen-3",
|
| 644 |
+
"darkgreen-4",
|
| 645 |
+
"darkgreen-5",
|
| 646 |
+
"darkgreen-6",
|
| 647 |
+
"darkgreen-7",
|
| 648 |
+
"darkgreen-8",
|
| 649 |
+
"darkgreen-9",
|
| 650 |
+
"darkmulti",
|
| 651 |
+
"darkmulti-3",
|
| 652 |
+
"darkmulti-4",
|
| 653 |
+
"darkmulti-5",
|
| 654 |
+
"darkmulti-6",
|
| 655 |
+
"darkmulti-7",
|
| 656 |
+
"darkmulti-8",
|
| 657 |
+
"darkmulti-9",
|
| 658 |
+
"darkred",
|
| 659 |
+
"darkred-3",
|
| 660 |
+
"darkred-4",
|
| 661 |
+
"darkred-5",
|
| 662 |
+
"darkred-6",
|
| 663 |
+
"darkred-7",
|
| 664 |
+
"darkred-8",
|
| 665 |
+
"darkred-9",
|
| 666 |
+
"lightgreyred",
|
| 667 |
+
"lightgreyred-3",
|
| 668 |
+
"lightgreyred-4",
|
| 669 |
+
"lightgreyred-5",
|
| 670 |
+
"lightgreyred-6",
|
| 671 |
+
"lightgreyred-7",
|
| 672 |
+
"lightgreyred-8",
|
| 673 |
+
"lightgreyred-9",
|
| 674 |
+
"lightgreyteal",
|
| 675 |
+
"lightgreyteal-3",
|
| 676 |
+
"lightgreyteal-4",
|
| 677 |
+
"lightgreyteal-5",
|
| 678 |
+
"lightgreyteal-6",
|
| 679 |
+
"lightgreyteal-7",
|
| 680 |
+
"lightgreyteal-8",
|
| 681 |
+
"lightgreyteal-9",
|
| 682 |
+
"lightmulti",
|
| 683 |
+
"lightmulti-3",
|
| 684 |
+
"lightmulti-4",
|
| 685 |
+
"lightmulti-5",
|
| 686 |
+
"lightmulti-6",
|
| 687 |
+
"lightmulti-7",
|
| 688 |
+
"lightmulti-8",
|
| 689 |
+
"lightmulti-9",
|
| 690 |
+
"lightorange",
|
| 691 |
+
"lightorange-3",
|
| 692 |
+
"lightorange-4",
|
| 693 |
+
"lightorange-5",
|
| 694 |
+
"lightorange-6",
|
| 695 |
+
"lightorange-7",
|
| 696 |
+
"lightorange-8",
|
| 697 |
+
"lightorange-9",
|
| 698 |
+
"lighttealblue",
|
| 699 |
+
"lighttealblue-3",
|
| 700 |
+
"lighttealblue-4",
|
| 701 |
+
"lighttealblue-5",
|
| 702 |
+
"lighttealblue-6",
|
| 703 |
+
"lighttealblue-7",
|
| 704 |
+
"lighttealblue-8",
|
| 705 |
+
"lighttealblue-9",
|
| 706 |
+
"blueorange",
|
| 707 |
+
"blueorange-3",
|
| 708 |
+
"blueorange-4",
|
| 709 |
+
"blueorange-5",
|
| 710 |
+
"blueorange-6",
|
| 711 |
+
"blueorange-7",
|
| 712 |
+
"blueorange-8",
|
| 713 |
+
"blueorange-9",
|
| 714 |
+
"blueorange-10",
|
| 715 |
+
"blueorange-11",
|
| 716 |
+
"brownbluegreen",
|
| 717 |
+
"brownbluegreen-3",
|
| 718 |
+
"brownbluegreen-4",
|
| 719 |
+
"brownbluegreen-5",
|
| 720 |
+
"brownbluegreen-6",
|
| 721 |
+
"brownbluegreen-7",
|
| 722 |
+
"brownbluegreen-8",
|
| 723 |
+
"brownbluegreen-9",
|
| 724 |
+
"brownbluegreen-10",
|
| 725 |
+
"brownbluegreen-11",
|
| 726 |
+
"purplegreen",
|
| 727 |
+
"purplegreen-3",
|
| 728 |
+
"purplegreen-4",
|
| 729 |
+
"purplegreen-5",
|
| 730 |
+
"purplegreen-6",
|
| 731 |
+
"purplegreen-7",
|
| 732 |
+
"purplegreen-8",
|
| 733 |
+
"purplegreen-9",
|
| 734 |
+
"purplegreen-10",
|
| 735 |
+
"purplegreen-11",
|
| 736 |
+
"pinkyellowgreen",
|
| 737 |
+
"pinkyellowgreen-3",
|
| 738 |
+
"pinkyellowgreen-4",
|
| 739 |
+
"pinkyellowgreen-5",
|
| 740 |
+
"pinkyellowgreen-6",
|
| 741 |
+
"pinkyellowgreen-7",
|
| 742 |
+
"pinkyellowgreen-8",
|
| 743 |
+
"pinkyellowgreen-9",
|
| 744 |
+
"pinkyellowgreen-10",
|
| 745 |
+
"pinkyellowgreen-11",
|
| 746 |
+
"purpleorange",
|
| 747 |
+
"purpleorange-3",
|
| 748 |
+
"purpleorange-4",
|
| 749 |
+
"purpleorange-5",
|
| 750 |
+
"purpleorange-6",
|
| 751 |
+
"purpleorange-7",
|
| 752 |
+
"purpleorange-8",
|
| 753 |
+
"purpleorange-9",
|
| 754 |
+
"purpleorange-10",
|
| 755 |
+
"purpleorange-11",
|
| 756 |
+
"redblue",
|
| 757 |
+
"redblue-3",
|
| 758 |
+
"redblue-4",
|
| 759 |
+
"redblue-5",
|
| 760 |
+
"redblue-6",
|
| 761 |
+
"redblue-7",
|
| 762 |
+
"redblue-8",
|
| 763 |
+
"redblue-9",
|
| 764 |
+
"redblue-10",
|
| 765 |
+
"redblue-11",
|
| 766 |
+
"redgrey",
|
| 767 |
+
"redgrey-3",
|
| 768 |
+
"redgrey-4",
|
| 769 |
+
"redgrey-5",
|
| 770 |
+
"redgrey-6",
|
| 771 |
+
"redgrey-7",
|
| 772 |
+
"redgrey-8",
|
| 773 |
+
"redgrey-9",
|
| 774 |
+
"redgrey-10",
|
| 775 |
+
"redgrey-11",
|
| 776 |
+
"redyellowblue",
|
| 777 |
+
"redyellowblue-3",
|
| 778 |
+
"redyellowblue-4",
|
| 779 |
+
"redyellowblue-5",
|
| 780 |
+
"redyellowblue-6",
|
| 781 |
+
"redyellowblue-7",
|
| 782 |
+
"redyellowblue-8",
|
| 783 |
+
"redyellowblue-9",
|
| 784 |
+
"redyellowblue-10",
|
| 785 |
+
"redyellowblue-11",
|
| 786 |
+
"redyellowgreen",
|
| 787 |
+
"redyellowgreen-3",
|
| 788 |
+
"redyellowgreen-4",
|
| 789 |
+
"redyellowgreen-5",
|
| 790 |
+
"redyellowgreen-6",
|
| 791 |
+
"redyellowgreen-7",
|
| 792 |
+
"redyellowgreen-8",
|
| 793 |
+
"redyellowgreen-9",
|
| 794 |
+
"redyellowgreen-10",
|
| 795 |
+
"redyellowgreen-11",
|
| 796 |
+
"spectral",
|
| 797 |
+
"spectral-3",
|
| 798 |
+
"spectral-4",
|
| 799 |
+
"spectral-5",
|
| 800 |
+
"spectral-6",
|
| 801 |
+
"spectral-7",
|
| 802 |
+
"spectral-8",
|
| 803 |
+
"spectral-9",
|
| 804 |
+
"spectral-10",
|
| 805 |
+
"spectral-11",
|
| 806 |
+
"rainbow",
|
| 807 |
+
"sinebow",
|
| 808 |
+
]
|
| 809 |
+
CompositeMark_T: TypeAlias = Literal["boxplot", "errorbar", "errorband"]
|
| 810 |
+
Cursor_T: TypeAlias = Literal[
|
| 811 |
+
"auto",
|
| 812 |
+
"default",
|
| 813 |
+
"none",
|
| 814 |
+
"context-menu",
|
| 815 |
+
"help",
|
| 816 |
+
"pointer",
|
| 817 |
+
"progress",
|
| 818 |
+
"wait",
|
| 819 |
+
"cell",
|
| 820 |
+
"crosshair",
|
| 821 |
+
"text",
|
| 822 |
+
"vertical-text",
|
| 823 |
+
"alias",
|
| 824 |
+
"copy",
|
| 825 |
+
"move",
|
| 826 |
+
"no-drop",
|
| 827 |
+
"not-allowed",
|
| 828 |
+
"e-resize",
|
| 829 |
+
"n-resize",
|
| 830 |
+
"ne-resize",
|
| 831 |
+
"nw-resize",
|
| 832 |
+
"s-resize",
|
| 833 |
+
"se-resize",
|
| 834 |
+
"sw-resize",
|
| 835 |
+
"w-resize",
|
| 836 |
+
"ew-resize",
|
| 837 |
+
"ns-resize",
|
| 838 |
+
"nesw-resize",
|
| 839 |
+
"nwse-resize",
|
| 840 |
+
"col-resize",
|
| 841 |
+
"row-resize",
|
| 842 |
+
"all-scroll",
|
| 843 |
+
"zoom-in",
|
| 844 |
+
"zoom-out",
|
| 845 |
+
"grab",
|
| 846 |
+
"grabbing",
|
| 847 |
+
]
|
| 848 |
+
ErrorBand_T: TypeAlias = Literal["errorband"]
|
| 849 |
+
ErrorBarExtent_T: TypeAlias = Literal["ci", "iqr", "stderr", "stdev"]
|
| 850 |
+
ErrorBar_T: TypeAlias = Literal["errorbar"]
|
| 851 |
+
FontWeight_T: TypeAlias = Literal[
|
| 852 |
+
"normal", "bold", "lighter", "bolder", 100, 200, 300, 400, 500, 600, 700, 800, 900
|
| 853 |
+
]
|
| 854 |
+
ImputeMethod_T: TypeAlias = Literal["value", "median", "max", "min", "mean"]
|
| 855 |
+
Interpolate_T: TypeAlias = Literal[
|
| 856 |
+
"basis",
|
| 857 |
+
"basis-open",
|
| 858 |
+
"basis-closed",
|
| 859 |
+
"bundle",
|
| 860 |
+
"cardinal",
|
| 861 |
+
"cardinal-open",
|
| 862 |
+
"cardinal-closed",
|
| 863 |
+
"catmull-rom",
|
| 864 |
+
"linear",
|
| 865 |
+
"linear-closed",
|
| 866 |
+
"monotone",
|
| 867 |
+
"natural",
|
| 868 |
+
"step",
|
| 869 |
+
"step-before",
|
| 870 |
+
"step-after",
|
| 871 |
+
]
|
| 872 |
+
LayoutAlign_T: TypeAlias = Literal["all", "each", "none"]
|
| 873 |
+
LegendOrient_T: TypeAlias = Literal[
|
| 874 |
+
"none",
|
| 875 |
+
"left",
|
| 876 |
+
"right",
|
| 877 |
+
"top",
|
| 878 |
+
"bottom",
|
| 879 |
+
"top-left",
|
| 880 |
+
"top-right",
|
| 881 |
+
"bottom-left",
|
| 882 |
+
"bottom-right",
|
| 883 |
+
]
|
| 884 |
+
MarkInvalidDataMode_T: TypeAlias = Literal[
|
| 885 |
+
"filter",
|
| 886 |
+
"break-paths-filter-domains",
|
| 887 |
+
"break-paths-show-domains",
|
| 888 |
+
"break-paths-show-path-domains",
|
| 889 |
+
"show",
|
| 890 |
+
]
|
| 891 |
+
MarkType_T: TypeAlias = Literal[
|
| 892 |
+
"arc",
|
| 893 |
+
"area",
|
| 894 |
+
"image",
|
| 895 |
+
"group",
|
| 896 |
+
"line",
|
| 897 |
+
"path",
|
| 898 |
+
"rect",
|
| 899 |
+
"rule",
|
| 900 |
+
"shape",
|
| 901 |
+
"symbol",
|
| 902 |
+
"text",
|
| 903 |
+
"trail",
|
| 904 |
+
]
|
| 905 |
+
Mark_T: TypeAlias = Literal[
|
| 906 |
+
"arc",
|
| 907 |
+
"area",
|
| 908 |
+
"bar",
|
| 909 |
+
"image",
|
| 910 |
+
"line",
|
| 911 |
+
"point",
|
| 912 |
+
"rect",
|
| 913 |
+
"rule",
|
| 914 |
+
"text",
|
| 915 |
+
"tick",
|
| 916 |
+
"trail",
|
| 917 |
+
"circle",
|
| 918 |
+
"square",
|
| 919 |
+
"geoshape",
|
| 920 |
+
]
|
| 921 |
+
MultiTimeUnit_T: TypeAlias = Literal[
|
| 922 |
+
"yearquarter",
|
| 923 |
+
"yearquartermonth",
|
| 924 |
+
"yearmonth",
|
| 925 |
+
"yearmonthdate",
|
| 926 |
+
"yearmonthdatehours",
|
| 927 |
+
"yearmonthdatehoursminutes",
|
| 928 |
+
"yearmonthdatehoursminutesseconds",
|
| 929 |
+
"yearweek",
|
| 930 |
+
"yearweekday",
|
| 931 |
+
"yearweekdayhours",
|
| 932 |
+
"yearweekdayhoursminutes",
|
| 933 |
+
"yearweekdayhoursminutesseconds",
|
| 934 |
+
"yeardayofyear",
|
| 935 |
+
"quartermonth",
|
| 936 |
+
"monthdate",
|
| 937 |
+
"monthdatehours",
|
| 938 |
+
"monthdatehoursminutes",
|
| 939 |
+
"monthdatehoursminutesseconds",
|
| 940 |
+
"weekday",
|
| 941 |
+
"weekdayhours",
|
| 942 |
+
"weekdayhoursminutes",
|
| 943 |
+
"weekdayhoursminutesseconds",
|
| 944 |
+
"dayhours",
|
| 945 |
+
"dayhoursminutes",
|
| 946 |
+
"dayhoursminutesseconds",
|
| 947 |
+
"hoursminutes",
|
| 948 |
+
"hoursminutesseconds",
|
| 949 |
+
"minutesseconds",
|
| 950 |
+
"secondsmilliseconds",
|
| 951 |
+
"utcyearquarter",
|
| 952 |
+
"utcyearquartermonth",
|
| 953 |
+
"utcyearmonth",
|
| 954 |
+
"utcyearmonthdate",
|
| 955 |
+
"utcyearmonthdatehours",
|
| 956 |
+
"utcyearmonthdatehoursminutes",
|
| 957 |
+
"utcyearmonthdatehoursminutesseconds",
|
| 958 |
+
"utcyearweek",
|
| 959 |
+
"utcyearweekday",
|
| 960 |
+
"utcyearweekdayhours",
|
| 961 |
+
"utcyearweekdayhoursminutes",
|
| 962 |
+
"utcyearweekdayhoursminutesseconds",
|
| 963 |
+
"utcyeardayofyear",
|
| 964 |
+
"utcquartermonth",
|
| 965 |
+
"utcmonthdate",
|
| 966 |
+
"utcmonthdatehours",
|
| 967 |
+
"utcmonthdatehoursminutes",
|
| 968 |
+
"utcmonthdatehoursminutesseconds",
|
| 969 |
+
"utcweekday",
|
| 970 |
+
"utcweekdayhours",
|
| 971 |
+
"utcweekdayhoursminutes",
|
| 972 |
+
"utcweekdayhoursminutesseconds",
|
| 973 |
+
"utcdayhours",
|
| 974 |
+
"utcdayhoursminutes",
|
| 975 |
+
"utcdayhoursminutesseconds",
|
| 976 |
+
"utchoursminutes",
|
| 977 |
+
"utchoursminutesseconds",
|
| 978 |
+
"utcminutesseconds",
|
| 979 |
+
"utcsecondsmilliseconds",
|
| 980 |
+
]
|
| 981 |
+
NonArgAggregateOp_T: TypeAlias = Literal[
|
| 982 |
+
"average",
|
| 983 |
+
"count",
|
| 984 |
+
"distinct",
|
| 985 |
+
"max",
|
| 986 |
+
"mean",
|
| 987 |
+
"median",
|
| 988 |
+
"min",
|
| 989 |
+
"missing",
|
| 990 |
+
"product",
|
| 991 |
+
"q1",
|
| 992 |
+
"q3",
|
| 993 |
+
"ci0",
|
| 994 |
+
"ci1",
|
| 995 |
+
"stderr",
|
| 996 |
+
"stdev",
|
| 997 |
+
"stdevp",
|
| 998 |
+
"sum",
|
| 999 |
+
"valid",
|
| 1000 |
+
"values",
|
| 1001 |
+
"variance",
|
| 1002 |
+
"variancep",
|
| 1003 |
+
"exponential",
|
| 1004 |
+
"exponentialb",
|
| 1005 |
+
]
|
| 1006 |
+
Orient_T: TypeAlias = Literal["left", "right", "top", "bottom"]
|
| 1007 |
+
Orientation_T: TypeAlias = Literal["horizontal", "vertical"]
|
| 1008 |
+
ProjectionType_T: TypeAlias = Literal[
|
| 1009 |
+
"albers",
|
| 1010 |
+
"albersUsa",
|
| 1011 |
+
"azimuthalEqualArea",
|
| 1012 |
+
"azimuthalEquidistant",
|
| 1013 |
+
"conicConformal",
|
| 1014 |
+
"conicEqualArea",
|
| 1015 |
+
"conicEquidistant",
|
| 1016 |
+
"equalEarth",
|
| 1017 |
+
"equirectangular",
|
| 1018 |
+
"gnomonic",
|
| 1019 |
+
"identity",
|
| 1020 |
+
"mercator",
|
| 1021 |
+
"naturalEarth1",
|
| 1022 |
+
"orthographic",
|
| 1023 |
+
"stereographic",
|
| 1024 |
+
"transverseMercator",
|
| 1025 |
+
]
|
| 1026 |
+
RangeEnum_T: TypeAlias = Literal[
|
| 1027 |
+
"width", "height", "symbol", "category", "ordinal", "ramp", "diverging", "heatmap"
|
| 1028 |
+
]
|
| 1029 |
+
ResolveMode_T: TypeAlias = Literal["independent", "shared"]
|
| 1030 |
+
ScaleInterpolateEnum_T: TypeAlias = Literal[
|
| 1031 |
+
"rgb", "lab", "hcl", "hsl", "hsl-long", "hcl-long", "cubehelix", "cubehelix-long"
|
| 1032 |
+
]
|
| 1033 |
+
ScaleType_T: TypeAlias = Literal[
|
| 1034 |
+
"linear",
|
| 1035 |
+
"log",
|
| 1036 |
+
"pow",
|
| 1037 |
+
"sqrt",
|
| 1038 |
+
"symlog",
|
| 1039 |
+
"identity",
|
| 1040 |
+
"sequential",
|
| 1041 |
+
"time",
|
| 1042 |
+
"utc",
|
| 1043 |
+
"quantile",
|
| 1044 |
+
"quantize",
|
| 1045 |
+
"threshold",
|
| 1046 |
+
"bin-ordinal",
|
| 1047 |
+
"ordinal",
|
| 1048 |
+
"point",
|
| 1049 |
+
"band",
|
| 1050 |
+
]
|
| 1051 |
+
SelectionResolution_T: TypeAlias = Literal["global", "union", "intersect"]
|
| 1052 |
+
SelectionType_T: TypeAlias = Literal["point", "interval"]
|
| 1053 |
+
SingleDefUnitChannel_T: TypeAlias = Literal[
|
| 1054 |
+
"x",
|
| 1055 |
+
"y",
|
| 1056 |
+
"xOffset",
|
| 1057 |
+
"yOffset",
|
| 1058 |
+
"x2",
|
| 1059 |
+
"y2",
|
| 1060 |
+
"longitude",
|
| 1061 |
+
"latitude",
|
| 1062 |
+
"longitude2",
|
| 1063 |
+
"latitude2",
|
| 1064 |
+
"theta",
|
| 1065 |
+
"theta2",
|
| 1066 |
+
"radius",
|
| 1067 |
+
"radius2",
|
| 1068 |
+
"color",
|
| 1069 |
+
"fill",
|
| 1070 |
+
"stroke",
|
| 1071 |
+
"opacity",
|
| 1072 |
+
"fillOpacity",
|
| 1073 |
+
"strokeOpacity",
|
| 1074 |
+
"strokeWidth",
|
| 1075 |
+
"strokeDash",
|
| 1076 |
+
"size",
|
| 1077 |
+
"angle",
|
| 1078 |
+
"shape",
|
| 1079 |
+
"key",
|
| 1080 |
+
"text",
|
| 1081 |
+
"href",
|
| 1082 |
+
"url",
|
| 1083 |
+
"description",
|
| 1084 |
+
]
|
| 1085 |
+
SingleTimeUnit_T: TypeAlias = Literal[
|
| 1086 |
+
"year",
|
| 1087 |
+
"quarter",
|
| 1088 |
+
"month",
|
| 1089 |
+
"week",
|
| 1090 |
+
"day",
|
| 1091 |
+
"dayofyear",
|
| 1092 |
+
"date",
|
| 1093 |
+
"hours",
|
| 1094 |
+
"minutes",
|
| 1095 |
+
"seconds",
|
| 1096 |
+
"milliseconds",
|
| 1097 |
+
"utcyear",
|
| 1098 |
+
"utcquarter",
|
| 1099 |
+
"utcmonth",
|
| 1100 |
+
"utcweek",
|
| 1101 |
+
"utcday",
|
| 1102 |
+
"utcdayofyear",
|
| 1103 |
+
"utcdate",
|
| 1104 |
+
"utchours",
|
| 1105 |
+
"utcminutes",
|
| 1106 |
+
"utcseconds",
|
| 1107 |
+
"utcmilliseconds",
|
| 1108 |
+
]
|
| 1109 |
+
SortByChannel_T: TypeAlias = Literal[
|
| 1110 |
+
"x",
|
| 1111 |
+
"y",
|
| 1112 |
+
"color",
|
| 1113 |
+
"fill",
|
| 1114 |
+
"stroke",
|
| 1115 |
+
"strokeWidth",
|
| 1116 |
+
"size",
|
| 1117 |
+
"shape",
|
| 1118 |
+
"fillOpacity",
|
| 1119 |
+
"strokeOpacity",
|
| 1120 |
+
"opacity",
|
| 1121 |
+
"text",
|
| 1122 |
+
]
|
| 1123 |
+
SortOrder_T: TypeAlias = Literal["ascending", "descending"]
|
| 1124 |
+
StackOffset_T: TypeAlias = Literal["zero", "center", "normalize"]
|
| 1125 |
+
StandardType_T: TypeAlias = Literal["quantitative", "ordinal", "temporal", "nominal"]
|
| 1126 |
+
StepFor_T: TypeAlias = Literal["position", "offset"]
|
| 1127 |
+
StrokeCap_T: TypeAlias = Literal["butt", "round", "square"]
|
| 1128 |
+
StrokeJoin_T: TypeAlias = Literal["miter", "round", "bevel"]
|
| 1129 |
+
TextBaseline_T: TypeAlias = Literal[
|
| 1130 |
+
"alphabetic", "top", "middle", "bottom", "line-top", "line-bottom"
|
| 1131 |
+
]
|
| 1132 |
+
TextDirection_T: TypeAlias = Literal["ltr", "rtl"]
|
| 1133 |
+
TimeInterval_T: TypeAlias = Literal[
|
| 1134 |
+
"millisecond", "second", "minute", "hour", "day", "week", "month", "year"
|
| 1135 |
+
]
|
| 1136 |
+
TitleAnchor_T: TypeAlias = Literal[None, "start", "middle", "end"]
|
| 1137 |
+
TitleFrame_T: TypeAlias = Literal["bounds", "group"]
|
| 1138 |
+
TitleOrient_T: TypeAlias = Literal["none", "left", "right", "top", "bottom"]
|
| 1139 |
+
TypeForShape_T: TypeAlias = Literal["nominal", "ordinal", "geojson"]
|
| 1140 |
+
Type_T: TypeAlias = Literal["quantitative", "ordinal", "temporal", "nominal", "geojson"]
|
| 1141 |
+
WindowOnlyOp_T: TypeAlias = Literal[
|
| 1142 |
+
"row_number",
|
| 1143 |
+
"rank",
|
| 1144 |
+
"dense_rank",
|
| 1145 |
+
"percent_rank",
|
| 1146 |
+
"cume_dist",
|
| 1147 |
+
"ntile",
|
| 1148 |
+
"lag",
|
| 1149 |
+
"lead",
|
| 1150 |
+
"first_value",
|
| 1151 |
+
"last_value",
|
| 1152 |
+
"nth_value",
|
| 1153 |
+
]
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/channels.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/core.py
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/mixins.py
ADDED
|
@@ -0,0 +1,1600 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# The contents of this file are automatically written by
|
| 2 |
+
# tools/generate_schema_wrapper.py. Do not modify directly.
|
| 3 |
+
|
| 4 |
+
from __future__ import annotations
|
| 5 |
+
|
| 6 |
+
from typing import TYPE_CHECKING, Any, Literal
|
| 7 |
+
|
| 8 |
+
from altair.utils import SchemaBase, Undefined, use_signature
|
| 9 |
+
|
| 10 |
+
from . import core
|
| 11 |
+
|
| 12 |
+
if TYPE_CHECKING:
|
| 13 |
+
from collections.abc import Sequence
|
| 14 |
+
|
| 15 |
+
if TYPE_CHECKING:
|
| 16 |
+
# ruff: noqa: F405
|
| 17 |
+
import sys
|
| 18 |
+
|
| 19 |
+
if sys.version_info >= (3, 11):
|
| 20 |
+
from typing import Self
|
| 21 |
+
else:
|
| 22 |
+
from typing_extensions import Self
|
| 23 |
+
from altair import Parameter
|
| 24 |
+
from altair.typing import Optional
|
| 25 |
+
|
| 26 |
+
from ._typing import * # noqa: F403
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
class _MarkDef(SchemaBase):
|
| 30 |
+
"""
|
| 31 |
+
MarkDef schema wrapper.
|
| 32 |
+
|
| 33 |
+
Parameters
|
| 34 |
+
----------
|
| 35 |
+
align : dict, :class:`Align`, :class:`ExprRef`, Literal['left', 'center', 'right']
|
| 36 |
+
The horizontal alignment of the text or ranged marks (area, bar, image, rect, rule).
|
| 37 |
+
One of ``"left"``, ``"right"``, ``"center"``.
|
| 38 |
+
|
| 39 |
+
**Note:** Expression reference is *not* supported for range marks.
|
| 40 |
+
angle : dict, float, :class:`ExprRef`
|
| 41 |
+
The rotation angle of the text, in degrees.
|
| 42 |
+
aria : bool, dict, :class:`ExprRef`
|
| 43 |
+
A boolean flag indicating if `ARIA attributes
|
| 44 |
+
<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA>`__ should be
|
| 45 |
+
included (SVG output only). If ``false``, the "aria-hidden" attribute will be set on
|
| 46 |
+
the output SVG element, removing the mark item from the ARIA accessibility tree.
|
| 47 |
+
ariaRole : str, dict, :class:`ExprRef`
|
| 48 |
+
Sets the type of user interface element of the mark item for `ARIA accessibility
|
| 49 |
+
<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA>`__ (SVG output
|
| 50 |
+
only). If specified, this property determines the "role" attribute. Warning: this
|
| 51 |
+
property is experimental and may be changed in the future.
|
| 52 |
+
ariaRoleDescription : str, dict, :class:`ExprRef`
|
| 53 |
+
A human-readable, author-localized description for the role of the mark item for
|
| 54 |
+
`ARIA accessibility
|
| 55 |
+
<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA>`__ (SVG output
|
| 56 |
+
only). If specified, this property determines the "aria-roledescription" attribute.
|
| 57 |
+
Warning: this property is experimental and may be changed in the future.
|
| 58 |
+
aspect : bool, dict, :class:`ExprRef`
|
| 59 |
+
Whether to keep aspect ratio of image marks.
|
| 60 |
+
bandSize : float
|
| 61 |
+
The width of the ticks.
|
| 62 |
+
|
| 63 |
+
**Default value:** 3/4 of step (width step for horizontal ticks and height step for
|
| 64 |
+
vertical ticks).
|
| 65 |
+
baseline : dict, :class:`ExprRef`, :class:`Baseline`, :class:`TextBaseline`, Literal['alphabetic', 'line-bottom', 'line-top', 'top', 'middle', 'bottom']
|
| 66 |
+
For text marks, the vertical text baseline. One of ``"alphabetic"`` (default),
|
| 67 |
+
``"top"``, ``"middle"``, ``"bottom"``, ``"line-top"``, ``"line-bottom"``, or an
|
| 68 |
+
expression reference that provides one of the valid values. The ``"line-top"`` and
|
| 69 |
+
``"line-bottom"`` values operate similarly to ``"top"`` and ``"bottom"``, but are
|
| 70 |
+
calculated relative to the ``lineHeight`` rather than ``fontSize`` alone.
|
| 71 |
+
|
| 72 |
+
For range marks, the vertical alignment of the marks. One of ``"top"``,
|
| 73 |
+
``"middle"``, ``"bottom"``.
|
| 74 |
+
|
| 75 |
+
**Note:** Expression reference is *not* supported for range marks.
|
| 76 |
+
binSpacing : float
|
| 77 |
+
Offset between bars for binned field. The ideal value for this is either 0
|
| 78 |
+
(preferred by statisticians) or 1 (Vega-Lite default, D3 example style).
|
| 79 |
+
|
| 80 |
+
**Default value:** ``1``
|
| 81 |
+
blend : dict, :class:`Blend`, :class:`ExprRef`, Literal[None, 'multiply', 'screen', 'overlay', 'darken', 'lighten', 'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference', 'exclusion', 'hue', 'saturation', 'color', 'luminosity']
|
| 82 |
+
The color blend mode for drawing an item on its current background. Any valid `CSS
|
| 83 |
+
mix-blend-mode <https://developer.mozilla.org/en-US/docs/Web/CSS/mix-blend-mode>`__
|
| 84 |
+
value can be used.
|
| 85 |
+
|
| 86 |
+
__Default value:__ ``"source-over"``
|
| 87 |
+
clip : bool, dict, :class:`ExprRef`
|
| 88 |
+
Whether a mark be clipped to the enclosing group's width and height.
|
| 89 |
+
color : str, dict, :class:`Color`, :class:`ExprRef`, :class:`Gradient`, :class:`HexColor`, :class:`ColorName`, :class:`LinearGradient`, :class:`RadialGradient`, Literal['black', 'silver', 'gray', 'white', 'maroon', 'red', 'purple', 'fuchsia', 'green', 'lime', 'olive', 'yellow', 'navy', 'blue', 'teal', 'aqua', 'orange', 'aliceblue', 'antiquewhite', 'aquamarine', 'azure', 'beige', 'bisque', 'blanchedalmond', 'blueviolet', 'brown', 'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue', 'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkgrey', 'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange', 'darkorchid', 'darkred', 'darksalmon', 'darkseagreen', 'darkslateblue', 'darkslategray', 'darkslategrey', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey', 'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen', 'lightskyblue', 'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow', 'limegreen', 'linen', 'magenta', 'mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen', 'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'oldlace', 'olivedrab', 'orangered', 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow', 'springgreen', 'steelblue', 'tan', 'thistle', 'tomato', 'turquoise', 'violet', 'wheat', 'whitesmoke', 'yellowgreen', 'rebeccapurple']
|
| 90 |
+
Default color.
|
| 91 |
+
|
| 92 |
+
**Default value:** :raw-html:`<span style="color: #4682b4;">` ■ :raw-html:`</span>`
|
| 93 |
+
``"#4682b4"``
|
| 94 |
+
|
| 95 |
+
**Note:**
|
| 96 |
+
|
| 97 |
+
* This property cannot be used in a `style config
|
| 98 |
+
<https://vega.github.io/vega-lite/docs/mark.html#style-config>`__.
|
| 99 |
+
* The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and
|
| 100 |
+
will override ``color``.
|
| 101 |
+
continuousBandSize : float
|
| 102 |
+
The default size of the bars on continuous scales.
|
| 103 |
+
|
| 104 |
+
**Default value:** ``5``
|
| 105 |
+
cornerRadius : dict, float, :class:`ExprRef`
|
| 106 |
+
The radius in pixels of rounded rectangles or arcs' corners.
|
| 107 |
+
|
| 108 |
+
**Default value:** ``0``
|
| 109 |
+
cornerRadiusBottomLeft : dict, float, :class:`ExprRef`
|
| 110 |
+
The radius in pixels of rounded rectangles' bottom left corner.
|
| 111 |
+
|
| 112 |
+
**Default value:** ``0``
|
| 113 |
+
cornerRadiusBottomRight : dict, float, :class:`ExprRef`
|
| 114 |
+
The radius in pixels of rounded rectangles' bottom right corner.
|
| 115 |
+
|
| 116 |
+
**Default value:** ``0``
|
| 117 |
+
cornerRadiusEnd : dict, float, :class:`ExprRef`
|
| 118 |
+
* For vertical bars, top-left and top-right corner radius.
|
| 119 |
+
|
| 120 |
+
* For horizontal bars, top-right and bottom-right corner radius.
|
| 121 |
+
cornerRadiusTopLeft : dict, float, :class:`ExprRef`
|
| 122 |
+
The radius in pixels of rounded rectangles' top right corner.
|
| 123 |
+
|
| 124 |
+
**Default value:** ``0``
|
| 125 |
+
cornerRadiusTopRight : dict, float, :class:`ExprRef`
|
| 126 |
+
The radius in pixels of rounded rectangles' top left corner.
|
| 127 |
+
|
| 128 |
+
**Default value:** ``0``
|
| 129 |
+
cursor : dict, :class:`Cursor`, :class:`ExprRef`, Literal['auto', 'default', 'none', 'context-menu', 'help', 'pointer', 'progress', 'wait', 'cell', 'crosshair', 'text', 'vertical-text', 'alias', 'copy', 'move', 'no-drop', 'not-allowed', 'e-resize', 'n-resize', 'ne-resize', 'nw-resize', 's-resize', 'se-resize', 'sw-resize', 'w-resize', 'ew-resize', 'ns-resize', 'nesw-resize', 'nwse-resize', 'col-resize', 'row-resize', 'all-scroll', 'zoom-in', 'zoom-out', 'grab', 'grabbing']
|
| 130 |
+
The mouse cursor used over the mark. Any valid `CSS cursor type
|
| 131 |
+
<https://developer.mozilla.org/en-US/docs/Web/CSS/cursor#Values>`__ can be used.
|
| 132 |
+
description : str, dict, :class:`ExprRef`
|
| 133 |
+
A text description of the mark item for `ARIA accessibility
|
| 134 |
+
<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA>`__ (SVG output
|
| 135 |
+
only). If specified, this property determines the `"aria-label" attribute
|
| 136 |
+
<https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-label_attribute>`__.
|
| 137 |
+
dir : dict, :class:`ExprRef`, :class:`TextDirection`, Literal['ltr', 'rtl']
|
| 138 |
+
The direction of the text. One of ``"ltr"`` (left-to-right) or ``"rtl"``
|
| 139 |
+
(right-to-left). This property determines on which side is truncated in response to
|
| 140 |
+
the limit parameter.
|
| 141 |
+
|
| 142 |
+
**Default value:** ``"ltr"``
|
| 143 |
+
discreteBandSize : dict, float, :class:`RelativeBandSize`
|
| 144 |
+
The default size of the bars with discrete dimensions. If unspecified, the default
|
| 145 |
+
size is ``step-2``, which provides 2 pixel offset between bars.
|
| 146 |
+
dx : dict, float, :class:`ExprRef`
|
| 147 |
+
The horizontal offset, in pixels, between the text label and its anchor point. The
|
| 148 |
+
offset is applied after rotation by the *angle* property.
|
| 149 |
+
dy : dict, float, :class:`ExprRef`
|
| 150 |
+
The vertical offset, in pixels, between the text label and its anchor point. The
|
| 151 |
+
offset is applied after rotation by the *angle* property.
|
| 152 |
+
ellipsis : str, dict, :class:`ExprRef`
|
| 153 |
+
The ellipsis string for text truncated in response to the limit parameter.
|
| 154 |
+
|
| 155 |
+
**Default value:** ``"…"``
|
| 156 |
+
fill : str, dict, :class:`Color`, :class:`ExprRef`, :class:`Gradient`, :class:`HexColor`, :class:`ColorName`, :class:`LinearGradient`, :class:`RadialGradient`, Literal['black', 'silver', 'gray', 'white', 'maroon', 'red', 'purple', 'fuchsia', 'green', 'lime', 'olive', 'yellow', 'navy', 'blue', 'teal', 'aqua', 'orange', 'aliceblue', 'antiquewhite', 'aquamarine', 'azure', 'beige', 'bisque', 'blanchedalmond', 'blueviolet', 'brown', 'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue', 'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkgrey', 'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange', 'darkorchid', 'darkred', 'darksalmon', 'darkseagreen', 'darkslateblue', 'darkslategray', 'darkslategrey', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey', 'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen', 'lightskyblue', 'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow', 'limegreen', 'linen', 'magenta', 'mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen', 'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'oldlace', 'olivedrab', 'orangered', 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow', 'springgreen', 'steelblue', 'tan', 'thistle', 'tomato', 'turquoise', 'violet', 'wheat', 'whitesmoke', 'yellowgreen', 'rebeccapurple'], None
|
| 157 |
+
Default fill color. This property has higher precedence than ``config.color``. Set
|
| 158 |
+
to ``null`` to remove fill.
|
| 159 |
+
|
| 160 |
+
**Default value:** (None)
|
| 161 |
+
fillOpacity : dict, float, :class:`ExprRef`
|
| 162 |
+
The fill opacity (value between [0,1]).
|
| 163 |
+
|
| 164 |
+
**Default value:** ``1``
|
| 165 |
+
filled : bool
|
| 166 |
+
Whether the mark's color should be used as fill color instead of stroke color.
|
| 167 |
+
|
| 168 |
+
**Default value:** ``false`` for all ``point``, ``line``, and ``rule`` marks as well
|
| 169 |
+
as ``geoshape`` marks for `graticule
|
| 170 |
+
<https://vega.github.io/vega-lite/docs/data.html#graticule>`__ data sources;
|
| 171 |
+
otherwise, ``true``.
|
| 172 |
+
|
| 173 |
+
**Note:** This property cannot be used in a `style config
|
| 174 |
+
<https://vega.github.io/vega-lite/docs/mark.html#style-config>`__.
|
| 175 |
+
font : str, dict, :class:`ExprRef`
|
| 176 |
+
The typeface to set the text in (e.g., ``"Helvetica Neue"``).
|
| 177 |
+
fontSize : dict, float, :class:`ExprRef`
|
| 178 |
+
The font size, in pixels.
|
| 179 |
+
|
| 180 |
+
**Default value:** ``11``
|
| 181 |
+
fontStyle : str, dict, :class:`ExprRef`, :class:`FontStyle`
|
| 182 |
+
The font style (e.g., ``"italic"``).
|
| 183 |
+
fontWeight : dict, :class:`ExprRef`, :class:`FontWeight`, Literal['normal', 'bold', 'lighter', 'bolder', 100, 200, 300, 400, 500, 600, 700, 800, 900]
|
| 184 |
+
The font weight. This can be either a string (e.g ``"bold"``, ``"normal"``) or a
|
| 185 |
+
number (``100``, ``200``, ``300``, ..., ``900`` where ``"normal"`` = ``400`` and
|
| 186 |
+
``"bold"`` = ``700``).
|
| 187 |
+
height : dict, float, :class:`ExprRef`, :class:`RelativeBandSize`
|
| 188 |
+
Height of the marks. One of:
|
| 189 |
+
|
| 190 |
+
* A number representing a fixed pixel height.
|
| 191 |
+
|
| 192 |
+
* A relative band size definition. For example, ``{band: 0.5}`` represents half of
|
| 193 |
+
the band
|
| 194 |
+
href : str, dict, :class:`URI`, :class:`ExprRef`
|
| 195 |
+
A URL to load upon mouse click. If defined, the mark acts as a hyperlink.
|
| 196 |
+
innerRadius : dict, float, :class:`ExprRef`
|
| 197 |
+
The inner radius in pixels of arc marks. ``innerRadius`` is an alias for
|
| 198 |
+
``radius2``.
|
| 199 |
+
|
| 200 |
+
**Default value:** ``0``
|
| 201 |
+
interpolate : dict, :class:`ExprRef`, :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after']
|
| 202 |
+
The line interpolation method to use for line and area marks. One of the following:
|
| 203 |
+
|
| 204 |
+
* ``"linear"``: piecewise linear segments, as in a polyline.
|
| 205 |
+
* ``"linear-closed"``: close the linear segments to form a polygon.
|
| 206 |
+
* ``"step"``: alternate between horizontal and vertical segments, as in a step
|
| 207 |
+
function.
|
| 208 |
+
* ``"step-before"``: alternate between vertical and horizontal segments, as in a
|
| 209 |
+
step function.
|
| 210 |
+
* ``"step-after"``: alternate between horizontal and vertical segments, as in a step
|
| 211 |
+
function.
|
| 212 |
+
* ``"basis"``: a B-spline, with control point duplication on the ends.
|
| 213 |
+
* ``"basis-open"``: an open B-spline; may not intersect the start or end.
|
| 214 |
+
* ``"basis-closed"``: a closed B-spline, as in a loop.
|
| 215 |
+
* ``"cardinal"``: a Cardinal spline, with control point duplication on the ends.
|
| 216 |
+
* ``"cardinal-open"``: an open Cardinal spline; may not intersect the start or end,
|
| 217 |
+
but will intersect other control points.
|
| 218 |
+
* ``"cardinal-closed"``: a closed Cardinal spline, as in a loop.
|
| 219 |
+
* ``"bundle"``: equivalent to basis, except the tension parameter is used to
|
| 220 |
+
straighten the spline.
|
| 221 |
+
* ``"monotone"``: cubic interpolation that preserves monotonicity in y.
|
| 222 |
+
invalid : :class:`MarkInvalidDataMode`, Literal['filter', 'break-paths-filter-domains', 'break-paths-show-domains', 'break-paths-show-path-domains', 'show'], None
|
| 223 |
+
Invalid data mode, which defines how the marks and corresponding scales should
|
| 224 |
+
represent invalid values (``null`` and ``NaN`` in continuous scales *without*
|
| 225 |
+
defined output for invalid values).
|
| 226 |
+
|
| 227 |
+
* ``"filter"`` — *Exclude* all invalid values from the visualization's *marks* and
|
| 228 |
+
*scales*. For path marks (for line, area, trail), this option will create paths
|
| 229 |
+
that connect valid points, as if the data rows with invalid values do not exist.
|
| 230 |
+
|
| 231 |
+
* ``"break-paths-filter-domains"`` — Break path marks (for line, area, trail) at
|
| 232 |
+
invalid values. For non-path marks, this is equivalent to ``"filter"``. All
|
| 233 |
+
*scale* domains will *exclude* these filtered data points.
|
| 234 |
+
|
| 235 |
+
* ``"break-paths-show-domains"`` — Break paths (for line, area, trail) at invalid
|
| 236 |
+
values. Hide invalid values for non-path marks. All *scale* domains will
|
| 237 |
+
*include* these filtered data points (for both path and non-path marks).
|
| 238 |
+
|
| 239 |
+
* ``"show"`` or ``null`` — Show all data points in the marks and scale domains. Each
|
| 240 |
+
scale will use the output for invalid values defined in ``config.scale.invalid``
|
| 241 |
+
or, if unspecified, by default invalid values will produce the same visual values
|
| 242 |
+
as zero (if the scale includes zero) or the minimum value (if the scale does not
|
| 243 |
+
include zero).
|
| 244 |
+
|
| 245 |
+
* ``"break-paths-show-path-domains"`` (default) — This is equivalent to
|
| 246 |
+
``"break-paths-show-domains"`` for path-based marks (line/area/trail) and
|
| 247 |
+
``"filter"`` for non-path marks.
|
| 248 |
+
|
| 249 |
+
**Note**: If any channel's scale has an output for invalid values defined in
|
| 250 |
+
``config.scale.invalid``, all values for the scales will be considered "valid" since
|
| 251 |
+
they can produce a reasonable output for the scales. Thus, fields for such channels
|
| 252 |
+
will not be filtered and will not cause path breaks.
|
| 253 |
+
limit : dict, float, :class:`ExprRef`
|
| 254 |
+
The maximum length of the text mark in pixels. The text value will be automatically
|
| 255 |
+
truncated if the rendered size exceeds the limit.
|
| 256 |
+
|
| 257 |
+
**Default value:** ``0`` -- indicating no limit
|
| 258 |
+
line : bool, dict, :class:`OverlayMarkDef`
|
| 259 |
+
A flag for overlaying line on top of area marks, or an object defining the
|
| 260 |
+
properties of the overlayed lines.
|
| 261 |
+
|
| 262 |
+
* If this value is an empty object (``{}``) or ``true``, lines with default
|
| 263 |
+
properties will be used.
|
| 264 |
+
|
| 265 |
+
* If this value is ``false``, no lines would be automatically added to area marks.
|
| 266 |
+
|
| 267 |
+
**Default value:** ``false``.
|
| 268 |
+
lineBreak : str, dict, :class:`ExprRef`
|
| 269 |
+
A delimiter, such as a newline character, upon which to break text strings into
|
| 270 |
+
multiple lines. This property is ignored if the text is array-valued.
|
| 271 |
+
lineHeight : dict, float, :class:`ExprRef`
|
| 272 |
+
The line height in pixels (the spacing between subsequent lines of text) for
|
| 273 |
+
multi-line text marks.
|
| 274 |
+
minBandSize : dict, float, :class:`ExprRef`
|
| 275 |
+
The minimum band size for bar and rectangle marks. **Default value:** ``0.25``
|
| 276 |
+
opacity : dict, float, :class:`ExprRef`
|
| 277 |
+
The overall opacity (value between [0,1]).
|
| 278 |
+
|
| 279 |
+
**Default value:** ``0.7`` for non-aggregate plots with ``point``, ``tick``,
|
| 280 |
+
``circle``, or ``square`` marks or layered ``bar`` charts and ``1`` otherwise.
|
| 281 |
+
order : bool, None
|
| 282 |
+
For line and trail marks, this ``order`` property can be set to ``null`` or
|
| 283 |
+
``false`` to make the lines use the original order in the data sources.
|
| 284 |
+
orient : :class:`Orientation`, Literal['horizontal', 'vertical']
|
| 285 |
+
The orientation of a non-stacked bar, tick, area, and line charts. The value is
|
| 286 |
+
either horizontal (default) or vertical.
|
| 287 |
+
|
| 288 |
+
* For bar, rule and tick, this determines whether the size of the bar and tick
|
| 289 |
+
should be applied to x or y dimension.
|
| 290 |
+
* For area, this property determines the orient property of the Vega output.
|
| 291 |
+
* For line and trail marks, this property determines the sort order of the points in
|
| 292 |
+
the line if ``config.sortLineBy`` is not specified. For stacked charts, this is
|
| 293 |
+
always determined by the orientation of the stack; therefore explicitly specified
|
| 294 |
+
value will be ignored.
|
| 295 |
+
outerRadius : dict, float, :class:`ExprRef`
|
| 296 |
+
The outer radius in pixels of arc marks. ``outerRadius`` is an alias for ``radius``.
|
| 297 |
+
|
| 298 |
+
**Default value:** ``0``
|
| 299 |
+
padAngle : dict, float, :class:`ExprRef`
|
| 300 |
+
The angular padding applied to sides of the arc, in radians.
|
| 301 |
+
point : bool, dict, Literal['transparent'], :class:`OverlayMarkDef`
|
| 302 |
+
A flag for overlaying points on top of line or area marks, or an object defining the
|
| 303 |
+
properties of the overlayed points.
|
| 304 |
+
|
| 305 |
+
* If this property is ``"transparent"``, transparent points will be used (for
|
| 306 |
+
enhancing tooltips and selections).
|
| 307 |
+
|
| 308 |
+
* If this property is an empty object (``{}``) or ``true``, filled points with
|
| 309 |
+
default properties will be used.
|
| 310 |
+
|
| 311 |
+
* If this property is ``false``, no points would be automatically added to line or
|
| 312 |
+
area marks.
|
| 313 |
+
|
| 314 |
+
**Default value:** ``false``.
|
| 315 |
+
radius : dict, float, :class:`ExprRef`
|
| 316 |
+
For arc mark, the primary (outer) radius in pixels.
|
| 317 |
+
|
| 318 |
+
For text marks, polar coordinate radial offset, in pixels, of the text from the
|
| 319 |
+
origin determined by the ``x`` and ``y`` properties.
|
| 320 |
+
|
| 321 |
+
**Default value:** ``min(plot_width, plot_height)/2``
|
| 322 |
+
radius2 : dict, float, :class:`ExprRef`
|
| 323 |
+
The secondary (inner) radius in pixels of arc marks.
|
| 324 |
+
|
| 325 |
+
**Default value:** ``0``
|
| 326 |
+
radius2Offset : dict, float, :class:`ExprRef`
|
| 327 |
+
Offset for radius2.
|
| 328 |
+
radiusOffset : dict, float, :class:`ExprRef`
|
| 329 |
+
Offset for radius.
|
| 330 |
+
shape : str, dict, :class:`ExprRef`, :class:`SymbolShape`
|
| 331 |
+
Shape of the point marks. Supported values include:
|
| 332 |
+
|
| 333 |
+
* plotting shapes: ``"circle"``, ``"square"``, ``"cross"``, ``"diamond"``,
|
| 334 |
+
``"triangle-up"``, ``"triangle-down"``, ``"triangle-right"``, or
|
| 335 |
+
``"triangle-left"``.
|
| 336 |
+
* the line symbol ``"stroke"``
|
| 337 |
+
* centered directional shapes ``"arrow"``, ``"wedge"``, or ``"triangle"``
|
| 338 |
+
* a custom `SVG path string
|
| 339 |
+
<https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths>`__ (For correct
|
| 340 |
+
sizing, custom shape paths should be defined within a square bounding box with
|
| 341 |
+
coordinates ranging from -1 to 1 along both the x and y dimensions.)
|
| 342 |
+
|
| 343 |
+
**Default value:** ``"circle"``
|
| 344 |
+
size : dict, float, :class:`ExprRef`
|
| 345 |
+
Default size for marks.
|
| 346 |
+
|
| 347 |
+
* For ``point``/``circle``/``square``, this represents the pixel area of the marks.
|
| 348 |
+
Note that this value sets the area of the symbol; the side lengths will increase
|
| 349 |
+
with the square root of this value.
|
| 350 |
+
* For ``bar``, this represents the band size of the bar, in pixels.
|
| 351 |
+
* For ``text``, this represents the font size, in pixels.
|
| 352 |
+
|
| 353 |
+
**Default value:**
|
| 354 |
+
|
| 355 |
+
* ``30`` for point, circle, square marks; width/height's ``step``
|
| 356 |
+
* ``2`` for bar marks with discrete dimensions;
|
| 357 |
+
* ``5`` for bar marks with continuous dimensions;
|
| 358 |
+
* ``11`` for text marks.
|
| 359 |
+
smooth : bool, dict, :class:`ExprRef`
|
| 360 |
+
A boolean flag (default true) indicating if the image should be smoothed when
|
| 361 |
+
resized. If false, individual pixels should be scaled directly rather than
|
| 362 |
+
interpolated with smoothing. For SVG rendering, this option may not work in some
|
| 363 |
+
browsers due to lack of standardization.
|
| 364 |
+
stroke : str, dict, :class:`Color`, :class:`ExprRef`, :class:`Gradient`, :class:`HexColor`, :class:`ColorName`, :class:`LinearGradient`, :class:`RadialGradient`, Literal['black', 'silver', 'gray', 'white', 'maroon', 'red', 'purple', 'fuchsia', 'green', 'lime', 'olive', 'yellow', 'navy', 'blue', 'teal', 'aqua', 'orange', 'aliceblue', 'antiquewhite', 'aquamarine', 'azure', 'beige', 'bisque', 'blanchedalmond', 'blueviolet', 'brown', 'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue', 'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkgrey', 'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange', 'darkorchid', 'darkred', 'darksalmon', 'darkseagreen', 'darkslateblue', 'darkslategray', 'darkslategrey', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey', 'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen', 'lightskyblue', 'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow', 'limegreen', 'linen', 'magenta', 'mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen', 'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'oldlace', 'olivedrab', 'orangered', 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow', 'springgreen', 'steelblue', 'tan', 'thistle', 'tomato', 'turquoise', 'violet', 'wheat', 'whitesmoke', 'yellowgreen', 'rebeccapurple'], None
|
| 365 |
+
Default stroke color. This property has higher precedence than ``config.color``. Set
|
| 366 |
+
to ``null`` to remove stroke.
|
| 367 |
+
|
| 368 |
+
**Default value:** (None)
|
| 369 |
+
strokeCap : dict, :class:`ExprRef`, :class:`StrokeCap`, Literal['butt', 'round', 'square']
|
| 370 |
+
The stroke cap for line ending style. One of ``"butt"``, ``"round"``, or
|
| 371 |
+
``"square"``.
|
| 372 |
+
|
| 373 |
+
**Default value:** ``"butt"``
|
| 374 |
+
strokeDash : dict, Sequence[float], :class:`ExprRef`
|
| 375 |
+
An array of alternating stroke, space lengths for creating dashed or dotted lines.
|
| 376 |
+
strokeDashOffset : dict, float, :class:`ExprRef`
|
| 377 |
+
The offset (in pixels) into which to begin drawing with the stroke dash array.
|
| 378 |
+
strokeJoin : dict, :class:`ExprRef`, :class:`StrokeJoin`, Literal['miter', 'round', 'bevel']
|
| 379 |
+
The stroke line join method. One of ``"miter"``, ``"round"`` or ``"bevel"``.
|
| 380 |
+
|
| 381 |
+
**Default value:** ``"miter"``
|
| 382 |
+
strokeMiterLimit : dict, float, :class:`ExprRef`
|
| 383 |
+
The miter limit at which to bevel a line join.
|
| 384 |
+
strokeOffset : dict, float, :class:`ExprRef`
|
| 385 |
+
The offset in pixels at which to draw the group stroke and fill. If unspecified, the
|
| 386 |
+
default behavior is to dynamically offset stroked groups such that 1 pixel stroke
|
| 387 |
+
widths align with the pixel grid.
|
| 388 |
+
strokeOpacity : dict, float, :class:`ExprRef`
|
| 389 |
+
The stroke opacity (value between [0,1]).
|
| 390 |
+
|
| 391 |
+
**Default value:** ``1``
|
| 392 |
+
strokeWidth : dict, float, :class:`ExprRef`
|
| 393 |
+
The stroke width, in pixels.
|
| 394 |
+
style : str, Sequence[str]
|
| 395 |
+
A string or array of strings indicating the name of custom styles to apply to the
|
| 396 |
+
mark. A style is a named collection of mark property defaults defined within the
|
| 397 |
+
`style configuration
|
| 398 |
+
<https://vega.github.io/vega-lite/docs/mark.html#style-config>`__. If style is an
|
| 399 |
+
array, later styles will override earlier styles. Any `mark properties
|
| 400 |
+
<https://vega.github.io/vega-lite/docs/encoding.html#mark-prop>`__ explicitly
|
| 401 |
+
defined within the ``encoding`` will override a style default.
|
| 402 |
+
|
| 403 |
+
**Default value:** The mark's name. For example, a bar mark will have style
|
| 404 |
+
``"bar"`` by default. **Note:** Any specified style will augment the default style.
|
| 405 |
+
For example, a bar mark with ``"style": "foo"`` will receive from
|
| 406 |
+
``config.style.bar`` and ``config.style.foo`` (the specified style ``"foo"`` has
|
| 407 |
+
higher precedence).
|
| 408 |
+
tension : dict, float, :class:`ExprRef`
|
| 409 |
+
Depending on the interpolation type, sets the tension parameter (for line and area
|
| 410 |
+
marks).
|
| 411 |
+
text : str, dict, :class:`Text`, Sequence[str], :class:`ExprRef`
|
| 412 |
+
Placeholder text if the ``text`` channel is not specified
|
| 413 |
+
theta : dict, float, :class:`ExprRef`
|
| 414 |
+
* For arc marks, the arc length in radians if theta2 is not specified, otherwise the
|
| 415 |
+
start arc angle. (A value of 0 indicates up or “north”, increasing values proceed
|
| 416 |
+
clockwise.)
|
| 417 |
+
|
| 418 |
+
* For text marks, polar coordinate angle in radians.
|
| 419 |
+
theta2 : dict, float, :class:`ExprRef`
|
| 420 |
+
The end angle of arc marks in radians. A value of 0 indicates up or “north”,
|
| 421 |
+
increasing values proceed clockwise.
|
| 422 |
+
theta2Offset : dict, float, :class:`ExprRef`
|
| 423 |
+
Offset for theta2.
|
| 424 |
+
thetaOffset : dict, float, :class:`ExprRef`
|
| 425 |
+
Offset for theta.
|
| 426 |
+
thickness : float
|
| 427 |
+
Thickness of the tick mark.
|
| 428 |
+
|
| 429 |
+
**Default value:** ``1``
|
| 430 |
+
timeUnitBandPosition : float
|
| 431 |
+
Default relative band position for a time unit. If set to ``0``, the marks will be
|
| 432 |
+
positioned at the beginning of the time unit band step. If set to ``0.5``, the marks
|
| 433 |
+
will be positioned in the middle of the time unit band step.
|
| 434 |
+
timeUnitBandSize : float
|
| 435 |
+
Default relative band size for a time unit. If set to ``1``, the bandwidth of the
|
| 436 |
+
marks will be equal to the time unit band step. If set to ``0.5``, bandwidth of the
|
| 437 |
+
marks will be half of the time unit band step.
|
| 438 |
+
tooltip : str, bool, dict, float, :class:`ExprRef`, :class:`TooltipContent`, None
|
| 439 |
+
The tooltip text string to show upon mouse hover or an object defining which fields
|
| 440 |
+
should the tooltip be derived from.
|
| 441 |
+
|
| 442 |
+
* If ``tooltip`` is ``true`` or ``{"content": "encoding"}``, then all fields from
|
| 443 |
+
``encoding`` will be used.
|
| 444 |
+
* If ``tooltip`` is ``{"content": "data"}``, then all fields that appear in the
|
| 445 |
+
highlighted data point will be used.
|
| 446 |
+
* If set to ``null`` or ``false``, then no tooltip will be used.
|
| 447 |
+
|
| 448 |
+
See the `tooltip <https://vega.github.io/vega-lite/docs/tooltip.html>`__
|
| 449 |
+
documentation for a detailed discussion about tooltip in Vega-Lite.
|
| 450 |
+
|
| 451 |
+
**Default value:** ``null``
|
| 452 |
+
url : str, dict, :class:`URI`, :class:`ExprRef`
|
| 453 |
+
The URL of the image file for image marks.
|
| 454 |
+
width : dict, float, :class:`ExprRef`, :class:`RelativeBandSize`
|
| 455 |
+
Width of the marks. One of:
|
| 456 |
+
|
| 457 |
+
* A number representing a fixed pixel width.
|
| 458 |
+
|
| 459 |
+
* A relative band size definition. For example, ``{band: 0.5}`` represents half of
|
| 460 |
+
the band.
|
| 461 |
+
x : dict, float, :class:`ExprRef`, Literal['width']
|
| 462 |
+
X coordinates of the marks, or width of horizontal ``"bar"`` and ``"area"`` without
|
| 463 |
+
specified ``x2`` or ``width``.
|
| 464 |
+
|
| 465 |
+
The ``value`` of this channel can be a number or a string ``"width"`` for the width
|
| 466 |
+
of the plot.
|
| 467 |
+
x2 : dict, float, :class:`ExprRef`, Literal['width']
|
| 468 |
+
X2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``.
|
| 469 |
+
|
| 470 |
+
The ``value`` of this channel can be a number or a string ``"width"`` for the width
|
| 471 |
+
of the plot.
|
| 472 |
+
x2Offset : dict, float, :class:`ExprRef`
|
| 473 |
+
Offset for x2-position.
|
| 474 |
+
xOffset : dict, float, :class:`ExprRef`
|
| 475 |
+
Offset for x-position.
|
| 476 |
+
y : dict, float, :class:`ExprRef`, Literal['height']
|
| 477 |
+
Y coordinates of the marks, or height of vertical ``"bar"`` and ``"area"`` without
|
| 478 |
+
specified ``y2`` or ``height``.
|
| 479 |
+
|
| 480 |
+
The ``value`` of this channel can be a number or a string ``"height"`` for the
|
| 481 |
+
height of the plot.
|
| 482 |
+
y2 : dict, float, :class:`ExprRef`, Literal['height']
|
| 483 |
+
Y2 coordinates for ranged ``"area"``, ``"bar"``, ``"rect"``, and ``"rule"``.
|
| 484 |
+
|
| 485 |
+
The ``value`` of this channel can be a number or a string ``"height"`` for the
|
| 486 |
+
height of the plot.
|
| 487 |
+
y2Offset : dict, float, :class:`ExprRef`
|
| 488 |
+
Offset for y2-position.
|
| 489 |
+
yOffset : dict, float, :class:`ExprRef`
|
| 490 |
+
Offset for y-position.
|
| 491 |
+
"""
|
| 492 |
+
|
| 493 |
+
_schema = {"$ref": "#/definitions/MarkDef"}
|
| 494 |
+
|
| 495 |
+
def __init__(
|
| 496 |
+
self,
|
| 497 |
+
align: Optional[Parameter | SchemaBase | Map | Align_T] = Undefined,
|
| 498 |
+
angle: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 499 |
+
aria: Optional[bool | Parameter | SchemaBase | Map] = Undefined,
|
| 500 |
+
ariaRole: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 501 |
+
ariaRoleDescription: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 502 |
+
aspect: Optional[bool | Parameter | SchemaBase | Map] = Undefined,
|
| 503 |
+
bandSize: Optional[float] = Undefined,
|
| 504 |
+
baseline: Optional[Parameter | SchemaBase | Map | TextBaseline_T] = Undefined,
|
| 505 |
+
binSpacing: Optional[float] = Undefined,
|
| 506 |
+
blend: Optional[Parameter | SchemaBase | Map | Blend_T] = Undefined,
|
| 507 |
+
clip: Optional[bool | Parameter | SchemaBase | Map] = Undefined,
|
| 508 |
+
color: Optional[str | Parameter | SchemaBase | Map | ColorName_T] = Undefined,
|
| 509 |
+
continuousBandSize: Optional[float] = Undefined,
|
| 510 |
+
cornerRadius: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 511 |
+
cornerRadiusBottomLeft: Optional[
|
| 512 |
+
float | Parameter | SchemaBase | Map
|
| 513 |
+
] = Undefined,
|
| 514 |
+
cornerRadiusBottomRight: Optional[
|
| 515 |
+
float | Parameter | SchemaBase | Map
|
| 516 |
+
] = Undefined,
|
| 517 |
+
cornerRadiusEnd: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 518 |
+
cornerRadiusTopLeft: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 519 |
+
cornerRadiusTopRight: Optional[
|
| 520 |
+
float | Parameter | SchemaBase | Map
|
| 521 |
+
] = Undefined,
|
| 522 |
+
cursor: Optional[Parameter | SchemaBase | Map | Cursor_T] = Undefined,
|
| 523 |
+
description: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 524 |
+
dir: Optional[Parameter | SchemaBase | Map | TextDirection_T] = Undefined,
|
| 525 |
+
discreteBandSize: Optional[float | SchemaBase | Map] = Undefined,
|
| 526 |
+
dx: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 527 |
+
dy: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 528 |
+
ellipsis: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 529 |
+
fill: Optional[
|
| 530 |
+
str | Parameter | SchemaBase | Map | ColorName_T | None
|
| 531 |
+
] = Undefined,
|
| 532 |
+
fillOpacity: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 533 |
+
filled: Optional[bool] = Undefined,
|
| 534 |
+
font: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 535 |
+
fontSize: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 536 |
+
fontStyle: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 537 |
+
fontWeight: Optional[Parameter | SchemaBase | Map | FontWeight_T] = Undefined,
|
| 538 |
+
height: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 539 |
+
href: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 540 |
+
innerRadius: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 541 |
+
interpolate: Optional[Parameter | SchemaBase | Map | Interpolate_T] = Undefined,
|
| 542 |
+
invalid: Optional[SchemaBase | MarkInvalidDataMode_T | None] = Undefined,
|
| 543 |
+
limit: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 544 |
+
line: Optional[bool | SchemaBase | Map] = Undefined,
|
| 545 |
+
lineBreak: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 546 |
+
lineHeight: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 547 |
+
minBandSize: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 548 |
+
opacity: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 549 |
+
order: Optional[bool | None] = Undefined,
|
| 550 |
+
orient: Optional[SchemaBase | Orientation_T] = Undefined,
|
| 551 |
+
outerRadius: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 552 |
+
padAngle: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 553 |
+
point: Optional[bool | SchemaBase | Literal["transparent"] | Map] = Undefined,
|
| 554 |
+
radius: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 555 |
+
radius2: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 556 |
+
radius2Offset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 557 |
+
radiusOffset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 558 |
+
shape: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 559 |
+
size: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 560 |
+
smooth: Optional[bool | Parameter | SchemaBase | Map] = Undefined,
|
| 561 |
+
stroke: Optional[
|
| 562 |
+
str | Parameter | SchemaBase | Map | ColorName_T | None
|
| 563 |
+
] = Undefined,
|
| 564 |
+
strokeCap: Optional[Parameter | SchemaBase | Map | StrokeCap_T] = Undefined,
|
| 565 |
+
strokeDash: Optional[
|
| 566 |
+
Parameter | SchemaBase | Sequence[float] | Map
|
| 567 |
+
] = Undefined,
|
| 568 |
+
strokeDashOffset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 569 |
+
strokeJoin: Optional[Parameter | SchemaBase | Map | StrokeJoin_T] = Undefined,
|
| 570 |
+
strokeMiterLimit: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 571 |
+
strokeOffset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 572 |
+
strokeOpacity: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 573 |
+
strokeWidth: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 574 |
+
style: Optional[str | Sequence[str]] = Undefined,
|
| 575 |
+
tension: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 576 |
+
text: Optional[str | Parameter | SchemaBase | Sequence[str] | Map] = Undefined,
|
| 577 |
+
theta: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 578 |
+
theta2: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 579 |
+
theta2Offset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 580 |
+
thetaOffset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 581 |
+
thickness: Optional[float] = Undefined,
|
| 582 |
+
timeUnitBandPosition: Optional[float] = Undefined,
|
| 583 |
+
timeUnitBandSize: Optional[float] = Undefined,
|
| 584 |
+
tooltip: Optional[
|
| 585 |
+
str | bool | float | Parameter | SchemaBase | Map | None
|
| 586 |
+
] = Undefined,
|
| 587 |
+
url: Optional[str | Parameter | SchemaBase | Map] = Undefined,
|
| 588 |
+
width: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 589 |
+
x: Optional[
|
| 590 |
+
float | Parameter | SchemaBase | Literal["width"] | Map
|
| 591 |
+
] = Undefined,
|
| 592 |
+
x2: Optional[
|
| 593 |
+
float | Parameter | SchemaBase | Literal["width"] | Map
|
| 594 |
+
] = Undefined,
|
| 595 |
+
x2Offset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 596 |
+
xOffset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 597 |
+
y: Optional[
|
| 598 |
+
float | Parameter | SchemaBase | Literal["height"] | Map
|
| 599 |
+
] = Undefined,
|
| 600 |
+
y2: Optional[
|
| 601 |
+
float | Parameter | SchemaBase | Literal["height"] | Map
|
| 602 |
+
] = Undefined,
|
| 603 |
+
y2Offset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 604 |
+
yOffset: Optional[float | Parameter | SchemaBase | Map] = Undefined,
|
| 605 |
+
**kwds,
|
| 606 |
+
):
|
| 607 |
+
super().__init__(
|
| 608 |
+
align=align,
|
| 609 |
+
angle=angle,
|
| 610 |
+
aria=aria,
|
| 611 |
+
ariaRole=ariaRole,
|
| 612 |
+
ariaRoleDescription=ariaRoleDescription,
|
| 613 |
+
aspect=aspect,
|
| 614 |
+
bandSize=bandSize,
|
| 615 |
+
baseline=baseline,
|
| 616 |
+
binSpacing=binSpacing,
|
| 617 |
+
blend=blend,
|
| 618 |
+
clip=clip,
|
| 619 |
+
color=color,
|
| 620 |
+
continuousBandSize=continuousBandSize,
|
| 621 |
+
cornerRadius=cornerRadius,
|
| 622 |
+
cornerRadiusBottomLeft=cornerRadiusBottomLeft,
|
| 623 |
+
cornerRadiusBottomRight=cornerRadiusBottomRight,
|
| 624 |
+
cornerRadiusEnd=cornerRadiusEnd,
|
| 625 |
+
cornerRadiusTopLeft=cornerRadiusTopLeft,
|
| 626 |
+
cornerRadiusTopRight=cornerRadiusTopRight,
|
| 627 |
+
cursor=cursor,
|
| 628 |
+
description=description,
|
| 629 |
+
dir=dir,
|
| 630 |
+
discreteBandSize=discreteBandSize,
|
| 631 |
+
dx=dx,
|
| 632 |
+
dy=dy,
|
| 633 |
+
ellipsis=ellipsis,
|
| 634 |
+
fill=fill,
|
| 635 |
+
fillOpacity=fillOpacity,
|
| 636 |
+
filled=filled,
|
| 637 |
+
font=font,
|
| 638 |
+
fontSize=fontSize,
|
| 639 |
+
fontStyle=fontStyle,
|
| 640 |
+
fontWeight=fontWeight,
|
| 641 |
+
height=height,
|
| 642 |
+
href=href,
|
| 643 |
+
innerRadius=innerRadius,
|
| 644 |
+
interpolate=interpolate,
|
| 645 |
+
invalid=invalid,
|
| 646 |
+
limit=limit,
|
| 647 |
+
line=line,
|
| 648 |
+
lineBreak=lineBreak,
|
| 649 |
+
lineHeight=lineHeight,
|
| 650 |
+
minBandSize=minBandSize,
|
| 651 |
+
opacity=opacity,
|
| 652 |
+
order=order,
|
| 653 |
+
orient=orient,
|
| 654 |
+
outerRadius=outerRadius,
|
| 655 |
+
padAngle=padAngle,
|
| 656 |
+
point=point,
|
| 657 |
+
radius=radius,
|
| 658 |
+
radius2=radius2,
|
| 659 |
+
radius2Offset=radius2Offset,
|
| 660 |
+
radiusOffset=radiusOffset,
|
| 661 |
+
shape=shape,
|
| 662 |
+
size=size,
|
| 663 |
+
smooth=smooth,
|
| 664 |
+
stroke=stroke,
|
| 665 |
+
strokeCap=strokeCap,
|
| 666 |
+
strokeDash=strokeDash,
|
| 667 |
+
strokeDashOffset=strokeDashOffset,
|
| 668 |
+
strokeJoin=strokeJoin,
|
| 669 |
+
strokeMiterLimit=strokeMiterLimit,
|
| 670 |
+
strokeOffset=strokeOffset,
|
| 671 |
+
strokeOpacity=strokeOpacity,
|
| 672 |
+
strokeWidth=strokeWidth,
|
| 673 |
+
style=style,
|
| 674 |
+
tension=tension,
|
| 675 |
+
text=text,
|
| 676 |
+
theta=theta,
|
| 677 |
+
theta2=theta2,
|
| 678 |
+
theta2Offset=theta2Offset,
|
| 679 |
+
thetaOffset=thetaOffset,
|
| 680 |
+
thickness=thickness,
|
| 681 |
+
timeUnitBandPosition=timeUnitBandPosition,
|
| 682 |
+
timeUnitBandSize=timeUnitBandSize,
|
| 683 |
+
tooltip=tooltip,
|
| 684 |
+
url=url,
|
| 685 |
+
width=width,
|
| 686 |
+
x=x,
|
| 687 |
+
x2=x2,
|
| 688 |
+
x2Offset=x2Offset,
|
| 689 |
+
xOffset=xOffset,
|
| 690 |
+
y=y,
|
| 691 |
+
y2=y2,
|
| 692 |
+
y2Offset=y2Offset,
|
| 693 |
+
yOffset=yOffset,
|
| 694 |
+
**kwds,
|
| 695 |
+
)
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
class _BoxPlotDef(SchemaBase):
|
| 699 |
+
"""
|
| 700 |
+
BoxPlotDef schema wrapper.
|
| 701 |
+
|
| 702 |
+
Parameters
|
| 703 |
+
----------
|
| 704 |
+
box : bool, dict, :class:`BarConfig`, :class:`AreaConfig`, :class:`LineConfig`, :class:`MarkConfig`, :class:`RectConfig`, :class:`TickConfig`, :class:`AnyMarkConfig`
|
| 705 |
+
|
| 706 |
+
clip : bool
|
| 707 |
+
Whether a composite mark be clipped to the enclosing group's width and height.
|
| 708 |
+
color : str, dict, :class:`Color`, :class:`ExprRef`, :class:`Gradient`, :class:`HexColor`, :class:`ColorName`, :class:`LinearGradient`, :class:`RadialGradient`, Literal['black', 'silver', 'gray', 'white', 'maroon', 'red', 'purple', 'fuchsia', 'green', 'lime', 'olive', 'yellow', 'navy', 'blue', 'teal', 'aqua', 'orange', 'aliceblue', 'antiquewhite', 'aquamarine', 'azure', 'beige', 'bisque', 'blanchedalmond', 'blueviolet', 'brown', 'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue', 'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkgrey', 'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange', 'darkorchid', 'darkred', 'darksalmon', 'darkseagreen', 'darkslateblue', 'darkslategray', 'darkslategrey', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey', 'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen', 'lightskyblue', 'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow', 'limegreen', 'linen', 'magenta', 'mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen', 'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'oldlace', 'olivedrab', 'orangered', 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow', 'springgreen', 'steelblue', 'tan', 'thistle', 'tomato', 'turquoise', 'violet', 'wheat', 'whitesmoke', 'yellowgreen', 'rebeccapurple']
|
| 709 |
+
Default color.
|
| 710 |
+
|
| 711 |
+
**Default value:** :raw-html:`<span style="color: #4682b4;">` ■ :raw-html:`</span>`
|
| 712 |
+
``"#4682b4"``
|
| 713 |
+
|
| 714 |
+
**Note:**
|
| 715 |
+
|
| 716 |
+
* This property cannot be used in a `style config
|
| 717 |
+
<https://vega.github.io/vega-lite/docs/mark.html#style-config>`__.
|
| 718 |
+
* The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and
|
| 719 |
+
will override ``color``.
|
| 720 |
+
extent : float, Literal['min-max']
|
| 721 |
+
The extent of the whiskers. Available options include:
|
| 722 |
+
|
| 723 |
+
* ``"min-max"``: min and max are the lower and upper whiskers respectively.
|
| 724 |
+
* A number representing multiple of the interquartile range. This number will be
|
| 725 |
+
multiplied by the IQR to determine whisker boundary, which spans from the smallest
|
| 726 |
+
data to the largest data within the range *[Q1 - k * IQR, Q3 + k * IQR]* where
|
| 727 |
+
*Q1* and *Q3* are the first and third quartiles while *IQR* is the interquartile
|
| 728 |
+
range (*Q3-Q1*).
|
| 729 |
+
|
| 730 |
+
**Default value:** ``1.5``.
|
| 731 |
+
invalid : :class:`MarkInvalidDataMode`, Literal['filter', 'break-paths-filter-domains', 'break-paths-show-domains', 'break-paths-show-path-domains', 'show'], None
|
| 732 |
+
Invalid data mode, which defines how the marks and corresponding scales should
|
| 733 |
+
represent invalid values (``null`` and ``NaN`` in continuous scales *without*
|
| 734 |
+
defined output for invalid values).
|
| 735 |
+
|
| 736 |
+
* ``"filter"`` — *Exclude* all invalid values from the visualization's *marks* and
|
| 737 |
+
*scales*. For path marks (for line, area, trail), this option will create paths
|
| 738 |
+
that connect valid points, as if the data rows with invalid values do not exist.
|
| 739 |
+
|
| 740 |
+
* ``"break-paths-filter-domains"`` — Break path marks (for line, area, trail) at
|
| 741 |
+
invalid values. For non-path marks, this is equivalent to ``"filter"``. All
|
| 742 |
+
*scale* domains will *exclude* these filtered data points.
|
| 743 |
+
|
| 744 |
+
* ``"break-paths-show-domains"`` — Break paths (for line, area, trail) at invalid
|
| 745 |
+
values. Hide invalid values for non-path marks. All *scale* domains will
|
| 746 |
+
*include* these filtered data points (for both path and non-path marks).
|
| 747 |
+
|
| 748 |
+
* ``"show"`` or ``null`` — Show all data points in the marks and scale domains. Each
|
| 749 |
+
scale will use the output for invalid values defined in ``config.scale.invalid``
|
| 750 |
+
or, if unspecified, by default invalid values will produce the same visual values
|
| 751 |
+
as zero (if the scale includes zero) or the minimum value (if the scale does not
|
| 752 |
+
include zero).
|
| 753 |
+
|
| 754 |
+
* ``"break-paths-show-path-domains"`` (default) — This is equivalent to
|
| 755 |
+
``"break-paths-show-domains"`` for path-based marks (line/area/trail) and
|
| 756 |
+
``"filter"`` for non-path marks.
|
| 757 |
+
|
| 758 |
+
**Note**: If any channel's scale has an output for invalid values defined in
|
| 759 |
+
``config.scale.invalid``, all values for the scales will be considered "valid" since
|
| 760 |
+
they can produce a reasonable output for the scales. Thus, fields for such channels
|
| 761 |
+
will not be filtered and will not cause path breaks.
|
| 762 |
+
median : bool, dict, :class:`BarConfig`, :class:`AreaConfig`, :class:`LineConfig`, :class:`MarkConfig`, :class:`RectConfig`, :class:`TickConfig`, :class:`AnyMarkConfig`
|
| 763 |
+
|
| 764 |
+
opacity : float
|
| 765 |
+
The opacity (value between [0,1]) of the mark.
|
| 766 |
+
orient : :class:`Orientation`, Literal['horizontal', 'vertical']
|
| 767 |
+
Orientation of the box plot. This is normally automatically determined based on
|
| 768 |
+
types of fields on x and y channels. However, an explicit ``orient`` be specified
|
| 769 |
+
when the orientation is ambiguous.
|
| 770 |
+
|
| 771 |
+
**Default value:** ``"vertical"``.
|
| 772 |
+
outliers : bool, dict, :class:`BarConfig`, :class:`AreaConfig`, :class:`LineConfig`, :class:`MarkConfig`, :class:`RectConfig`, :class:`TickConfig`, :class:`AnyMarkConfig`
|
| 773 |
+
|
| 774 |
+
rule : bool, dict, :class:`BarConfig`, :class:`AreaConfig`, :class:`LineConfig`, :class:`MarkConfig`, :class:`RectConfig`, :class:`TickConfig`, :class:`AnyMarkConfig`
|
| 775 |
+
|
| 776 |
+
size : float
|
| 777 |
+
Size of the box and median tick of a box plot
|
| 778 |
+
ticks : bool, dict, :class:`BarConfig`, :class:`AreaConfig`, :class:`LineConfig`, :class:`MarkConfig`, :class:`RectConfig`, :class:`TickConfig`, :class:`AnyMarkConfig`
|
| 779 |
+
|
| 780 |
+
"""
|
| 781 |
+
|
| 782 |
+
_schema = {"$ref": "#/definitions/BoxPlotDef"}
|
| 783 |
+
|
| 784 |
+
def __init__(
|
| 785 |
+
self,
|
| 786 |
+
box: Optional[bool | SchemaBase | Map] = Undefined,
|
| 787 |
+
clip: Optional[bool] = Undefined,
|
| 788 |
+
color: Optional[str | Parameter | SchemaBase | Map | ColorName_T] = Undefined,
|
| 789 |
+
extent: Optional[float | Literal["min-max"]] = Undefined,
|
| 790 |
+
invalid: Optional[SchemaBase | MarkInvalidDataMode_T | None] = Undefined,
|
| 791 |
+
median: Optional[bool | SchemaBase | Map] = Undefined,
|
| 792 |
+
opacity: Optional[float] = Undefined,
|
| 793 |
+
orient: Optional[SchemaBase | Orientation_T] = Undefined,
|
| 794 |
+
outliers: Optional[bool | SchemaBase | Map] = Undefined,
|
| 795 |
+
rule: Optional[bool | SchemaBase | Map] = Undefined,
|
| 796 |
+
size: Optional[float] = Undefined,
|
| 797 |
+
ticks: Optional[bool | SchemaBase | Map] = Undefined,
|
| 798 |
+
**kwds,
|
| 799 |
+
):
|
| 800 |
+
super().__init__(
|
| 801 |
+
box=box,
|
| 802 |
+
clip=clip,
|
| 803 |
+
color=color,
|
| 804 |
+
extent=extent,
|
| 805 |
+
invalid=invalid,
|
| 806 |
+
median=median,
|
| 807 |
+
opacity=opacity,
|
| 808 |
+
orient=orient,
|
| 809 |
+
outliers=outliers,
|
| 810 |
+
rule=rule,
|
| 811 |
+
size=size,
|
| 812 |
+
ticks=ticks,
|
| 813 |
+
**kwds,
|
| 814 |
+
)
|
| 815 |
+
|
| 816 |
+
|
| 817 |
+
class _ErrorBarDef(SchemaBase):
|
| 818 |
+
"""
|
| 819 |
+
ErrorBarDef schema wrapper.
|
| 820 |
+
|
| 821 |
+
Parameters
|
| 822 |
+
----------
|
| 823 |
+
clip : bool
|
| 824 |
+
Whether a composite mark be clipped to the enclosing group's width and height.
|
| 825 |
+
color : str, dict, :class:`Color`, :class:`ExprRef`, :class:`Gradient`, :class:`HexColor`, :class:`ColorName`, :class:`LinearGradient`, :class:`RadialGradient`, Literal['black', 'silver', 'gray', 'white', 'maroon', 'red', 'purple', 'fuchsia', 'green', 'lime', 'olive', 'yellow', 'navy', 'blue', 'teal', 'aqua', 'orange', 'aliceblue', 'antiquewhite', 'aquamarine', 'azure', 'beige', 'bisque', 'blanchedalmond', 'blueviolet', 'brown', 'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue', 'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkgrey', 'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange', 'darkorchid', 'darkred', 'darksalmon', 'darkseagreen', 'darkslateblue', 'darkslategray', 'darkslategrey', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey', 'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen', 'lightskyblue', 'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow', 'limegreen', 'linen', 'magenta', 'mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen', 'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'oldlace', 'olivedrab', 'orangered', 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow', 'springgreen', 'steelblue', 'tan', 'thistle', 'tomato', 'turquoise', 'violet', 'wheat', 'whitesmoke', 'yellowgreen', 'rebeccapurple']
|
| 826 |
+
Default color.
|
| 827 |
+
|
| 828 |
+
**Default value:** :raw-html:`<span style="color: #4682b4;">` ■ :raw-html:`</span>`
|
| 829 |
+
``"#4682b4"``
|
| 830 |
+
|
| 831 |
+
**Note:**
|
| 832 |
+
|
| 833 |
+
* This property cannot be used in a `style config
|
| 834 |
+
<https://vega.github.io/vega-lite/docs/mark.html#style-config>`__.
|
| 835 |
+
* The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and
|
| 836 |
+
will override ``color``.
|
| 837 |
+
extent : :class:`ErrorBarExtent`, Literal['ci', 'iqr', 'stderr', 'stdev']
|
| 838 |
+
The extent of the rule. Available options include:
|
| 839 |
+
|
| 840 |
+
* ``"ci"``: Extend the rule to the confidence interval of the mean.
|
| 841 |
+
* ``"stderr"``: The size of rule are set to the value of standard error, extending
|
| 842 |
+
from the mean.
|
| 843 |
+
* ``"stdev"``: The size of rule are set to the value of standard deviation,
|
| 844 |
+
extending from the mean.
|
| 845 |
+
* ``"iqr"``: Extend the rule to the q1 and q3.
|
| 846 |
+
|
| 847 |
+
**Default value:** ``"stderr"``.
|
| 848 |
+
opacity : float
|
| 849 |
+
The opacity (value between [0,1]) of the mark.
|
| 850 |
+
orient : :class:`Orientation`, Literal['horizontal', 'vertical']
|
| 851 |
+
Orientation of the error bar. This is normally automatically determined, but can be
|
| 852 |
+
specified when the orientation is ambiguous and cannot be automatically determined.
|
| 853 |
+
rule : bool, dict, :class:`BarConfig`, :class:`AreaConfig`, :class:`LineConfig`, :class:`MarkConfig`, :class:`RectConfig`, :class:`TickConfig`, :class:`AnyMarkConfig`
|
| 854 |
+
|
| 855 |
+
size : float
|
| 856 |
+
Size of the ticks of an error bar
|
| 857 |
+
thickness : float
|
| 858 |
+
Thickness of the ticks and the bar of an error bar
|
| 859 |
+
ticks : bool, dict, :class:`BarConfig`, :class:`AreaConfig`, :class:`LineConfig`, :class:`MarkConfig`, :class:`RectConfig`, :class:`TickConfig`, :class:`AnyMarkConfig`
|
| 860 |
+
|
| 861 |
+
"""
|
| 862 |
+
|
| 863 |
+
_schema = {"$ref": "#/definitions/ErrorBarDef"}
|
| 864 |
+
|
| 865 |
+
def __init__(
|
| 866 |
+
self,
|
| 867 |
+
clip: Optional[bool] = Undefined,
|
| 868 |
+
color: Optional[str | Parameter | SchemaBase | Map | ColorName_T] = Undefined,
|
| 869 |
+
extent: Optional[SchemaBase | ErrorBarExtent_T] = Undefined,
|
| 870 |
+
opacity: Optional[float] = Undefined,
|
| 871 |
+
orient: Optional[SchemaBase | Orientation_T] = Undefined,
|
| 872 |
+
rule: Optional[bool | SchemaBase | Map] = Undefined,
|
| 873 |
+
size: Optional[float] = Undefined,
|
| 874 |
+
thickness: Optional[float] = Undefined,
|
| 875 |
+
ticks: Optional[bool | SchemaBase | Map] = Undefined,
|
| 876 |
+
**kwds,
|
| 877 |
+
):
|
| 878 |
+
super().__init__(
|
| 879 |
+
clip=clip,
|
| 880 |
+
color=color,
|
| 881 |
+
extent=extent,
|
| 882 |
+
opacity=opacity,
|
| 883 |
+
orient=orient,
|
| 884 |
+
rule=rule,
|
| 885 |
+
size=size,
|
| 886 |
+
thickness=thickness,
|
| 887 |
+
ticks=ticks,
|
| 888 |
+
**kwds,
|
| 889 |
+
)
|
| 890 |
+
|
| 891 |
+
|
| 892 |
+
class _ErrorBandDef(SchemaBase):
|
| 893 |
+
"""
|
| 894 |
+
ErrorBandDef schema wrapper.
|
| 895 |
+
|
| 896 |
+
Parameters
|
| 897 |
+
----------
|
| 898 |
+
band : bool, dict, :class:`BarConfig`, :class:`AreaConfig`, :class:`LineConfig`, :class:`MarkConfig`, :class:`RectConfig`, :class:`TickConfig`, :class:`AnyMarkConfig`
|
| 899 |
+
|
| 900 |
+
borders : bool, dict, :class:`BarConfig`, :class:`AreaConfig`, :class:`LineConfig`, :class:`MarkConfig`, :class:`RectConfig`, :class:`TickConfig`, :class:`AnyMarkConfig`
|
| 901 |
+
|
| 902 |
+
clip : bool
|
| 903 |
+
Whether a composite mark be clipped to the enclosing group's width and height.
|
| 904 |
+
color : str, dict, :class:`Color`, :class:`ExprRef`, :class:`Gradient`, :class:`HexColor`, :class:`ColorName`, :class:`LinearGradient`, :class:`RadialGradient`, Literal['black', 'silver', 'gray', 'white', 'maroon', 'red', 'purple', 'fuchsia', 'green', 'lime', 'olive', 'yellow', 'navy', 'blue', 'teal', 'aqua', 'orange', 'aliceblue', 'antiquewhite', 'aquamarine', 'azure', 'beige', 'bisque', 'blanchedalmond', 'blueviolet', 'brown', 'burlywood', 'cadetblue', 'chartreuse', 'chocolate', 'coral', 'cornflowerblue', 'cornsilk', 'crimson', 'cyan', 'darkblue', 'darkcyan', 'darkgoldenrod', 'darkgray', 'darkgreen', 'darkgrey', 'darkkhaki', 'darkmagenta', 'darkolivegreen', 'darkorange', 'darkorchid', 'darkred', 'darksalmon', 'darkseagreen', 'darkslateblue', 'darkslategray', 'darkslategrey', 'darkturquoise', 'darkviolet', 'deeppink', 'deepskyblue', 'dimgray', 'dimgrey', 'dodgerblue', 'firebrick', 'floralwhite', 'forestgreen', 'gainsboro', 'ghostwhite', 'gold', 'goldenrod', 'greenyellow', 'grey', 'honeydew', 'hotpink', 'indianred', 'indigo', 'ivory', 'khaki', 'lavender', 'lavenderblush', 'lawngreen', 'lemonchiffon', 'lightblue', 'lightcoral', 'lightcyan', 'lightgoldenrodyellow', 'lightgray', 'lightgreen', 'lightgrey', 'lightpink', 'lightsalmon', 'lightseagreen', 'lightskyblue', 'lightslategray', 'lightslategrey', 'lightsteelblue', 'lightyellow', 'limegreen', 'linen', 'magenta', 'mediumaquamarine', 'mediumblue', 'mediumorchid', 'mediumpurple', 'mediumseagreen', 'mediumslateblue', 'mediumspringgreen', 'mediumturquoise', 'mediumvioletred', 'midnightblue', 'mintcream', 'mistyrose', 'moccasin', 'navajowhite', 'oldlace', 'olivedrab', 'orangered', 'orchid', 'palegoldenrod', 'palegreen', 'paleturquoise', 'palevioletred', 'papayawhip', 'peachpuff', 'peru', 'pink', 'plum', 'powderblue', 'rosybrown', 'royalblue', 'saddlebrown', 'salmon', 'sandybrown', 'seagreen', 'seashell', 'sienna', 'skyblue', 'slateblue', 'slategray', 'slategrey', 'snow', 'springgreen', 'steelblue', 'tan', 'thistle', 'tomato', 'turquoise', 'violet', 'wheat', 'whitesmoke', 'yellowgreen', 'rebeccapurple']
|
| 905 |
+
Default color.
|
| 906 |
+
|
| 907 |
+
**Default value:** :raw-html:`<span style="color: #4682b4;">` ■ :raw-html:`</span>`
|
| 908 |
+
``"#4682b4"``
|
| 909 |
+
|
| 910 |
+
**Note:**
|
| 911 |
+
|
| 912 |
+
* This property cannot be used in a `style config
|
| 913 |
+
<https://vega.github.io/vega-lite/docs/mark.html#style-config>`__.
|
| 914 |
+
* The ``fill`` and ``stroke`` properties have higher precedence than ``color`` and
|
| 915 |
+
will override ``color``.
|
| 916 |
+
extent : :class:`ErrorBarExtent`, Literal['ci', 'iqr', 'stderr', 'stdev']
|
| 917 |
+
The extent of the band. Available options include:
|
| 918 |
+
|
| 919 |
+
* ``"ci"``: Extend the band to the confidence interval of the mean.
|
| 920 |
+
* ``"stderr"``: The size of band are set to the value of standard error, extending
|
| 921 |
+
from the mean.
|
| 922 |
+
* ``"stdev"``: The size of band are set to the value of standard deviation,
|
| 923 |
+
extending from the mean.
|
| 924 |
+
* ``"iqr"``: Extend the band to the q1 and q3.
|
| 925 |
+
|
| 926 |
+
**Default value:** ``"stderr"``.
|
| 927 |
+
interpolate : :class:`Interpolate`, Literal['basis', 'basis-open', 'basis-closed', 'bundle', 'cardinal', 'cardinal-open', 'cardinal-closed', 'catmull-rom', 'linear', 'linear-closed', 'monotone', 'natural', 'step', 'step-before', 'step-after']
|
| 928 |
+
The line interpolation method for the error band. One of the following:
|
| 929 |
+
|
| 930 |
+
* ``"linear"``: piecewise linear segments, as in a polyline.
|
| 931 |
+
* ``"linear-closed"``: close the linear segments to form a polygon.
|
| 932 |
+
* ``"step"``: a piecewise constant function (a step function) consisting of
|
| 933 |
+
alternating horizontal and vertical lines. The y-value changes at the midpoint of
|
| 934 |
+
each pair of adjacent x-values.
|
| 935 |
+
* ``"step-before"``: a piecewise constant function (a step function) consisting of
|
| 936 |
+
alternating horizontal and vertical lines. The y-value changes before the x-value.
|
| 937 |
+
* ``"step-after"``: a piecewise constant function (a step function) consisting of
|
| 938 |
+
alternating horizontal and vertical lines. The y-value changes after the x-value.
|
| 939 |
+
* ``"basis"``: a B-spline, with control point duplication on the ends.
|
| 940 |
+
* ``"basis-open"``: an open B-spline; may not intersect the start or end.
|
| 941 |
+
* ``"basis-closed"``: a closed B-spline, as in a loop.
|
| 942 |
+
* ``"cardinal"``: a Cardinal spline, with control point duplication on the ends.
|
| 943 |
+
* ``"cardinal-open"``: an open Cardinal spline; may not intersect the start or end,
|
| 944 |
+
but will intersect other control points.
|
| 945 |
+
* ``"cardinal-closed"``: a closed Cardinal spline, as in a loop.
|
| 946 |
+
* ``"bundle"``: equivalent to basis, except the tension parameter is used to
|
| 947 |
+
straighten the spline.
|
| 948 |
+
* ``"monotone"``: cubic interpolation that preserves monotonicity in y.
|
| 949 |
+
opacity : float
|
| 950 |
+
The opacity (value between [0,1]) of the mark.
|
| 951 |
+
orient : :class:`Orientation`, Literal['horizontal', 'vertical']
|
| 952 |
+
Orientation of the error band. This is normally automatically determined, but can be
|
| 953 |
+
specified when the orientation is ambiguous and cannot be automatically determined.
|
| 954 |
+
tension : float
|
| 955 |
+
The tension parameter for the interpolation type of the error band.
|
| 956 |
+
"""
|
| 957 |
+
|
| 958 |
+
_schema = {"$ref": "#/definitions/ErrorBandDef"}
|
| 959 |
+
|
| 960 |
+
def __init__(
|
| 961 |
+
self,
|
| 962 |
+
band: Optional[bool | SchemaBase | Map] = Undefined,
|
| 963 |
+
borders: Optional[bool | SchemaBase | Map] = Undefined,
|
| 964 |
+
clip: Optional[bool] = Undefined,
|
| 965 |
+
color: Optional[str | Parameter | SchemaBase | Map | ColorName_T] = Undefined,
|
| 966 |
+
extent: Optional[SchemaBase | ErrorBarExtent_T] = Undefined,
|
| 967 |
+
interpolate: Optional[SchemaBase | Interpolate_T] = Undefined,
|
| 968 |
+
opacity: Optional[float] = Undefined,
|
| 969 |
+
orient: Optional[SchemaBase | Orientation_T] = Undefined,
|
| 970 |
+
tension: Optional[float] = Undefined,
|
| 971 |
+
**kwds,
|
| 972 |
+
):
|
| 973 |
+
super().__init__(
|
| 974 |
+
band=band,
|
| 975 |
+
borders=borders,
|
| 976 |
+
clip=clip,
|
| 977 |
+
color=color,
|
| 978 |
+
extent=extent,
|
| 979 |
+
interpolate=interpolate,
|
| 980 |
+
opacity=opacity,
|
| 981 |
+
orient=orient,
|
| 982 |
+
tension=tension,
|
| 983 |
+
**kwds,
|
| 984 |
+
)
|
| 985 |
+
|
| 986 |
+
|
| 987 |
+
class MarkMethodMixin:
|
| 988 |
+
"""A mixin class that defines mark methods."""
|
| 989 |
+
|
| 990 |
+
@use_signature(_MarkDef)
|
| 991 |
+
def mark_arc(self, **kwds: Any) -> Self:
|
| 992 |
+
"""Set the chart's mark to 'arc' (see :class:`MarkDef`)."""
|
| 993 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 994 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 995 |
+
copy.mark = core.MarkDef(type="arc", **kwds)
|
| 996 |
+
else:
|
| 997 |
+
copy.mark = "arc"
|
| 998 |
+
return copy
|
| 999 |
+
|
| 1000 |
+
@use_signature(_MarkDef)
|
| 1001 |
+
def mark_area(self, **kwds: Any) -> Self:
|
| 1002 |
+
"""Set the chart's mark to 'area' (see :class:`MarkDef`)."""
|
| 1003 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1004 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1005 |
+
copy.mark = core.MarkDef(type="area", **kwds)
|
| 1006 |
+
else:
|
| 1007 |
+
copy.mark = "area"
|
| 1008 |
+
return copy
|
| 1009 |
+
|
| 1010 |
+
@use_signature(_MarkDef)
|
| 1011 |
+
def mark_bar(self, **kwds: Any) -> Self:
|
| 1012 |
+
"""Set the chart's mark to 'bar' (see :class:`MarkDef`)."""
|
| 1013 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1014 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1015 |
+
copy.mark = core.MarkDef(type="bar", **kwds)
|
| 1016 |
+
else:
|
| 1017 |
+
copy.mark = "bar"
|
| 1018 |
+
return copy
|
| 1019 |
+
|
| 1020 |
+
@use_signature(_MarkDef)
|
| 1021 |
+
def mark_image(self, **kwds: Any) -> Self:
|
| 1022 |
+
"""Set the chart's mark to 'image' (see :class:`MarkDef`)."""
|
| 1023 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1024 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1025 |
+
copy.mark = core.MarkDef(type="image", **kwds)
|
| 1026 |
+
else:
|
| 1027 |
+
copy.mark = "image"
|
| 1028 |
+
return copy
|
| 1029 |
+
|
| 1030 |
+
@use_signature(_MarkDef)
|
| 1031 |
+
def mark_line(self, **kwds: Any) -> Self:
|
| 1032 |
+
"""Set the chart's mark to 'line' (see :class:`MarkDef`)."""
|
| 1033 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1034 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1035 |
+
copy.mark = core.MarkDef(type="line", **kwds)
|
| 1036 |
+
else:
|
| 1037 |
+
copy.mark = "line"
|
| 1038 |
+
return copy
|
| 1039 |
+
|
| 1040 |
+
@use_signature(_MarkDef)
|
| 1041 |
+
def mark_point(self, **kwds: Any) -> Self:
|
| 1042 |
+
"""Set the chart's mark to 'point' (see :class:`MarkDef`)."""
|
| 1043 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1044 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1045 |
+
copy.mark = core.MarkDef(type="point", **kwds)
|
| 1046 |
+
else:
|
| 1047 |
+
copy.mark = "point"
|
| 1048 |
+
return copy
|
| 1049 |
+
|
| 1050 |
+
@use_signature(_MarkDef)
|
| 1051 |
+
def mark_rect(self, **kwds: Any) -> Self:
|
| 1052 |
+
"""Set the chart's mark to 'rect' (see :class:`MarkDef`)."""
|
| 1053 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1054 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1055 |
+
copy.mark = core.MarkDef(type="rect", **kwds)
|
| 1056 |
+
else:
|
| 1057 |
+
copy.mark = "rect"
|
| 1058 |
+
return copy
|
| 1059 |
+
|
| 1060 |
+
@use_signature(_MarkDef)
|
| 1061 |
+
def mark_rule(self, **kwds: Any) -> Self:
|
| 1062 |
+
"""Set the chart's mark to 'rule' (see :class:`MarkDef`)."""
|
| 1063 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1064 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1065 |
+
copy.mark = core.MarkDef(type="rule", **kwds)
|
| 1066 |
+
else:
|
| 1067 |
+
copy.mark = "rule"
|
| 1068 |
+
return copy
|
| 1069 |
+
|
| 1070 |
+
@use_signature(_MarkDef)
|
| 1071 |
+
def mark_text(self, **kwds: Any) -> Self:
|
| 1072 |
+
"""Set the chart's mark to 'text' (see :class:`MarkDef`)."""
|
| 1073 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1074 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1075 |
+
copy.mark = core.MarkDef(type="text", **kwds)
|
| 1076 |
+
else:
|
| 1077 |
+
copy.mark = "text"
|
| 1078 |
+
return copy
|
| 1079 |
+
|
| 1080 |
+
@use_signature(_MarkDef)
|
| 1081 |
+
def mark_tick(self, **kwds: Any) -> Self:
|
| 1082 |
+
"""Set the chart's mark to 'tick' (see :class:`MarkDef`)."""
|
| 1083 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1084 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1085 |
+
copy.mark = core.MarkDef(type="tick", **kwds)
|
| 1086 |
+
else:
|
| 1087 |
+
copy.mark = "tick"
|
| 1088 |
+
return copy
|
| 1089 |
+
|
| 1090 |
+
@use_signature(_MarkDef)
|
| 1091 |
+
def mark_trail(self, **kwds: Any) -> Self:
|
| 1092 |
+
"""Set the chart's mark to 'trail' (see :class:`MarkDef`)."""
|
| 1093 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1094 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1095 |
+
copy.mark = core.MarkDef(type="trail", **kwds)
|
| 1096 |
+
else:
|
| 1097 |
+
copy.mark = "trail"
|
| 1098 |
+
return copy
|
| 1099 |
+
|
| 1100 |
+
@use_signature(_MarkDef)
|
| 1101 |
+
def mark_circle(self, **kwds: Any) -> Self:
|
| 1102 |
+
"""Set the chart's mark to 'circle' (see :class:`MarkDef`)."""
|
| 1103 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1104 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1105 |
+
copy.mark = core.MarkDef(type="circle", **kwds)
|
| 1106 |
+
else:
|
| 1107 |
+
copy.mark = "circle"
|
| 1108 |
+
return copy
|
| 1109 |
+
|
| 1110 |
+
@use_signature(_MarkDef)
|
| 1111 |
+
def mark_square(self, **kwds: Any) -> Self:
|
| 1112 |
+
"""Set the chart's mark to 'square' (see :class:`MarkDef`)."""
|
| 1113 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1114 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1115 |
+
copy.mark = core.MarkDef(type="square", **kwds)
|
| 1116 |
+
else:
|
| 1117 |
+
copy.mark = "square"
|
| 1118 |
+
return copy
|
| 1119 |
+
|
| 1120 |
+
@use_signature(_MarkDef)
|
| 1121 |
+
def mark_geoshape(self, **kwds: Any) -> Self:
|
| 1122 |
+
"""Set the chart's mark to 'geoshape' (see :class:`MarkDef`)."""
|
| 1123 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1124 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1125 |
+
copy.mark = core.MarkDef(type="geoshape", **kwds)
|
| 1126 |
+
else:
|
| 1127 |
+
copy.mark = "geoshape"
|
| 1128 |
+
return copy
|
| 1129 |
+
|
| 1130 |
+
@use_signature(_BoxPlotDef)
|
| 1131 |
+
def mark_boxplot(self, **kwds: Any) -> Self:
|
| 1132 |
+
"""Set the chart's mark to 'boxplot' (see :class:`BoxPlotDef`)."""
|
| 1133 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1134 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1135 |
+
copy.mark = core.BoxPlotDef(type="boxplot", **kwds)
|
| 1136 |
+
else:
|
| 1137 |
+
copy.mark = "boxplot"
|
| 1138 |
+
return copy
|
| 1139 |
+
|
| 1140 |
+
@use_signature(_ErrorBarDef)
|
| 1141 |
+
def mark_errorbar(self, **kwds: Any) -> Self:
|
| 1142 |
+
"""Set the chart's mark to 'errorbar' (see :class:`ErrorBarDef`)."""
|
| 1143 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1144 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1145 |
+
copy.mark = core.ErrorBarDef(type="errorbar", **kwds)
|
| 1146 |
+
else:
|
| 1147 |
+
copy.mark = "errorbar"
|
| 1148 |
+
return copy
|
| 1149 |
+
|
| 1150 |
+
@use_signature(_ErrorBandDef)
|
| 1151 |
+
def mark_errorband(self, **kwds: Any) -> Self:
|
| 1152 |
+
"""Set the chart's mark to 'errorband' (see :class:`ErrorBandDef`)."""
|
| 1153 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1154 |
+
if any(val is not Undefined for val in kwds.values()):
|
| 1155 |
+
copy.mark = core.ErrorBandDef(type="errorband", **kwds)
|
| 1156 |
+
else:
|
| 1157 |
+
copy.mark = "errorband"
|
| 1158 |
+
return copy
|
| 1159 |
+
|
| 1160 |
+
|
| 1161 |
+
class ConfigMethodMixin:
|
| 1162 |
+
"""A mixin class that defines config methods."""
|
| 1163 |
+
|
| 1164 |
+
@use_signature(core.Config)
|
| 1165 |
+
def configure(self, *args, **kwargs) -> Self:
|
| 1166 |
+
copy = self.copy(deep=False) # type: ignore[attr-defined]
|
| 1167 |
+
copy.config = core.Config(*args, **kwargs)
|
| 1168 |
+
return copy
|
| 1169 |
+
|
| 1170 |
+
@use_signature(core.RectConfig)
|
| 1171 |
+
def configure_arc(self, *args, **kwargs) -> Self:
|
| 1172 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1173 |
+
if copy.config is Undefined:
|
| 1174 |
+
copy.config = core.Config()
|
| 1175 |
+
copy.config["arc"] = core.RectConfig(*args, **kwargs)
|
| 1176 |
+
return copy
|
| 1177 |
+
|
| 1178 |
+
@use_signature(core.AreaConfig)
|
| 1179 |
+
def configure_area(self, *args, **kwargs) -> Self:
|
| 1180 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1181 |
+
if copy.config is Undefined:
|
| 1182 |
+
copy.config = core.Config()
|
| 1183 |
+
copy.config["area"] = core.AreaConfig(*args, **kwargs)
|
| 1184 |
+
return copy
|
| 1185 |
+
|
| 1186 |
+
@use_signature(core.AxisConfig)
|
| 1187 |
+
def configure_axis(self, *args, **kwargs) -> Self:
|
| 1188 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1189 |
+
if copy.config is Undefined:
|
| 1190 |
+
copy.config = core.Config()
|
| 1191 |
+
copy.config["axis"] = core.AxisConfig(*args, **kwargs)
|
| 1192 |
+
return copy
|
| 1193 |
+
|
| 1194 |
+
@use_signature(core.AxisConfig)
|
| 1195 |
+
def configure_axisBand(self, *args, **kwargs) -> Self:
|
| 1196 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1197 |
+
if copy.config is Undefined:
|
| 1198 |
+
copy.config = core.Config()
|
| 1199 |
+
copy.config["axisBand"] = core.AxisConfig(*args, **kwargs)
|
| 1200 |
+
return copy
|
| 1201 |
+
|
| 1202 |
+
@use_signature(core.AxisConfig)
|
| 1203 |
+
def configure_axisBottom(self, *args, **kwargs) -> Self:
|
| 1204 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1205 |
+
if copy.config is Undefined:
|
| 1206 |
+
copy.config = core.Config()
|
| 1207 |
+
copy.config["axisBottom"] = core.AxisConfig(*args, **kwargs)
|
| 1208 |
+
return copy
|
| 1209 |
+
|
| 1210 |
+
@use_signature(core.AxisConfig)
|
| 1211 |
+
def configure_axisDiscrete(self, *args, **kwargs) -> Self:
|
| 1212 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1213 |
+
if copy.config is Undefined:
|
| 1214 |
+
copy.config = core.Config()
|
| 1215 |
+
copy.config["axisDiscrete"] = core.AxisConfig(*args, **kwargs)
|
| 1216 |
+
return copy
|
| 1217 |
+
|
| 1218 |
+
@use_signature(core.AxisConfig)
|
| 1219 |
+
def configure_axisLeft(self, *args, **kwargs) -> Self:
|
| 1220 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1221 |
+
if copy.config is Undefined:
|
| 1222 |
+
copy.config = core.Config()
|
| 1223 |
+
copy.config["axisLeft"] = core.AxisConfig(*args, **kwargs)
|
| 1224 |
+
return copy
|
| 1225 |
+
|
| 1226 |
+
@use_signature(core.AxisConfig)
|
| 1227 |
+
def configure_axisPoint(self, *args, **kwargs) -> Self:
|
| 1228 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1229 |
+
if copy.config is Undefined:
|
| 1230 |
+
copy.config = core.Config()
|
| 1231 |
+
copy.config["axisPoint"] = core.AxisConfig(*args, **kwargs)
|
| 1232 |
+
return copy
|
| 1233 |
+
|
| 1234 |
+
@use_signature(core.AxisConfig)
|
| 1235 |
+
def configure_axisQuantitative(self, *args, **kwargs) -> Self:
|
| 1236 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1237 |
+
if copy.config is Undefined:
|
| 1238 |
+
copy.config = core.Config()
|
| 1239 |
+
copy.config["axisQuantitative"] = core.AxisConfig(*args, **kwargs)
|
| 1240 |
+
return copy
|
| 1241 |
+
|
| 1242 |
+
@use_signature(core.AxisConfig)
|
| 1243 |
+
def configure_axisRight(self, *args, **kwargs) -> Self:
|
| 1244 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1245 |
+
if copy.config is Undefined:
|
| 1246 |
+
copy.config = core.Config()
|
| 1247 |
+
copy.config["axisRight"] = core.AxisConfig(*args, **kwargs)
|
| 1248 |
+
return copy
|
| 1249 |
+
|
| 1250 |
+
@use_signature(core.AxisConfig)
|
| 1251 |
+
def configure_axisTemporal(self, *args, **kwargs) -> Self:
|
| 1252 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1253 |
+
if copy.config is Undefined:
|
| 1254 |
+
copy.config = core.Config()
|
| 1255 |
+
copy.config["axisTemporal"] = core.AxisConfig(*args, **kwargs)
|
| 1256 |
+
return copy
|
| 1257 |
+
|
| 1258 |
+
@use_signature(core.AxisConfig)
|
| 1259 |
+
def configure_axisTop(self, *args, **kwargs) -> Self:
|
| 1260 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1261 |
+
if copy.config is Undefined:
|
| 1262 |
+
copy.config = core.Config()
|
| 1263 |
+
copy.config["axisTop"] = core.AxisConfig(*args, **kwargs)
|
| 1264 |
+
return copy
|
| 1265 |
+
|
| 1266 |
+
@use_signature(core.AxisConfig)
|
| 1267 |
+
def configure_axisX(self, *args, **kwargs) -> Self:
|
| 1268 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1269 |
+
if copy.config is Undefined:
|
| 1270 |
+
copy.config = core.Config()
|
| 1271 |
+
copy.config["axisX"] = core.AxisConfig(*args, **kwargs)
|
| 1272 |
+
return copy
|
| 1273 |
+
|
| 1274 |
+
@use_signature(core.AxisConfig)
|
| 1275 |
+
def configure_axisXBand(self, *args, **kwargs) -> Self:
|
| 1276 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1277 |
+
if copy.config is Undefined:
|
| 1278 |
+
copy.config = core.Config()
|
| 1279 |
+
copy.config["axisXBand"] = core.AxisConfig(*args, **kwargs)
|
| 1280 |
+
return copy
|
| 1281 |
+
|
| 1282 |
+
@use_signature(core.AxisConfig)
|
| 1283 |
+
def configure_axisXDiscrete(self, *args, **kwargs) -> Self:
|
| 1284 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1285 |
+
if copy.config is Undefined:
|
| 1286 |
+
copy.config = core.Config()
|
| 1287 |
+
copy.config["axisXDiscrete"] = core.AxisConfig(*args, **kwargs)
|
| 1288 |
+
return copy
|
| 1289 |
+
|
| 1290 |
+
@use_signature(core.AxisConfig)
|
| 1291 |
+
def configure_axisXPoint(self, *args, **kwargs) -> Self:
|
| 1292 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1293 |
+
if copy.config is Undefined:
|
| 1294 |
+
copy.config = core.Config()
|
| 1295 |
+
copy.config["axisXPoint"] = core.AxisConfig(*args, **kwargs)
|
| 1296 |
+
return copy
|
| 1297 |
+
|
| 1298 |
+
@use_signature(core.AxisConfig)
|
| 1299 |
+
def configure_axisXQuantitative(self, *args, **kwargs) -> Self:
|
| 1300 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1301 |
+
if copy.config is Undefined:
|
| 1302 |
+
copy.config = core.Config()
|
| 1303 |
+
copy.config["axisXQuantitative"] = core.AxisConfig(*args, **kwargs)
|
| 1304 |
+
return copy
|
| 1305 |
+
|
| 1306 |
+
@use_signature(core.AxisConfig)
|
| 1307 |
+
def configure_axisXTemporal(self, *args, **kwargs) -> Self:
|
| 1308 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1309 |
+
if copy.config is Undefined:
|
| 1310 |
+
copy.config = core.Config()
|
| 1311 |
+
copy.config["axisXTemporal"] = core.AxisConfig(*args, **kwargs)
|
| 1312 |
+
return copy
|
| 1313 |
+
|
| 1314 |
+
@use_signature(core.AxisConfig)
|
| 1315 |
+
def configure_axisY(self, *args, **kwargs) -> Self:
|
| 1316 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1317 |
+
if copy.config is Undefined:
|
| 1318 |
+
copy.config = core.Config()
|
| 1319 |
+
copy.config["axisY"] = core.AxisConfig(*args, **kwargs)
|
| 1320 |
+
return copy
|
| 1321 |
+
|
| 1322 |
+
@use_signature(core.AxisConfig)
|
| 1323 |
+
def configure_axisYBand(self, *args, **kwargs) -> Self:
|
| 1324 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1325 |
+
if copy.config is Undefined:
|
| 1326 |
+
copy.config = core.Config()
|
| 1327 |
+
copy.config["axisYBand"] = core.AxisConfig(*args, **kwargs)
|
| 1328 |
+
return copy
|
| 1329 |
+
|
| 1330 |
+
@use_signature(core.AxisConfig)
|
| 1331 |
+
def configure_axisYDiscrete(self, *args, **kwargs) -> Self:
|
| 1332 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1333 |
+
if copy.config is Undefined:
|
| 1334 |
+
copy.config = core.Config()
|
| 1335 |
+
copy.config["axisYDiscrete"] = core.AxisConfig(*args, **kwargs)
|
| 1336 |
+
return copy
|
| 1337 |
+
|
| 1338 |
+
@use_signature(core.AxisConfig)
|
| 1339 |
+
def configure_axisYPoint(self, *args, **kwargs) -> Self:
|
| 1340 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1341 |
+
if copy.config is Undefined:
|
| 1342 |
+
copy.config = core.Config()
|
| 1343 |
+
copy.config["axisYPoint"] = core.AxisConfig(*args, **kwargs)
|
| 1344 |
+
return copy
|
| 1345 |
+
|
| 1346 |
+
@use_signature(core.AxisConfig)
|
| 1347 |
+
def configure_axisYQuantitative(self, *args, **kwargs) -> Self:
|
| 1348 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1349 |
+
if copy.config is Undefined:
|
| 1350 |
+
copy.config = core.Config()
|
| 1351 |
+
copy.config["axisYQuantitative"] = core.AxisConfig(*args, **kwargs)
|
| 1352 |
+
return copy
|
| 1353 |
+
|
| 1354 |
+
@use_signature(core.AxisConfig)
|
| 1355 |
+
def configure_axisYTemporal(self, *args, **kwargs) -> Self:
|
| 1356 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1357 |
+
if copy.config is Undefined:
|
| 1358 |
+
copy.config = core.Config()
|
| 1359 |
+
copy.config["axisYTemporal"] = core.AxisConfig(*args, **kwargs)
|
| 1360 |
+
return copy
|
| 1361 |
+
|
| 1362 |
+
@use_signature(core.BarConfig)
|
| 1363 |
+
def configure_bar(self, *args, **kwargs) -> Self:
|
| 1364 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1365 |
+
if copy.config is Undefined:
|
| 1366 |
+
copy.config = core.Config()
|
| 1367 |
+
copy.config["bar"] = core.BarConfig(*args, **kwargs)
|
| 1368 |
+
return copy
|
| 1369 |
+
|
| 1370 |
+
@use_signature(core.BoxPlotConfig)
|
| 1371 |
+
def configure_boxplot(self, *args, **kwargs) -> Self:
|
| 1372 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1373 |
+
if copy.config is Undefined:
|
| 1374 |
+
copy.config = core.Config()
|
| 1375 |
+
copy.config["boxplot"] = core.BoxPlotConfig(*args, **kwargs)
|
| 1376 |
+
return copy
|
| 1377 |
+
|
| 1378 |
+
@use_signature(core.MarkConfig)
|
| 1379 |
+
def configure_circle(self, *args, **kwargs) -> Self:
|
| 1380 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1381 |
+
if copy.config is Undefined:
|
| 1382 |
+
copy.config = core.Config()
|
| 1383 |
+
copy.config["circle"] = core.MarkConfig(*args, **kwargs)
|
| 1384 |
+
return copy
|
| 1385 |
+
|
| 1386 |
+
@use_signature(core.CompositionConfig)
|
| 1387 |
+
def configure_concat(self, *args, **kwargs) -> Self:
|
| 1388 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1389 |
+
if copy.config is Undefined:
|
| 1390 |
+
copy.config = core.Config()
|
| 1391 |
+
copy.config["concat"] = core.CompositionConfig(*args, **kwargs)
|
| 1392 |
+
return copy
|
| 1393 |
+
|
| 1394 |
+
@use_signature(core.ErrorBandConfig)
|
| 1395 |
+
def configure_errorband(self, *args, **kwargs) -> Self:
|
| 1396 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1397 |
+
if copy.config is Undefined:
|
| 1398 |
+
copy.config = core.Config()
|
| 1399 |
+
copy.config["errorband"] = core.ErrorBandConfig(*args, **kwargs)
|
| 1400 |
+
return copy
|
| 1401 |
+
|
| 1402 |
+
@use_signature(core.ErrorBarConfig)
|
| 1403 |
+
def configure_errorbar(self, *args, **kwargs) -> Self:
|
| 1404 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1405 |
+
if copy.config is Undefined:
|
| 1406 |
+
copy.config = core.Config()
|
| 1407 |
+
copy.config["errorbar"] = core.ErrorBarConfig(*args, **kwargs)
|
| 1408 |
+
return copy
|
| 1409 |
+
|
| 1410 |
+
@use_signature(core.CompositionConfig)
|
| 1411 |
+
def configure_facet(self, *args, **kwargs) -> Self:
|
| 1412 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1413 |
+
if copy.config is Undefined:
|
| 1414 |
+
copy.config = core.Config()
|
| 1415 |
+
copy.config["facet"] = core.CompositionConfig(*args, **kwargs)
|
| 1416 |
+
return copy
|
| 1417 |
+
|
| 1418 |
+
@use_signature(core.MarkConfig)
|
| 1419 |
+
def configure_geoshape(self, *args, **kwargs) -> Self:
|
| 1420 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1421 |
+
if copy.config is Undefined:
|
| 1422 |
+
copy.config = core.Config()
|
| 1423 |
+
copy.config["geoshape"] = core.MarkConfig(*args, **kwargs)
|
| 1424 |
+
return copy
|
| 1425 |
+
|
| 1426 |
+
@use_signature(core.HeaderConfig)
|
| 1427 |
+
def configure_header(self, *args, **kwargs) -> Self:
|
| 1428 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1429 |
+
if copy.config is Undefined:
|
| 1430 |
+
copy.config = core.Config()
|
| 1431 |
+
copy.config["header"] = core.HeaderConfig(*args, **kwargs)
|
| 1432 |
+
return copy
|
| 1433 |
+
|
| 1434 |
+
@use_signature(core.HeaderConfig)
|
| 1435 |
+
def configure_headerColumn(self, *args, **kwargs) -> Self:
|
| 1436 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1437 |
+
if copy.config is Undefined:
|
| 1438 |
+
copy.config = core.Config()
|
| 1439 |
+
copy.config["headerColumn"] = core.HeaderConfig(*args, **kwargs)
|
| 1440 |
+
return copy
|
| 1441 |
+
|
| 1442 |
+
@use_signature(core.HeaderConfig)
|
| 1443 |
+
def configure_headerFacet(self, *args, **kwargs) -> Self:
|
| 1444 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1445 |
+
if copy.config is Undefined:
|
| 1446 |
+
copy.config = core.Config()
|
| 1447 |
+
copy.config["headerFacet"] = core.HeaderConfig(*args, **kwargs)
|
| 1448 |
+
return copy
|
| 1449 |
+
|
| 1450 |
+
@use_signature(core.HeaderConfig)
|
| 1451 |
+
def configure_headerRow(self, *args, **kwargs) -> Self:
|
| 1452 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1453 |
+
if copy.config is Undefined:
|
| 1454 |
+
copy.config = core.Config()
|
| 1455 |
+
copy.config["headerRow"] = core.HeaderConfig(*args, **kwargs)
|
| 1456 |
+
return copy
|
| 1457 |
+
|
| 1458 |
+
@use_signature(core.RectConfig)
|
| 1459 |
+
def configure_image(self, *args, **kwargs) -> Self:
|
| 1460 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1461 |
+
if copy.config is Undefined:
|
| 1462 |
+
copy.config = core.Config()
|
| 1463 |
+
copy.config["image"] = core.RectConfig(*args, **kwargs)
|
| 1464 |
+
return copy
|
| 1465 |
+
|
| 1466 |
+
@use_signature(core.LegendConfig)
|
| 1467 |
+
def configure_legend(self, *args, **kwargs) -> Self:
|
| 1468 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1469 |
+
if copy.config is Undefined:
|
| 1470 |
+
copy.config = core.Config()
|
| 1471 |
+
copy.config["legend"] = core.LegendConfig(*args, **kwargs)
|
| 1472 |
+
return copy
|
| 1473 |
+
|
| 1474 |
+
@use_signature(core.LineConfig)
|
| 1475 |
+
def configure_line(self, *args, **kwargs) -> Self:
|
| 1476 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1477 |
+
if copy.config is Undefined:
|
| 1478 |
+
copy.config = core.Config()
|
| 1479 |
+
copy.config["line"] = core.LineConfig(*args, **kwargs)
|
| 1480 |
+
return copy
|
| 1481 |
+
|
| 1482 |
+
@use_signature(core.MarkConfig)
|
| 1483 |
+
def configure_mark(self, *args, **kwargs) -> Self:
|
| 1484 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1485 |
+
if copy.config is Undefined:
|
| 1486 |
+
copy.config = core.Config()
|
| 1487 |
+
copy.config["mark"] = core.MarkConfig(*args, **kwargs)
|
| 1488 |
+
return copy
|
| 1489 |
+
|
| 1490 |
+
@use_signature(core.MarkConfig)
|
| 1491 |
+
def configure_point(self, *args, **kwargs) -> Self:
|
| 1492 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1493 |
+
if copy.config is Undefined:
|
| 1494 |
+
copy.config = core.Config()
|
| 1495 |
+
copy.config["point"] = core.MarkConfig(*args, **kwargs)
|
| 1496 |
+
return copy
|
| 1497 |
+
|
| 1498 |
+
@use_signature(core.ProjectionConfig)
|
| 1499 |
+
def configure_projection(self, *args, **kwargs) -> Self:
|
| 1500 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1501 |
+
if copy.config is Undefined:
|
| 1502 |
+
copy.config = core.Config()
|
| 1503 |
+
copy.config["projection"] = core.ProjectionConfig(*args, **kwargs)
|
| 1504 |
+
return copy
|
| 1505 |
+
|
| 1506 |
+
@use_signature(core.RangeConfig)
|
| 1507 |
+
def configure_range(self, *args, **kwargs) -> Self:
|
| 1508 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1509 |
+
if copy.config is Undefined:
|
| 1510 |
+
copy.config = core.Config()
|
| 1511 |
+
copy.config["range"] = core.RangeConfig(*args, **kwargs)
|
| 1512 |
+
return copy
|
| 1513 |
+
|
| 1514 |
+
@use_signature(core.RectConfig)
|
| 1515 |
+
def configure_rect(self, *args, **kwargs) -> Self:
|
| 1516 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1517 |
+
if copy.config is Undefined:
|
| 1518 |
+
copy.config = core.Config()
|
| 1519 |
+
copy.config["rect"] = core.RectConfig(*args, **kwargs)
|
| 1520 |
+
return copy
|
| 1521 |
+
|
| 1522 |
+
@use_signature(core.MarkConfig)
|
| 1523 |
+
def configure_rule(self, *args, **kwargs) -> Self:
|
| 1524 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1525 |
+
if copy.config is Undefined:
|
| 1526 |
+
copy.config = core.Config()
|
| 1527 |
+
copy.config["rule"] = core.MarkConfig(*args, **kwargs)
|
| 1528 |
+
return copy
|
| 1529 |
+
|
| 1530 |
+
@use_signature(core.ScaleConfig)
|
| 1531 |
+
def configure_scale(self, *args, **kwargs) -> Self:
|
| 1532 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1533 |
+
if copy.config is Undefined:
|
| 1534 |
+
copy.config = core.Config()
|
| 1535 |
+
copy.config["scale"] = core.ScaleConfig(*args, **kwargs)
|
| 1536 |
+
return copy
|
| 1537 |
+
|
| 1538 |
+
@use_signature(core.SelectionConfig)
|
| 1539 |
+
def configure_selection(self, *args, **kwargs) -> Self:
|
| 1540 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1541 |
+
if copy.config is Undefined:
|
| 1542 |
+
copy.config = core.Config()
|
| 1543 |
+
copy.config["selection"] = core.SelectionConfig(*args, **kwargs)
|
| 1544 |
+
return copy
|
| 1545 |
+
|
| 1546 |
+
@use_signature(core.MarkConfig)
|
| 1547 |
+
def configure_square(self, *args, **kwargs) -> Self:
|
| 1548 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1549 |
+
if copy.config is Undefined:
|
| 1550 |
+
copy.config = core.Config()
|
| 1551 |
+
copy.config["square"] = core.MarkConfig(*args, **kwargs)
|
| 1552 |
+
return copy
|
| 1553 |
+
|
| 1554 |
+
@use_signature(core.MarkConfig)
|
| 1555 |
+
def configure_text(self, *args, **kwargs) -> Self:
|
| 1556 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1557 |
+
if copy.config is Undefined:
|
| 1558 |
+
copy.config = core.Config()
|
| 1559 |
+
copy.config["text"] = core.MarkConfig(*args, **kwargs)
|
| 1560 |
+
return copy
|
| 1561 |
+
|
| 1562 |
+
@use_signature(core.TickConfig)
|
| 1563 |
+
def configure_tick(self, *args, **kwargs) -> Self:
|
| 1564 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1565 |
+
if copy.config is Undefined:
|
| 1566 |
+
copy.config = core.Config()
|
| 1567 |
+
copy.config["tick"] = core.TickConfig(*args, **kwargs)
|
| 1568 |
+
return copy
|
| 1569 |
+
|
| 1570 |
+
@use_signature(core.TitleConfig)
|
| 1571 |
+
def configure_title(self, *args, **kwargs) -> Self:
|
| 1572 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1573 |
+
if copy.config is Undefined:
|
| 1574 |
+
copy.config = core.Config()
|
| 1575 |
+
copy.config["title"] = core.TitleConfig(*args, **kwargs)
|
| 1576 |
+
return copy
|
| 1577 |
+
|
| 1578 |
+
@use_signature(core.FormatConfig)
|
| 1579 |
+
def configure_tooltipFormat(self, *args, **kwargs) -> Self:
|
| 1580 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1581 |
+
if copy.config is Undefined:
|
| 1582 |
+
copy.config = core.Config()
|
| 1583 |
+
copy.config["tooltipFormat"] = core.FormatConfig(*args, **kwargs)
|
| 1584 |
+
return copy
|
| 1585 |
+
|
| 1586 |
+
@use_signature(core.LineConfig)
|
| 1587 |
+
def configure_trail(self, *args, **kwargs) -> Self:
|
| 1588 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1589 |
+
if copy.config is Undefined:
|
| 1590 |
+
copy.config = core.Config()
|
| 1591 |
+
copy.config["trail"] = core.LineConfig(*args, **kwargs)
|
| 1592 |
+
return copy
|
| 1593 |
+
|
| 1594 |
+
@use_signature(core.ViewConfig)
|
| 1595 |
+
def configure_view(self, *args, **kwargs) -> Self:
|
| 1596 |
+
copy = self.copy(deep=["config"]) # type: ignore[attr-defined]
|
| 1597 |
+
if copy.config is Undefined:
|
| 1598 |
+
copy.config = core.Config()
|
| 1599 |
+
copy.config["view"] = core.ViewConfig(*args, **kwargs)
|
| 1600 |
+
return copy
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/vega-lite-schema.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/schema/vega-themes.json
ADDED
|
@@ -0,0 +1,1187 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"carbong10": {
|
| 3 |
+
"config": {
|
| 4 |
+
"arc": {
|
| 5 |
+
"fill": "#6929c4"
|
| 6 |
+
},
|
| 7 |
+
"area": {
|
| 8 |
+
"fill": "#6929c4"
|
| 9 |
+
},
|
| 10 |
+
"axis": {
|
| 11 |
+
"grid": true,
|
| 12 |
+
"gridColor": "#e0e0e0",
|
| 13 |
+
"labelAngle": 0,
|
| 14 |
+
"labelColor": "#525252",
|
| 15 |
+
"labelFont": "IBM Plex Sans Condensed, system-ui, -apple-system, BlinkMacSystemFont, \".SFNSText-Regular\", sans-serif",
|
| 16 |
+
"labelFontSize": 12,
|
| 17 |
+
"labelFontWeight": 400,
|
| 18 |
+
"titleColor": "#161616",
|
| 19 |
+
"titleFontSize": 12,
|
| 20 |
+
"titleFontWeight": 600
|
| 21 |
+
},
|
| 22 |
+
"axisX": {
|
| 23 |
+
"titlePadding": 10
|
| 24 |
+
},
|
| 25 |
+
"axisY": {
|
| 26 |
+
"titlePadding": 2.5
|
| 27 |
+
},
|
| 28 |
+
"background": "#f4f4f4",
|
| 29 |
+
"circle": {
|
| 30 |
+
"fill": "#6929c4"
|
| 31 |
+
},
|
| 32 |
+
"range": {
|
| 33 |
+
"category": [
|
| 34 |
+
"#6929c4",
|
| 35 |
+
"#1192e8",
|
| 36 |
+
"#005d5d",
|
| 37 |
+
"#9f1853",
|
| 38 |
+
"#fa4d56",
|
| 39 |
+
"#570408",
|
| 40 |
+
"#198038",
|
| 41 |
+
"#002d9c",
|
| 42 |
+
"#ee538b",
|
| 43 |
+
"#b28600",
|
| 44 |
+
"#009d9a",
|
| 45 |
+
"#012749",
|
| 46 |
+
"#8a3800",
|
| 47 |
+
"#a56eff"
|
| 48 |
+
],
|
| 49 |
+
"diverging": [
|
| 50 |
+
"#750e13",
|
| 51 |
+
"#a2191f",
|
| 52 |
+
"#da1e28",
|
| 53 |
+
"#fa4d56",
|
| 54 |
+
"#ff8389",
|
| 55 |
+
"#ffb3b8",
|
| 56 |
+
"#ffd7d9",
|
| 57 |
+
"#fff1f1",
|
| 58 |
+
"#e5f6ff",
|
| 59 |
+
"#bae6ff",
|
| 60 |
+
"#82cfff",
|
| 61 |
+
"#33b1ff",
|
| 62 |
+
"#1192e8",
|
| 63 |
+
"#0072c3",
|
| 64 |
+
"#00539a",
|
| 65 |
+
"#003a6d"
|
| 66 |
+
],
|
| 67 |
+
"heatmap": [
|
| 68 |
+
"#f6f2ff",
|
| 69 |
+
"#e8daff",
|
| 70 |
+
"#d4bbff",
|
| 71 |
+
"#be95ff",
|
| 72 |
+
"#a56eff",
|
| 73 |
+
"#8a3ffc",
|
| 74 |
+
"#6929c4",
|
| 75 |
+
"#491d8b",
|
| 76 |
+
"#31135e",
|
| 77 |
+
"#1c0f30"
|
| 78 |
+
]
|
| 79 |
+
},
|
| 80 |
+
"rect": {
|
| 81 |
+
"fill": "#6929c4"
|
| 82 |
+
},
|
| 83 |
+
"style": {
|
| 84 |
+
"guide-label": {
|
| 85 |
+
"fill": "#525252",
|
| 86 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 87 |
+
"fontWeight": 400
|
| 88 |
+
},
|
| 89 |
+
"guide-title": {
|
| 90 |
+
"fill": "#525252",
|
| 91 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 92 |
+
"fontWeight": 400
|
| 93 |
+
}
|
| 94 |
+
},
|
| 95 |
+
"title": {
|
| 96 |
+
"anchor": "start",
|
| 97 |
+
"color": "#161616",
|
| 98 |
+
"dy": -15,
|
| 99 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 100 |
+
"fontSize": 16,
|
| 101 |
+
"fontWeight": 600
|
| 102 |
+
},
|
| 103 |
+
"view": {
|
| 104 |
+
"fill": "#ffffff",
|
| 105 |
+
"stroke": "#ffffff"
|
| 106 |
+
}
|
| 107 |
+
}
|
| 108 |
+
},
|
| 109 |
+
"carbong100": {
|
| 110 |
+
"config": {
|
| 111 |
+
"arc": {
|
| 112 |
+
"fill": "#d4bbff"
|
| 113 |
+
},
|
| 114 |
+
"area": {
|
| 115 |
+
"fill": "#d4bbff"
|
| 116 |
+
},
|
| 117 |
+
"axis": {
|
| 118 |
+
"grid": true,
|
| 119 |
+
"gridColor": "#393939",
|
| 120 |
+
"labelAngle": 0,
|
| 121 |
+
"labelColor": "#c6c6c6",
|
| 122 |
+
"labelFont": "IBM Plex Sans Condensed, system-ui, -apple-system, BlinkMacSystemFont, \".SFNSText-Regular\", sans-serif",
|
| 123 |
+
"labelFontSize": 12,
|
| 124 |
+
"labelFontWeight": 400,
|
| 125 |
+
"titleColor": "#f4f4f4",
|
| 126 |
+
"titleFontSize": 12,
|
| 127 |
+
"titleFontWeight": 600
|
| 128 |
+
},
|
| 129 |
+
"axisX": {
|
| 130 |
+
"titlePadding": 10
|
| 131 |
+
},
|
| 132 |
+
"axisY": {
|
| 133 |
+
"titlePadding": 2.5
|
| 134 |
+
},
|
| 135 |
+
"background": "#161616",
|
| 136 |
+
"circle": {
|
| 137 |
+
"fill": "#d4bbff"
|
| 138 |
+
},
|
| 139 |
+
"range": {
|
| 140 |
+
"category": [
|
| 141 |
+
"#8a3ffc",
|
| 142 |
+
"#33b1ff",
|
| 143 |
+
"#007d79",
|
| 144 |
+
"#ff7eb6",
|
| 145 |
+
"#fa4d56",
|
| 146 |
+
"#fff1f1",
|
| 147 |
+
"#6fdc8c",
|
| 148 |
+
"#4589ff",
|
| 149 |
+
"#d12771",
|
| 150 |
+
"#d2a106",
|
| 151 |
+
"#08bdba",
|
| 152 |
+
"#bae6ff",
|
| 153 |
+
"#ba4e00",
|
| 154 |
+
"#d4bbff"
|
| 155 |
+
],
|
| 156 |
+
"diverging": [
|
| 157 |
+
"#750e13",
|
| 158 |
+
"#a2191f",
|
| 159 |
+
"#da1e28",
|
| 160 |
+
"#fa4d56",
|
| 161 |
+
"#ff8389",
|
| 162 |
+
"#ffb3b8",
|
| 163 |
+
"#ffd7d9",
|
| 164 |
+
"#fff1f1",
|
| 165 |
+
"#e5f6ff",
|
| 166 |
+
"#bae6ff",
|
| 167 |
+
"#82cfff",
|
| 168 |
+
"#33b1ff",
|
| 169 |
+
"#1192e8",
|
| 170 |
+
"#0072c3",
|
| 171 |
+
"#00539a",
|
| 172 |
+
"#003a6d"
|
| 173 |
+
],
|
| 174 |
+
"heatmap": [
|
| 175 |
+
"#f6f2ff",
|
| 176 |
+
"#e8daff",
|
| 177 |
+
"#d4bbff",
|
| 178 |
+
"#be95ff",
|
| 179 |
+
"#a56eff",
|
| 180 |
+
"#8a3ffc",
|
| 181 |
+
"#6929c4",
|
| 182 |
+
"#491d8b",
|
| 183 |
+
"#31135e",
|
| 184 |
+
"#1c0f30"
|
| 185 |
+
]
|
| 186 |
+
},
|
| 187 |
+
"rect": {
|
| 188 |
+
"fill": "#d4bbff"
|
| 189 |
+
},
|
| 190 |
+
"style": {
|
| 191 |
+
"guide-label": {
|
| 192 |
+
"fill": "#c6c6c6",
|
| 193 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 194 |
+
"fontWeight": 400
|
| 195 |
+
},
|
| 196 |
+
"guide-title": {
|
| 197 |
+
"fill": "#c6c6c6",
|
| 198 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 199 |
+
"fontWeight": 400
|
| 200 |
+
}
|
| 201 |
+
},
|
| 202 |
+
"title": {
|
| 203 |
+
"anchor": "start",
|
| 204 |
+
"color": "#f4f4f4",
|
| 205 |
+
"dy": -15,
|
| 206 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 207 |
+
"fontSize": 16,
|
| 208 |
+
"fontWeight": 600
|
| 209 |
+
},
|
| 210 |
+
"view": {
|
| 211 |
+
"fill": "#161616",
|
| 212 |
+
"stroke": "#161616"
|
| 213 |
+
}
|
| 214 |
+
}
|
| 215 |
+
},
|
| 216 |
+
"carbong90": {
|
| 217 |
+
"config": {
|
| 218 |
+
"arc": {
|
| 219 |
+
"fill": "#d4bbff"
|
| 220 |
+
},
|
| 221 |
+
"area": {
|
| 222 |
+
"fill": "#d4bbff"
|
| 223 |
+
},
|
| 224 |
+
"axis": {
|
| 225 |
+
"grid": true,
|
| 226 |
+
"gridColor": "#525252",
|
| 227 |
+
"labelAngle": 0,
|
| 228 |
+
"labelColor": "#c6c6c6",
|
| 229 |
+
"labelFont": "IBM Plex Sans Condensed, system-ui, -apple-system, BlinkMacSystemFont, \".SFNSText-Regular\", sans-serif",
|
| 230 |
+
"labelFontSize": 12,
|
| 231 |
+
"labelFontWeight": 400,
|
| 232 |
+
"titleColor": "#f4f4f4",
|
| 233 |
+
"titleFontSize": 12,
|
| 234 |
+
"titleFontWeight": 600
|
| 235 |
+
},
|
| 236 |
+
"axisX": {
|
| 237 |
+
"titlePadding": 10
|
| 238 |
+
},
|
| 239 |
+
"axisY": {
|
| 240 |
+
"titlePadding": 2.5
|
| 241 |
+
},
|
| 242 |
+
"background": "#262626",
|
| 243 |
+
"circle": {
|
| 244 |
+
"fill": "#d4bbff"
|
| 245 |
+
},
|
| 246 |
+
"range": {
|
| 247 |
+
"category": [
|
| 248 |
+
"#8a3ffc",
|
| 249 |
+
"#33b1ff",
|
| 250 |
+
"#007d79",
|
| 251 |
+
"#ff7eb6",
|
| 252 |
+
"#fa4d56",
|
| 253 |
+
"#fff1f1",
|
| 254 |
+
"#6fdc8c",
|
| 255 |
+
"#4589ff",
|
| 256 |
+
"#d12771",
|
| 257 |
+
"#d2a106",
|
| 258 |
+
"#08bdba",
|
| 259 |
+
"#bae6ff",
|
| 260 |
+
"#ba4e00",
|
| 261 |
+
"#d4bbff"
|
| 262 |
+
],
|
| 263 |
+
"diverging": [
|
| 264 |
+
"#750e13",
|
| 265 |
+
"#a2191f",
|
| 266 |
+
"#da1e28",
|
| 267 |
+
"#fa4d56",
|
| 268 |
+
"#ff8389",
|
| 269 |
+
"#ffb3b8",
|
| 270 |
+
"#ffd7d9",
|
| 271 |
+
"#fff1f1",
|
| 272 |
+
"#e5f6ff",
|
| 273 |
+
"#bae6ff",
|
| 274 |
+
"#82cfff",
|
| 275 |
+
"#33b1ff",
|
| 276 |
+
"#1192e8",
|
| 277 |
+
"#0072c3",
|
| 278 |
+
"#00539a",
|
| 279 |
+
"#003a6d"
|
| 280 |
+
],
|
| 281 |
+
"heatmap": [
|
| 282 |
+
"#f6f2ff",
|
| 283 |
+
"#e8daff",
|
| 284 |
+
"#d4bbff",
|
| 285 |
+
"#be95ff",
|
| 286 |
+
"#a56eff",
|
| 287 |
+
"#8a3ffc",
|
| 288 |
+
"#6929c4",
|
| 289 |
+
"#491d8b",
|
| 290 |
+
"#31135e",
|
| 291 |
+
"#1c0f30"
|
| 292 |
+
]
|
| 293 |
+
},
|
| 294 |
+
"rect": {
|
| 295 |
+
"fill": "#d4bbff"
|
| 296 |
+
},
|
| 297 |
+
"style": {
|
| 298 |
+
"guide-label": {
|
| 299 |
+
"fill": "#c6c6c6",
|
| 300 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 301 |
+
"fontWeight": 400
|
| 302 |
+
},
|
| 303 |
+
"guide-title": {
|
| 304 |
+
"fill": "#c6c6c6",
|
| 305 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 306 |
+
"fontWeight": 400
|
| 307 |
+
}
|
| 308 |
+
},
|
| 309 |
+
"title": {
|
| 310 |
+
"anchor": "start",
|
| 311 |
+
"color": "#f4f4f4",
|
| 312 |
+
"dy": -15,
|
| 313 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 314 |
+
"fontSize": 16,
|
| 315 |
+
"fontWeight": 600
|
| 316 |
+
},
|
| 317 |
+
"view": {
|
| 318 |
+
"fill": "#161616",
|
| 319 |
+
"stroke": "#161616"
|
| 320 |
+
}
|
| 321 |
+
}
|
| 322 |
+
},
|
| 323 |
+
"carbonwhite": {
|
| 324 |
+
"config": {
|
| 325 |
+
"arc": {
|
| 326 |
+
"fill": "#6929c4"
|
| 327 |
+
},
|
| 328 |
+
"area": {
|
| 329 |
+
"fill": "#6929c4"
|
| 330 |
+
},
|
| 331 |
+
"axis": {
|
| 332 |
+
"grid": true,
|
| 333 |
+
"gridColor": "#e0e0e0",
|
| 334 |
+
"labelAngle": 0,
|
| 335 |
+
"labelColor": "#525252",
|
| 336 |
+
"labelFont": "IBM Plex Sans Condensed, system-ui, -apple-system, BlinkMacSystemFont, \".SFNSText-Regular\", sans-serif",
|
| 337 |
+
"labelFontSize": 12,
|
| 338 |
+
"labelFontWeight": 400,
|
| 339 |
+
"titleColor": "#161616",
|
| 340 |
+
"titleFontSize": 12,
|
| 341 |
+
"titleFontWeight": 600
|
| 342 |
+
},
|
| 343 |
+
"axisX": {
|
| 344 |
+
"titlePadding": 10
|
| 345 |
+
},
|
| 346 |
+
"axisY": {
|
| 347 |
+
"titlePadding": 2.5
|
| 348 |
+
},
|
| 349 |
+
"background": "#ffffff",
|
| 350 |
+
"circle": {
|
| 351 |
+
"fill": "#6929c4"
|
| 352 |
+
},
|
| 353 |
+
"range": {
|
| 354 |
+
"category": [
|
| 355 |
+
"#6929c4",
|
| 356 |
+
"#1192e8",
|
| 357 |
+
"#005d5d",
|
| 358 |
+
"#9f1853",
|
| 359 |
+
"#fa4d56",
|
| 360 |
+
"#570408",
|
| 361 |
+
"#198038",
|
| 362 |
+
"#002d9c",
|
| 363 |
+
"#ee538b",
|
| 364 |
+
"#b28600",
|
| 365 |
+
"#009d9a",
|
| 366 |
+
"#012749",
|
| 367 |
+
"#8a3800",
|
| 368 |
+
"#a56eff"
|
| 369 |
+
],
|
| 370 |
+
"diverging": [
|
| 371 |
+
"#750e13",
|
| 372 |
+
"#a2191f",
|
| 373 |
+
"#da1e28",
|
| 374 |
+
"#fa4d56",
|
| 375 |
+
"#ff8389",
|
| 376 |
+
"#ffb3b8",
|
| 377 |
+
"#ffd7d9",
|
| 378 |
+
"#fff1f1",
|
| 379 |
+
"#e5f6ff",
|
| 380 |
+
"#bae6ff",
|
| 381 |
+
"#82cfff",
|
| 382 |
+
"#33b1ff",
|
| 383 |
+
"#1192e8",
|
| 384 |
+
"#0072c3",
|
| 385 |
+
"#00539a",
|
| 386 |
+
"#003a6d"
|
| 387 |
+
],
|
| 388 |
+
"heatmap": [
|
| 389 |
+
"#f6f2ff",
|
| 390 |
+
"#e8daff",
|
| 391 |
+
"#d4bbff",
|
| 392 |
+
"#be95ff",
|
| 393 |
+
"#a56eff",
|
| 394 |
+
"#8a3ffc",
|
| 395 |
+
"#6929c4",
|
| 396 |
+
"#491d8b",
|
| 397 |
+
"#31135e",
|
| 398 |
+
"#1c0f30"
|
| 399 |
+
]
|
| 400 |
+
},
|
| 401 |
+
"rect": {
|
| 402 |
+
"fill": "#6929c4"
|
| 403 |
+
},
|
| 404 |
+
"style": {
|
| 405 |
+
"guide-label": {
|
| 406 |
+
"fill": "#525252",
|
| 407 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 408 |
+
"fontWeight": 400
|
| 409 |
+
},
|
| 410 |
+
"guide-title": {
|
| 411 |
+
"fill": "#525252",
|
| 412 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 413 |
+
"fontWeight": 400
|
| 414 |
+
}
|
| 415 |
+
},
|
| 416 |
+
"title": {
|
| 417 |
+
"anchor": "start",
|
| 418 |
+
"color": "#161616",
|
| 419 |
+
"dy": -15,
|
| 420 |
+
"font": "IBM Plex Sans,system-ui,-apple-system,BlinkMacSystemFont,\".sfnstext-regular\",sans-serif",
|
| 421 |
+
"fontSize": 16,
|
| 422 |
+
"fontWeight": 600
|
| 423 |
+
},
|
| 424 |
+
"view": {
|
| 425 |
+
"fill": "#ffffff",
|
| 426 |
+
"stroke": "#ffffff"
|
| 427 |
+
}
|
| 428 |
+
}
|
| 429 |
+
},
|
| 430 |
+
"dark": {
|
| 431 |
+
"config": {
|
| 432 |
+
"axis": {
|
| 433 |
+
"domainColor": "#fff",
|
| 434 |
+
"gridColor": "#888",
|
| 435 |
+
"tickColor": "#fff"
|
| 436 |
+
},
|
| 437 |
+
"background": "#333",
|
| 438 |
+
"style": {
|
| 439 |
+
"guide-label": {
|
| 440 |
+
"fill": "#fff"
|
| 441 |
+
},
|
| 442 |
+
"guide-title": {
|
| 443 |
+
"fill": "#fff"
|
| 444 |
+
}
|
| 445 |
+
},
|
| 446 |
+
"title": {
|
| 447 |
+
"color": "#fff",
|
| 448 |
+
"subtitleColor": "#fff"
|
| 449 |
+
},
|
| 450 |
+
"view": {
|
| 451 |
+
"stroke": "#888"
|
| 452 |
+
}
|
| 453 |
+
}
|
| 454 |
+
},
|
| 455 |
+
"excel": {
|
| 456 |
+
"config": {
|
| 457 |
+
"arc": {
|
| 458 |
+
"fill": "#4572a7"
|
| 459 |
+
},
|
| 460 |
+
"area": {
|
| 461 |
+
"fill": "#4572a7"
|
| 462 |
+
},
|
| 463 |
+
"axis": {
|
| 464 |
+
"bandPosition": 0.5,
|
| 465 |
+
"grid": true,
|
| 466 |
+
"gridColor": "#000000",
|
| 467 |
+
"gridOpacity": 1,
|
| 468 |
+
"gridWidth": 0.5,
|
| 469 |
+
"labelPadding": 10,
|
| 470 |
+
"tickSize": 5,
|
| 471 |
+
"tickWidth": 0.5
|
| 472 |
+
},
|
| 473 |
+
"axisBand": {
|
| 474 |
+
"grid": false,
|
| 475 |
+
"tickExtra": true
|
| 476 |
+
},
|
| 477 |
+
"background": "#fff",
|
| 478 |
+
"legend": {
|
| 479 |
+
"labelBaseline": "middle",
|
| 480 |
+
"labelFontSize": 11,
|
| 481 |
+
"symbolSize": 50,
|
| 482 |
+
"symbolType": "square"
|
| 483 |
+
},
|
| 484 |
+
"line": {
|
| 485 |
+
"stroke": "#4572a7",
|
| 486 |
+
"strokeWidth": 2
|
| 487 |
+
},
|
| 488 |
+
"range": {
|
| 489 |
+
"category": [
|
| 490 |
+
"#4572a7",
|
| 491 |
+
"#aa4643",
|
| 492 |
+
"#8aa453",
|
| 493 |
+
"#71598e",
|
| 494 |
+
"#4598ae",
|
| 495 |
+
"#d98445",
|
| 496 |
+
"#94aace",
|
| 497 |
+
"#d09393",
|
| 498 |
+
"#b9cc98",
|
| 499 |
+
"#a99cbc"
|
| 500 |
+
]
|
| 501 |
+
},
|
| 502 |
+
"rect": {
|
| 503 |
+
"fill": "#4572a7"
|
| 504 |
+
}
|
| 505 |
+
}
|
| 506 |
+
},
|
| 507 |
+
"fivethirtyeight": {
|
| 508 |
+
"config": {
|
| 509 |
+
"arc": {
|
| 510 |
+
"fill": "#30a2da"
|
| 511 |
+
},
|
| 512 |
+
"area": {
|
| 513 |
+
"fill": "#30a2da"
|
| 514 |
+
},
|
| 515 |
+
"axis": {
|
| 516 |
+
"domainColor": "#cbcbcb",
|
| 517 |
+
"grid": true,
|
| 518 |
+
"gridColor": "#cbcbcb",
|
| 519 |
+
"gridWidth": 1,
|
| 520 |
+
"labelColor": "#999",
|
| 521 |
+
"labelFontSize": 10,
|
| 522 |
+
"labelPadding": 4,
|
| 523 |
+
"tickColor": "#cbcbcb",
|
| 524 |
+
"tickSize": 10,
|
| 525 |
+
"titleColor": "#333",
|
| 526 |
+
"titleFontSize": 14,
|
| 527 |
+
"titlePadding": 10
|
| 528 |
+
},
|
| 529 |
+
"axisBand": {
|
| 530 |
+
"grid": false
|
| 531 |
+
},
|
| 532 |
+
"background": "#f0f0f0",
|
| 533 |
+
"bar": {
|
| 534 |
+
"binSpacing": 2,
|
| 535 |
+
"fill": "#30a2da",
|
| 536 |
+
"stroke": null
|
| 537 |
+
},
|
| 538 |
+
"legend": {
|
| 539 |
+
"labelColor": "#333",
|
| 540 |
+
"labelFontSize": 11,
|
| 541 |
+
"padding": 1,
|
| 542 |
+
"symbolSize": 30,
|
| 543 |
+
"symbolType": "square",
|
| 544 |
+
"titleColor": "#333",
|
| 545 |
+
"titleFontSize": 14,
|
| 546 |
+
"titlePadding": 10
|
| 547 |
+
},
|
| 548 |
+
"line": {
|
| 549 |
+
"stroke": "#30a2da",
|
| 550 |
+
"strokeWidth": 2
|
| 551 |
+
},
|
| 552 |
+
"point": {
|
| 553 |
+
"filled": true,
|
| 554 |
+
"shape": "circle"
|
| 555 |
+
},
|
| 556 |
+
"range": {
|
| 557 |
+
"category": [
|
| 558 |
+
"#30a2da",
|
| 559 |
+
"#fc4f30",
|
| 560 |
+
"#e5ae38",
|
| 561 |
+
"#6d904f",
|
| 562 |
+
"#8b8b8b",
|
| 563 |
+
"#b96db8",
|
| 564 |
+
"#ff9e27",
|
| 565 |
+
"#56cc60",
|
| 566 |
+
"#52d2ca",
|
| 567 |
+
"#52689e",
|
| 568 |
+
"#545454",
|
| 569 |
+
"#9fe4f8"
|
| 570 |
+
],
|
| 571 |
+
"diverging": [
|
| 572 |
+
"#cc0020",
|
| 573 |
+
"#e77866",
|
| 574 |
+
"#f6e7e1",
|
| 575 |
+
"#d6e8ed",
|
| 576 |
+
"#91bfd9",
|
| 577 |
+
"#1d78b5"
|
| 578 |
+
],
|
| 579 |
+
"heatmap": [
|
| 580 |
+
"#d6e8ed",
|
| 581 |
+
"#cee0e5",
|
| 582 |
+
"#91bfd9",
|
| 583 |
+
"#549cc6",
|
| 584 |
+
"#1d78b5"
|
| 585 |
+
]
|
| 586 |
+
},
|
| 587 |
+
"rect": {
|
| 588 |
+
"fill": "#30a2da"
|
| 589 |
+
},
|
| 590 |
+
"title": {
|
| 591 |
+
"anchor": "start",
|
| 592 |
+
"fontSize": 24,
|
| 593 |
+
"fontWeight": 600,
|
| 594 |
+
"offset": 20
|
| 595 |
+
}
|
| 596 |
+
}
|
| 597 |
+
},
|
| 598 |
+
"ggplot2": {
|
| 599 |
+
"config": {
|
| 600 |
+
"arc": {
|
| 601 |
+
"fill": "#000"
|
| 602 |
+
},
|
| 603 |
+
"area": {
|
| 604 |
+
"fill": "#000"
|
| 605 |
+
},
|
| 606 |
+
"axis": {
|
| 607 |
+
"domain": false,
|
| 608 |
+
"grid": true,
|
| 609 |
+
"gridColor": "#FFFFFF",
|
| 610 |
+
"gridOpacity": 1,
|
| 611 |
+
"labelColor": "#7F7F7F",
|
| 612 |
+
"labelPadding": 4,
|
| 613 |
+
"tickColor": "#7F7F7F",
|
| 614 |
+
"tickSize": 5.67,
|
| 615 |
+
"titleFontSize": 16,
|
| 616 |
+
"titleFontWeight": "normal"
|
| 617 |
+
},
|
| 618 |
+
"legend": {
|
| 619 |
+
"labelBaseline": "middle",
|
| 620 |
+
"labelFontSize": 11,
|
| 621 |
+
"symbolSize": 40
|
| 622 |
+
},
|
| 623 |
+
"line": {
|
| 624 |
+
"stroke": "#000"
|
| 625 |
+
},
|
| 626 |
+
"range": {
|
| 627 |
+
"category": [
|
| 628 |
+
"#000000",
|
| 629 |
+
"#7F7F7F",
|
| 630 |
+
"#1A1A1A",
|
| 631 |
+
"#999999",
|
| 632 |
+
"#333333",
|
| 633 |
+
"#B0B0B0",
|
| 634 |
+
"#4D4D4D",
|
| 635 |
+
"#C9C9C9",
|
| 636 |
+
"#666666",
|
| 637 |
+
"#DCDCDC"
|
| 638 |
+
]
|
| 639 |
+
},
|
| 640 |
+
"rect": {
|
| 641 |
+
"fill": "#000"
|
| 642 |
+
}
|
| 643 |
+
}
|
| 644 |
+
},
|
| 645 |
+
"googlecharts": {
|
| 646 |
+
"config": {
|
| 647 |
+
"arc": {
|
| 648 |
+
"fill": "#3366CC"
|
| 649 |
+
},
|
| 650 |
+
"area": {
|
| 651 |
+
"fill": "#3366CC"
|
| 652 |
+
},
|
| 653 |
+
"axis": {
|
| 654 |
+
"domain": false,
|
| 655 |
+
"grid": true,
|
| 656 |
+
"gridColor": "#ccc",
|
| 657 |
+
"tickColor": "#ccc"
|
| 658 |
+
},
|
| 659 |
+
"background": "#fff",
|
| 660 |
+
"circle": {
|
| 661 |
+
"fill": "#3366CC"
|
| 662 |
+
},
|
| 663 |
+
"padding": {
|
| 664 |
+
"bottom": 10,
|
| 665 |
+
"left": 10,
|
| 666 |
+
"right": 10,
|
| 667 |
+
"top": 10
|
| 668 |
+
},
|
| 669 |
+
"range": {
|
| 670 |
+
"category": [
|
| 671 |
+
"#4285F4",
|
| 672 |
+
"#DB4437",
|
| 673 |
+
"#F4B400",
|
| 674 |
+
"#0F9D58",
|
| 675 |
+
"#AB47BC",
|
| 676 |
+
"#00ACC1",
|
| 677 |
+
"#FF7043",
|
| 678 |
+
"#9E9D24",
|
| 679 |
+
"#5C6BC0",
|
| 680 |
+
"#F06292",
|
| 681 |
+
"#00796B",
|
| 682 |
+
"#C2185B"
|
| 683 |
+
],
|
| 684 |
+
"heatmap": [
|
| 685 |
+
"#c6dafc",
|
| 686 |
+
"#5e97f6",
|
| 687 |
+
"#2a56c6"
|
| 688 |
+
]
|
| 689 |
+
},
|
| 690 |
+
"rect": {
|
| 691 |
+
"fill": "#3366CC"
|
| 692 |
+
},
|
| 693 |
+
"style": {
|
| 694 |
+
"group-title": {
|
| 695 |
+
"font": "Arial, sans-serif",
|
| 696 |
+
"fontSize": 12
|
| 697 |
+
},
|
| 698 |
+
"guide-label": {
|
| 699 |
+
"font": "Arial, sans-serif",
|
| 700 |
+
"fontSize": 12
|
| 701 |
+
},
|
| 702 |
+
"guide-title": {
|
| 703 |
+
"font": "Arial, sans-serif",
|
| 704 |
+
"fontSize": 12
|
| 705 |
+
}
|
| 706 |
+
},
|
| 707 |
+
"title": {
|
| 708 |
+
"anchor": "start",
|
| 709 |
+
"dy": -3,
|
| 710 |
+
"font": "Arial, sans-serif",
|
| 711 |
+
"fontSize": 14,
|
| 712 |
+
"fontWeight": "bold"
|
| 713 |
+
}
|
| 714 |
+
}
|
| 715 |
+
},
|
| 716 |
+
"latimes": {
|
| 717 |
+
"config": {
|
| 718 |
+
"arc": {
|
| 719 |
+
"fill": "#82c6df"
|
| 720 |
+
},
|
| 721 |
+
"area": {
|
| 722 |
+
"fill": "#82c6df"
|
| 723 |
+
},
|
| 724 |
+
"axis": {
|
| 725 |
+
"labelFont": "Benton Gothic, sans-serif",
|
| 726 |
+
"labelFontSize": 11.5,
|
| 727 |
+
"labelFontWeight": "normal",
|
| 728 |
+
"titleFont": "Benton Gothic Bold, sans-serif",
|
| 729 |
+
"titleFontSize": 13,
|
| 730 |
+
"titleFontWeight": "normal"
|
| 731 |
+
},
|
| 732 |
+
"axisX": {
|
| 733 |
+
"labelAngle": 0,
|
| 734 |
+
"labelPadding": 4,
|
| 735 |
+
"tickSize": 3
|
| 736 |
+
},
|
| 737 |
+
"axisY": {
|
| 738 |
+
"labelBaseline": "middle",
|
| 739 |
+
"maxExtent": 45,
|
| 740 |
+
"minExtent": 45,
|
| 741 |
+
"tickSize": 2,
|
| 742 |
+
"titleAlign": "left",
|
| 743 |
+
"titleAngle": 0,
|
| 744 |
+
"titleX": -45,
|
| 745 |
+
"titleY": -11
|
| 746 |
+
},
|
| 747 |
+
"background": "#ffffff",
|
| 748 |
+
"legend": {
|
| 749 |
+
"labelFont": "Benton Gothic, sans-serif",
|
| 750 |
+
"labelFontSize": 11.5,
|
| 751 |
+
"symbolType": "square",
|
| 752 |
+
"titleFont": "Benton Gothic Bold, sans-serif",
|
| 753 |
+
"titleFontSize": 13,
|
| 754 |
+
"titleFontWeight": "normal"
|
| 755 |
+
},
|
| 756 |
+
"line": {
|
| 757 |
+
"stroke": "#82c6df",
|
| 758 |
+
"strokeWidth": 2
|
| 759 |
+
},
|
| 760 |
+
"range": {
|
| 761 |
+
"category": [
|
| 762 |
+
"#ec8431",
|
| 763 |
+
"#829eb1",
|
| 764 |
+
"#c89d29",
|
| 765 |
+
"#3580b1",
|
| 766 |
+
"#adc839",
|
| 767 |
+
"#ab7fb4"
|
| 768 |
+
],
|
| 769 |
+
"diverging": [
|
| 770 |
+
"#e68a4f",
|
| 771 |
+
"#f4bb6a",
|
| 772 |
+
"#f9e39c",
|
| 773 |
+
"#dadfe2",
|
| 774 |
+
"#a6b7c6",
|
| 775 |
+
"#849eae"
|
| 776 |
+
],
|
| 777 |
+
"heatmap": [
|
| 778 |
+
"#fbf2c7",
|
| 779 |
+
"#f9e39c",
|
| 780 |
+
"#f8d36e",
|
| 781 |
+
"#f4bb6a",
|
| 782 |
+
"#e68a4f",
|
| 783 |
+
"#d15a40",
|
| 784 |
+
"#ab4232"
|
| 785 |
+
],
|
| 786 |
+
"ordinal": [
|
| 787 |
+
"#fbf2c7",
|
| 788 |
+
"#f9e39c",
|
| 789 |
+
"#f8d36e",
|
| 790 |
+
"#f4bb6a",
|
| 791 |
+
"#e68a4f",
|
| 792 |
+
"#d15a40",
|
| 793 |
+
"#ab4232"
|
| 794 |
+
],
|
| 795 |
+
"ramp": [
|
| 796 |
+
"#fbf2c7",
|
| 797 |
+
"#f9e39c",
|
| 798 |
+
"#f8d36e",
|
| 799 |
+
"#f4bb6a",
|
| 800 |
+
"#e68a4f",
|
| 801 |
+
"#d15a40",
|
| 802 |
+
"#ab4232"
|
| 803 |
+
]
|
| 804 |
+
},
|
| 805 |
+
"rect": {
|
| 806 |
+
"fill": "#82c6df"
|
| 807 |
+
},
|
| 808 |
+
"title": {
|
| 809 |
+
"anchor": "start",
|
| 810 |
+
"color": "#000000",
|
| 811 |
+
"font": "Benton Gothic Bold, sans-serif",
|
| 812 |
+
"fontSize": 22,
|
| 813 |
+
"fontWeight": "normal"
|
| 814 |
+
}
|
| 815 |
+
}
|
| 816 |
+
},
|
| 817 |
+
"powerbi": {
|
| 818 |
+
"config": {
|
| 819 |
+
"arc": {
|
| 820 |
+
"fill": "#118DFF"
|
| 821 |
+
},
|
| 822 |
+
"area": {
|
| 823 |
+
"fill": "#118DFF",
|
| 824 |
+
"line": true,
|
| 825 |
+
"opacity": 0.6
|
| 826 |
+
},
|
| 827 |
+
"axis": {
|
| 828 |
+
"domain": false,
|
| 829 |
+
"grid": false,
|
| 830 |
+
"labelColor": "#605E5C",
|
| 831 |
+
"labelFontSize": 12,
|
| 832 |
+
"ticks": false,
|
| 833 |
+
"titleColor": "#252423",
|
| 834 |
+
"titleFont": "wf_standard-font, helvetica, arial, sans-serif",
|
| 835 |
+
"titleFontSize": 16,
|
| 836 |
+
"titleFontWeight": "normal"
|
| 837 |
+
},
|
| 838 |
+
"axisBand": {
|
| 839 |
+
"tickExtra": true
|
| 840 |
+
},
|
| 841 |
+
"axisQuantitative": {
|
| 842 |
+
"grid": true,
|
| 843 |
+
"gridColor": "#C8C6C4",
|
| 844 |
+
"gridDash": [
|
| 845 |
+
1,
|
| 846 |
+
5
|
| 847 |
+
],
|
| 848 |
+
"labelFlush": false,
|
| 849 |
+
"tickCount": 3
|
| 850 |
+
},
|
| 851 |
+
"axisX": {
|
| 852 |
+
"labelPadding": 5
|
| 853 |
+
},
|
| 854 |
+
"axisY": {
|
| 855 |
+
"labelPadding": 10
|
| 856 |
+
},
|
| 857 |
+
"background": "transparent",
|
| 858 |
+
"bar": {
|
| 859 |
+
"fill": "#118DFF"
|
| 860 |
+
},
|
| 861 |
+
"font": "Segoe UI",
|
| 862 |
+
"header": {
|
| 863 |
+
"labelColor": "#605E5C",
|
| 864 |
+
"labelFont": "Segoe UI",
|
| 865 |
+
"labelFontSize": 13.333333333333332,
|
| 866 |
+
"titleColor": "#252423",
|
| 867 |
+
"titleFont": "wf_standard-font, helvetica, arial, sans-serif",
|
| 868 |
+
"titleFontSize": 16
|
| 869 |
+
},
|
| 870 |
+
"legend": {
|
| 871 |
+
"labelColor": "#605E5C",
|
| 872 |
+
"labelFont": "Segoe UI",
|
| 873 |
+
"labelFontSize": 13.333333333333332,
|
| 874 |
+
"symbolSize": 75,
|
| 875 |
+
"symbolType": "circle",
|
| 876 |
+
"titleColor": "#605E5C",
|
| 877 |
+
"titleFont": "Segoe UI",
|
| 878 |
+
"titleFontWeight": "bold"
|
| 879 |
+
},
|
| 880 |
+
"line": {
|
| 881 |
+
"stroke": "#118DFF",
|
| 882 |
+
"strokeCap": "round",
|
| 883 |
+
"strokeJoin": "round",
|
| 884 |
+
"strokeWidth": 3
|
| 885 |
+
},
|
| 886 |
+
"point": {
|
| 887 |
+
"fill": "#118DFF",
|
| 888 |
+
"filled": true,
|
| 889 |
+
"size": 75
|
| 890 |
+
},
|
| 891 |
+
"range": {
|
| 892 |
+
"category": [
|
| 893 |
+
"#118DFF",
|
| 894 |
+
"#12239E",
|
| 895 |
+
"#E66C37",
|
| 896 |
+
"#6B007B",
|
| 897 |
+
"#E044A7",
|
| 898 |
+
"#744EC2",
|
| 899 |
+
"#D9B300",
|
| 900 |
+
"#D64550"
|
| 901 |
+
],
|
| 902 |
+
"diverging": [
|
| 903 |
+
"#DEEFFF",
|
| 904 |
+
"#118DFF"
|
| 905 |
+
],
|
| 906 |
+
"heatmap": [
|
| 907 |
+
"#DEEFFF",
|
| 908 |
+
"#118DFF"
|
| 909 |
+
],
|
| 910 |
+
"ordinal": [
|
| 911 |
+
"#DEEFFF",
|
| 912 |
+
"#c7e4ff",
|
| 913 |
+
"#b0d9ff",
|
| 914 |
+
"#9aceff",
|
| 915 |
+
"#83c3ff",
|
| 916 |
+
"#6cb9ff",
|
| 917 |
+
"#55aeff",
|
| 918 |
+
"#3fa3ff",
|
| 919 |
+
"#2898ff",
|
| 920 |
+
"#118DFF"
|
| 921 |
+
]
|
| 922 |
+
},
|
| 923 |
+
"rect": {
|
| 924 |
+
"fill": "#118DFF"
|
| 925 |
+
},
|
| 926 |
+
"text": {
|
| 927 |
+
"fill": "#605E5C",
|
| 928 |
+
"font": "Segoe UI",
|
| 929 |
+
"fontSize": 12
|
| 930 |
+
},
|
| 931 |
+
"view": {
|
| 932 |
+
"stroke": "transparent"
|
| 933 |
+
}
|
| 934 |
+
}
|
| 935 |
+
},
|
| 936 |
+
"quartz": {
|
| 937 |
+
"config": {
|
| 938 |
+
"arc": {
|
| 939 |
+
"fill": "#ab5787"
|
| 940 |
+
},
|
| 941 |
+
"area": {
|
| 942 |
+
"fill": "#ab5787"
|
| 943 |
+
},
|
| 944 |
+
"axis": {
|
| 945 |
+
"domainColor": "#979797",
|
| 946 |
+
"domainWidth": 0.5,
|
| 947 |
+
"gridWidth": 0.2,
|
| 948 |
+
"labelColor": "#979797",
|
| 949 |
+
"tickColor": "#979797",
|
| 950 |
+
"tickWidth": 0.2,
|
| 951 |
+
"titleColor": "#979797"
|
| 952 |
+
},
|
| 953 |
+
"axisBand": {
|
| 954 |
+
"grid": false
|
| 955 |
+
},
|
| 956 |
+
"axisX": {
|
| 957 |
+
"grid": true,
|
| 958 |
+
"tickSize": 10
|
| 959 |
+
},
|
| 960 |
+
"axisY": {
|
| 961 |
+
"domain": false,
|
| 962 |
+
"grid": true,
|
| 963 |
+
"tickSize": 0
|
| 964 |
+
},
|
| 965 |
+
"background": "#f9f9f9",
|
| 966 |
+
"legend": {
|
| 967 |
+
"labelFontSize": 11,
|
| 968 |
+
"padding": 1,
|
| 969 |
+
"symbolSize": 30,
|
| 970 |
+
"symbolType": "square"
|
| 971 |
+
},
|
| 972 |
+
"line": {
|
| 973 |
+
"stroke": "#ab5787"
|
| 974 |
+
},
|
| 975 |
+
"range": {
|
| 976 |
+
"category": [
|
| 977 |
+
"#ab5787",
|
| 978 |
+
"#51b2e5",
|
| 979 |
+
"#703c5c",
|
| 980 |
+
"#168dd9",
|
| 981 |
+
"#d190b6",
|
| 982 |
+
"#00609f",
|
| 983 |
+
"#d365ba",
|
| 984 |
+
"#154866",
|
| 985 |
+
"#666666",
|
| 986 |
+
"#c4c4c4"
|
| 987 |
+
]
|
| 988 |
+
},
|
| 989 |
+
"rect": {
|
| 990 |
+
"fill": "#ab5787"
|
| 991 |
+
}
|
| 992 |
+
}
|
| 993 |
+
},
|
| 994 |
+
"urbaninstitute": {
|
| 995 |
+
"config": {
|
| 996 |
+
"arc": {
|
| 997 |
+
"fill": "#1696d2"
|
| 998 |
+
},
|
| 999 |
+
"area": {
|
| 1000 |
+
"fill": "#1696d2"
|
| 1001 |
+
},
|
| 1002 |
+
"axisX": {
|
| 1003 |
+
"domain": true,
|
| 1004 |
+
"domainColor": "#000000",
|
| 1005 |
+
"domainWidth": 1,
|
| 1006 |
+
"grid": false,
|
| 1007 |
+
"labelAngle": 0,
|
| 1008 |
+
"labelFont": "Lato",
|
| 1009 |
+
"labelFontSize": 12,
|
| 1010 |
+
"tickColor": "#000000",
|
| 1011 |
+
"tickSize": 5,
|
| 1012 |
+
"titleFont": "Lato",
|
| 1013 |
+
"titleFontSize": 12,
|
| 1014 |
+
"titlePadding": 10
|
| 1015 |
+
},
|
| 1016 |
+
"axisY": {
|
| 1017 |
+
"domain": false,
|
| 1018 |
+
"domainWidth": 1,
|
| 1019 |
+
"grid": true,
|
| 1020 |
+
"gridColor": "#DEDDDD",
|
| 1021 |
+
"gridWidth": 1,
|
| 1022 |
+
"labelFont": "Lato",
|
| 1023 |
+
"labelFontSize": 12,
|
| 1024 |
+
"labelPadding": 8,
|
| 1025 |
+
"ticks": false,
|
| 1026 |
+
"titleAngle": 0,
|
| 1027 |
+
"titleFont": "Lato",
|
| 1028 |
+
"titleFontSize": 12,
|
| 1029 |
+
"titlePadding": 10,
|
| 1030 |
+
"titleX": 18,
|
| 1031 |
+
"titleY": -10
|
| 1032 |
+
},
|
| 1033 |
+
"background": "#FFFFFF",
|
| 1034 |
+
"legend": {
|
| 1035 |
+
"labelFont": "Lato",
|
| 1036 |
+
"labelFontSize": 12,
|
| 1037 |
+
"offset": 10,
|
| 1038 |
+
"orient": "right",
|
| 1039 |
+
"symbolSize": 100,
|
| 1040 |
+
"titleFont": "Lato",
|
| 1041 |
+
"titleFontSize": 12,
|
| 1042 |
+
"titlePadding": 10
|
| 1043 |
+
},
|
| 1044 |
+
"line": {
|
| 1045 |
+
"color": "#1696d2",
|
| 1046 |
+
"stroke": "#1696d2",
|
| 1047 |
+
"strokeWidth": 5
|
| 1048 |
+
},
|
| 1049 |
+
"point": {
|
| 1050 |
+
"filled": true
|
| 1051 |
+
},
|
| 1052 |
+
"range": {
|
| 1053 |
+
"category": [
|
| 1054 |
+
"#1696d2",
|
| 1055 |
+
"#ec008b",
|
| 1056 |
+
"#fdbf11",
|
| 1057 |
+
"#000000",
|
| 1058 |
+
"#d2d2d2",
|
| 1059 |
+
"#55b748"
|
| 1060 |
+
],
|
| 1061 |
+
"diverging": [
|
| 1062 |
+
"#ca5800",
|
| 1063 |
+
"#fdbf11",
|
| 1064 |
+
"#fdd870",
|
| 1065 |
+
"#fff2cf",
|
| 1066 |
+
"#cfe8f3",
|
| 1067 |
+
"#73bfe2",
|
| 1068 |
+
"#1696d2",
|
| 1069 |
+
"#0a4c6a"
|
| 1070 |
+
],
|
| 1071 |
+
"heatmap": [
|
| 1072 |
+
"#ca5800",
|
| 1073 |
+
"#fdbf11",
|
| 1074 |
+
"#fdd870",
|
| 1075 |
+
"#fff2cf",
|
| 1076 |
+
"#cfe8f3",
|
| 1077 |
+
"#73bfe2",
|
| 1078 |
+
"#1696d2",
|
| 1079 |
+
"#0a4c6a"
|
| 1080 |
+
],
|
| 1081 |
+
"ordinal": [
|
| 1082 |
+
"#cfe8f3",
|
| 1083 |
+
"#a2d4ec",
|
| 1084 |
+
"#73bfe2",
|
| 1085 |
+
"#46abdb",
|
| 1086 |
+
"#1696d2",
|
| 1087 |
+
"#12719e"
|
| 1088 |
+
],
|
| 1089 |
+
"ramp": [
|
| 1090 |
+
"#CFE8F3",
|
| 1091 |
+
"#A2D4EC",
|
| 1092 |
+
"#73BFE2",
|
| 1093 |
+
"#46ABDB",
|
| 1094 |
+
"#1696D2",
|
| 1095 |
+
"#12719E",
|
| 1096 |
+
"#0A4C6A",
|
| 1097 |
+
"#062635"
|
| 1098 |
+
]
|
| 1099 |
+
},
|
| 1100 |
+
"rect": {
|
| 1101 |
+
"fill": "#1696d2"
|
| 1102 |
+
},
|
| 1103 |
+
"style": {
|
| 1104 |
+
"bar": {
|
| 1105 |
+
"fill": "#1696d2",
|
| 1106 |
+
"stroke": null
|
| 1107 |
+
}
|
| 1108 |
+
},
|
| 1109 |
+
"text": {
|
| 1110 |
+
"align": "center",
|
| 1111 |
+
"color": "#1696d2",
|
| 1112 |
+
"font": "Lato",
|
| 1113 |
+
"fontSize": 11,
|
| 1114 |
+
"fontWeight": 400,
|
| 1115 |
+
"size": 11
|
| 1116 |
+
},
|
| 1117 |
+
"title": {
|
| 1118 |
+
"anchor": "start",
|
| 1119 |
+
"font": "Lato",
|
| 1120 |
+
"fontSize": 18
|
| 1121 |
+
},
|
| 1122 |
+
"trail": {
|
| 1123 |
+
"color": "#1696d2",
|
| 1124 |
+
"size": 1,
|
| 1125 |
+
"stroke": "#1696d2",
|
| 1126 |
+
"strokeWidth": 0
|
| 1127 |
+
},
|
| 1128 |
+
"view": {
|
| 1129 |
+
"stroke": "transparent"
|
| 1130 |
+
}
|
| 1131 |
+
}
|
| 1132 |
+
},
|
| 1133 |
+
"vox": {
|
| 1134 |
+
"config": {
|
| 1135 |
+
"arc": {
|
| 1136 |
+
"fill": "#3e5c69"
|
| 1137 |
+
},
|
| 1138 |
+
"area": {
|
| 1139 |
+
"fill": "#3e5c69"
|
| 1140 |
+
},
|
| 1141 |
+
"axis": {
|
| 1142 |
+
"domainWidth": 0.5,
|
| 1143 |
+
"grid": true,
|
| 1144 |
+
"labelPadding": 2,
|
| 1145 |
+
"tickSize": 5,
|
| 1146 |
+
"tickWidth": 0.5,
|
| 1147 |
+
"titleFontWeight": "normal"
|
| 1148 |
+
},
|
| 1149 |
+
"axisBand": {
|
| 1150 |
+
"grid": false
|
| 1151 |
+
},
|
| 1152 |
+
"axisX": {
|
| 1153 |
+
"gridWidth": 0.2
|
| 1154 |
+
},
|
| 1155 |
+
"axisY": {
|
| 1156 |
+
"gridDash": [
|
| 1157 |
+
3
|
| 1158 |
+
],
|
| 1159 |
+
"gridWidth": 0.4
|
| 1160 |
+
},
|
| 1161 |
+
"background": "#fff",
|
| 1162 |
+
"legend": {
|
| 1163 |
+
"labelFontSize": 11,
|
| 1164 |
+
"padding": 1,
|
| 1165 |
+
"symbolType": "square"
|
| 1166 |
+
},
|
| 1167 |
+
"line": {
|
| 1168 |
+
"stroke": "#3e5c69"
|
| 1169 |
+
},
|
| 1170 |
+
"range": {
|
| 1171 |
+
"category": [
|
| 1172 |
+
"#3e5c69",
|
| 1173 |
+
"#6793a6",
|
| 1174 |
+
"#182429",
|
| 1175 |
+
"#0570b0",
|
| 1176 |
+
"#3690c0",
|
| 1177 |
+
"#74a9cf",
|
| 1178 |
+
"#a6bddb",
|
| 1179 |
+
"#e2ddf2"
|
| 1180 |
+
]
|
| 1181 |
+
},
|
| 1182 |
+
"rect": {
|
| 1183 |
+
"fill": "#3e5c69"
|
| 1184 |
+
}
|
| 1185 |
+
}
|
| 1186 |
+
}
|
| 1187 |
+
}
|
mplug_owl2/lib/python3.10/site-packages/altair/vegalite/v5/theme.py
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Tools for enabling and registering chart themes."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from typing import TYPE_CHECKING, Any, Final, Literal, get_args
|
| 6 |
+
|
| 7 |
+
from altair.utils.deprecation import deprecated_static_only
|
| 8 |
+
from altair.utils.plugin_registry import Plugin, PluginRegistry
|
| 9 |
+
from altair.vegalite.v5.schema._config import ThemeConfig
|
| 10 |
+
from altair.vegalite.v5.schema._typing import VegaThemes
|
| 11 |
+
|
| 12 |
+
if TYPE_CHECKING:
|
| 13 |
+
import sys
|
| 14 |
+
from functools import partial
|
| 15 |
+
|
| 16 |
+
if sys.version_info >= (3, 11):
|
| 17 |
+
from typing import LiteralString
|
| 18 |
+
else:
|
| 19 |
+
from typing_extensions import LiteralString
|
| 20 |
+
if sys.version_info >= (3, 10):
|
| 21 |
+
from typing import TypeAlias
|
| 22 |
+
else:
|
| 23 |
+
from typing_extensions import TypeAlias
|
| 24 |
+
|
| 25 |
+
from altair.utils.plugin_registry import PluginEnabler
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
AltairThemes: TypeAlias = Literal["default", "opaque"]
|
| 29 |
+
VEGA_THEMES: list[LiteralString] = list(get_args(VegaThemes))
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
# HACK: See for `LiteralString` requirement in `name`
|
| 33 |
+
# https://github.com/vega/altair/pull/3526#discussion_r1743350127
|
| 34 |
+
class ThemeRegistry(PluginRegistry[Plugin[ThemeConfig], ThemeConfig]):
|
| 35 |
+
def enable(
|
| 36 |
+
self,
|
| 37 |
+
name: LiteralString | AltairThemes | VegaThemes | None = None,
|
| 38 |
+
**options: Any,
|
| 39 |
+
) -> PluginEnabler[Plugin[ThemeConfig], ThemeConfig]:
|
| 40 |
+
"""
|
| 41 |
+
Enable a theme by name.
|
| 42 |
+
|
| 43 |
+
This can be either called directly, or used as a context manager.
|
| 44 |
+
|
| 45 |
+
Parameters
|
| 46 |
+
----------
|
| 47 |
+
name : string (optional)
|
| 48 |
+
The name of the theme to enable. If not specified, then use the
|
| 49 |
+
current active name.
|
| 50 |
+
**options :
|
| 51 |
+
Any additional parameters will be passed to the theme as keyword
|
| 52 |
+
arguments
|
| 53 |
+
|
| 54 |
+
Returns
|
| 55 |
+
-------
|
| 56 |
+
PluginEnabler:
|
| 57 |
+
An object that allows enable() to be used as a context manager
|
| 58 |
+
|
| 59 |
+
Notes
|
| 60 |
+
-----
|
| 61 |
+
Default `vega` themes can be previewed at https://vega.github.io/vega-themes/
|
| 62 |
+
"""
|
| 63 |
+
return super().enable(name, **options)
|
| 64 |
+
|
| 65 |
+
def get(self) -> partial[ThemeConfig] | Plugin[ThemeConfig] | None:
|
| 66 |
+
"""Return the currently active theme."""
|
| 67 |
+
return super().get()
|
| 68 |
+
|
| 69 |
+
def names(self) -> list[str]:
|
| 70 |
+
"""Return the names of the registered and entry points themes."""
|
| 71 |
+
return super().names()
|
| 72 |
+
|
| 73 |
+
@deprecated_static_only(
|
| 74 |
+
"Deprecated since `altair=5.5.0`. Use @altair.theme.register instead.",
|
| 75 |
+
category=None,
|
| 76 |
+
)
|
| 77 |
+
def register(
|
| 78 |
+
self, name: str, value: Plugin[ThemeConfig] | None
|
| 79 |
+
) -> Plugin[ThemeConfig] | None:
|
| 80 |
+
return super().register(name, value)
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
class VegaTheme:
|
| 84 |
+
"""Implementation of a builtin vega theme."""
|
| 85 |
+
|
| 86 |
+
def __init__(self, theme: str) -> None:
|
| 87 |
+
self.theme = theme
|
| 88 |
+
|
| 89 |
+
def __call__(self) -> ThemeConfig:
|
| 90 |
+
return {
|
| 91 |
+
"usermeta": {"embedOptions": {"theme": self.theme}},
|
| 92 |
+
"config": {"view": {"continuousWidth": 300, "continuousHeight": 300}},
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
def __repr__(self) -> str:
|
| 96 |
+
return f"VegaTheme({self.theme!r})"
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
# The entry point group that can be used by other packages to declare other
|
| 100 |
+
# themes that will be auto-detected. Explicit registration is also
|
| 101 |
+
# allowed by the PluginRegistry API.
|
| 102 |
+
ENTRY_POINT_GROUP: Final = "altair.vegalite.v5.theme"
|
| 103 |
+
|
| 104 |
+
# NOTE: `themes` def has an entry point group
|
| 105 |
+
themes = ThemeRegistry(entry_point_group=ENTRY_POINT_GROUP)
|
| 106 |
+
|
| 107 |
+
themes.register(
|
| 108 |
+
"default",
|
| 109 |
+
lambda: {"config": {"view": {"continuousWidth": 300, "continuousHeight": 300}}},
|
| 110 |
+
)
|
| 111 |
+
themes.register(
|
| 112 |
+
"opaque",
|
| 113 |
+
lambda: {
|
| 114 |
+
"config": {
|
| 115 |
+
"background": "white",
|
| 116 |
+
"view": {"continuousWidth": 300, "continuousHeight": 300},
|
| 117 |
+
}
|
| 118 |
+
},
|
| 119 |
+
)
|
| 120 |
+
themes.register("none", ThemeConfig)
|
| 121 |
+
|
| 122 |
+
for theme in VEGA_THEMES:
|
| 123 |
+
themes.register(theme, VegaTheme(theme))
|
| 124 |
+
|
| 125 |
+
themes.enable("default")
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeASMInformation.cmake
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
if(UNIX)
|
| 6 |
+
set(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .o)
|
| 7 |
+
else()
|
| 8 |
+
set(CMAKE_ASM${ASM_DIALECT}_OUTPUT_EXTENSION .obj)
|
| 9 |
+
endif()
|
| 10 |
+
|
| 11 |
+
set(CMAKE_INCLUDE_FLAG_ASM${ASM_DIALECT} "-I") # -I
|
| 12 |
+
set(CMAKE_BASE_NAME)
|
| 13 |
+
get_filename_component(CMAKE_BASE_NAME "${CMAKE_ASM${ASM_DIALECT}_COMPILER}" NAME_WE)
|
| 14 |
+
|
| 15 |
+
if("${CMAKE_BASE_NAME}" STREQUAL "as")
|
| 16 |
+
set(CMAKE_BASE_NAME gas)
|
| 17 |
+
endif()
|
| 18 |
+
|
| 19 |
+
# Load compiler-specific information.
|
| 20 |
+
set(_INCLUDED_FILE "")
|
| 21 |
+
if(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
| 22 |
+
include(Compiler/${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}-ASM${ASM_DIALECT} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
| 23 |
+
endif()
|
| 24 |
+
if(NOT _INCLUDED_FILE)
|
| 25 |
+
if("ASM${ASM_DIALECT}" STREQUAL "ASM")
|
| 26 |
+
message(STATUS "Warning: Did not find file Compiler/${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}-ASM${ASM_DIALECT}")
|
| 27 |
+
endif()
|
| 28 |
+
include(Platform/${CMAKE_BASE_NAME} OPTIONAL)
|
| 29 |
+
endif()
|
| 30 |
+
|
| 31 |
+
if(CMAKE_SYSTEM_PROCESSOR)
|
| 32 |
+
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}-ASM${ASM_DIALECT}-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
| 33 |
+
if(NOT _INCLUDED_FILE)
|
| 34 |
+
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_BASE_NAME}-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL)
|
| 35 |
+
endif()
|
| 36 |
+
endif()
|
| 37 |
+
|
| 38 |
+
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_ASM${ASM_DIALECT}_COMPILER_ID}-ASM${ASM_DIALECT} OPTIONAL RESULT_VARIABLE _INCLUDED_FILE)
|
| 39 |
+
if(NOT _INCLUDED_FILE)
|
| 40 |
+
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
|
| 41 |
+
endif()
|
| 42 |
+
|
| 43 |
+
# This should be included before the _INIT variables are
|
| 44 |
+
# used to initialize the cache. Since the rule variables
|
| 45 |
+
# have if blocks on them, users can still define them here.
|
| 46 |
+
# But, it should still be after the platform file so changes can
|
| 47 |
+
# be made to those values.
|
| 48 |
+
|
| 49 |
+
if(CMAKE_USER_MAKE_RULES_OVERRIDE)
|
| 50 |
+
# Save the full path of the file so try_compile can use it.
|
| 51 |
+
include(${CMAKE_USER_MAKE_RULES_OVERRIDE} RESULT_VARIABLE _override)
|
| 52 |
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE "${_override}")
|
| 53 |
+
endif()
|
| 54 |
+
|
| 55 |
+
if(CMAKE_USER_MAKE_RULES_OVERRIDE_ASM)
|
| 56 |
+
# Save the full path of the file so try_compile can use it.
|
| 57 |
+
include(${CMAKE_USER_MAKE_RULES_OVERRIDE_ASM} RESULT_VARIABLE _override)
|
| 58 |
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE_ASM "${_override}")
|
| 59 |
+
endif()
|
| 60 |
+
|
| 61 |
+
# Set default assembler file extensions:
|
| 62 |
+
if(NOT CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS)
|
| 63 |
+
set(CMAKE_ASM${ASM_DIALECT}_SOURCE_FILE_EXTENSIONS s;S;asm)
|
| 64 |
+
endif()
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
# Support for CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT and friends:
|
| 68 |
+
set(CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT "$ENV{ASM${ASM_DIALECT}FLAGS} ${CMAKE_ASM${ASM_DIALECT}_FLAGS_INIT}")
|
| 69 |
+
|
| 70 |
+
cmake_initialize_per_config_variable(CMAKE_ASM${ASM_DIALECT}_FLAGS "Flags used by the ASM${ASM_DIALECT} compiler")
|
| 71 |
+
|
| 72 |
+
if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT)
|
| 73 |
+
set(CMAKE_ASM${ASM_DIALECT}_COMPILE_OBJECT "<CMAKE_ASM${ASM_DIALECT}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
| 74 |
+
endif()
|
| 75 |
+
|
| 76 |
+
if(NOT CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY)
|
| 77 |
+
set(CMAKE_ASM${ASM_DIALECT}_CREATE_STATIC_LIBRARY
|
| 78 |
+
"<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
|
| 79 |
+
"<CMAKE_RANLIB> <TARGET>")
|
| 80 |
+
endif()
|
| 81 |
+
|
| 82 |
+
if(NOT CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE)
|
| 83 |
+
set(CMAKE_ASM${ASM_DIALECT}_LINK_EXECUTABLE
|
| 84 |
+
"<CMAKE_ASM${ASM_DIALECT}_COMPILER> <FLAGS> <CMAKE_ASM${ASM_DIALECT}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
| 85 |
+
endif()
|
| 86 |
+
|
| 87 |
+
if(NOT CMAKE_EXECUTABLE_RUNTIME_ASM${ASM_DIALECT}_FLAG)
|
| 88 |
+
set(CMAKE_EXECUTABLE_RUNTIME_ASM${ASM_DIALECT}_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_ASM${ASM_DIALECT}_FLAG})
|
| 89 |
+
endif()
|
| 90 |
+
|
| 91 |
+
if(NOT CMAKE_EXECUTABLE_RUNTIME_ASM${ASM_DIALECT}_FLAG_SEP)
|
| 92 |
+
set(CMAKE_EXECUTABLE_RUNTIME_ASM${ASM_DIALECT}_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_ASM${ASM_DIALECT}_FLAG_SEP})
|
| 93 |
+
endif()
|
| 94 |
+
|
| 95 |
+
if(NOT CMAKE_EXECUTABLE_RPATH_LINK_ASM${ASM_DIALECT}_FLAG)
|
| 96 |
+
set(CMAKE_EXECUTABLE_RPATH_LINK_ASM${ASM_DIALECT}_FLAG ${CMAKE_SHARED_LIBRARY_RPATH_LINK_ASM${ASM_DIALECT}_FLAG})
|
| 97 |
+
endif()
|
| 98 |
+
|
| 99 |
+
set(CMAKE_ASM${ASM_DIALECT}_USE_LINKER_INFORMATION TRUE)
|
| 100 |
+
|
| 101 |
+
set(CMAKE_ASM${ASM_DIALECT}_INFOMATION_LOADED 1)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCSharpCompilerId.cs.in
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
using System;
|
| 2 |
+
|
| 3 |
+
namespace CSharp
|
| 4 |
+
{
|
| 5 |
+
public class CSharpApp
|
| 6 |
+
{
|
| 7 |
+
const string InfoCompiler = "INFO:compiler[Microsoft "
|
| 8 |
+
#if PlatformToolsetv100
|
| 9 |
+
+ "Visual Studio"
|
| 10 |
+
#elif PlatformToolsetv110
|
| 11 |
+
+ "Visual Studio"
|
| 12 |
+
#elif PlatformToolsetv120
|
| 13 |
+
+ "Visual Studio"
|
| 14 |
+
#elif PlatformToolsetv140
|
| 15 |
+
+ "Visual Studio"
|
| 16 |
+
#elif PlatformToolsetv141
|
| 17 |
+
+ "Visual Studio"
|
| 18 |
+
#elif PlatformToolsetv142
|
| 19 |
+
+ "Visual Studio"
|
| 20 |
+
#elif PlatformToolsetv143
|
| 21 |
+
+ "Visual Studio"
|
| 22 |
+
#else
|
| 23 |
+
+ "unknown"
|
| 24 |
+
#endif
|
| 25 |
+
+ "]";
|
| 26 |
+
|
| 27 |
+
const string InfoPlatform = "INFO:platform[Windows]";
|
| 28 |
+
|
| 29 |
+
const string InfoArchitecture = "INFO:arch["
|
| 30 |
+
#if Platformx64
|
| 31 |
+
+ "x64"
|
| 32 |
+
#elif Platformx86
|
| 33 |
+
+ "x86"
|
| 34 |
+
#elif PlatformxWin32
|
| 35 |
+
+ "Win32]"
|
| 36 |
+
#else
|
| 37 |
+
+ "unknown"
|
| 38 |
+
#endif
|
| 39 |
+
+ "]";
|
| 40 |
+
|
| 41 |
+
const string InfoCompilerVersion = "INFO:compiler_version["
|
| 42 |
+
#if PlatformToolsetv100
|
| 43 |
+
+ "2010"
|
| 44 |
+
#elif PlatformToolsetv110
|
| 45 |
+
+ "2012"
|
| 46 |
+
#elif PlatformToolsetv120
|
| 47 |
+
+ "2013"
|
| 48 |
+
#elif PlatformToolsetv140
|
| 49 |
+
+ "2015"
|
| 50 |
+
#elif PlatformToolsetv141
|
| 51 |
+
+ "2017"
|
| 52 |
+
#elif PlatformToolsetv142
|
| 53 |
+
+ "2019"
|
| 54 |
+
#elif PlatformToolsetv143
|
| 55 |
+
+ "2022"
|
| 56 |
+
#else
|
| 57 |
+
+ "9999"
|
| 58 |
+
#endif
|
| 59 |
+
+ "]";
|
| 60 |
+
|
| 61 |
+
static void Main(string[] args)
|
| 62 |
+
{
|
| 63 |
+
// we have to print the lines to make sure
|
| 64 |
+
// the compiler does not optimize them away ...
|
| 65 |
+
System.Console.WriteLine(InfoCompiler);
|
| 66 |
+
System.Console.WriteLine(InfoPlatform);
|
| 67 |
+
System.Console.WriteLine(InfoArchitecture);
|
| 68 |
+
System.Console.WriteLine(InfoCompilerVersion);
|
| 69 |
+
}
|
| 70 |
+
}
|
| 71 |
+
}
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCSharpInformation.cmake
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
# This file sets the basic flags for the C# language in CMake.
|
| 5 |
+
# It also loads the available platform file for the system-compiler
|
| 6 |
+
# if it exists.
|
| 7 |
+
|
| 8 |
+
set(CMAKE_BASE_NAME)
|
| 9 |
+
get_filename_component(CMAKE_BASE_NAME "${CMAKE_CSharp_COMPILER}" NAME_WE)
|
| 10 |
+
|
| 11 |
+
set(CMAKE_BUILD_TYPE_INIT Debug)
|
| 12 |
+
|
| 13 |
+
set(CMAKE_CSharp_FLAGS_INIT "/define:TRACE")
|
| 14 |
+
set(CMAKE_CSharp_FLAGS_DEBUG_INIT "/debug:full /optimize- /warn:3 /errorreport:prompt /define:DEBUG")
|
| 15 |
+
set(CMAKE_CSharp_FLAGS_RELEASE_INIT "/debug:none /optimize /warn:1 /errorreport:queue")
|
| 16 |
+
set(CMAKE_CSharp_FLAGS_RELWITHDEBINFO_INIT "/debug:full /optimize-")
|
| 17 |
+
set(CMAKE_CSharp_FLAGS_MINSIZEREL_INIT "/debug:none /optimize")
|
| 18 |
+
set(CMAKE_CSharp_LINKER_SUPPORTS_PDB ON)
|
| 19 |
+
|
| 20 |
+
set(CMAKE_CSharp_STANDARD_LIBRARIES_INIT "System")
|
| 21 |
+
|
| 22 |
+
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
|
| 23 |
+
set(CMAKE_CSharp_FLAGS_INIT "/platform:x86 ${CMAKE_CSharp_FLAGS_INIT}")
|
| 24 |
+
else()
|
| 25 |
+
set(CMAKE_CSharp_FLAGS_INIT "/platform:x64 ${CMAKE_CSharp_FLAGS_INIT}")
|
| 26 |
+
endif()
|
| 27 |
+
|
| 28 |
+
# This should be included before the _INIT variables are
|
| 29 |
+
# used to initialize the cache. Since the rule variables
|
| 30 |
+
# have if blocks on them, users can still define them here.
|
| 31 |
+
# But, it should still be after the platform file so changes can
|
| 32 |
+
# be made to those values.
|
| 33 |
+
|
| 34 |
+
# for most systems a module is the same as a shared library
|
| 35 |
+
# so unless the variable CMAKE_MODULE_EXISTS is set just
|
| 36 |
+
# copy the values from the LIBRARY variables
|
| 37 |
+
if(NOT CMAKE_MODULE_EXISTS)
|
| 38 |
+
set(CMAKE_SHARED_MODULE_CSharp_FLAGS ${CMAKE_SHARED_LIBRARY_CSharp_FLAGS})
|
| 39 |
+
set(CMAKE_SHARED_MODULE_CREATE_CSharp_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_CSharp_FLAGS})
|
| 40 |
+
endif()
|
| 41 |
+
|
| 42 |
+
# add the flags to the cache based
|
| 43 |
+
# on the initial values computed in the platform/*.cmake files
|
| 44 |
+
# use _INIT variables so that this only happens the first time
|
| 45 |
+
# and you can set these flags in the cmake cache
|
| 46 |
+
set(CMAKE_CSharp_FLAGS_INIT "$ENV{CSFLAGS} ${CMAKE_CSharp_FLAGS_INIT}")
|
| 47 |
+
|
| 48 |
+
cmake_initialize_per_config_variable(CMAKE_CSharp_FLAGS "Flags used by the C# compiler")
|
| 49 |
+
|
| 50 |
+
if(CMAKE_CSharp_STANDARD_LIBRARIES_INIT)
|
| 51 |
+
set(CMAKE_CSharp_STANDARD_LIBRARIES "${CMAKE_CSharp_STANDARD_LIBRARIES_INIT}"
|
| 52 |
+
CACHE STRING "Libraries linked by default with all C# applications.")
|
| 53 |
+
mark_as_advanced(CMAKE_CSharp_STANDARD_LIBRARIES)
|
| 54 |
+
endif()
|
| 55 |
+
|
| 56 |
+
# set missing flags (if they are not defined). This is needed in the
|
| 57 |
+
# unlikely case that you have only C# and no C/C++ targets in your
|
| 58 |
+
# project.
|
| 59 |
+
cmake_initialize_per_config_variable(CMAKE_EXE_LINKER_FLAGS "Flags used by the linker")
|
| 60 |
+
cmake_initialize_per_config_variable(CMAKE_SHARED_LINKER_FLAGS "Flags used by the linker during the creation of shared libraries")
|
| 61 |
+
|
| 62 |
+
set(CMAKE_CSharp_CREATE_SHARED_LIBRARY "CSharp_NO_CREATE_SHARED_LIBRARY")
|
| 63 |
+
set(CMAKE_CSharp_CREATE_SHARED_MODULE "CSharp_NO_CREATE_SHARED_MODULE")
|
| 64 |
+
set(CMAKE_CSharp_LINK_EXECUTABLE "CSharp_NO_LINK_EXECUTABLE")
|
| 65 |
+
|
| 66 |
+
set(CMAKE_CSharp_USE_RESPONSE_FILE_FOR_OBJECTS 1)
|
| 67 |
+
|
| 68 |
+
set(CMAKE_CSharp_USE_LINKER_INFORMATION FALSE)
|
| 69 |
+
|
| 70 |
+
set(CMAKE_CSharp_INFORMATION_LOADED 1)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCUDACompiler.cmake.in
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
set(CMAKE_CUDA_COMPILER "@CMAKE_CUDA_COMPILER@")
|
| 2 |
+
set(CMAKE_CUDA_HOST_COMPILER "@CMAKE_CUDA_HOST_COMPILER@")
|
| 3 |
+
set(CMAKE_CUDA_HOST_LINK_LAUNCHER "@CMAKE_CUDA_HOST_LINK_LAUNCHER@")
|
| 4 |
+
set(CMAKE_CUDA_COMPILER_ID "@CMAKE_CUDA_COMPILER_ID@")
|
| 5 |
+
set(CMAKE_CUDA_COMPILER_VERSION "@CMAKE_CUDA_COMPILER_VERSION@")
|
| 6 |
+
set(CMAKE_CUDA_HOST_COMPILER_ID "@CMAKE_CUDA_HOST_COMPILER_ID@")
|
| 7 |
+
set(CMAKE_CUDA_HOST_COMPILER_VERSION "@CMAKE_CUDA_HOST_COMPILER_VERSION@")
|
| 8 |
+
set(CMAKE_CUDA_DEVICE_LINKER "@CMAKE_CUDA_DEVICE_LINKER@")
|
| 9 |
+
set(CMAKE_CUDA_FATBINARY "@CMAKE_CUDA_FATBINARY@")
|
| 10 |
+
set(CMAKE_CUDA_STANDARD_COMPUTED_DEFAULT "@CMAKE_CUDA_STANDARD_COMPUTED_DEFAULT@")
|
| 11 |
+
set(CMAKE_CUDA_EXTENSIONS_COMPUTED_DEFAULT "@CMAKE_CUDA_EXTENSIONS_COMPUTED_DEFAULT@")
|
| 12 |
+
set(CMAKE_CUDA_STANDARD_LATEST "@CMAKE_CUDA_STANDARD_LATEST@")
|
| 13 |
+
set(CMAKE_CUDA_COMPILE_FEATURES "@CMAKE_CUDA_COMPILE_FEATURES@")
|
| 14 |
+
set(CMAKE_CUDA03_COMPILE_FEATURES "@CMAKE_CUDA03_COMPILE_FEATURES@")
|
| 15 |
+
set(CMAKE_CUDA11_COMPILE_FEATURES "@CMAKE_CUDA11_COMPILE_FEATURES@")
|
| 16 |
+
set(CMAKE_CUDA14_COMPILE_FEATURES "@CMAKE_CUDA14_COMPILE_FEATURES@")
|
| 17 |
+
set(CMAKE_CUDA17_COMPILE_FEATURES "@CMAKE_CUDA17_COMPILE_FEATURES@")
|
| 18 |
+
set(CMAKE_CUDA20_COMPILE_FEATURES "@CMAKE_CUDA20_COMPILE_FEATURES@")
|
| 19 |
+
set(CMAKE_CUDA23_COMPILE_FEATURES "@CMAKE_CUDA23_COMPILE_FEATURES@")
|
| 20 |
+
set(CMAKE_CUDA26_COMPILE_FEATURES "@CMAKE_CUDA26_COMPILE_FEATURES@")
|
| 21 |
+
|
| 22 |
+
set(CMAKE_CUDA_PLATFORM_ID "@CMAKE_CUDA_PLATFORM_ID@")
|
| 23 |
+
set(CMAKE_CUDA_SIMULATE_ID "@CMAKE_CUDA_SIMULATE_ID@")
|
| 24 |
+
set(CMAKE_CUDA_COMPILER_FRONTEND_VARIANT "@CMAKE_CUDA_COMPILER_FRONTEND_VARIANT@")
|
| 25 |
+
set(CMAKE_CUDA_SIMULATE_VERSION "@CMAKE_CUDA_SIMULATE_VERSION@")
|
| 26 |
+
@SET_MSVC_CUDA_ARCHITECTURE_ID@
|
| 27 |
+
@_SET_CMAKE_CUDA_COMPILER_SYSROOT@
|
| 28 |
+
|
| 29 |
+
set(CMAKE_CUDA_COMPILER_ENV_VAR "CUDACXX")
|
| 30 |
+
set(CMAKE_CUDA_HOST_COMPILER_ENV_VAR "CUDAHOSTCXX")
|
| 31 |
+
|
| 32 |
+
set(CMAKE_CUDA_COMPILER_LOADED 1)
|
| 33 |
+
set(CMAKE_CUDA_COMPILER_ID_RUN 1)
|
| 34 |
+
set(CMAKE_CUDA_SOURCE_FILE_EXTENSIONS cu)
|
| 35 |
+
set(CMAKE_CUDA_LINKER_PREFERENCE 15)
|
| 36 |
+
set(CMAKE_CUDA_LINKER_PREFERENCE_PROPAGATES 1)
|
| 37 |
+
set(CMAKE_CUDA_LINKER_DEPFILE_SUPPORTED @CMAKE_CUDA_LINKER_DEPFILE_SUPPORTED@)
|
| 38 |
+
|
| 39 |
+
set(CMAKE_CUDA_SIZEOF_DATA_PTR "@CMAKE_CUDA_SIZEOF_DATA_PTR@")
|
| 40 |
+
set(CMAKE_CUDA_COMPILER_ABI "@CMAKE_CUDA_COMPILER_ABI@")
|
| 41 |
+
set(CMAKE_CUDA_BYTE_ORDER "@CMAKE_CUDA_BYTE_ORDER@")
|
| 42 |
+
set(CMAKE_CUDA_LIBRARY_ARCHITECTURE "@CMAKE_CUDA_LIBRARY_ARCHITECTURE@")
|
| 43 |
+
|
| 44 |
+
if(CMAKE_CUDA_SIZEOF_DATA_PTR)
|
| 45 |
+
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CUDA_SIZEOF_DATA_PTR}")
|
| 46 |
+
endif()
|
| 47 |
+
|
| 48 |
+
if(CMAKE_CUDA_COMPILER_ABI)
|
| 49 |
+
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CUDA_COMPILER_ABI}")
|
| 50 |
+
endif()
|
| 51 |
+
|
| 52 |
+
if(CMAKE_CUDA_LIBRARY_ARCHITECTURE)
|
| 53 |
+
set(CMAKE_LIBRARY_ARCHITECTURE "@CMAKE_CUDA_LIBRARY_ARCHITECTURE@")
|
| 54 |
+
endif()
|
| 55 |
+
|
| 56 |
+
set(CMAKE_CUDA_COMPILER_TOOLKIT_ROOT "@CMAKE_CUDA_COMPILER_TOOLKIT_ROOT@")
|
| 57 |
+
set(CMAKE_CUDA_COMPILER_TOOLKIT_LIBRARY_ROOT "@CMAKE_CUDA_COMPILER_TOOLKIT_LIBRARY_ROOT@")
|
| 58 |
+
set(CMAKE_CUDA_COMPILER_TOOLKIT_VERSION "@CMAKE_CUDA_COMPILER_TOOLKIT_VERSION@")
|
| 59 |
+
set(CMAKE_CUDA_COMPILER_LIBRARY_ROOT "@CMAKE_CUDA_COMPILER_LIBRARY_ROOT@")
|
| 60 |
+
|
| 61 |
+
set(CMAKE_CUDA_ARCHITECTURES_ALL "@CMAKE_CUDA_ARCHITECTURES_ALL@")
|
| 62 |
+
set(CMAKE_CUDA_ARCHITECTURES_ALL_MAJOR "@CMAKE_CUDA_ARCHITECTURES_ALL_MAJOR@")
|
| 63 |
+
set(CMAKE_CUDA_ARCHITECTURES_NATIVE "@CMAKE_CUDA_ARCHITECTURES_NATIVE@")
|
| 64 |
+
|
| 65 |
+
set(CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES "@CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES@")
|
| 66 |
+
|
| 67 |
+
set(CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES "@CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES@")
|
| 68 |
+
set(CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES "@CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES@")
|
| 69 |
+
set(CMAKE_CUDA_HOST_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_CUDA_HOST_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@")
|
| 70 |
+
|
| 71 |
+
set(CMAKE_CUDA_IMPLICIT_INCLUDE_DIRECTORIES "@CMAKE_CUDA_IMPLICIT_INCLUDE_DIRECTORIES@")
|
| 72 |
+
set(CMAKE_CUDA_IMPLICIT_LINK_LIBRARIES "@CMAKE_CUDA_IMPLICIT_LINK_LIBRARIES@")
|
| 73 |
+
set(CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES "@CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES@")
|
| 74 |
+
set(CMAKE_CUDA_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_CUDA_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@")
|
| 75 |
+
|
| 76 |
+
@_SET_CMAKE_CUDA_RUNTIME_LIBRARY_DEFAULT@
|
| 77 |
+
|
| 78 |
+
set(CMAKE_LINKER "@CMAKE_LINKER@")
|
| 79 |
+
set(CMAKE_LINKER_LINK "@CMAKE_LINKER_LINK@")
|
| 80 |
+
set(CMAKE_LINKER_LLD "@CMAKE_LINKER_LLD@")
|
| 81 |
+
set(CMAKE_CUDA_COMPILER_LINKER "@CMAKE_CUDA_COMPILER_LINKER@")
|
| 82 |
+
set(CMAKE_CUDA_COMPILER_LINKER_ID "@CMAKE_CUDA_COMPILER_LINKER_ID@")
|
| 83 |
+
set(CMAKE_CUDA_COMPILER_LINKER_VERSION @CMAKE_CUDA_COMPILER_LINKER_VERSION@)
|
| 84 |
+
set(CMAKE_CUDA_COMPILER_LINKER_FRONTEND_VARIANT @CMAKE_CUDA_COMPILER_LINKER_FRONTEND_VARIANT@)
|
| 85 |
+
set(CMAKE_AR "@CMAKE_AR@")
|
| 86 |
+
set(CMAKE_RANLIB "@CMAKE_RANLIB@")
|
| 87 |
+
set(CMAKE_MT "@CMAKE_MT@")
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCUDACompilerABI.cu
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifndef __CUDACC__
|
| 2 |
+
# error "A C or C++ compiler has been selected for CUDA"
|
| 3 |
+
#endif
|
| 4 |
+
|
| 5 |
+
#include "CMakeCompilerABI.h"
|
| 6 |
+
#include "CMakeCompilerCUDAArch.h"
|
| 7 |
+
|
| 8 |
+
int main(int argc, char* argv[])
|
| 9 |
+
{
|
| 10 |
+
int require = 0;
|
| 11 |
+
require += info_sizeof_dptr[argc];
|
| 12 |
+
require += info_byte_order_big_endian[argc];
|
| 13 |
+
require += info_byte_order_little_endian[argc];
|
| 14 |
+
#if defined(ABI_ID)
|
| 15 |
+
require += info_abi[argc];
|
| 16 |
+
#endif
|
| 17 |
+
static_cast<void>(argv);
|
| 18 |
+
|
| 19 |
+
if (!cmakeCompilerCUDAArch()) {
|
| 20 |
+
// Convince the compiler that the non-zero return value depends
|
| 21 |
+
// on the info strings so they are not optimized out.
|
| 22 |
+
return require ? -1 : 1;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
return 0;
|
| 26 |
+
}
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeCompilerIdDetection.cmake
ADDED
|
@@ -0,0 +1,162 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
function(_readFile file)
|
| 6 |
+
include(${file})
|
| 7 |
+
get_filename_component(name ${file} NAME_WE)
|
| 8 |
+
string(REGEX REPLACE "-.*" "" CompilerId ${name})
|
| 9 |
+
set(_compiler_id_version_compute_${CompilerId} ${_compiler_id_version_compute} PARENT_SCOPE)
|
| 10 |
+
set(_compiler_id_simulate_${CompilerId} ${_compiler_id_simulate} PARENT_SCOPE)
|
| 11 |
+
set(_compiler_id_pp_test_${CompilerId} ${_compiler_id_pp_test} PARENT_SCOPE)
|
| 12 |
+
endfunction()
|
| 13 |
+
|
| 14 |
+
function(compiler_id_detection outvar lang)
|
| 15 |
+
|
| 16 |
+
if (NOT "x${lang}" STREQUAL "xFortran" AND NOT "x${lang}" STREQUAL "xCSharp"
|
| 17 |
+
AND NOT "x${lang}" STREQUAL "xISPC")
|
| 18 |
+
file(GLOB lang_files
|
| 19 |
+
"${CMAKE_ROOT}/Modules/Compiler/*-DetermineCompiler.cmake")
|
| 20 |
+
set(nonlang CXX)
|
| 21 |
+
if ("x${lang}" STREQUAL "xCXX")
|
| 22 |
+
set(nonlang C)
|
| 23 |
+
endif()
|
| 24 |
+
|
| 25 |
+
file(GLOB nonlang_files
|
| 26 |
+
"${CMAKE_ROOT}/Modules/Compiler/*-${nonlang}-DetermineCompiler.cmake")
|
| 27 |
+
list(REMOVE_ITEM lang_files ${nonlang_files})
|
| 28 |
+
endif()
|
| 29 |
+
|
| 30 |
+
set(files ${lang_files})
|
| 31 |
+
if (files)
|
| 32 |
+
foreach(file ${files})
|
| 33 |
+
_readFile(${file})
|
| 34 |
+
endforeach()
|
| 35 |
+
|
| 36 |
+
set(options ID_STRING VERSION_STRINGS ID_DEFINE PLATFORM_DEFAULT_COMPILER)
|
| 37 |
+
set(oneValueArgs PREFIX)
|
| 38 |
+
cmake_parse_arguments(CID "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
| 39 |
+
if (CID_UNPARSED_ARGUMENTS)
|
| 40 |
+
message(FATAL_ERROR "Unrecognized arguments: \"${CID_UNPARSED_ARGUMENTS}\"")
|
| 41 |
+
endif()
|
| 42 |
+
|
| 43 |
+
# Order is relevant here. For example, compilers which pretend to be
|
| 44 |
+
# GCC must appear before the actual GCC.
|
| 45 |
+
list(APPEND ordered_compilers
|
| 46 |
+
Intel
|
| 47 |
+
IntelLLVM
|
| 48 |
+
PathScale
|
| 49 |
+
Embarcadero
|
| 50 |
+
Borland
|
| 51 |
+
Watcom
|
| 52 |
+
OpenWatcom
|
| 53 |
+
SunPro
|
| 54 |
+
HP
|
| 55 |
+
Compaq
|
| 56 |
+
zOS
|
| 57 |
+
IBMClang
|
| 58 |
+
XLClang
|
| 59 |
+
XL
|
| 60 |
+
VisualAge
|
| 61 |
+
NVHPC
|
| 62 |
+
PGI
|
| 63 |
+
CrayClang
|
| 64 |
+
Cray
|
| 65 |
+
TI
|
| 66 |
+
FujitsuClang
|
| 67 |
+
Fujitsu
|
| 68 |
+
GHS
|
| 69 |
+
Tasking
|
| 70 |
+
OrangeC
|
| 71 |
+
)
|
| 72 |
+
if ("x${lang}" STREQUAL "xC")
|
| 73 |
+
list(APPEND ordered_compilers
|
| 74 |
+
TinyCC
|
| 75 |
+
Bruce
|
| 76 |
+
)
|
| 77 |
+
endif()
|
| 78 |
+
list(APPEND ordered_compilers
|
| 79 |
+
SCO
|
| 80 |
+
ARMCC
|
| 81 |
+
AppleClang
|
| 82 |
+
ARMClang
|
| 83 |
+
TIClang
|
| 84 |
+
)
|
| 85 |
+
list(APPEND ordered_compilers
|
| 86 |
+
Clang
|
| 87 |
+
LCC
|
| 88 |
+
GNU
|
| 89 |
+
MSVC
|
| 90 |
+
ADSP
|
| 91 |
+
IAR
|
| 92 |
+
)
|
| 93 |
+
if ("x${lang}" STREQUAL "xC")
|
| 94 |
+
list(APPEND ordered_compilers
|
| 95 |
+
SDCC
|
| 96 |
+
)
|
| 97 |
+
endif()
|
| 98 |
+
|
| 99 |
+
if("x${lang}" STREQUAL "xCUDA")
|
| 100 |
+
set(ordered_compilers NVIDIA Clang)
|
| 101 |
+
endif()
|
| 102 |
+
|
| 103 |
+
if("x${lang}" STREQUAL "xHIP")
|
| 104 |
+
set(ordered_compilers NVIDIA Clang)
|
| 105 |
+
endif()
|
| 106 |
+
|
| 107 |
+
if(CID_ID_DEFINE)
|
| 108 |
+
foreach(Id ${ordered_compilers})
|
| 109 |
+
string(APPEND CMAKE_${lang}_COMPILER_ID_CONTENT "# define ${CID_PREFIX}COMPILER_IS_${Id} 0\n")
|
| 110 |
+
endforeach()
|
| 111 |
+
# Hard-code definitions for compilers that are no longer supported.
|
| 112 |
+
string(APPEND CMAKE_${lang}_COMPILER_ID_CONTENT "# define ${CID_PREFIX}COMPILER_IS_MIPSpro 0\n")
|
| 113 |
+
endif()
|
| 114 |
+
|
| 115 |
+
set(pp_if "#if")
|
| 116 |
+
if (CID_VERSION_STRINGS)
|
| 117 |
+
string(APPEND CMAKE_${lang}_COMPILER_ID_CONTENT "\n/* Version number components: V=Version, R=Revision, P=Patch
|
| 118 |
+
Version date components: YYYY=Year, MM=Month, DD=Day */\n")
|
| 119 |
+
endif()
|
| 120 |
+
|
| 121 |
+
foreach(Id ${ordered_compilers})
|
| 122 |
+
if (NOT _compiler_id_pp_test_${Id})
|
| 123 |
+
message(FATAL_ERROR "No preprocessor test for \"${Id}\"")
|
| 124 |
+
endif()
|
| 125 |
+
set(id_content "${pp_if} ${_compiler_id_pp_test_${Id}}\n")
|
| 126 |
+
if (CID_ID_STRING)
|
| 127 |
+
set(PREFIX ${CID_PREFIX})
|
| 128 |
+
string(CONFIGURE "${_compiler_id_simulate_${Id}}" SIMULATE_BLOCK @ONLY)
|
| 129 |
+
string(APPEND id_content "# define ${CID_PREFIX}COMPILER_ID \"${Id}\"${SIMULATE_BLOCK}")
|
| 130 |
+
endif()
|
| 131 |
+
if (CID_ID_DEFINE)
|
| 132 |
+
string(APPEND id_content "# undef ${CID_PREFIX}COMPILER_IS_${Id}\n")
|
| 133 |
+
string(APPEND id_content "# define ${CID_PREFIX}COMPILER_IS_${Id} 1\n")
|
| 134 |
+
endif()
|
| 135 |
+
if (CID_VERSION_STRINGS)
|
| 136 |
+
set(PREFIX ${CID_PREFIX})
|
| 137 |
+
set(MACRO_DEC DEC)
|
| 138 |
+
set(MACRO_HEX HEX)
|
| 139 |
+
string(CONFIGURE "${_compiler_id_version_compute_${Id}}" VERSION_BLOCK @ONLY)
|
| 140 |
+
string(APPEND id_content "${VERSION_BLOCK}\n")
|
| 141 |
+
endif()
|
| 142 |
+
string(APPEND CMAKE_${lang}_COMPILER_ID_CONTENT "\n${id_content}")
|
| 143 |
+
set(pp_if "#elif")
|
| 144 |
+
endforeach()
|
| 145 |
+
|
| 146 |
+
if (CID_PLATFORM_DEFAULT_COMPILER)
|
| 147 |
+
set(platform_compiler_detection "
|
| 148 |
+
/* These compilers are either not known or too old to define an
|
| 149 |
+
identification macro. Try to identify the platform and guess that
|
| 150 |
+
it is the native compiler. */
|
| 151 |
+
#elif defined(__hpux) || defined(__hpua)
|
| 152 |
+
# define ${CID_PREFIX}COMPILER_ID \"HP\"
|
| 153 |
+
|
| 154 |
+
#else /* unknown compiler */
|
| 155 |
+
# define ${CID_PREFIX}COMPILER_ID \"\"")
|
| 156 |
+
endif()
|
| 157 |
+
|
| 158 |
+
string(APPEND CMAKE_${lang}_COMPILER_ID_CONTENT "\n${platform_compiler_detection}\n#endif")
|
| 159 |
+
endif()
|
| 160 |
+
|
| 161 |
+
set(${outvar} ${CMAKE_${lang}_COMPILER_ID_CONTENT} PARENT_SCOPE)
|
| 162 |
+
endfunction()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineASM_MASMCompiler.cmake
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# Find the MS assembler (masm or masm64)
|
| 6 |
+
|
| 7 |
+
set(ASM_DIALECT "_MASM")
|
| 8 |
+
|
| 9 |
+
# if we are using the 64bit cl compiler, assume we also want the 64bit assembler
|
| 10 |
+
if(";${CMAKE_VS_PLATFORM_NAME};${MSVC_C_ARCHITECTURE_ID};${MSVC_CXX_ARCHITECTURE_ID};"
|
| 11 |
+
MATCHES ";(Win64|Itanium|x64|IA64);")
|
| 12 |
+
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml64)
|
| 13 |
+
else()
|
| 14 |
+
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml)
|
| 15 |
+
endif()
|
| 16 |
+
|
| 17 |
+
include(CMakeDetermineASMCompiler)
|
| 18 |
+
set(ASM_DIALECT)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeDetermineCXXCompiler.cmake
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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ompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# determine the compiler to use for C++ programs
|
| 6 |
+
# NOTE, a generator may set CMAKE_CXX_COMPILER before
|
| 7 |
+
# loading this file to force a compiler.
|
| 8 |
+
# use environment variable CXX first if defined by user, next use
|
| 9 |
+
# the cmake variable CMAKE_GENERATOR_CXX which can be defined by a generator
|
| 10 |
+
# as a default compiler
|
| 11 |
+
# If the internal cmake variable _CMAKE_TOOLCHAIN_PREFIX is set, this is used
|
| 12 |
+
# as prefix for the tools (e.g. arm-elf-g++, arm-elf-ar etc.)
|
| 13 |
+
#
|
| 14 |
+
# Sets the following variables:
|
| 15 |
+
# CMAKE_CXX_COMPILER
|
| 16 |
+
# CMAKE_COMPILER_IS_GNUCXX
|
| 17 |
+
# CMAKE_AR
|
| 18 |
+
# CMAKE_RANLIB
|
| 19 |
+
#
|
| 20 |
+
# If not already set before, it also sets
|
| 21 |
+
# _CMAKE_TOOLCHAIN_PREFIX
|
| 22 |
+
|
| 23 |
+
include(${CMAKE_ROOT}/Modules/CMakeDetermineCompiler.cmake)
|
| 24 |
+
|
| 25 |
+
# Load system-specific compiler preferences for this language.
|
| 26 |
+
include(Platform/${CMAKE_SYSTEM_NAME}-Determine-CXX OPTIONAL)
|
| 27 |
+
include(Platform/${CMAKE_SYSTEM_NAME}-CXX OPTIONAL)
|
| 28 |
+
if(NOT CMAKE_CXX_COMPILER_NAMES)
|
| 29 |
+
set(CMAKE_CXX_COMPILER_NAMES CC)
|
| 30 |
+
endif()
|
| 31 |
+
|
| 32 |
+
if(${CMAKE_GENERATOR} MATCHES "Visual Studio")
|
| 33 |
+
elseif("${CMAKE_GENERATOR}" MATCHES "Green Hills MULTI")
|
| 34 |
+
elseif("${CMAKE_GENERATOR}" MATCHES "Xcode")
|
| 35 |
+
set(CMAKE_CXX_COMPILER_XCODE_TYPE sourcecode.cpp.cpp)
|
| 36 |
+
_cmake_find_compiler_path(CXX)
|
| 37 |
+
else()
|
| 38 |
+
if(NOT CMAKE_CXX_COMPILER)
|
| 39 |
+
set(CMAKE_CXX_COMPILER_INIT NOTFOUND)
|
| 40 |
+
|
| 41 |
+
# prefer the environment variable CXX
|
| 42 |
+
if(NOT $ENV{CXX} STREQUAL "")
|
| 43 |
+
get_filename_component(CMAKE_CXX_COMPILER_INIT $ENV{CXX} PROGRAM PROGRAM_ARGS CMAKE_CXX_FLAGS_ENV_INIT)
|
| 44 |
+
if(CMAKE_CXX_FLAGS_ENV_INIT)
|
| 45 |
+
set(CMAKE_CXX_COMPILER_ARG1 "${CMAKE_CXX_FLAGS_ENV_INIT}" CACHE STRING "Arguments to CXX compiler")
|
| 46 |
+
endif()
|
| 47 |
+
if(NOT EXISTS ${CMAKE_CXX_COMPILER_INIT})
|
| 48 |
+
message(FATAL_ERROR "Could not find compiler set in environment variable CXX:\n$ENV{CXX}.\n${CMAKE_CXX_COMPILER_INIT}")
|
| 49 |
+
endif()
|
| 50 |
+
endif()
|
| 51 |
+
|
| 52 |
+
# next prefer the generator specified compiler
|
| 53 |
+
if(CMAKE_GENERATOR_CXX)
|
| 54 |
+
if(NOT CMAKE_CXX_COMPILER_INIT)
|
| 55 |
+
set(CMAKE_CXX_COMPILER_INIT ${CMAKE_GENERATOR_CXX})
|
| 56 |
+
endif()
|
| 57 |
+
endif()
|
| 58 |
+
|
| 59 |
+
# finally list compilers to try
|
| 60 |
+
if(NOT CMAKE_CXX_COMPILER_INIT)
|
| 61 |
+
set(CMAKE_CXX_COMPILER_LIST CC ${_CMAKE_TOOLCHAIN_PREFIX}c++ ${_CMAKE_TOOLCHAIN_PREFIX}g++ aCC cl bcc xlC)
|
| 62 |
+
if(NOT CMAKE_HOST_WIN32)
|
| 63 |
+
# FIXME(#24314): Add support for the GNU-like icpx compiler driver
|
| 64 |
+
# on Windows, first introduced by Intel oneAPI 2023.0.
|
| 65 |
+
list(APPEND CMAKE_CXX_COMPILER_LIST icpx)
|
| 66 |
+
endif()
|
| 67 |
+
list(APPEND CMAKE_CXX_COMPILER_LIST icx clang++)
|
| 68 |
+
endif()
|
| 69 |
+
|
| 70 |
+
_cmake_find_compiler(CXX)
|
| 71 |
+
else()
|
| 72 |
+
_cmake_find_compiler_path(CXX)
|
| 73 |
+
endif()
|
| 74 |
+
mark_as_advanced(CMAKE_CXX_COMPILER)
|
| 75 |
+
|
| 76 |
+
# Each entry in this list is a set of extra flags to try
|
| 77 |
+
# adding to the compile line to see if it helps produce
|
| 78 |
+
# a valid identification file.
|
| 79 |
+
set(CMAKE_CXX_COMPILER_ID_TEST_FLAGS_FIRST)
|
| 80 |
+
set(CMAKE_CXX_COMPILER_ID_TEST_FLAGS
|
| 81 |
+
# Try compiling to an object file only.
|
| 82 |
+
"-c"
|
| 83 |
+
# IAR does not detect language automatically
|
| 84 |
+
"--c++"
|
| 85 |
+
"--ec++"
|
| 86 |
+
|
| 87 |
+
# ARMClang need target options
|
| 88 |
+
"--target=arm-arm-none-eabi -mcpu=cortex-m3"
|
| 89 |
+
|
| 90 |
+
# MSVC needs at least one include directory for __has_include to function,
|
| 91 |
+
# but custom toolchains may run MSVC with no INCLUDE env var and no -I flags.
|
| 92 |
+
# Also avoid linking so this works with no LIB env var.
|
| 93 |
+
"-c -I__does_not_exist__"
|
| 94 |
+
)
|
| 95 |
+
endif()
|
| 96 |
+
|
| 97 |
+
if(CMAKE_CXX_COMPILER_TARGET)
|
| 98 |
+
set(CMAKE_CXX_COMPILER_ID_TEST_FLAGS_FIRST "-c --target=${CMAKE_CXX_COMPILER_TARGET}")
|
| 99 |
+
endif()
|
| 100 |
+
|
| 101 |
+
# Build a small source file to identify the compiler.
|
| 102 |
+
if(NOT CMAKE_CXX_COMPILER_ID_RUN)
|
| 103 |
+
set(CMAKE_CXX_COMPILER_ID_RUN 1)
|
| 104 |
+
|
| 105 |
+
# Try to identify the compiler.
|
| 106 |
+
set(CMAKE_CXX_COMPILER_ID)
|
| 107 |
+
set(CMAKE_CXX_PLATFORM_ID)
|
| 108 |
+
file(READ ${CMAKE_ROOT}/Modules/CMakePlatformId.h.in
|
| 109 |
+
CMAKE_CXX_COMPILER_ID_PLATFORM_CONTENT)
|
| 110 |
+
|
| 111 |
+
# The IAR compiler produces weird output.
|
| 112 |
+
# See https://gitlab.kitware.com/cmake/cmake/-/issues/10176#note_153591
|
| 113 |
+
list(APPEND CMAKE_CXX_COMPILER_ID_VENDORS IAR)
|
| 114 |
+
set(CMAKE_CXX_COMPILER_ID_VENDOR_FLAGS_IAR )
|
| 115 |
+
set(CMAKE_CXX_COMPILER_ID_VENDOR_REGEX_IAR "IAR .+ Compiler")
|
| 116 |
+
|
| 117 |
+
# Match the link line from xcodebuild output of the form
|
| 118 |
+
# Ld ...
|
| 119 |
+
# ...
|
| 120 |
+
# /path/to/cc ...CompilerIdCXX/...
|
| 121 |
+
# to extract the compiler front-end for the language.
|
| 122 |
+
set(CMAKE_CXX_COMPILER_ID_TOOL_MATCH_REGEX "\nLd[^\n]*(\n[ \t]+[^\n]*)*\n[ \t]+([^ \t\r\n]+)[^\r\n]*-o[^\r\n]*CompilerIdCXX/(\\./)?(CompilerIdCXX.(framework|xctest|build/[^ \t\r\n]+)/)?CompilerIdCXX[ \t\n\\\"]")
|
| 123 |
+
set(CMAKE_CXX_COMPILER_ID_TOOL_MATCH_INDEX 2)
|
| 124 |
+
|
| 125 |
+
include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerId.cmake)
|
| 126 |
+
CMAKE_DETERMINE_COMPILER_ID(CXX CXXFLAGS CMakeCXXCompilerId.cpp)
|
| 127 |
+
|
| 128 |
+
_cmake_find_compiler_sysroot(CXX)
|
| 129 |
+
|
| 130 |
+
# Set old compiler and platform id variables.
|
| 131 |
+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
| 132 |
+
set(CMAKE_COMPILER_IS_GNUCXX 1)
|
| 133 |
+
endif()
|
| 134 |
+
else()
|
| 135 |
+
if(NOT DEFINED CMAKE_CXX_COMPILER_FRONTEND_VARIANT)
|
| 136 |
+
# Some toolchain files set our internal CMAKE_CXX_COMPILER_ID_RUN
|
| 137 |
+
# variable but are not aware of CMAKE_CXX_COMPILER_FRONTEND_VARIANT.
|
| 138 |
+
# They pre-date our support for the GNU-like variant targeting the
|
| 139 |
+
# MSVC ABI so we do not consider that here.
|
| 140 |
+
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
|
| 141 |
+
OR "x${CMAKE_CXX_COMPILER_ID}" STREQUAL "xIntelLLVM")
|
| 142 |
+
if("x${CMAKE_CXX_SIMULATE_ID}" STREQUAL "xMSVC")
|
| 143 |
+
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "MSVC")
|
| 144 |
+
else()
|
| 145 |
+
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "GNU")
|
| 146 |
+
endif()
|
| 147 |
+
else()
|
| 148 |
+
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
|
| 149 |
+
endif()
|
| 150 |
+
endif()
|
| 151 |
+
endif()
|
| 152 |
+
|
| 153 |
+
if (NOT _CMAKE_TOOLCHAIN_LOCATION)
|
| 154 |
+
get_filename_component(_CMAKE_TOOLCHAIN_LOCATION "${CMAKE_CXX_COMPILER}" PATH)
|
| 155 |
+
endif ()
|
| 156 |
+
|
| 157 |
+
# if we have a g++ cross compiler, they have usually some prefix, like
|
| 158 |
+
# e.g. powerpc-linux-g++, arm-elf-g++ or i586-mingw32msvc-g++ , optionally
|
| 159 |
+
# with a 3-component version number at the end (e.g. arm-eabi-gcc-4.5.2).
|
| 160 |
+
# The other tools of the toolchain usually have the same prefix
|
| 161 |
+
# NAME_WE cannot be used since then this test will fail for names like
|
| 162 |
+
# "arm-unknown-nto-qnx6.3.0-gcc.exe", where BASENAME would be
|
| 163 |
+
# "arm-unknown-nto-qnx6" instead of the correct "arm-unknown-nto-qnx6.3.0-"
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
if (NOT _CMAKE_TOOLCHAIN_PREFIX)
|
| 167 |
+
|
| 168 |
+
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang|QCC|LCC")
|
| 169 |
+
get_filename_component(COMPILER_BASENAME "${CMAKE_CXX_COMPILER}" NAME)
|
| 170 |
+
if (COMPILER_BASENAME MATCHES "^(.+-)?(clang\\+\\+|[gc]\\+\\+|clang-cl)(-?[0-9]+(\\.[0-9]+)*)?(-[^.]+)?(\\.exe)?$")
|
| 171 |
+
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
| 172 |
+
set(_CMAKE_TOOLCHAIN_SUFFIX ${CMAKE_MATCH_3})
|
| 173 |
+
set(_CMAKE_COMPILER_SUFFIX ${CMAKE_MATCH_5})
|
| 174 |
+
elseif(CMAKE_CXX_COMPILER_ID MATCHES "TIClang")
|
| 175 |
+
if (COMPILER_BASENAME MATCHES "^(.+)?clang(\\.exe)?$")
|
| 176 |
+
set(_CMAKE_TOOLCHAIN_PREFIX "${CMAKE_MATCH_1}")
|
| 177 |
+
set(_CMAKE_TOOLCHAIN_SUFFIX "${CMAKE_MATCH_2}")
|
| 178 |
+
endif()
|
| 179 |
+
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
| 180 |
+
if(CMAKE_CXX_COMPILER_TARGET)
|
| 181 |
+
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_CXX_COMPILER_TARGET}-)
|
| 182 |
+
endif()
|
| 183 |
+
elseif(COMPILER_BASENAME MATCHES "QCC(\\.exe)?$")
|
| 184 |
+
if(CMAKE_CXX_COMPILER_TARGET MATCHES "gcc_nto([a-z0-9]+_[0-9]+|[^_le]+)(le)")
|
| 185 |
+
set(_CMAKE_TOOLCHAIN_PREFIX nto${CMAKE_MATCH_1}-)
|
| 186 |
+
endif()
|
| 187 |
+
endif ()
|
| 188 |
+
|
| 189 |
+
# if "llvm-" is part of the prefix, remove it, since llvm doesn't have its own binutils
|
| 190 |
+
# but uses the regular ar, objcopy, etc. (instead of llvm-objcopy etc.)
|
| 191 |
+
if ("${_CMAKE_TOOLCHAIN_PREFIX}" MATCHES "(.+-)?llvm-$")
|
| 192 |
+
set(_CMAKE_TOOLCHAIN_PREFIX ${CMAKE_MATCH_1})
|
| 193 |
+
endif ()
|
| 194 |
+
elseif(CMAKE_CXX_COMPILER_ID MATCHES "TI")
|
| 195 |
+
# TI compilers are named e.g. cl6x, cl470 or armcl.exe
|
| 196 |
+
get_filename_component(COMPILER_BASENAME "${CMAKE_CXX_COMPILER}" NAME)
|
| 197 |
+
if (COMPILER_BASENAME MATCHES "^(.+)?cl([^.]+)?(\\.exe)?$")
|
| 198 |
+
set(_CMAKE_TOOLCHAIN_PREFIX "${CMAKE_MATCH_1}")
|
| 199 |
+
set(_CMAKE_TOOLCHAIN_SUFFIX "${CMAKE_MATCH_2}")
|
| 200 |
+
endif ()
|
| 201 |
+
|
| 202 |
+
endif()
|
| 203 |
+
|
| 204 |
+
endif ()
|
| 205 |
+
|
| 206 |
+
set(_CMAKE_PROCESSING_LANGUAGE "CXX")
|
| 207 |
+
include(CMakeFindBinUtils)
|
| 208 |
+
include(Compiler/${CMAKE_CXX_COMPILER_ID}-FindBinUtils OPTIONAL)
|
| 209 |
+
unset(_CMAKE_PROCESSING_LANGUAGE)
|
| 210 |
+
|
| 211 |
+
if(CMAKE_CXX_COMPILER_SYSROOT)
|
| 212 |
+
string(CONCAT _SET_CMAKE_CXX_COMPILER_SYSROOT
|
| 213 |
+
"set(CMAKE_CXX_COMPILER_SYSROOT \"${CMAKE_CXX_COMPILER_SYSROOT}\")\n"
|
| 214 |
+
"set(CMAKE_COMPILER_SYSROOT \"${CMAKE_CXX_COMPILER_SYSROOT}\")")
|
| 215 |
+
else()
|
| 216 |
+
set(_SET_CMAKE_CXX_COMPILER_SYSROOT "")
|
| 217 |
+
endif()
|
| 218 |
+
|
| 219 |
+
if(CMAKE_CXX_COMPILER_ARCHITECTURE_ID)
|
| 220 |
+
set(_SET_CMAKE_CXX_COMPILER_ARCHITECTURE_ID
|
| 221 |
+
"set(CMAKE_CXX_COMPILER_ARCHITECTURE_ID ${CMAKE_CXX_COMPILER_ARCHITECTURE_ID})")
|
| 222 |
+
else()
|
| 223 |
+
set(_SET_CMAKE_CXX_COMPILER_ARCHITECTURE_ID "")
|
| 224 |
+
endif()
|
| 225 |
+
|
| 226 |
+
if(MSVC_CXX_ARCHITECTURE_ID)
|
| 227 |
+
set(SET_MSVC_CXX_ARCHITECTURE_ID
|
| 228 |
+
"set(MSVC_CXX_ARCHITECTURE_ID ${MSVC_CXX_ARCHITECTURE_ID})")
|
| 229 |
+
endif()
|
| 230 |
+
|
| 231 |
+
if(CMAKE_CXX_XCODE_ARCHS)
|
| 232 |
+
set(SET_CMAKE_XCODE_ARCHS
|
| 233 |
+
"set(CMAKE_XCODE_ARCHS \"${CMAKE_CXX_XCODE_ARCHS}\")")
|
| 234 |
+
endif()
|
| 235 |
+
|
| 236 |
+
# configure all variables set in this file
|
| 237 |
+
configure_file(${CMAKE_ROOT}/Modules/CMakeCXXCompiler.cmake.in
|
| 238 |
+
${CMAKE_PLATFORM_INFO_DIR}/CMakeCXXCompiler.cmake
|
| 239 |
+
@ONLY
|
| 240 |
+
)
|
| 241 |
+
|
| 242 |
+
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeFindWMake.cmake
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
set (CMAKE_MAKE_PROGRAM "wmake" CACHE STRING
|
| 6 |
+
"Program used to build from makefiles.")
|
| 7 |
+
mark_as_advanced(CMAKE_MAKE_PROGRAM)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeForceCompiler.cmake
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
CMakeForceCompiler
|
| 6 |
+
------------------
|
| 7 |
+
|
| 8 |
+
.. deprecated:: 3.6
|
| 9 |
+
|
| 10 |
+
Do not use.
|
| 11 |
+
|
| 12 |
+
The macros provided by this module were once intended for use by
|
| 13 |
+
cross-compiling toolchain files when CMake was not able to automatically
|
| 14 |
+
detect the compiler identification. Since the introduction of this module,
|
| 15 |
+
CMake's compiler identification capabilities have improved and can now be
|
| 16 |
+
taught to recognize any compiler. Furthermore, the suite of information
|
| 17 |
+
CMake detects from a compiler is now too extensive to be provided by
|
| 18 |
+
toolchain files using these macros.
|
| 19 |
+
|
| 20 |
+
One common use case for this module was to skip CMake's checks for a
|
| 21 |
+
working compiler when using a cross-compiler that cannot link binaries
|
| 22 |
+
without special flags or custom linker scripts. This case is now supported
|
| 23 |
+
by setting the :variable:`CMAKE_TRY_COMPILE_TARGET_TYPE` variable in the
|
| 24 |
+
toolchain file instead.
|
| 25 |
+
|
| 26 |
+
-------------------------------------------------------------------------
|
| 27 |
+
|
| 28 |
+
Macro ``CMAKE_FORCE_C_COMPILER`` has the following signature:
|
| 29 |
+
|
| 30 |
+
::
|
| 31 |
+
|
| 32 |
+
CMAKE_FORCE_C_COMPILER(<compiler> <compiler-id>)
|
| 33 |
+
|
| 34 |
+
It sets :variable:`CMAKE_C_COMPILER <CMAKE_<LANG>_COMPILER>` to
|
| 35 |
+
the given compiler and the cmake internal variable
|
| 36 |
+
:variable:`CMAKE_C_COMPILER_ID <CMAKE_<LANG>_COMPILER_ID>` to the given
|
| 37 |
+
compiler-id. It also bypasses the check for working compiler and basic
|
| 38 |
+
compiler information tests.
|
| 39 |
+
|
| 40 |
+
Macro ``CMAKE_FORCE_CXX_COMPILER`` has the following signature:
|
| 41 |
+
|
| 42 |
+
::
|
| 43 |
+
|
| 44 |
+
CMAKE_FORCE_CXX_COMPILER(<compiler> <compiler-id>)
|
| 45 |
+
|
| 46 |
+
It sets :variable:`CMAKE_CXX_COMPILER <CMAKE_<LANG>_COMPILER>` to
|
| 47 |
+
the given compiler and the cmake internal variable
|
| 48 |
+
:variable:`CMAKE_CXX_COMPILER_ID <CMAKE_<LANG>_COMPILER_ID>` to the given
|
| 49 |
+
compiler-id. It also bypasses the check for working compiler and basic
|
| 50 |
+
compiler information tests.
|
| 51 |
+
|
| 52 |
+
Macro ``CMAKE_FORCE_Fortran_COMPILER`` has the following signature:
|
| 53 |
+
|
| 54 |
+
::
|
| 55 |
+
|
| 56 |
+
CMAKE_FORCE_Fortran_COMPILER(<compiler> <compiler-id>)
|
| 57 |
+
|
| 58 |
+
It sets :variable:`CMAKE_Fortran_COMPILER <CMAKE_<LANG>_COMPILER>` to
|
| 59 |
+
the given compiler and the cmake internal variable
|
| 60 |
+
:variable:`CMAKE_Fortran_COMPILER_ID <CMAKE_<LANG>_COMPILER_ID>` to the given
|
| 61 |
+
compiler-id. It also bypasses the check for working compiler and basic
|
| 62 |
+
compiler information tests.
|
| 63 |
+
|
| 64 |
+
So a simple toolchain file could look like this:
|
| 65 |
+
|
| 66 |
+
::
|
| 67 |
+
|
| 68 |
+
include (CMakeForceCompiler)
|
| 69 |
+
set(CMAKE_SYSTEM_NAME Generic)
|
| 70 |
+
CMAKE_FORCE_C_COMPILER (chc12 MetrowerksHicross)
|
| 71 |
+
CMAKE_FORCE_CXX_COMPILER (chc12 MetrowerksHicross)
|
| 72 |
+
#]=======================================================================]
|
| 73 |
+
|
| 74 |
+
macro(CMAKE_FORCE_C_COMPILER compiler id)
|
| 75 |
+
message(DEPRECATION "The CMAKE_FORCE_C_COMPILER macro is deprecated. "
|
| 76 |
+
"Instead just set CMAKE_C_COMPILER and allow CMake to identify the compiler.")
|
| 77 |
+
set(CMAKE_C_COMPILER "${compiler}")
|
| 78 |
+
set(CMAKE_C_COMPILER_ID_RUN TRUE)
|
| 79 |
+
set(CMAKE_C_COMPILER_ID ${id})
|
| 80 |
+
set(CMAKE_C_COMPILER_FORCED TRUE)
|
| 81 |
+
|
| 82 |
+
# Set old compiler id variables.
|
| 83 |
+
if(CMAKE_C_COMPILER_ID MATCHES "GNU")
|
| 84 |
+
set(CMAKE_COMPILER_IS_GNUCC 1)
|
| 85 |
+
endif()
|
| 86 |
+
endmacro()
|
| 87 |
+
|
| 88 |
+
macro(CMAKE_FORCE_CXX_COMPILER compiler id)
|
| 89 |
+
message(DEPRECATION "The CMAKE_FORCE_CXX_COMPILER macro is deprecated. "
|
| 90 |
+
"Instead just set CMAKE_CXX_COMPILER and allow CMake to identify the compiler.")
|
| 91 |
+
set(CMAKE_CXX_COMPILER "${compiler}")
|
| 92 |
+
set(CMAKE_CXX_COMPILER_ID_RUN TRUE)
|
| 93 |
+
set(CMAKE_CXX_COMPILER_ID ${id})
|
| 94 |
+
set(CMAKE_CXX_COMPILER_FORCED TRUE)
|
| 95 |
+
|
| 96 |
+
# Set old compiler id variables.
|
| 97 |
+
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
| 98 |
+
set(CMAKE_COMPILER_IS_GNUCXX 1)
|
| 99 |
+
endif()
|
| 100 |
+
endmacro()
|
| 101 |
+
|
| 102 |
+
macro(CMAKE_FORCE_Fortran_COMPILER compiler id)
|
| 103 |
+
message(DEPRECATION "The CMAKE_FORCE_Fortran_COMPILER macro is deprecated. "
|
| 104 |
+
"Instead just set CMAKE_Fortran_COMPILER and allow CMake to identify the compiler.")
|
| 105 |
+
set(CMAKE_Fortran_COMPILER "${compiler}")
|
| 106 |
+
set(CMAKE_Fortran_COMPILER_ID_RUN TRUE)
|
| 107 |
+
set(CMAKE_Fortran_COMPILER_ID ${id})
|
| 108 |
+
set(CMAKE_Fortran_COMPILER_FORCED TRUE)
|
| 109 |
+
|
| 110 |
+
# Set old compiler id variables.
|
| 111 |
+
if(CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
|
| 112 |
+
set(CMAKE_COMPILER_IS_GNUG77 1)
|
| 113 |
+
endif()
|
| 114 |
+
endmacro()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeGraphVizOptions.cmake
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
CMakeGraphVizOptions
|
| 6 |
+
--------------------
|
| 7 |
+
|
| 8 |
+
The builtin Graphviz support of CMake.
|
| 9 |
+
|
| 10 |
+
Generating Graphviz files
|
| 11 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 12 |
+
|
| 13 |
+
CMake can generate `Graphviz <https://www.graphviz.org/>`_ files showing the
|
| 14 |
+
dependencies between the targets in a project, as well as external libraries
|
| 15 |
+
which are linked against.
|
| 16 |
+
|
| 17 |
+
When running CMake with the ``--graphviz=foo.dot`` option, it produces:
|
| 18 |
+
|
| 19 |
+
* a ``foo.dot`` file, showing all dependencies in the project
|
| 20 |
+
* a ``foo.dot.<target>`` file for each target, showing on which other targets
|
| 21 |
+
it depends
|
| 22 |
+
* a ``foo.dot.<target>.dependers`` file for each target, showing which other
|
| 23 |
+
targets depend on it
|
| 24 |
+
|
| 25 |
+
Those .dot files can be converted to images using the *dot* command from the
|
| 26 |
+
Graphviz package:
|
| 27 |
+
|
| 28 |
+
.. code-block:: shell
|
| 29 |
+
|
| 30 |
+
dot -Tpng -o foo.png foo.dot
|
| 31 |
+
|
| 32 |
+
.. versionadded:: 3.10
|
| 33 |
+
The different dependency types ``PUBLIC``, ``INTERFACE`` and ``PRIVATE``
|
| 34 |
+
are represented as solid, dashed and dotted edges.
|
| 35 |
+
|
| 36 |
+
Variables specific to the Graphviz support
|
| 37 |
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
| 38 |
+
|
| 39 |
+
The resulting graphs can be huge. The look and content of the generated graphs
|
| 40 |
+
can be controlled using the file ``CMakeGraphVizOptions.cmake``. This file is
|
| 41 |
+
first searched in :variable:`CMAKE_BINARY_DIR`, and then in
|
| 42 |
+
:variable:`CMAKE_SOURCE_DIR`. If found, the variables set in it are used to
|
| 43 |
+
adjust options for the generated Graphviz files.
|
| 44 |
+
|
| 45 |
+
.. variable:: GRAPHVIZ_GRAPH_NAME
|
| 46 |
+
|
| 47 |
+
The graph name.
|
| 48 |
+
|
| 49 |
+
* Mandatory: NO
|
| 50 |
+
* Default: value of :variable:`CMAKE_PROJECT_NAME`
|
| 51 |
+
|
| 52 |
+
.. variable:: GRAPHVIZ_GRAPH_HEADER
|
| 53 |
+
|
| 54 |
+
The header written at the top of the Graphviz files.
|
| 55 |
+
|
| 56 |
+
* Mandatory: NO
|
| 57 |
+
* Default: "node [ fontsize = "12" ];"
|
| 58 |
+
|
| 59 |
+
.. variable:: GRAPHVIZ_NODE_PREFIX
|
| 60 |
+
|
| 61 |
+
The prefix for each node in the Graphviz files.
|
| 62 |
+
|
| 63 |
+
* Mandatory: NO
|
| 64 |
+
* Default: "node"
|
| 65 |
+
|
| 66 |
+
.. variable:: GRAPHVIZ_EXECUTABLES
|
| 67 |
+
|
| 68 |
+
Set to FALSE to exclude executables from the generated graphs.
|
| 69 |
+
|
| 70 |
+
* Mandatory: NO
|
| 71 |
+
* Default: TRUE
|
| 72 |
+
|
| 73 |
+
.. variable:: GRAPHVIZ_STATIC_LIBS
|
| 74 |
+
|
| 75 |
+
Set to FALSE to exclude static libraries from the generated graphs.
|
| 76 |
+
|
| 77 |
+
* Mandatory: NO
|
| 78 |
+
* Default: TRUE
|
| 79 |
+
|
| 80 |
+
.. variable:: GRAPHVIZ_SHARED_LIBS
|
| 81 |
+
|
| 82 |
+
Set to FALSE to exclude shared libraries from the generated graphs.
|
| 83 |
+
|
| 84 |
+
* Mandatory: NO
|
| 85 |
+
* Default: TRUE
|
| 86 |
+
|
| 87 |
+
.. variable:: GRAPHVIZ_MODULE_LIBS
|
| 88 |
+
|
| 89 |
+
Set to FALSE to exclude module libraries from the generated graphs.
|
| 90 |
+
|
| 91 |
+
* Mandatory: NO
|
| 92 |
+
* Default: TRUE
|
| 93 |
+
|
| 94 |
+
.. variable:: GRAPHVIZ_INTERFACE_LIBS
|
| 95 |
+
|
| 96 |
+
Set to FALSE to exclude interface libraries from the generated graphs.
|
| 97 |
+
|
| 98 |
+
* Mandatory: NO
|
| 99 |
+
* Default: TRUE
|
| 100 |
+
|
| 101 |
+
.. variable:: GRAPHVIZ_OBJECT_LIBS
|
| 102 |
+
|
| 103 |
+
Set to FALSE to exclude object libraries from the generated graphs.
|
| 104 |
+
|
| 105 |
+
* Mandatory: NO
|
| 106 |
+
* Default: TRUE
|
| 107 |
+
|
| 108 |
+
.. variable:: GRAPHVIZ_UNKNOWN_LIBS
|
| 109 |
+
|
| 110 |
+
Set to FALSE to exclude unknown libraries from the generated graphs.
|
| 111 |
+
|
| 112 |
+
* Mandatory: NO
|
| 113 |
+
* Default: TRUE
|
| 114 |
+
|
| 115 |
+
.. variable:: GRAPHVIZ_EXTERNAL_LIBS
|
| 116 |
+
|
| 117 |
+
Set to FALSE to exclude external libraries from the generated graphs.
|
| 118 |
+
|
| 119 |
+
* Mandatory: NO
|
| 120 |
+
* Default: TRUE
|
| 121 |
+
|
| 122 |
+
.. variable:: GRAPHVIZ_CUSTOM_TARGETS
|
| 123 |
+
|
| 124 |
+
Set to TRUE to include custom targets in the generated graphs.
|
| 125 |
+
|
| 126 |
+
* Mandatory: NO
|
| 127 |
+
* Default: FALSE
|
| 128 |
+
|
| 129 |
+
.. variable:: GRAPHVIZ_IGNORE_TARGETS
|
| 130 |
+
|
| 131 |
+
A list of regular expressions for names of targets to exclude from the
|
| 132 |
+
generated graphs.
|
| 133 |
+
|
| 134 |
+
* Mandatory: NO
|
| 135 |
+
* Default: empty
|
| 136 |
+
|
| 137 |
+
.. variable:: GRAPHVIZ_GENERATE_PER_TARGET
|
| 138 |
+
|
| 139 |
+
Set to FALSE to not generate per-target graphs ``foo.dot.<target>``.
|
| 140 |
+
|
| 141 |
+
* Mandatory: NO
|
| 142 |
+
* Default: TRUE
|
| 143 |
+
|
| 144 |
+
.. variable:: GRAPHVIZ_GENERATE_DEPENDERS
|
| 145 |
+
|
| 146 |
+
Set to FALSE to not generate depender graphs ``foo.dot.<target>.dependers``.
|
| 147 |
+
|
| 148 |
+
* Mandatory: NO
|
| 149 |
+
* Default: TRUE
|
| 150 |
+
#]=======================================================================]
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeISPCInformation.cmake
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
if(UNIX)
|
| 5 |
+
set(CMAKE_ISPC_OUTPUT_EXTENSION .o)
|
| 6 |
+
else()
|
| 7 |
+
set(CMAKE_ISPC_OUTPUT_EXTENSION .obj)
|
| 8 |
+
endif()
|
| 9 |
+
set(CMAKE_INCLUDE_FLAG_ISPC "-I")
|
| 10 |
+
|
| 11 |
+
# Load compiler-specific information.
|
| 12 |
+
if(CMAKE_ISPC_COMPILER_ID)
|
| 13 |
+
include(Compiler/${CMAKE_ISPC_COMPILER_ID}-ISPC OPTIONAL)
|
| 14 |
+
endif()
|
| 15 |
+
|
| 16 |
+
# load the system- and compiler specific files
|
| 17 |
+
if(CMAKE_ISPC_COMPILER_ID)
|
| 18 |
+
# load a hardware specific file, mostly useful for embedded compilers
|
| 19 |
+
if(CMAKE_SYSTEM_PROCESSOR)
|
| 20 |
+
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_ISPC_COMPILER_ID}-ISPC-${CMAKE_SYSTEM_PROCESSOR} OPTIONAL)
|
| 21 |
+
endif()
|
| 22 |
+
include(Platform/${CMAKE_EFFECTIVE_SYSTEM_NAME}-${CMAKE_ISPC_COMPILER_ID}-ISPC OPTIONAL)
|
| 23 |
+
endif()
|
| 24 |
+
|
| 25 |
+
# add the flags to the cache based
|
| 26 |
+
# on the initial values computed in the platform/*.cmake files
|
| 27 |
+
# use _INIT variables so that this only happens the first time
|
| 28 |
+
# and you can set these flags in the cmake cache
|
| 29 |
+
set(CMAKE_ISPC_FLAGS_INIT "$ENV{ISPCFLAGS} ${CMAKE_ISPC_FLAGS_INIT}")
|
| 30 |
+
|
| 31 |
+
cmake_initialize_per_config_variable(CMAKE_ISPC_FLAGS "Flags used by the ISPC compiler")
|
| 32 |
+
|
| 33 |
+
if(CMAKE_ISPC_STANDARD_LIBRARIES_INIT)
|
| 34 |
+
set(CMAKE_ISPC_STANDARD_LIBRARIES "${CMAKE_ISPC_STANDARD_LIBRARIES_INIT}"
|
| 35 |
+
CACHE STRING "Libraries linked by default with all ISPC applications.")
|
| 36 |
+
mark_as_advanced(CMAKE_ISPC_STANDARD_LIBRARIES)
|
| 37 |
+
endif()
|
| 38 |
+
|
| 39 |
+
if(NOT CMAKE_ISPC_COMPILER_LAUNCHER AND DEFINED ENV{CMAKE_ISPC_COMPILER_LAUNCHER})
|
| 40 |
+
set(CMAKE_ISPC_COMPILER_LAUNCHER "$ENV{CMAKE_ISPC_COMPILER_LAUNCHER}"
|
| 41 |
+
CACHE STRING "Compiler launcher for ISPC.")
|
| 42 |
+
endif()
|
| 43 |
+
|
| 44 |
+
include(CMakeCommonLanguageInclude)
|
| 45 |
+
|
| 46 |
+
# now define the following rules:
|
| 47 |
+
# CMAKE_ISPC_COMPILE_OBJECT
|
| 48 |
+
|
| 49 |
+
# Create a static archive incrementally for large object file counts.
|
| 50 |
+
if(NOT DEFINED CMAKE_ISPC_ARCHIVE_CREATE)
|
| 51 |
+
set(CMAKE_ISPC_ARCHIVE_CREATE "<CMAKE_AR> qc <TARGET> <LINK_FLAGS> <OBJECTS>")
|
| 52 |
+
endif()
|
| 53 |
+
if(NOT DEFINED CMAKE_ISPC_ARCHIVE_APPEND)
|
| 54 |
+
set(CMAKE_ISPC_ARCHIVE_APPEND "<CMAKE_AR> q <TARGET> <LINK_FLAGS> <OBJECTS>")
|
| 55 |
+
endif()
|
| 56 |
+
if(NOT DEFINED CMAKE_ISPC_ARCHIVE_FINISH)
|
| 57 |
+
set(CMAKE_ISPC_ARCHIVE_FINISH "<CMAKE_RANLIB> <TARGET>")
|
| 58 |
+
endif()
|
| 59 |
+
|
| 60 |
+
if(NOT CMAKE_ISPC_COMPILE_OBJECT)
|
| 61 |
+
set(CMAKE_ISPC_COMPILE_OBJECT
|
| 62 |
+
"<CMAKE_ISPC_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> --emit-obj <SOURCE> -h <ISPC_HEADER>")
|
| 63 |
+
endif()
|
| 64 |
+
|
| 65 |
+
set(CMAKE_ISPC_USE_LINKER_INFORMATION FALSE)
|
| 66 |
+
|
| 67 |
+
set(CMAKE_ISPC_INFORMATION_LOADED 1)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeImportBuildSettings.cmake
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# This module is purposely no longer documented. It does nothing useful.
|
| 6 |
+
|
| 7 |
+
# This macro used to load build settings from another project that
|
| 8 |
+
# stored settings using the CMAKE_EXPORT_BUILD_SETTINGS macro.
|
| 9 |
+
macro(CMAKE_IMPORT_BUILD_SETTINGS SETTINGS_FILE)
|
| 10 |
+
if("${SETTINGS_FILE}" STREQUAL "")
|
| 11 |
+
message(SEND_ERROR "CMAKE_IMPORT_BUILD_SETTINGS called with no argument.")
|
| 12 |
+
endif()
|
| 13 |
+
endmacro()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeOBJCCompilerABI.m
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifdef __cplusplus
|
| 2 |
+
# error "A C++ compiler has been selected for Objective-C."
|
| 3 |
+
#endif
|
| 4 |
+
|
| 5 |
+
/*--------------------------------------------------------------------------*/
|
| 6 |
+
|
| 7 |
+
#include "CMakeCompilerABI.h"
|
| 8 |
+
|
| 9 |
+
/*--------------------------------------------------------------------------*/
|
| 10 |
+
|
| 11 |
+
int main(int argc, char *argv[])
|
| 12 |
+
{
|
| 13 |
+
int require = 0;
|
| 14 |
+
require += info_sizeof_dptr[argc];
|
| 15 |
+
require += info_byte_order_big_endian[argc];
|
| 16 |
+
require += info_byte_order_little_endian[argc];
|
| 17 |
+
#if defined(ABI_ID)
|
| 18 |
+
require += info_abi[argc];
|
| 19 |
+
#endif
|
| 20 |
+
(void)argv;
|
| 21 |
+
return require;
|
| 22 |
+
}
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakePlatformId.h.in
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ux__) || defined(linux)
|
| 6 |
+
# define PLATFORM_ID "Linux"
|
| 7 |
+
|
| 8 |
+
#elif defined(__MSYS__)
|
| 9 |
+
# define PLATFORM_ID "MSYS"
|
| 10 |
+
|
| 11 |
+
#elif defined(__CYGWIN__)
|
| 12 |
+
# define PLATFORM_ID "Cygwin"
|
| 13 |
+
|
| 14 |
+
#elif defined(__MINGW32__)
|
| 15 |
+
# define PLATFORM_ID "MinGW"
|
| 16 |
+
|
| 17 |
+
#elif defined(__APPLE__)
|
| 18 |
+
# define PLATFORM_ID "Darwin"
|
| 19 |
+
|
| 20 |
+
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
| 21 |
+
# define PLATFORM_ID "Windows"
|
| 22 |
+
|
| 23 |
+
#elif defined(__FreeBSD__) || defined(__FreeBSD)
|
| 24 |
+
# define PLATFORM_ID "FreeBSD"
|
| 25 |
+
|
| 26 |
+
#elif defined(__NetBSD__) || defined(__NetBSD)
|
| 27 |
+
# define PLATFORM_ID "NetBSD"
|
| 28 |
+
|
| 29 |
+
#elif defined(__OpenBSD__) || defined(__OPENBSD)
|
| 30 |
+
# define PLATFORM_ID "OpenBSD"
|
| 31 |
+
|
| 32 |
+
#elif defined(__sun) || defined(sun)
|
| 33 |
+
# define PLATFORM_ID "SunOS"
|
| 34 |
+
|
| 35 |
+
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
|
| 36 |
+
# define PLATFORM_ID "AIX"
|
| 37 |
+
|
| 38 |
+
#elif defined(__hpux) || defined(__hpux__)
|
| 39 |
+
# define PLATFORM_ID "HP-UX"
|
| 40 |
+
|
| 41 |
+
#elif defined(__HAIKU__)
|
| 42 |
+
# define PLATFORM_ID "Haiku"
|
| 43 |
+
|
| 44 |
+
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
| 45 |
+
# define PLATFORM_ID "BeOS"
|
| 46 |
+
|
| 47 |
+
#elif defined(__QNX__) || defined(__QNXNTO__)
|
| 48 |
+
# define PLATFORM_ID "QNX"
|
| 49 |
+
|
| 50 |
+
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
|
| 51 |
+
# define PLATFORM_ID "Tru64"
|
| 52 |
+
|
| 53 |
+
#elif defined(__riscos) || defined(__riscos__)
|
| 54 |
+
# define PLATFORM_ID "RISCos"
|
| 55 |
+
|
| 56 |
+
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
|
| 57 |
+
# define PLATFORM_ID "SINIX"
|
| 58 |
+
|
| 59 |
+
#elif defined(__UNIX_SV__)
|
| 60 |
+
# define PLATFORM_ID "UNIX_SV"
|
| 61 |
+
|
| 62 |
+
#elif defined(__bsdos__)
|
| 63 |
+
# define PLATFORM_ID "BSDOS"
|
| 64 |
+
|
| 65 |
+
#elif defined(_MPRAS) || defined(MPRAS)
|
| 66 |
+
# define PLATFORM_ID "MP-RAS"
|
| 67 |
+
|
| 68 |
+
#elif defined(__osf) || defined(__osf__)
|
| 69 |
+
# define PLATFORM_ID "OSF1"
|
| 70 |
+
|
| 71 |
+
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
|
| 72 |
+
# define PLATFORM_ID "SCO_SV"
|
| 73 |
+
|
| 74 |
+
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
|
| 75 |
+
# define PLATFORM_ID "ULTRIX"
|
| 76 |
+
|
| 77 |
+
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
|
| 78 |
+
# define PLATFORM_ID "Xenix"
|
| 79 |
+
|
| 80 |
+
#elif defined(__WATCOMC__)
|
| 81 |
+
# if defined(__LINUX__)
|
| 82 |
+
# define PLATFORM_ID "Linux"
|
| 83 |
+
|
| 84 |
+
# elif defined(__DOS__)
|
| 85 |
+
# define PLATFORM_ID "DOS"
|
| 86 |
+
|
| 87 |
+
# elif defined(__OS2__)
|
| 88 |
+
# define PLATFORM_ID "OS2"
|
| 89 |
+
|
| 90 |
+
# elif defined(__WINDOWS__)
|
| 91 |
+
# define PLATFORM_ID "Windows3x"
|
| 92 |
+
|
| 93 |
+
# elif defined(__VXWORKS__)
|
| 94 |
+
# define PLATFORM_ID "VxWorks"
|
| 95 |
+
|
| 96 |
+
# else /* unknown platform */
|
| 97 |
+
# define PLATFORM_ID
|
| 98 |
+
# endif
|
| 99 |
+
|
| 100 |
+
#elif defined(__INTEGRITY)
|
| 101 |
+
# if defined(INT_178B)
|
| 102 |
+
# define PLATFORM_ID "Integrity178"
|
| 103 |
+
|
| 104 |
+
# else /* regular Integrity */
|
| 105 |
+
# define PLATFORM_ID "Integrity"
|
| 106 |
+
# endif
|
| 107 |
+
|
| 108 |
+
# elif defined(_ADI_COMPILER)
|
| 109 |
+
# define PLATFORM_ID "ADSP"
|
| 110 |
+
|
| 111 |
+
#else /* unknown platform */
|
| 112 |
+
# define PLATFORM_ID
|
| 113 |
+
|
| 114 |
+
#endif
|
| 115 |
+
|
| 116 |
+
/* For windows compilers MSVC and Intel we can determine
|
| 117 |
+
the architecture of the compiler being used. This is because
|
| 118 |
+
the compilers do not have flags that can change the architecture,
|
| 119 |
+
but rather depend on which compiler is being used
|
| 120 |
+
*/
|
| 121 |
+
#if defined(_WIN32) && defined(_MSC_VER)
|
| 122 |
+
# if defined(_M_IA64)
|
| 123 |
+
# define ARCHITECTURE_ID "IA64"
|
| 124 |
+
|
| 125 |
+
# elif defined(_M_ARM64EC)
|
| 126 |
+
# define ARCHITECTURE_ID "ARM64EC"
|
| 127 |
+
|
| 128 |
+
# elif defined(_M_X64) || defined(_M_AMD64)
|
| 129 |
+
# define ARCHITECTURE_ID "x64"
|
| 130 |
+
|
| 131 |
+
# elif defined(_M_IX86)
|
| 132 |
+
# define ARCHITECTURE_ID "X86"
|
| 133 |
+
|
| 134 |
+
# elif defined(_M_ARM64)
|
| 135 |
+
# define ARCHITECTURE_ID "ARM64"
|
| 136 |
+
|
| 137 |
+
# elif defined(_M_ARM)
|
| 138 |
+
# if _M_ARM == 4
|
| 139 |
+
# define ARCHITECTURE_ID "ARMV4I"
|
| 140 |
+
# elif _M_ARM == 5
|
| 141 |
+
# define ARCHITECTURE_ID "ARMV5I"
|
| 142 |
+
# else
|
| 143 |
+
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
|
| 144 |
+
# endif
|
| 145 |
+
|
| 146 |
+
# elif defined(_M_MIPS)
|
| 147 |
+
# define ARCHITECTURE_ID "MIPS"
|
| 148 |
+
|
| 149 |
+
# elif defined(_M_SH)
|
| 150 |
+
# define ARCHITECTURE_ID "SHx"
|
| 151 |
+
|
| 152 |
+
# else /* unknown architecture */
|
| 153 |
+
# define ARCHITECTURE_ID ""
|
| 154 |
+
# endif
|
| 155 |
+
|
| 156 |
+
#elif defined(__WATCOMC__)
|
| 157 |
+
# if defined(_M_I86)
|
| 158 |
+
# define ARCHITECTURE_ID "I86"
|
| 159 |
+
|
| 160 |
+
# elif defined(_M_IX86)
|
| 161 |
+
# define ARCHITECTURE_ID "X86"
|
| 162 |
+
|
| 163 |
+
# else /* unknown architecture */
|
| 164 |
+
# define ARCHITECTURE_ID ""
|
| 165 |
+
# endif
|
| 166 |
+
|
| 167 |
+
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
| 168 |
+
# if defined(__ICCARM__)
|
| 169 |
+
# define ARCHITECTURE_ID "ARM"
|
| 170 |
+
|
| 171 |
+
# elif defined(__ICCRX__)
|
| 172 |
+
# define ARCHITECTURE_ID "RX"
|
| 173 |
+
|
| 174 |
+
# elif defined(__ICCRH850__)
|
| 175 |
+
# define ARCHITECTURE_ID "RH850"
|
| 176 |
+
|
| 177 |
+
# elif defined(__ICCRL78__)
|
| 178 |
+
# define ARCHITECTURE_ID "RL78"
|
| 179 |
+
|
| 180 |
+
# elif defined(__ICCRISCV__)
|
| 181 |
+
# define ARCHITECTURE_ID "RISCV"
|
| 182 |
+
|
| 183 |
+
# elif defined(__ICCAVR__)
|
| 184 |
+
# define ARCHITECTURE_ID "AVR"
|
| 185 |
+
|
| 186 |
+
# elif defined(__ICC430__)
|
| 187 |
+
# define ARCHITECTURE_ID "MSP430"
|
| 188 |
+
|
| 189 |
+
# elif defined(__ICCV850__)
|
| 190 |
+
# define ARCHITECTURE_ID "V850"
|
| 191 |
+
|
| 192 |
+
# elif defined(__ICC8051__)
|
| 193 |
+
# define ARCHITECTURE_ID "8051"
|
| 194 |
+
|
| 195 |
+
# elif defined(__ICCSTM8__)
|
| 196 |
+
# define ARCHITECTURE_ID "STM8"
|
| 197 |
+
|
| 198 |
+
# else /* unknown architecture */
|
| 199 |
+
# define ARCHITECTURE_ID ""
|
| 200 |
+
# endif
|
| 201 |
+
|
| 202 |
+
#elif defined(__ghs__)
|
| 203 |
+
# if defined(__PPC64__)
|
| 204 |
+
# define ARCHITECTURE_ID "PPC64"
|
| 205 |
+
|
| 206 |
+
# elif defined(__ppc__)
|
| 207 |
+
# define ARCHITECTURE_ID "PPC"
|
| 208 |
+
|
| 209 |
+
# elif defined(__ARM__)
|
| 210 |
+
# define ARCHITECTURE_ID "ARM"
|
| 211 |
+
|
| 212 |
+
# elif defined(__x86_64__)
|
| 213 |
+
# define ARCHITECTURE_ID "x64"
|
| 214 |
+
|
| 215 |
+
# elif defined(__i386__)
|
| 216 |
+
# define ARCHITECTURE_ID "X86"
|
| 217 |
+
|
| 218 |
+
# else /* unknown architecture */
|
| 219 |
+
# define ARCHITECTURE_ID ""
|
| 220 |
+
# endif
|
| 221 |
+
|
| 222 |
+
#elif defined(__clang__) && defined(__ti__)
|
| 223 |
+
# if defined(__ARM_ARCH)
|
| 224 |
+
# define ARCHITECTURE_ID "Arm"
|
| 225 |
+
|
| 226 |
+
# else /* unknown architecture */
|
| 227 |
+
# define ARCHITECTURE_ID ""
|
| 228 |
+
# endif
|
| 229 |
+
|
| 230 |
+
#elif defined(__TI_COMPILER_VERSION__)
|
| 231 |
+
# if defined(__TI_ARM__)
|
| 232 |
+
# define ARCHITECTURE_ID "ARM"
|
| 233 |
+
|
| 234 |
+
# elif defined(__MSP430__)
|
| 235 |
+
# define ARCHITECTURE_ID "MSP430"
|
| 236 |
+
|
| 237 |
+
# elif defined(__TMS320C28XX__)
|
| 238 |
+
# define ARCHITECTURE_ID "TMS320C28x"
|
| 239 |
+
|
| 240 |
+
# elif defined(__TMS320C6X__) || defined(_TMS320C6X)
|
| 241 |
+
# define ARCHITECTURE_ID "TMS320C6x"
|
| 242 |
+
|
| 243 |
+
# else /* unknown architecture */
|
| 244 |
+
# define ARCHITECTURE_ID ""
|
| 245 |
+
# endif
|
| 246 |
+
|
| 247 |
+
# elif defined(__ADSPSHARC__)
|
| 248 |
+
# define ARCHITECTURE_ID "SHARC"
|
| 249 |
+
|
| 250 |
+
# elif defined(__ADSPBLACKFIN__)
|
| 251 |
+
# define ARCHITECTURE_ID "Blackfin"
|
| 252 |
+
|
| 253 |
+
#elif defined(__TASKING__)
|
| 254 |
+
|
| 255 |
+
# if defined(__CTC__) || defined(__CPTC__)
|
| 256 |
+
# define ARCHITECTURE_ID "TriCore"
|
| 257 |
+
|
| 258 |
+
# elif defined(__CMCS__)
|
| 259 |
+
# define ARCHITECTURE_ID "MCS"
|
| 260 |
+
|
| 261 |
+
# elif defined(__CARM__)
|
| 262 |
+
# define ARCHITECTURE_ID "ARM"
|
| 263 |
+
|
| 264 |
+
# elif defined(__CARC__)
|
| 265 |
+
# define ARCHITECTURE_ID "ARC"
|
| 266 |
+
|
| 267 |
+
# elif defined(__C51__)
|
| 268 |
+
# define ARCHITECTURE_ID "8051"
|
| 269 |
+
|
| 270 |
+
# elif defined(__CPCP__)
|
| 271 |
+
# define ARCHITECTURE_ID "PCP"
|
| 272 |
+
|
| 273 |
+
# else
|
| 274 |
+
# define ARCHITECTURE_ID ""
|
| 275 |
+
# endif
|
| 276 |
+
|
| 277 |
+
#else
|
| 278 |
+
# define ARCHITECTURE_ID
|
| 279 |
+
#endif
|
| 280 |
+
|
| 281 |
+
/* Convert integer to decimal digit literals. */
|
| 282 |
+
#define DEC(n) \
|
| 283 |
+
('0' + (((n) / 10000000)%10)), \
|
| 284 |
+
('0' + (((n) / 1000000)%10)), \
|
| 285 |
+
('0' + (((n) / 100000)%10)), \
|
| 286 |
+
('0' + (((n) / 10000)%10)), \
|
| 287 |
+
('0' + (((n) / 1000)%10)), \
|
| 288 |
+
('0' + (((n) / 100)%10)), \
|
| 289 |
+
('0' + (((n) / 10)%10)), \
|
| 290 |
+
('0' + ((n) % 10))
|
| 291 |
+
|
| 292 |
+
/* Convert integer to hex digit literals. */
|
| 293 |
+
#define HEX(n) \
|
| 294 |
+
('0' + ((n)>>28 & 0xF)), \
|
| 295 |
+
('0' + ((n)>>24 & 0xF)), \
|
| 296 |
+
('0' + ((n)>>20 & 0xF)), \
|
| 297 |
+
('0' + ((n)>>16 & 0xF)), \
|
| 298 |
+
('0' + ((n)>>12 & 0xF)), \
|
| 299 |
+
('0' + ((n)>>8 & 0xF)), \
|
| 300 |
+
('0' + ((n)>>4 & 0xF)), \
|
| 301 |
+
('0' + ((n) & 0xF))
|
| 302 |
+
|
| 303 |
+
/* Construct a string literal encoding the version number. */
|
| 304 |
+
#ifdef COMPILER_VERSION
|
| 305 |
+
char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
|
| 306 |
+
|
| 307 |
+
/* Construct a string literal encoding the version number components. */
|
| 308 |
+
#elif defined(COMPILER_VERSION_MAJOR)
|
| 309 |
+
char const info_version[] = {
|
| 310 |
+
'I', 'N', 'F', 'O', ':',
|
| 311 |
+
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
|
| 312 |
+
COMPILER_VERSION_MAJOR,
|
| 313 |
+
# ifdef COMPILER_VERSION_MINOR
|
| 314 |
+
'.', COMPILER_VERSION_MINOR,
|
| 315 |
+
# ifdef COMPILER_VERSION_PATCH
|
| 316 |
+
'.', COMPILER_VERSION_PATCH,
|
| 317 |
+
# ifdef COMPILER_VERSION_TWEAK
|
| 318 |
+
'.', COMPILER_VERSION_TWEAK,
|
| 319 |
+
# endif
|
| 320 |
+
# endif
|
| 321 |
+
# endif
|
| 322 |
+
']','\0'};
|
| 323 |
+
#endif
|
| 324 |
+
|
| 325 |
+
/* Construct a string literal encoding the internal version number. */
|
| 326 |
+
#ifdef COMPILER_VERSION_INTERNAL
|
| 327 |
+
char const info_version_internal[] = {
|
| 328 |
+
'I', 'N', 'F', 'O', ':',
|
| 329 |
+
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
|
| 330 |
+
'i','n','t','e','r','n','a','l','[',
|
| 331 |
+
COMPILER_VERSION_INTERNAL,']','\0'};
|
| 332 |
+
#elif defined(COMPILER_VERSION_INTERNAL_STR)
|
| 333 |
+
char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
|
| 334 |
+
#endif
|
| 335 |
+
|
| 336 |
+
/* Construct a string literal encoding the version number components. */
|
| 337 |
+
#ifdef SIMULATE_VERSION_MAJOR
|
| 338 |
+
char const info_simulate_version[] = {
|
| 339 |
+
'I', 'N', 'F', 'O', ':',
|
| 340 |
+
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
|
| 341 |
+
SIMULATE_VERSION_MAJOR,
|
| 342 |
+
# ifdef SIMULATE_VERSION_MINOR
|
| 343 |
+
'.', SIMULATE_VERSION_MINOR,
|
| 344 |
+
# ifdef SIMULATE_VERSION_PATCH
|
| 345 |
+
'.', SIMULATE_VERSION_PATCH,
|
| 346 |
+
# ifdef SIMULATE_VERSION_TWEAK
|
| 347 |
+
'.', SIMULATE_VERSION_TWEAK,
|
| 348 |
+
# endif
|
| 349 |
+
# endif
|
| 350 |
+
# endif
|
| 351 |
+
']','\0'};
|
| 352 |
+
#endif
|
| 353 |
+
|
| 354 |
+
/* Construct the string literal in pieces to prevent the source from
|
| 355 |
+
getting matched. Store it in a pointer rather than an array
|
| 356 |
+
because some compilers will just produce instructions to fill the
|
| 357 |
+
array rather than assigning a pointer to a static array. */
|
| 358 |
+
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
|
| 359 |
+
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeRCInformation.cmake
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# This file sets the basic flags for the Windows Resource Compiler.
|
| 6 |
+
# It also loads the available platform file for the system-compiler
|
| 7 |
+
# if it exists.
|
| 8 |
+
|
| 9 |
+
# make sure we don't use CMAKE_BASE_NAME from somewhere else
|
| 10 |
+
set(CMAKE_BASE_NAME)
|
| 11 |
+
if(CMAKE_RC_COMPILER MATCHES "windres[^/]*$")
|
| 12 |
+
set(CMAKE_BASE_NAME "windres")
|
| 13 |
+
else()
|
| 14 |
+
get_filename_component(CMAKE_BASE_NAME ${CMAKE_RC_COMPILER} NAME_WE)
|
| 15 |
+
endif()
|
| 16 |
+
set(CMAKE_SYSTEM_AND_RC_COMPILER_INFO_FILE
|
| 17 |
+
${CMAKE_ROOT}/Modules/Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME}.cmake)
|
| 18 |
+
include(Platform/${CMAKE_SYSTEM_NAME}-${CMAKE_BASE_NAME} OPTIONAL)
|
| 19 |
+
|
| 20 |
+
# This should be included before the _INIT variables are
|
| 21 |
+
# used to initialize the cache. Since the rule variables
|
| 22 |
+
# have if blocks on them, users can still define them here.
|
| 23 |
+
# But, it should still be after the platform file so changes can
|
| 24 |
+
# be made to those values.
|
| 25 |
+
if(CMAKE_USER_MAKE_RULES_OVERRIDE)
|
| 26 |
+
# Save the full path of the file so try_compile can use it.
|
| 27 |
+
include(${CMAKE_USER_MAKE_RULES_OVERRIDE} RESULT_VARIABLE _override)
|
| 28 |
+
set(CMAKE_USER_MAKE_RULES_OVERRIDE "${_override}")
|
| 29 |
+
endif()
|
| 30 |
+
|
| 31 |
+
set(CMAKE_RC_FLAGS_INIT "$ENV{RCFLAGS} ${CMAKE_RC_FLAGS_INIT}")
|
| 32 |
+
|
| 33 |
+
cmake_initialize_per_config_variable(CMAKE_RC_FLAGS "Flags for Windows Resource Compiler")
|
| 34 |
+
|
| 35 |
+
# These are the only types of flags that should be passed to the rc
|
| 36 |
+
# command, if COMPILE_FLAGS is used on a target this will be used
|
| 37 |
+
# to filter out any other flags
|
| 38 |
+
set(CMAKE_RC_FLAG_REGEX "^[-/](D|I)")
|
| 39 |
+
|
| 40 |
+
# now define the following rule variables
|
| 41 |
+
# CMAKE_RC_COMPILE_OBJECT
|
| 42 |
+
set(CMAKE_INCLUDE_FLAG_RC "-I ")
|
| 43 |
+
# compile a Resource file into an object file
|
| 44 |
+
if(NOT CMAKE_RC_COMPILE_OBJECT)
|
| 45 |
+
set(CMAKE_RC_COMPILE_OBJECT
|
| 46 |
+
"<CMAKE_RC_COMPILER> <DEFINES> <INCLUDES> <FLAGS> /fo <OBJECT> <SOURCE>")
|
| 47 |
+
endif()
|
| 48 |
+
|
| 49 |
+
set(CMAKE_RC_USE_LINKER_INFORMATION FALSE)
|
| 50 |
+
|
| 51 |
+
# set this variable so we can avoid loading this more than once.
|
| 52 |
+
set(CMAKE_RC_INFORMATION_LOADED 1)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeSwiftCompiler.cmake.in
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
set(CMAKE_Swift_COMPILER "@CMAKE_Swift_COMPILER@")
|
| 5 |
+
set(CMAKE_Swift_COMPILER_ID "@CMAKE_Swift_COMPILER_ID@")
|
| 6 |
+
set(CMAKE_Swift_COMPILER_VERSION "@CMAKE_Swift_COMPILER_VERSION@")
|
| 7 |
+
|
| 8 |
+
set(CMAKE_Swift_COMPILER_LOADED 1)
|
| 9 |
+
set(CMAKE_Swift_COMPILER_WORKS "@CMAKE_Swift_COMPILER_WORKS@")
|
| 10 |
+
|
| 11 |
+
set(CMAKE_Swift_COMPILER_ENV_VAR "SWIFTC")
|
| 12 |
+
|
| 13 |
+
set(CMAKE_Swift_COMPILER_ID_RUN 1)
|
| 14 |
+
set(CMAKE_Swift_SOURCE_FILE_EXTENSIONS swift)
|
| 15 |
+
|
| 16 |
+
set(CMAKE_Swift_COMPILER_USE_OLD_DRIVER "@CMAKE_Swift_COMPILER_USE_OLD_DRIVER@")
|
| 17 |
+
|
| 18 |
+
set(CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES "@CMAKE_Swift_IMPLICIT_INCLUDE_DIRECTORIES@")
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeSystemSpecificInformation.cmake
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# This file is included by cmGlobalGenerator::EnableLanguage.
|
| 6 |
+
# It is included after the compiler has been determined, so
|
| 7 |
+
# we know things like the compiler name and if the compiler is gnu.
|
| 8 |
+
|
| 9 |
+
function(_cmake_record_install_prefix )
|
| 10 |
+
set(_CMAKE_SYSTEM_PREFIX_PATH_INSTALL_PREFIX_VALUE "${CMAKE_INSTALL_PREFIX}" PARENT_SCOPE)
|
| 11 |
+
set(_CMAKE_SYSTEM_PREFIX_PATH_STAGING_PREFIX_VALUE "${CMAKE_STAGING_PREFIX}" PARENT_SCOPE)
|
| 12 |
+
set(icount 0)
|
| 13 |
+
set(scount 0)
|
| 14 |
+
foreach(value IN LISTS CMAKE_SYSTEM_PREFIX_PATH)
|
| 15 |
+
if(value STREQUAL CMAKE_INSTALL_PREFIX)
|
| 16 |
+
math(EXPR icount "${icount}+1")
|
| 17 |
+
endif()
|
| 18 |
+
if(value STREQUAL CMAKE_STAGING_PREFIX)
|
| 19 |
+
math(EXPR scount "${scount}+1")
|
| 20 |
+
endif()
|
| 21 |
+
endforeach()
|
| 22 |
+
set(_CMAKE_SYSTEM_PREFIX_PATH_INSTALL_PREFIX_COUNT "${icount}" PARENT_SCOPE)
|
| 23 |
+
set(_CMAKE_SYSTEM_PREFIX_PATH_STAGING_PREFIX_COUNT "${scount}" PARENT_SCOPE)
|
| 24 |
+
endfunction()
|
| 25 |
+
|
| 26 |
+
# include Generic system information
|
| 27 |
+
include(CMakeGenericSystem)
|
| 28 |
+
|
| 29 |
+
# 2. now include SystemName.cmake file to set the system specific information
|
| 30 |
+
set(CMAKE_SYSTEM_INFO_FILE Platform/${CMAKE_SYSTEM_NAME})
|
| 31 |
+
|
| 32 |
+
include(${CMAKE_SYSTEM_INFO_FILE} OPTIONAL RESULT_VARIABLE _INCLUDED_SYSTEM_INFO_FILE)
|
| 33 |
+
|
| 34 |
+
if(NOT _INCLUDED_SYSTEM_INFO_FILE)
|
| 35 |
+
message("System is unknown to cmake, create:\n${CMAKE_SYSTEM_INFO_FILE}"
|
| 36 |
+
" to use this system, please post your config file on "
|
| 37 |
+
"discourse.cmake.org so it can be added to cmake")
|
| 38 |
+
if(EXISTS ${CMAKE_BINARY_DIR}/CMakeCache.txt)
|
| 39 |
+
configure_file(${CMAKE_BINARY_DIR}/CMakeCache.txt
|
| 40 |
+
${CMAKE_BINARY_DIR}/CopyOfCMakeCache.txt COPYONLY)
|
| 41 |
+
message("Your CMakeCache.txt file was copied to CopyOfCMakeCache.txt. "
|
| 42 |
+
"Please post that file on discourse.cmake.org.")
|
| 43 |
+
endif()
|
| 44 |
+
endif()
|
| 45 |
+
|
| 46 |
+
# optionally include a file which can do extra-generator specific things, e.g.
|
| 47 |
+
# CMakeFindEclipseCDT4.cmake asks gcc for the system include dirs for the Eclipse CDT4 generator
|
| 48 |
+
if(CMAKE_EXTRA_GENERATOR)
|
| 49 |
+
string(REPLACE " " "" _CMAKE_EXTRA_GENERATOR_NO_SPACES ${CMAKE_EXTRA_GENERATOR} )
|
| 50 |
+
include("CMakeFind${_CMAKE_EXTRA_GENERATOR_NO_SPACES}" OPTIONAL)
|
| 51 |
+
endif()
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
# for most systems a module is the same as a shared library
|
| 55 |
+
# so unless the variable CMAKE_MODULE_EXISTS is set just
|
| 56 |
+
# copy the values from the LIBRARY variables
|
| 57 |
+
# this has to be done after the system information has been loaded
|
| 58 |
+
if(NOT CMAKE_MODULE_EXISTS)
|
| 59 |
+
set(CMAKE_SHARED_MODULE_PREFIX "${CMAKE_SHARED_LIBRARY_PREFIX}")
|
| 60 |
+
set(CMAKE_SHARED_MODULE_SUFFIX "${CMAKE_SHARED_LIBRARY_SUFFIX}")
|
| 61 |
+
endif()
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
set(CMAKE_SYSTEM_SPECIFIC_INFORMATION_LOADED 1)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestASMCompiler.cmake
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
# This file is used by EnableLanguage in cmGlobalGenerator to
|
| 6 |
+
# determine that the selected ASM compiler works.
|
| 7 |
+
# For assembler this can only check whether the compiler has been found,
|
| 8 |
+
# because otherwise there would have to be a separate assembler source file
|
| 9 |
+
# for each assembler on every architecture.
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
set(_ASM_COMPILER_WORKS 0)
|
| 13 |
+
|
| 14 |
+
if(CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
| 15 |
+
set(_ASM_COMPILER_WORKS 1)
|
| 16 |
+
endif()
|
| 17 |
+
|
| 18 |
+
# when using generic "ASM" support, we must have detected the compiler ID, fail otherwise:
|
| 19 |
+
if("ASM${ASM_DIALECT}" STREQUAL "ASM")
|
| 20 |
+
if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
| 21 |
+
set(_ASM_COMPILER_WORKS 0)
|
| 22 |
+
endif()
|
| 23 |
+
endif()
|
| 24 |
+
|
| 25 |
+
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_WORKS ${_ASM_COMPILER_WORKS} CACHE INTERNAL "")
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestGNU.c
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#if defined(__GNUC__) && \
|
| 2 |
+
!(defined(__INTEL_COMPILER) || defined(__INTEL_LLVM_COMPILER))
|
| 3 |
+
void THIS_IS_GNU();
|
| 4 |
+
#endif
|
| 5 |
+
#ifdef __MINGW32__
|
| 6 |
+
void THIS_IS_MINGW();
|
| 7 |
+
#endif
|
| 8 |
+
#ifdef __CYGWIN__
|
| 9 |
+
void THIS_IS_CYGWIN();
|
| 10 |
+
#endif
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CMakeTestHIPCompiler.cmake
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
if(CMAKE_HIP_COMPILER_FORCED)
|
| 6 |
+
# The compiler configuration was forced by the user.
|
| 7 |
+
# Assume the user has configured all compiler information.
|
| 8 |
+
set(CMAKE_HIP_COMPILER_WORKS TRUE)
|
| 9 |
+
return()
|
| 10 |
+
endif()
|
| 11 |
+
|
| 12 |
+
set(__CMAKE_HIP_FLAGS "${CMAKE_HIP_FLAGS}")
|
| 13 |
+
|
| 14 |
+
if(CMAKE_HIP_COMPILER_ID STREQUAL "Clang")
|
| 15 |
+
string(APPEND CMAKE_HIP_FLAGS " --cuda-host-only")
|
| 16 |
+
endif()
|
| 17 |
+
|
| 18 |
+
include(CMakeTestCompilerCommon)
|
| 19 |
+
|
| 20 |
+
# work around enforced code signing and / or missing executable target type
|
| 21 |
+
set(__CMAKE_SAVED_TRY_COMPILE_TARGET_TYPE ${CMAKE_TRY_COMPILE_TARGET_TYPE})
|
| 22 |
+
if(_CMAKE_FEATURE_DETECTION_TARGET_TYPE)
|
| 23 |
+
set(CMAKE_TRY_COMPILE_TARGET_TYPE ${_CMAKE_FEATURE_DETECTION_TARGET_TYPE})
|
| 24 |
+
endif()
|
| 25 |
+
|
| 26 |
+
# Remove any cached result from an older CMake version.
|
| 27 |
+
# We now store this in CMakeHIPCompiler.cmake.
|
| 28 |
+
unset(CMAKE_HIP_COMPILER_WORKS CACHE)
|
| 29 |
+
|
| 30 |
+
# Try to identify the ABI and configure it into CMakeHIPCompiler.cmake
|
| 31 |
+
include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerABI.cmake)
|
| 32 |
+
CMAKE_DETERMINE_COMPILER_ABI(HIP ${CMAKE_ROOT}/Modules/CMakeHIPCompilerABI.hip)
|
| 33 |
+
if(CMAKE_HIP_ABI_COMPILED)
|
| 34 |
+
# The compiler worked so skip dedicated test below.
|
| 35 |
+
set(CMAKE_HIP_COMPILER_WORKS TRUE)
|
| 36 |
+
message(STATUS "Check for working HIP compiler: ${CMAKE_HIP_COMPILER} - skipped")
|
| 37 |
+
|
| 38 |
+
if(CMAKE_HIP_COMPILER_ID STREQUAL "NVIDIA")
|
| 39 |
+
include(Internal/CMakeCUDAArchitecturesNative)
|
| 40 |
+
# Run the test binary to get:
|
| 41 |
+
# - CMAKE_HIP_ARCHITECTURES_NATIVE
|
| 42 |
+
cmake_cuda_architectures_native(HIP)
|
| 43 |
+
endif()
|
| 44 |
+
endif()
|
| 45 |
+
|
| 46 |
+
# This file is used by EnableLanguage in cmGlobalGenerator to
|
| 47 |
+
# determine that the selected C++ compiler can actually compile
|
| 48 |
+
# and link the most basic of programs. If not, a fatal error
|
| 49 |
+
# is set and cmake stops processing commands and will not generate
|
| 50 |
+
# any makefiles or projects.
|
| 51 |
+
if(NOT CMAKE_HIP_COMPILER_WORKS)
|
| 52 |
+
PrintTestCompilerStatus("HIP")
|
| 53 |
+
__TestCompiler_setTryCompileTargetType()
|
| 54 |
+
string(CONCAT __TestCompiler_testHIPCompilerSource
|
| 55 |
+
"#if !defined(__HIP__) && !defined(__NVCC__)\n"
|
| 56 |
+
"# error \"The CMAKE_HIP_COMPILER is set to a C/CXX compiler\"\n"
|
| 57 |
+
"#endif\n"
|
| 58 |
+
"int main(){return 0;}\n")
|
| 59 |
+
# Clear result from normal variable.
|
| 60 |
+
unset(CMAKE_HIP_COMPILER_WORKS)
|
| 61 |
+
# Puts test result in cache variable.
|
| 62 |
+
try_compile(CMAKE_HIP_COMPILER_WORKS
|
| 63 |
+
SOURCE_FROM_VAR testHIPCompiler.hip __TestCompiler_testHIPCompilerSource
|
| 64 |
+
OUTPUT_VARIABLE __CMAKE_HIP_COMPILER_OUTPUT)
|
| 65 |
+
unset(__TestCompiler_testHIPCompilerSource)
|
| 66 |
+
# Move result from cache to normal variable.
|
| 67 |
+
set(CMAKE_HIP_COMPILER_WORKS ${CMAKE_HIP_COMPILER_WORKS})
|
| 68 |
+
unset(CMAKE_HIP_COMPILER_WORKS CACHE)
|
| 69 |
+
__TestCompiler_restoreTryCompileTargetType()
|
| 70 |
+
if(NOT CMAKE_HIP_COMPILER_WORKS)
|
| 71 |
+
PrintTestCompilerResult(CHECK_FAIL "broken")
|
| 72 |
+
string(REPLACE "\n" "\n " _output "${__CMAKE_HIP_COMPILER_OUTPUT}")
|
| 73 |
+
message(FATAL_ERROR "The HIP compiler\n \"${CMAKE_HIP_COMPILER}\"\n"
|
| 74 |
+
"is not able to compile a simple test program.\nIt fails "
|
| 75 |
+
"with the following output:\n ${_output}\n\n"
|
| 76 |
+
"CMake will not be able to correctly generate this project.")
|
| 77 |
+
endif()
|
| 78 |
+
PrintTestCompilerResult(CHECK_PASS "works")
|
| 79 |
+
endif()
|
| 80 |
+
|
| 81 |
+
set(CMAKE_HIP_FLAGS "${__CMAKE_HIP_FLAGS}")
|
| 82 |
+
unset(__CMAKE_HIP_FLAGS)
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
# Try to identify the compiler features
|
| 86 |
+
include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerSupport.cmake)
|
| 87 |
+
CMAKE_DETERMINE_COMPILER_SUPPORT(HIP)
|
| 88 |
+
|
| 89 |
+
if(CMAKE_HIP_COMPILER_ID STREQUAL "NVIDIA")
|
| 90 |
+
include(Internal/CMakeNVCCFilterImplicitInfo)
|
| 91 |
+
# Match arguments with cmake_nvcc_parse_implicit_info call in CMakeDetermineHIPCompiler.
|
| 92 |
+
cmake_nvcc_filter_implicit_info(HIP CMAKE_HIP_CUDA_)
|
| 93 |
+
|
| 94 |
+
include(Internal/CMakeCUDAFilterImplicitLibs)
|
| 95 |
+
# Filter out implicit link libraries that should not be passed unconditionally.
|
| 96 |
+
cmake_cuda_filter_implicit_libs(CMAKE_HIP_IMPLICIT_LINK_LIBRARIES)
|
| 97 |
+
endif()
|
| 98 |
+
|
| 99 |
+
# Re-configure to save learned information.
|
| 100 |
+
configure_file(
|
| 101 |
+
${CMAKE_ROOT}/Modules/CMakeHIPCompiler.cmake.in
|
| 102 |
+
${CMAKE_PLATFORM_INFO_DIR}/CMakeHIPCompiler.cmake
|
| 103 |
+
@ONLY
|
| 104 |
+
)
|
| 105 |
+
include(${CMAKE_PLATFORM_INFO_DIR}/CMakeHIPCompiler.cmake)
|
| 106 |
+
|
| 107 |
+
if(CMAKE_HIP_SIZEOF_DATA_PTR)
|
| 108 |
+
foreach(f ${CMAKE_HIP_ABI_FILES})
|
| 109 |
+
include(${f})
|
| 110 |
+
endforeach()
|
| 111 |
+
unset(CMAKE_HIP_ABI_FILES)
|
| 112 |
+
endif()
|
| 113 |
+
|
| 114 |
+
set(CMAKE_TRY_COMPILE_TARGET_TYPE ${__CMAKE_SAVED_TRY_COMPILE_TARGET_TYPE})
|
| 115 |
+
unset(__CMAKE_SAVED_TRY_COMPILE_TARGET_TYPE)
|
| 116 |
+
unset(__CMAKE_HIP_COMPILER_OUTPUT)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CTestTargets.cmake
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
if(NOT RUN_FROM_CTEST_OR_DART)
|
| 6 |
+
message(FATAL_ERROR "Do not include CTestTargets.cmake directly")
|
| 7 |
+
endif()
|
| 8 |
+
|
| 9 |
+
if(NOT PROJECT_BINARY_DIR)
|
| 10 |
+
message(FATAL_ERROR "Do not include(CTest) before calling project().")
|
| 11 |
+
endif()
|
| 12 |
+
|
| 13 |
+
# make directories in the binary tree
|
| 14 |
+
file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/Testing/Temporary)
|
| 15 |
+
get_filename_component(CMAKE_HOST_PATH ${CMAKE_COMMAND} PATH)
|
| 16 |
+
set(CMAKE_TARGET_PATH ${EXECUTABLE_OUTPUT_PATH})
|
| 17 |
+
find_program(CMAKE_CTEST_COMMAND ctest ${CMAKE_HOST_PATH} ${CMAKE_TARGET_PATH})
|
| 18 |
+
mark_as_advanced(CMAKE_CTEST_COMMAND)
|
| 19 |
+
|
| 20 |
+
# Use CTest
|
| 21 |
+
# configure files
|
| 22 |
+
|
| 23 |
+
block()
|
| 24 |
+
if(NOT DEFINED CTEST_TLS_VERSION)
|
| 25 |
+
if(DEFINED CMAKE_TLS_VERSION)
|
| 26 |
+
set(CTEST_TLS_VERSION "${CMAKE_TLS_VERSION}")
|
| 27 |
+
elseif(DEFINED ENV{CMAKE_TLS_VERSION})
|
| 28 |
+
set(CTEST_TLS_VERSION "$ENV{CMAKE_TLS_VERSION}")
|
| 29 |
+
endif()
|
| 30 |
+
endif()
|
| 31 |
+
if(NOT DEFINED CTEST_TLS_VERIFY)
|
| 32 |
+
if(DEFINED CMAKE_TLS_VERIFY)
|
| 33 |
+
set(CTEST_TLS_VERIFY "${CMAKE_TLS_VERIFY}")
|
| 34 |
+
elseif(DEFINED ENV{CMAKE_TLS_VERIFY})
|
| 35 |
+
set(CTEST_TLS_VERIFY "$ENV{CMAKE_TLS_VERIFY}")
|
| 36 |
+
endif()
|
| 37 |
+
endif()
|
| 38 |
+
if(CTEST_NEW_FORMAT)
|
| 39 |
+
configure_file(
|
| 40 |
+
${CMAKE_ROOT}/Modules/DartConfiguration.tcl.in
|
| 41 |
+
${PROJECT_BINARY_DIR}/CTestConfiguration.ini )
|
| 42 |
+
else()
|
| 43 |
+
configure_file(
|
| 44 |
+
${CMAKE_ROOT}/Modules/DartConfiguration.tcl.in
|
| 45 |
+
${PROJECT_BINARY_DIR}/DartConfiguration.tcl )
|
| 46 |
+
endif()
|
| 47 |
+
endblock()
|
| 48 |
+
|
| 49 |
+
#
|
| 50 |
+
# Section 3:
|
| 51 |
+
#
|
| 52 |
+
# Custom targets to perform dashboard builds and submissions.
|
| 53 |
+
# These should NOT need to be modified from project to project.
|
| 54 |
+
#
|
| 55 |
+
|
| 56 |
+
set(__conf_types "")
|
| 57 |
+
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
| 58 |
+
if(_isMultiConfig)
|
| 59 |
+
# We need to pass the configuration type on the test command line.
|
| 60 |
+
set(__conf_types -C "$<CONFIG>")
|
| 61 |
+
endif()
|
| 62 |
+
|
| 63 |
+
# Add convenience targets. Do this at most once in case of nested
|
| 64 |
+
# projects.
|
| 65 |
+
define_property(GLOBAL PROPERTY CTEST_TARGETS_ADDED
|
| 66 |
+
BRIEF_DOCS "Internal property used by CTestTargets module."
|
| 67 |
+
FULL_DOCS "Set by the CTestTargets module to track addition of testing targets."
|
| 68 |
+
)
|
| 69 |
+
get_property(_CTEST_TARGETS_ADDED GLOBAL PROPERTY CTEST_TARGETS_ADDED)
|
| 70 |
+
if(NOT _CTEST_TARGETS_ADDED)
|
| 71 |
+
set_property(GLOBAL PROPERTY CTEST_TARGETS_ADDED 1)
|
| 72 |
+
|
| 73 |
+
# For all generators add basic testing targets.
|
| 74 |
+
foreach(mode Experimental Nightly Continuous NightlyMemoryCheck)
|
| 75 |
+
add_custom_target(${mode}
|
| 76 |
+
${CMAKE_CTEST_COMMAND} ${__conf_types} -D ${mode}
|
| 77 |
+
USES_TERMINAL
|
| 78 |
+
)
|
| 79 |
+
set_property(TARGET ${mode} PROPERTY RULE_LAUNCH_CUSTOM "")
|
| 80 |
+
set_property(TARGET ${mode} PROPERTY FOLDER "CTestDashboardTargets")
|
| 81 |
+
endforeach()
|
| 82 |
+
|
| 83 |
+
# For Makefile generators add more granular targets.
|
| 84 |
+
if("${CMAKE_GENERATOR}" MATCHES "(Ninja|Make)")
|
| 85 |
+
# Make targets for Experimental builds
|
| 86 |
+
foreach(mode Nightly Experimental Continuous)
|
| 87 |
+
foreach(testtype
|
| 88 |
+
Start Update Configure Build Test Coverage MemCheck Submit
|
| 89 |
+
# missing purify
|
| 90 |
+
)
|
| 91 |
+
add_custom_target(${mode}${testtype}
|
| 92 |
+
${CMAKE_CTEST_COMMAND} ${__conf_types} -D ${mode}${testtype}
|
| 93 |
+
USES_TERMINAL
|
| 94 |
+
)
|
| 95 |
+
set_property(TARGET ${mode}${testtype} PROPERTY RULE_LAUNCH_CUSTOM "")
|
| 96 |
+
set_property(TARGET ${mode}${testtype} PROPERTY FOLDER "CTestDashboardTargets")
|
| 97 |
+
endforeach()
|
| 98 |
+
endforeach()
|
| 99 |
+
endif()
|
| 100 |
+
|
| 101 |
+
# If requested, add an alias that is the equivalent of the built-in "test"
|
| 102 |
+
# or "RUN_TESTS" target:
|
| 103 |
+
if(CTEST_TEST_TARGET_ALIAS)
|
| 104 |
+
add_custom_target(${CTEST_TEST_TARGET_ALIAS}
|
| 105 |
+
${CMAKE_CTEST_COMMAND} ${CMAKE_CTEST_ARGUMENTS} ${__conf_types}
|
| 106 |
+
USES_TERMINAL
|
| 107 |
+
)
|
| 108 |
+
endif()
|
| 109 |
+
endif()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckFunctionExists.c
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#ifdef CHECK_FUNCTION_EXISTS
|
| 2 |
+
|
| 3 |
+
# ifdef __cplusplus
|
| 4 |
+
extern "C"
|
| 5 |
+
# endif
|
| 6 |
+
char
|
| 7 |
+
CHECK_FUNCTION_EXISTS(void);
|
| 8 |
+
# ifdef __CLASSIC_C__
|
| 9 |
+
int main()
|
| 10 |
+
{
|
| 11 |
+
int ac;
|
| 12 |
+
char* av[];
|
| 13 |
+
# else
|
| 14 |
+
int main(int ac, char* av[])
|
| 15 |
+
{
|
| 16 |
+
# endif
|
| 17 |
+
CHECK_FUNCTION_EXISTS();
|
| 18 |
+
if (ac > 1000) {
|
| 19 |
+
return *av[0];
|
| 20 |
+
}
|
| 21 |
+
return 0;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
#else /* CHECK_FUNCTION_EXISTS */
|
| 25 |
+
|
| 26 |
+
# error "CHECK_FUNCTION_EXISTS has to specify the function"
|
| 27 |
+
|
| 28 |
+
#endif /* CHECK_FUNCTION_EXISTS */
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckOBJCSourceCompiles.cmake
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
CheckOBJCSourceCompiles
|
| 6 |
+
-----------------------
|
| 7 |
+
|
| 8 |
+
.. versionadded:: 3.16
|
| 9 |
+
|
| 10 |
+
Check once if Objective-C source can be built.
|
| 11 |
+
|
| 12 |
+
.. command:: check_objc_source_compiles
|
| 13 |
+
|
| 14 |
+
.. code-block:: cmake
|
| 15 |
+
|
| 16 |
+
check_objc_source_compiles(<code> <resultVar>
|
| 17 |
+
[FAIL_REGEX <regex1> [<regex2>...]])
|
| 18 |
+
|
| 19 |
+
Check once that the source supplied in ``<code>`` can be built. The result is
|
| 20 |
+
stored in the internal cache variable specified by ``<resultVar>``, with
|
| 21 |
+
boolean ``true`` for success and boolean ``false`` for failure.
|
| 22 |
+
|
| 23 |
+
If ``FAIL_REGEX`` is provided, then failure is determined by checking
|
| 24 |
+
if anything in the compiler output matches any of the specified regular
|
| 25 |
+
expressions.
|
| 26 |
+
|
| 27 |
+
Internally, :command:`try_compile` is used to compile the source. If
|
| 28 |
+
:variable:`CMAKE_TRY_COMPILE_TARGET_TYPE` is set to ``EXECUTABLE`` (default),
|
| 29 |
+
the source is compiled and linked as an executable program. If set to
|
| 30 |
+
``STATIC_LIBRARY``, the source is compiled but not linked. In any case, all
|
| 31 |
+
functions must be declared as usual.
|
| 32 |
+
|
| 33 |
+
See also :command:`check_source_compiles` for a more general command syntax.
|
| 34 |
+
|
| 35 |
+
See also :command:`check_source_runs` to run compiled source.
|
| 36 |
+
|
| 37 |
+
The compile and link commands can be influenced by setting any of the
|
| 38 |
+
following variables prior to calling ``check_objc_source_compiles()``
|
| 39 |
+
|
| 40 |
+
.. include:: /module/CMAKE_REQUIRED_FLAGS.txt
|
| 41 |
+
|
| 42 |
+
.. include:: /module/CMAKE_REQUIRED_DEFINITIONS.txt
|
| 43 |
+
|
| 44 |
+
.. include:: /module/CMAKE_REQUIRED_INCLUDES.txt
|
| 45 |
+
|
| 46 |
+
.. include:: /module/CMAKE_REQUIRED_LINK_OPTIONS.txt
|
| 47 |
+
|
| 48 |
+
.. include:: /module/CMAKE_REQUIRED_LIBRARIES.txt
|
| 49 |
+
|
| 50 |
+
.. include:: /module/CMAKE_REQUIRED_LINK_DIRECTORIES.txt
|
| 51 |
+
|
| 52 |
+
.. include:: /module/CMAKE_REQUIRED_QUIET.txt
|
| 53 |
+
|
| 54 |
+
#]=======================================================================]
|
| 55 |
+
|
| 56 |
+
include_guard(GLOBAL)
|
| 57 |
+
include(Internal/CheckSourceCompiles)
|
| 58 |
+
|
| 59 |
+
macro(CHECK_OBJC_SOURCE_COMPILES SOURCE VAR)
|
| 60 |
+
cmake_check_source_compiles(OBJC "${SOURCE}" ${VAR} ${ARGN})
|
| 61 |
+
endmacro()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckOBJCXXSourceCompiles.cmake
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
CheckOBJCXXSourceCompiles
|
| 6 |
+
-------------------------
|
| 7 |
+
|
| 8 |
+
.. versionadded:: 3.16
|
| 9 |
+
|
| 10 |
+
Check once if Objective-C++ source can be built.
|
| 11 |
+
|
| 12 |
+
.. command:: check_objcxx_source_compiles
|
| 13 |
+
|
| 14 |
+
.. code-block:: cmake
|
| 15 |
+
|
| 16 |
+
check_objcxx_source_compiles(<code> <resultVar>
|
| 17 |
+
[FAIL_REGEX <regex1> [<regex2>...]])
|
| 18 |
+
|
| 19 |
+
Check once that the source supplied in ``<code>`` can be built. The result is
|
| 20 |
+
stored in the internal cache variable specified by ``<resultVar>``, with
|
| 21 |
+
boolean ``true`` for success and boolean ``false`` for failure.
|
| 22 |
+
|
| 23 |
+
If ``FAIL_REGEX`` is provided, then failure is determined by checking
|
| 24 |
+
if anything in the compiler output matches any of the specified regular
|
| 25 |
+
expressions.
|
| 26 |
+
|
| 27 |
+
Internally, :command:`try_compile` is used to compile the source. If
|
| 28 |
+
:variable:`CMAKE_TRY_COMPILE_TARGET_TYPE` is set to ``EXECUTABLE`` (default),
|
| 29 |
+
the source is compiled and linked as an executable program. If set to
|
| 30 |
+
``STATIC_LIBRARY``, the source is compiled but not linked. In any case, all
|
| 31 |
+
functions must be declared as usual.
|
| 32 |
+
|
| 33 |
+
See also :command:`check_source_compiles` for a more general command syntax.
|
| 34 |
+
|
| 35 |
+
See also :command:`check_source_runs` to run compiled source.
|
| 36 |
+
|
| 37 |
+
The compile and link commands can be influenced by setting any of the
|
| 38 |
+
following variables prior to calling ``check_objcxx_source_compiles()``
|
| 39 |
+
|
| 40 |
+
.. include:: /module/CMAKE_REQUIRED_FLAGS.txt
|
| 41 |
+
|
| 42 |
+
.. include:: /module/CMAKE_REQUIRED_DEFINITIONS.txt
|
| 43 |
+
|
| 44 |
+
.. include:: /module/CMAKE_REQUIRED_INCLUDES.txt
|
| 45 |
+
|
| 46 |
+
.. include:: /module/CMAKE_REQUIRED_LINK_OPTIONS.txt
|
| 47 |
+
|
| 48 |
+
.. include:: /module/CMAKE_REQUIRED_LIBRARIES.txt
|
| 49 |
+
|
| 50 |
+
.. include:: /module/CMAKE_REQUIRED_LINK_DIRECTORIES.txt
|
| 51 |
+
|
| 52 |
+
.. include:: /module/CMAKE_REQUIRED_QUIET.txt
|
| 53 |
+
|
| 54 |
+
#]=======================================================================]
|
| 55 |
+
|
| 56 |
+
include_guard(GLOBAL)
|
| 57 |
+
include(Internal/CheckSourceCompiles)
|
| 58 |
+
|
| 59 |
+
macro(CHECK_OBJCXX_SOURCE_COMPILES SOURCE VAR)
|
| 60 |
+
cmake_check_source_compiles(OBJCXX "${SOURCE}" ${VAR} ${ARGN})
|
| 61 |
+
endmacro()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckStructHasMember.cmake
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
CheckStructHasMember
|
| 6 |
+
--------------------
|
| 7 |
+
|
| 8 |
+
Check if the given struct or class has the specified member variable
|
| 9 |
+
|
| 10 |
+
.. command:: CHECK_STRUCT_HAS_MEMBER
|
| 11 |
+
|
| 12 |
+
.. code-block:: cmake
|
| 13 |
+
|
| 14 |
+
CHECK_STRUCT_HAS_MEMBER(<struct> <member> <header> <variable>
|
| 15 |
+
[LANGUAGE <language>])
|
| 16 |
+
|
| 17 |
+
::
|
| 18 |
+
|
| 19 |
+
<struct> - the name of the struct or class you are interested in
|
| 20 |
+
<member> - the member which existence you want to check
|
| 21 |
+
<header> - the header(s) where the prototype should be declared
|
| 22 |
+
<variable> - variable to store the result
|
| 23 |
+
<language> - the compiler to use (C or CXX)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
The following variables may be set before calling this macro to modify
|
| 27 |
+
the way the check is run:
|
| 28 |
+
|
| 29 |
+
.. include:: /module/CMAKE_REQUIRED_FLAGS.txt
|
| 30 |
+
|
| 31 |
+
.. include:: /module/CMAKE_REQUIRED_DEFINITIONS.txt
|
| 32 |
+
|
| 33 |
+
.. include:: /module/CMAKE_REQUIRED_INCLUDES.txt
|
| 34 |
+
|
| 35 |
+
.. include:: /module/CMAKE_REQUIRED_LINK_OPTIONS.txt
|
| 36 |
+
|
| 37 |
+
.. include:: /module/CMAKE_REQUIRED_LIBRARIES.txt
|
| 38 |
+
|
| 39 |
+
.. include:: /module/CMAKE_REQUIRED_LINK_DIRECTORIES.txt
|
| 40 |
+
|
| 41 |
+
.. include:: /module/CMAKE_REQUIRED_QUIET.txt
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
Example:
|
| 45 |
+
|
| 46 |
+
.. code-block:: cmake
|
| 47 |
+
|
| 48 |
+
CHECK_STRUCT_HAS_MEMBER("struct timeval" tv_sec sys/select.h
|
| 49 |
+
HAVE_TIMEVAL_TV_SEC LANGUAGE C)
|
| 50 |
+
#]=======================================================================]
|
| 51 |
+
|
| 52 |
+
include_guard(GLOBAL)
|
| 53 |
+
include(CheckSourceCompiles)
|
| 54 |
+
|
| 55 |
+
macro (CHECK_STRUCT_HAS_MEMBER _STRUCT _MEMBER _HEADER _RESULT)
|
| 56 |
+
set(_INCLUDE_FILES)
|
| 57 |
+
foreach (it ${_HEADER})
|
| 58 |
+
string(APPEND _INCLUDE_FILES "#include <${it}>\n")
|
| 59 |
+
endforeach ()
|
| 60 |
+
|
| 61 |
+
if("x${ARGN}" STREQUAL "x")
|
| 62 |
+
set(_lang C)
|
| 63 |
+
elseif("x${ARGN}" MATCHES "^xLANGUAGE;([a-zA-Z]+)$")
|
| 64 |
+
set(_lang "${CMAKE_MATCH_1}")
|
| 65 |
+
else()
|
| 66 |
+
message(FATAL_ERROR "Unknown arguments:\n ${ARGN}\n")
|
| 67 |
+
endif()
|
| 68 |
+
|
| 69 |
+
set(_CHECK_STRUCT_MEMBER_SOURCE_CODE "
|
| 70 |
+
${_INCLUDE_FILES}
|
| 71 |
+
int main(void)
|
| 72 |
+
{
|
| 73 |
+
(void)sizeof(((${_STRUCT} *)0)->${_MEMBER});
|
| 74 |
+
return 0;
|
| 75 |
+
}
|
| 76 |
+
")
|
| 77 |
+
|
| 78 |
+
if("${_lang}" STREQUAL "C")
|
| 79 |
+
CHECK_SOURCE_COMPILES(C "${_CHECK_STRUCT_MEMBER_SOURCE_CODE}" ${_RESULT})
|
| 80 |
+
elseif("${_lang}" STREQUAL "CXX")
|
| 81 |
+
CHECK_SOURCE_COMPILES(CXX "${_CHECK_STRUCT_MEMBER_SOURCE_CODE}" ${_RESULT})
|
| 82 |
+
else()
|
| 83 |
+
message(FATAL_ERROR "Unknown language:\n ${_lang}\nSupported languages: C, CXX.\n")
|
| 84 |
+
endif()
|
| 85 |
+
endmacro ()
|
| 86 |
+
|
| 87 |
+
# FIXME(#24994): The following modules are included only for compatibility
|
| 88 |
+
# with projects that accidentally relied on them with CMake 3.26 and below.
|
| 89 |
+
include(CheckCSourceCompiles)
|
| 90 |
+
include(CheckCXXSourceCompiles)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckSymbolExists.cmake
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
CheckSymbolExists
|
| 6 |
+
-----------------
|
| 7 |
+
|
| 8 |
+
Provides a macro to check if a symbol exists as a function, variable,
|
| 9 |
+
or macro in ``C``.
|
| 10 |
+
|
| 11 |
+
.. command:: check_symbol_exists
|
| 12 |
+
|
| 13 |
+
.. code-block:: cmake
|
| 14 |
+
|
| 15 |
+
check_symbol_exists(<symbol> <files> <variable>)
|
| 16 |
+
|
| 17 |
+
Check that the ``<symbol>`` is available after including given header
|
| 18 |
+
``<files>`` and store the result in a ``<variable>``. Specify the list
|
| 19 |
+
of files in one argument as a semicolon-separated list.
|
| 20 |
+
``<variable>`` will be created as an internal cache variable.
|
| 21 |
+
|
| 22 |
+
If the header files define the symbol as a macro it is considered
|
| 23 |
+
available and assumed to work. If the header files declare the symbol
|
| 24 |
+
as a function or variable then the symbol must also be available for
|
| 25 |
+
linking (so intrinsics may not be detected).
|
| 26 |
+
If the symbol is a type, enum value, or intrinsic it will not be recognized
|
| 27 |
+
(consider using :module:`CheckTypeSize` or :module:`CheckSourceCompiles`).
|
| 28 |
+
If the check needs to be done in C++, consider using
|
| 29 |
+
:module:`CheckCXXSymbolExists` instead.
|
| 30 |
+
|
| 31 |
+
The following variables may be set before calling this macro to modify
|
| 32 |
+
the way the check is run:
|
| 33 |
+
|
| 34 |
+
.. include:: /module/CMAKE_REQUIRED_FLAGS.txt
|
| 35 |
+
|
| 36 |
+
.. include:: /module/CMAKE_REQUIRED_DEFINITIONS.txt
|
| 37 |
+
|
| 38 |
+
.. include:: /module/CMAKE_REQUIRED_INCLUDES.txt
|
| 39 |
+
|
| 40 |
+
.. include:: /module/CMAKE_REQUIRED_LINK_OPTIONS.txt
|
| 41 |
+
|
| 42 |
+
.. include:: /module/CMAKE_REQUIRED_LIBRARIES.txt
|
| 43 |
+
|
| 44 |
+
.. include:: /module/CMAKE_REQUIRED_LINK_DIRECTORIES.txt
|
| 45 |
+
|
| 46 |
+
.. include:: /module/CMAKE_REQUIRED_QUIET.txt
|
| 47 |
+
|
| 48 |
+
For example:
|
| 49 |
+
|
| 50 |
+
.. code-block:: cmake
|
| 51 |
+
|
| 52 |
+
include(CheckSymbolExists)
|
| 53 |
+
|
| 54 |
+
# Check for macro SEEK_SET
|
| 55 |
+
check_symbol_exists(SEEK_SET "stdio.h" HAVE_SEEK_SET)
|
| 56 |
+
# Check for function fopen
|
| 57 |
+
check_symbol_exists(fopen "stdio.h" HAVE_FOPEN)
|
| 58 |
+
#]=======================================================================]
|
| 59 |
+
|
| 60 |
+
include_guard(GLOBAL)
|
| 61 |
+
|
| 62 |
+
block(SCOPE_FOR POLICIES)
|
| 63 |
+
cmake_policy(SET CMP0054 NEW) # if() quoted variables not dereferenced
|
| 64 |
+
|
| 65 |
+
macro(CHECK_SYMBOL_EXISTS SYMBOL FILES VARIABLE)
|
| 66 |
+
if(CMAKE_C_COMPILER_LOADED)
|
| 67 |
+
__CHECK_SYMBOL_EXISTS_FILTER_FLAGS(C)
|
| 68 |
+
__CHECK_SYMBOL_EXISTS_IMPL(CheckSymbolExists.c "${SYMBOL}" "${FILES}" "${VARIABLE}" )
|
| 69 |
+
__CHECK_SYMBOL_EXISTS_RESTORE_FLAGS(C)
|
| 70 |
+
elseif(CMAKE_CXX_COMPILER_LOADED)
|
| 71 |
+
__CHECK_SYMBOL_EXISTS_FILTER_FLAGS(CXX)
|
| 72 |
+
__CHECK_SYMBOL_EXISTS_IMPL(CheckSymbolExists.cxx "${SYMBOL}" "${FILES}" "${VARIABLE}" )
|
| 73 |
+
__CHECK_SYMBOL_EXISTS_RESTORE_FLAGS(CXX)
|
| 74 |
+
else()
|
| 75 |
+
message(FATAL_ERROR "CHECK_SYMBOL_EXISTS needs either C or CXX language enabled")
|
| 76 |
+
endif()
|
| 77 |
+
endmacro()
|
| 78 |
+
|
| 79 |
+
macro(__CHECK_SYMBOL_EXISTS_FILTER_FLAGS LANG)
|
| 80 |
+
if(CMAKE_TRY_COMPILE_CONFIGURATION)
|
| 81 |
+
string(TOUPPER "${CMAKE_TRY_COMPILE_CONFIGURATION}" _tc_config)
|
| 82 |
+
else()
|
| 83 |
+
set(_tc_config "DEBUG")
|
| 84 |
+
endif()
|
| 85 |
+
foreach(v CMAKE_${LANG}_FLAGS CMAKE_${LANG}_FLAGS_${_tc_config})
|
| 86 |
+
set(__${v}_SAVED "${${v}}")
|
| 87 |
+
string(REGEX REPLACE "(^| )-Werror([= ][^-][^ ]*)?( |$)" " " ${v} "${${v}}")
|
| 88 |
+
string(REGEX REPLACE "(^| )-pedantic-errors( |$)" " " ${v} "${${v}}")
|
| 89 |
+
endforeach()
|
| 90 |
+
endmacro()
|
| 91 |
+
|
| 92 |
+
macro(__CHECK_SYMBOL_EXISTS_RESTORE_FLAGS LANG)
|
| 93 |
+
if(CMAKE_TRY_COMPILE_CONFIGURATION)
|
| 94 |
+
string(TOUPPER "${CMAKE_TRY_COMPILE_CONFIGURATION}" _tc_config)
|
| 95 |
+
else()
|
| 96 |
+
set(_tc_config "DEBUG")
|
| 97 |
+
endif()
|
| 98 |
+
foreach(v CMAKE_${LANG}_FLAGS CMAKE_${LANG}_FLAGS_${_tc_config})
|
| 99 |
+
set(${v} "${__${v}_SAVED}")
|
| 100 |
+
unset(__${v}_SAVED)
|
| 101 |
+
endforeach()
|
| 102 |
+
endmacro()
|
| 103 |
+
|
| 104 |
+
macro(__CHECK_SYMBOL_EXISTS_IMPL SOURCEFILE SYMBOL FILES VARIABLE)
|
| 105 |
+
if(NOT DEFINED "${VARIABLE}" OR "x${${VARIABLE}}" STREQUAL "x${VARIABLE}")
|
| 106 |
+
set(_CSE_SOURCE "/* */\n")
|
| 107 |
+
set(MACRO_CHECK_SYMBOL_EXISTS_FLAGS ${CMAKE_REQUIRED_FLAGS})
|
| 108 |
+
if(CMAKE_REQUIRED_LINK_OPTIONS)
|
| 109 |
+
set(CHECK_SYMBOL_EXISTS_LINK_OPTIONS
|
| 110 |
+
LINK_OPTIONS ${CMAKE_REQUIRED_LINK_OPTIONS})
|
| 111 |
+
else()
|
| 112 |
+
set(CHECK_SYMBOL_EXISTS_LINK_OPTIONS)
|
| 113 |
+
endif()
|
| 114 |
+
if(CMAKE_REQUIRED_LIBRARIES)
|
| 115 |
+
set(CHECK_SYMBOL_EXISTS_LIBS
|
| 116 |
+
LINK_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES})
|
| 117 |
+
else()
|
| 118 |
+
set(CHECK_SYMBOL_EXISTS_LIBS)
|
| 119 |
+
endif()
|
| 120 |
+
if(CMAKE_REQUIRED_INCLUDES)
|
| 121 |
+
set(CMAKE_SYMBOL_EXISTS_INCLUDES
|
| 122 |
+
"-DINCLUDE_DIRECTORIES:STRING=${CMAKE_REQUIRED_INCLUDES}")
|
| 123 |
+
else()
|
| 124 |
+
set(CMAKE_SYMBOL_EXISTS_INCLUDES)
|
| 125 |
+
endif()
|
| 126 |
+
|
| 127 |
+
if(CMAKE_REQUIRED_LINK_DIRECTORIES)
|
| 128 |
+
set(_CSE_LINK_DIRECTORIES
|
| 129 |
+
"-DLINK_DIRECTORIES:STRING=${CMAKE_REQUIRED_LINK_DIRECTORIES}")
|
| 130 |
+
else()
|
| 131 |
+
set(_CSE_LINK_DIRECTORIES)
|
| 132 |
+
endif()
|
| 133 |
+
foreach(FILE ${FILES})
|
| 134 |
+
string(APPEND _CSE_SOURCE
|
| 135 |
+
"#include <${FILE}>\n")
|
| 136 |
+
endforeach()
|
| 137 |
+
string(APPEND _CSE_SOURCE "
|
| 138 |
+
int main(int argc, char** argv)
|
| 139 |
+
{
|
| 140 |
+
(void)argv;")
|
| 141 |
+
set(_CSE_CHECK_NON_MACRO "return ((int*)(&${SYMBOL}))[argc];")
|
| 142 |
+
if("${SYMBOL}" MATCHES "^[a-zA-Z_][a-zA-Z0-9_]*$")
|
| 143 |
+
# The SYMBOL has a legal macro name. Test whether it exists as a macro.
|
| 144 |
+
string(APPEND _CSE_SOURCE "
|
| 145 |
+
#ifndef ${SYMBOL}
|
| 146 |
+
${_CSE_CHECK_NON_MACRO}
|
| 147 |
+
#else
|
| 148 |
+
(void)argc;
|
| 149 |
+
return 0;
|
| 150 |
+
#endif")
|
| 151 |
+
else()
|
| 152 |
+
# The SYMBOL cannot be a macro (e.g., a template function).
|
| 153 |
+
string(APPEND _CSE_SOURCE "
|
| 154 |
+
${_CSE_CHECK_NON_MACRO}")
|
| 155 |
+
endif()
|
| 156 |
+
string(APPEND _CSE_SOURCE "
|
| 157 |
+
}\n")
|
| 158 |
+
unset(_CSE_CHECK_NON_MACRO)
|
| 159 |
+
|
| 160 |
+
if(NOT CMAKE_REQUIRED_QUIET)
|
| 161 |
+
message(CHECK_START "Looking for ${SYMBOL}")
|
| 162 |
+
endif()
|
| 163 |
+
try_compile(${VARIABLE}
|
| 164 |
+
SOURCE_FROM_VAR "${SOURCEFILE}" _CSE_SOURCE
|
| 165 |
+
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
|
| 166 |
+
${CHECK_SYMBOL_EXISTS_LINK_OPTIONS}
|
| 167 |
+
${CHECK_SYMBOL_EXISTS_LIBS}
|
| 168 |
+
CMAKE_FLAGS
|
| 169 |
+
-DCOMPILE_DEFINITIONS:STRING=${MACRO_CHECK_SYMBOL_EXISTS_FLAGS}
|
| 170 |
+
"${CMAKE_SYMBOL_EXISTS_INCLUDES}"
|
| 171 |
+
"${_CSE_LINK_DIRECTORIES}"
|
| 172 |
+
)
|
| 173 |
+
unset(_CSE_LINK_DIRECTORIES)
|
| 174 |
+
if(${VARIABLE})
|
| 175 |
+
if(NOT CMAKE_REQUIRED_QUIET)
|
| 176 |
+
message(CHECK_PASS "found")
|
| 177 |
+
endif()
|
| 178 |
+
set(${VARIABLE} 1 CACHE INTERNAL "Have symbol ${SYMBOL}")
|
| 179 |
+
else()
|
| 180 |
+
if(NOT CMAKE_REQUIRED_QUIET)
|
| 181 |
+
message(CHECK_FAIL "not found")
|
| 182 |
+
endif()
|
| 183 |
+
set(${VARIABLE} "" CACHE INTERNAL "Have symbol ${SYMBOL}")
|
| 184 |
+
endif()
|
| 185 |
+
unset(_CSE_SOURCE)
|
| 186 |
+
endif()
|
| 187 |
+
endmacro()
|
| 188 |
+
|
| 189 |
+
endblock()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/CheckTypeSizeMap.cmake.in
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
set(@var@_KEYS "@keys@")@code@
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/DeployQt4.cmake
ADDED
|
@@ -0,0 +1,399 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
DeployQt4
|
| 6 |
+
---------
|
| 7 |
+
|
| 8 |
+
Functions to help assemble a standalone Qt4 executable.
|
| 9 |
+
|
| 10 |
+
A collection of CMake utility functions useful for deploying Qt4
|
| 11 |
+
executables.
|
| 12 |
+
|
| 13 |
+
The following functions are provided by this module:
|
| 14 |
+
|
| 15 |
+
::
|
| 16 |
+
|
| 17 |
+
write_qt4_conf
|
| 18 |
+
resolve_qt4_paths
|
| 19 |
+
fixup_qt4_executable
|
| 20 |
+
install_qt4_plugin_path
|
| 21 |
+
install_qt4_plugin
|
| 22 |
+
install_qt4_executable
|
| 23 |
+
|
| 24 |
+
Requires CMake 2.6 or greater because it uses function and
|
| 25 |
+
PARENT_SCOPE. Also depends on BundleUtilities.cmake.
|
| 26 |
+
|
| 27 |
+
::
|
| 28 |
+
|
| 29 |
+
write_qt4_conf(<qt_conf_dir> <qt_conf_contents>)
|
| 30 |
+
|
| 31 |
+
Writes a qt.conf file with the <qt_conf_contents> into <qt_conf_dir>.
|
| 32 |
+
|
| 33 |
+
::
|
| 34 |
+
|
| 35 |
+
resolve_qt4_paths(<paths_var> [<executable_path>])
|
| 36 |
+
|
| 37 |
+
Loop through <paths_var> list and if any don't exist resolve them
|
| 38 |
+
relative to the <executable_path> (if supplied) or the
|
| 39 |
+
CMAKE_INSTALL_PREFIX.
|
| 40 |
+
|
| 41 |
+
::
|
| 42 |
+
|
| 43 |
+
fixup_qt4_executable(<executable>
|
| 44 |
+
[<qtplugins> <libs> <dirs> <plugins_dir> <request_qt_conf>])
|
| 45 |
+
|
| 46 |
+
Copies Qt plugins, writes a Qt configuration file (if needed) and
|
| 47 |
+
fixes up a Qt4 executable using BundleUtilities so it is standalone
|
| 48 |
+
and can be drag-and-drop copied to another machine as long as all of
|
| 49 |
+
the system libraries are compatible.
|
| 50 |
+
|
| 51 |
+
<executable> should point to the executable to be fixed-up.
|
| 52 |
+
|
| 53 |
+
<qtplugins> should contain a list of the names or paths of any Qt
|
| 54 |
+
plugins to be installed.
|
| 55 |
+
|
| 56 |
+
<libs> will be passed to BundleUtilities and should be a list of any
|
| 57 |
+
already installed plugins, libraries or executables to also be
|
| 58 |
+
fixed-up.
|
| 59 |
+
|
| 60 |
+
<dirs> will be passed to BundleUtilities and should contain and
|
| 61 |
+
directories to be searched to find library dependencies.
|
| 62 |
+
|
| 63 |
+
<plugins_dir> allows an custom plugins directory to be used.
|
| 64 |
+
|
| 65 |
+
<request_qt_conf> will force a qt.conf file to be written even if not
|
| 66 |
+
needed.
|
| 67 |
+
|
| 68 |
+
::
|
| 69 |
+
|
| 70 |
+
install_qt4_plugin_path(plugin executable copy installed_plugin_path_var
|
| 71 |
+
<plugins_dir> <component> <configurations>)
|
| 72 |
+
|
| 73 |
+
Install (or copy) a resolved <plugin> to the default plugins directory
|
| 74 |
+
(or <plugins_dir>) relative to <executable> and store the result in
|
| 75 |
+
<installed_plugin_path_var>.
|
| 76 |
+
|
| 77 |
+
If <copy> is set to TRUE then the plugins will be copied rather than
|
| 78 |
+
installed. This is to allow this module to be used at CMake time
|
| 79 |
+
rather than install time.
|
| 80 |
+
|
| 81 |
+
If <component> is set then anything installed will use this COMPONENT.
|
| 82 |
+
|
| 83 |
+
::
|
| 84 |
+
|
| 85 |
+
install_qt4_plugin(plugin executable copy installed_plugin_path_var
|
| 86 |
+
<plugins_dir> <component>)
|
| 87 |
+
|
| 88 |
+
Install (or copy) an unresolved <plugin> to the default plugins
|
| 89 |
+
directory (or <plugins_dir>) relative to <executable> and store the
|
| 90 |
+
result in <installed_plugin_path_var>. See documentation of
|
| 91 |
+
INSTALL_QT4_PLUGIN_PATH.
|
| 92 |
+
|
| 93 |
+
::
|
| 94 |
+
|
| 95 |
+
install_qt4_executable(<executable>
|
| 96 |
+
[<qtplugins> <libs> <dirs> <plugins_dir> <request_qt_conf> <component>])
|
| 97 |
+
|
| 98 |
+
Installs Qt plugins, writes a Qt configuration file (if needed) and
|
| 99 |
+
fixes up a Qt4 executable using BundleUtilities so it is standalone
|
| 100 |
+
and can be drag-and-drop copied to another machine as long as all of
|
| 101 |
+
the system libraries are compatible. The executable will be fixed-up
|
| 102 |
+
at install time. <component> is the COMPONENT used for bundle fixup
|
| 103 |
+
and plugin installation. See documentation of FIXUP_QT4_BUNDLE.
|
| 104 |
+
#]=======================================================================]
|
| 105 |
+
|
| 106 |
+
# The functions defined in this file depend on the fixup_bundle function
|
| 107 |
+
# (and others) found in BundleUtilities.cmake
|
| 108 |
+
|
| 109 |
+
set(DeployQt4_apple_plugins_dir "PlugIns")
|
| 110 |
+
|
| 111 |
+
function(write_qt4_conf qt_conf_dir qt_conf_contents)
|
| 112 |
+
set(qt_conf_path "${qt_conf_dir}/qt.conf")
|
| 113 |
+
message(STATUS "Writing ${qt_conf_path}")
|
| 114 |
+
file(WRITE "${qt_conf_path}" "${qt_conf_contents}")
|
| 115 |
+
endfunction()
|
| 116 |
+
|
| 117 |
+
function(resolve_qt4_paths paths_var)
|
| 118 |
+
unset(executable_path)
|
| 119 |
+
if(ARGC GREATER 1)
|
| 120 |
+
set(executable_path ${ARGV1})
|
| 121 |
+
endif()
|
| 122 |
+
|
| 123 |
+
set(paths_resolved)
|
| 124 |
+
foreach(path ${${paths_var}})
|
| 125 |
+
if(EXISTS "${path}")
|
| 126 |
+
list(APPEND paths_resolved "${path}")
|
| 127 |
+
else()
|
| 128 |
+
if(${executable_path})
|
| 129 |
+
list(APPEND paths_resolved "${executable_path}/${path}")
|
| 130 |
+
else()
|
| 131 |
+
list(APPEND paths_resolved "\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${path}")
|
| 132 |
+
endif()
|
| 133 |
+
endif()
|
| 134 |
+
endforeach()
|
| 135 |
+
set(${paths_var} ${paths_resolved} PARENT_SCOPE)
|
| 136 |
+
endfunction()
|
| 137 |
+
|
| 138 |
+
cmake_policy(GET CMP0080 _cmp0080_value)
|
| 139 |
+
if(NOT DEFINED CMAKE_GENERATOR OR NOT _cmp0080_value STREQUAL "NEW")
|
| 140 |
+
set(_CMP0080_SUPPRESS_WARNING TRUE)
|
| 141 |
+
include("${CMAKE_CURRENT_LIST_DIR}/BundleUtilities.cmake")
|
| 142 |
+
unset(_CMP0080_SUPPRESS_WARNING)
|
| 143 |
+
|
| 144 |
+
function(fixup_qt4_executable executable)
|
| 145 |
+
cmake_policy(GET CMP0080 _cmp0080_value)
|
| 146 |
+
if(_cmp0080_value STREQUAL "" AND DEFINED CMAKE_GENERATOR)
|
| 147 |
+
_warn_cmp0080()
|
| 148 |
+
endif()
|
| 149 |
+
|
| 150 |
+
unset(qtplugins)
|
| 151 |
+
if(ARGC GREATER 1)
|
| 152 |
+
set(qtplugins ${ARGV1})
|
| 153 |
+
endif()
|
| 154 |
+
unset(libs)
|
| 155 |
+
if(ARGC GREATER 2)
|
| 156 |
+
set(libs ${ARGV2})
|
| 157 |
+
endif()
|
| 158 |
+
unset(dirs)
|
| 159 |
+
if(ARGC GREATER 3)
|
| 160 |
+
set(dirs ${ARGV3})
|
| 161 |
+
endif()
|
| 162 |
+
unset(plugins_dir)
|
| 163 |
+
if(ARGC GREATER 4)
|
| 164 |
+
set(plugins_dir ${ARGV4})
|
| 165 |
+
endif()
|
| 166 |
+
unset(request_qt_conf)
|
| 167 |
+
if(ARGC GREATER 5)
|
| 168 |
+
set(request_qt_conf ${ARGV5})
|
| 169 |
+
endif()
|
| 170 |
+
|
| 171 |
+
message(STATUS "fixup_qt4_executable")
|
| 172 |
+
message(STATUS " executable='${executable}'")
|
| 173 |
+
message(STATUS " qtplugins='${qtplugins}'")
|
| 174 |
+
message(STATUS " libs='${libs}'")
|
| 175 |
+
message(STATUS " dirs='${dirs}'")
|
| 176 |
+
message(STATUS " plugins_dir='${plugins_dir}'")
|
| 177 |
+
message(STATUS " request_qt_conf='${request_qt_conf}'")
|
| 178 |
+
|
| 179 |
+
if(QT_LIBRARY_DIR)
|
| 180 |
+
list(APPEND dirs "${QT_LIBRARY_DIR}")
|
| 181 |
+
endif()
|
| 182 |
+
if(QT_BINARY_DIR)
|
| 183 |
+
list(APPEND dirs "${QT_BINARY_DIR}")
|
| 184 |
+
endif()
|
| 185 |
+
|
| 186 |
+
if(APPLE)
|
| 187 |
+
set(qt_conf_dir "${executable}/Contents/Resources")
|
| 188 |
+
set(executable_path "${executable}")
|
| 189 |
+
set(write_qt_conf TRUE)
|
| 190 |
+
if(NOT DEFINED plugins_dir)
|
| 191 |
+
set(plugins_dir "${DeployQt4_apple_plugins_dir}")
|
| 192 |
+
endif()
|
| 193 |
+
else()
|
| 194 |
+
get_filename_component(executable_path "${executable}" PATH)
|
| 195 |
+
if(NOT executable_path)
|
| 196 |
+
set(executable_path ".")
|
| 197 |
+
endif()
|
| 198 |
+
set(qt_conf_dir "${executable_path}")
|
| 199 |
+
set(write_qt_conf ${request_qt_conf})
|
| 200 |
+
endif()
|
| 201 |
+
|
| 202 |
+
foreach(plugin ${qtplugins})
|
| 203 |
+
set(installed_plugin_path "")
|
| 204 |
+
install_qt4_plugin("${plugin}" "${executable}" 1 installed_plugin_path)
|
| 205 |
+
list(APPEND libs ${installed_plugin_path})
|
| 206 |
+
endforeach()
|
| 207 |
+
|
| 208 |
+
foreach(lib ${libs})
|
| 209 |
+
if(NOT EXISTS "${lib}")
|
| 210 |
+
message(FATAL_ERROR "Library does not exist: ${lib}")
|
| 211 |
+
endif()
|
| 212 |
+
endforeach()
|
| 213 |
+
|
| 214 |
+
resolve_qt4_paths(libs "${executable_path}")
|
| 215 |
+
|
| 216 |
+
if(write_qt_conf)
|
| 217 |
+
set(qt_conf_contents "[Paths]\nPlugins = ${plugins_dir}")
|
| 218 |
+
write_qt4_conf("${qt_conf_dir}" "${qt_conf_contents}")
|
| 219 |
+
endif()
|
| 220 |
+
|
| 221 |
+
fixup_bundle("${executable}" "${libs}" "${dirs}")
|
| 222 |
+
endfunction()
|
| 223 |
+
endif()
|
| 224 |
+
|
| 225 |
+
function(install_qt4_plugin_path plugin executable copy installed_plugin_path_var)
|
| 226 |
+
unset(plugins_dir)
|
| 227 |
+
if(ARGC GREATER 4)
|
| 228 |
+
set(plugins_dir ${ARGV4})
|
| 229 |
+
endif()
|
| 230 |
+
unset(component)
|
| 231 |
+
if(ARGC GREATER 5)
|
| 232 |
+
set(component ${ARGV5})
|
| 233 |
+
endif()
|
| 234 |
+
unset(configurations)
|
| 235 |
+
if(ARGC GREATER 6)
|
| 236 |
+
set(configurations ${ARGV6})
|
| 237 |
+
endif()
|
| 238 |
+
|
| 239 |
+
if(EXISTS "${plugin}")
|
| 240 |
+
if(APPLE)
|
| 241 |
+
if(NOT plugins_dir)
|
| 242 |
+
set(plugins_dir "${DeployQt4_apple_plugins_dir}")
|
| 243 |
+
endif()
|
| 244 |
+
set(plugins_path "${executable}/Contents/${plugins_dir}")
|
| 245 |
+
else()
|
| 246 |
+
get_filename_component(plugins_path "${executable}" PATH)
|
| 247 |
+
if(NOT plugins_path)
|
| 248 |
+
set(plugins_path ".")
|
| 249 |
+
endif()
|
| 250 |
+
if(plugins_dir)
|
| 251 |
+
string(APPEND plugins_path "/${plugins_dir}")
|
| 252 |
+
endif()
|
| 253 |
+
endif()
|
| 254 |
+
|
| 255 |
+
set(plugin_group "")
|
| 256 |
+
|
| 257 |
+
get_filename_component(plugin_path "${plugin}" PATH)
|
| 258 |
+
get_filename_component(plugin_parent_path "${plugin_path}" PATH)
|
| 259 |
+
get_filename_component(plugin_parent_dir_name "${plugin_parent_path}" NAME)
|
| 260 |
+
get_filename_component(plugin_name "${plugin}" NAME)
|
| 261 |
+
string(TOLOWER "${plugin_parent_dir_name}" plugin_parent_dir_name)
|
| 262 |
+
|
| 263 |
+
if("${plugin_parent_dir_name}" STREQUAL "plugins")
|
| 264 |
+
get_filename_component(plugin_group "${plugin_path}" NAME)
|
| 265 |
+
set(${plugin_group_var} "${plugin_group}")
|
| 266 |
+
endif()
|
| 267 |
+
string(APPEND plugins_path "/${plugin_group}")
|
| 268 |
+
|
| 269 |
+
if(${copy})
|
| 270 |
+
file(MAKE_DIRECTORY "${plugins_path}")
|
| 271 |
+
file(COPY "${plugin}" DESTINATION "${plugins_path}")
|
| 272 |
+
else()
|
| 273 |
+
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
| 274 |
+
if(configurations AND (_isMultiConfig OR CMAKE_BUILD_TYPE))
|
| 275 |
+
set(configurations CONFIGURATIONS ${configurations})
|
| 276 |
+
else()
|
| 277 |
+
unset(configurations)
|
| 278 |
+
endif()
|
| 279 |
+
install(FILES "${plugin}" DESTINATION "${plugins_path}" ${configurations} ${component})
|
| 280 |
+
endif()
|
| 281 |
+
set(${installed_plugin_path_var} "${plugins_path}/${plugin_name}" PARENT_SCOPE)
|
| 282 |
+
endif()
|
| 283 |
+
endfunction()
|
| 284 |
+
|
| 285 |
+
function(install_qt4_plugin plugin executable copy installed_plugin_path_var)
|
| 286 |
+
unset(plugins_dir)
|
| 287 |
+
if(ARGC GREATER 4)
|
| 288 |
+
set(plugins_dir ${ARGV4})
|
| 289 |
+
endif()
|
| 290 |
+
unset(component)
|
| 291 |
+
if(ARGC GREATER 5)
|
| 292 |
+
set(component ${ARGV5})
|
| 293 |
+
endif()
|
| 294 |
+
|
| 295 |
+
if(EXISTS "${plugin}")
|
| 296 |
+
install_qt4_plugin_path("${plugin}" "${executable}" "${copy}" "${installed_plugin_path_var}" "${plugins_dir}" "${component}")
|
| 297 |
+
else()
|
| 298 |
+
string(TOUPPER "QT_${plugin}_PLUGIN" plugin_var)
|
| 299 |
+
set(plugin_release_var "${plugin_var}_RELEASE")
|
| 300 |
+
set(plugin_debug_var "${plugin_var}_DEBUG")
|
| 301 |
+
set(plugin_release "${${plugin_release_var}}")
|
| 302 |
+
set(plugin_debug "${${plugin_debug_var}}")
|
| 303 |
+
if(DEFINED "${plugin_release_var}" AND DEFINED "${plugin_debug_var}" AND NOT EXISTS "${plugin_release}" AND NOT EXISTS "${plugin_debug}")
|
| 304 |
+
message(WARNING "Qt plugin \"${plugin}\" not recognized or found.")
|
| 305 |
+
endif()
|
| 306 |
+
if(NOT EXISTS "${${plugin_debug_var}}")
|
| 307 |
+
set(plugin_debug "${plugin_release}")
|
| 308 |
+
endif()
|
| 309 |
+
|
| 310 |
+
get_property(_isMultiConfig GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
|
| 311 |
+
if(_isMultiConfig OR CMAKE_BUILD_TYPE)
|
| 312 |
+
set(_RELEASE_CONFIGS ${CMAKE_CONFIGURATION_TYPES} "${CMAKE_BUILD_TYPE}")
|
| 313 |
+
if (_RELEASE_CONFIGS)
|
| 314 |
+
list(FILTER _RELEASE_CONFIGS EXCLUDE REGEX "[Dd][Ee][Bb][Uu][Gg]")
|
| 315 |
+
endif()
|
| 316 |
+
string(REPLACE ";" "|" _RELEASE_CONFIGS "${_RELEASE_CONFIGS}")
|
| 317 |
+
install_qt4_plugin_path("${plugin_release}" "${executable}" "${copy}" "${installed_plugin_path_var}_release" "${plugins_dir}" "${component}" "${_RELEASE_CONFIGS}")
|
| 318 |
+
install_qt4_plugin_path("${plugin_debug}" "${executable}" "${copy}" "${installed_plugin_path_var}_debug" "${plugins_dir}" "${component}" "Debug")
|
| 319 |
+
unset(_RELEASE_CONFIGS)
|
| 320 |
+
|
| 321 |
+
if(CMAKE_BUILD_TYPE MATCHES "^Debug$")
|
| 322 |
+
set(${installed_plugin_path_var} ${${installed_plugin_path_var}_debug})
|
| 323 |
+
else()
|
| 324 |
+
set(${installed_plugin_path_var} ${${installed_plugin_path_var}_release})
|
| 325 |
+
endif()
|
| 326 |
+
else()
|
| 327 |
+
install_qt4_plugin_path("${plugin_release}" "${executable}" "${copy}" "${installed_plugin_path_var}" "${plugins_dir}" "${component}")
|
| 328 |
+
endif()
|
| 329 |
+
endif()
|
| 330 |
+
set(${installed_plugin_path_var} ${${installed_plugin_path_var}} PARENT_SCOPE)
|
| 331 |
+
endfunction()
|
| 332 |
+
|
| 333 |
+
function(install_qt4_executable executable)
|
| 334 |
+
unset(qtplugins)
|
| 335 |
+
if(ARGC GREATER 1)
|
| 336 |
+
set(qtplugins ${ARGV1})
|
| 337 |
+
endif()
|
| 338 |
+
unset(libs)
|
| 339 |
+
if(ARGC GREATER 2)
|
| 340 |
+
set(libs ${ARGV2})
|
| 341 |
+
endif()
|
| 342 |
+
unset(dirs)
|
| 343 |
+
if(ARGC GREATER 3)
|
| 344 |
+
set(dirs ${ARGV3})
|
| 345 |
+
endif()
|
| 346 |
+
unset(plugins_dir)
|
| 347 |
+
if(ARGC GREATER 4)
|
| 348 |
+
set(plugins_dir ${ARGV4})
|
| 349 |
+
endif()
|
| 350 |
+
unset(request_qt_conf)
|
| 351 |
+
if(ARGC GREATER 5)
|
| 352 |
+
set(request_qt_conf ${ARGV5})
|
| 353 |
+
endif()
|
| 354 |
+
unset(component)
|
| 355 |
+
if(ARGC GREATER 6)
|
| 356 |
+
set(component ${ARGV6})
|
| 357 |
+
endif()
|
| 358 |
+
|
| 359 |
+
if(QT_LIBRARY_DIR)
|
| 360 |
+
list(APPEND dirs "${QT_LIBRARY_DIR}")
|
| 361 |
+
endif()
|
| 362 |
+
if(QT_BINARY_DIR)
|
| 363 |
+
list(APPEND dirs "${QT_BINARY_DIR}")
|
| 364 |
+
endif()
|
| 365 |
+
if(component)
|
| 366 |
+
set(component COMPONENT ${component})
|
| 367 |
+
else()
|
| 368 |
+
unset(component)
|
| 369 |
+
endif()
|
| 370 |
+
|
| 371 |
+
get_filename_component(executable_absolute "${executable}" ABSOLUTE)
|
| 372 |
+
if(EXISTS "${QT_QTCORE_LIBRARY_RELEASE}")
|
| 373 |
+
gp_file_type("${executable_absolute}" "${QT_QTCORE_LIBRARY_RELEASE}" qtcore_type)
|
| 374 |
+
elseif(EXISTS "${QT_QTCORE_LIBRARY_DEBUG}")
|
| 375 |
+
gp_file_type("${executable_absolute}" "${QT_QTCORE_LIBRARY_DEBUG}" qtcore_type)
|
| 376 |
+
endif()
|
| 377 |
+
if(qtcore_type STREQUAL "system")
|
| 378 |
+
set(qt_plugins_dir "")
|
| 379 |
+
endif()
|
| 380 |
+
|
| 381 |
+
if(QT_IS_STATIC)
|
| 382 |
+
message(WARNING "Qt built statically: not installing plugins.")
|
| 383 |
+
else()
|
| 384 |
+
foreach(plugin ${qtplugins})
|
| 385 |
+
set(installed_plugin_paths "")
|
| 386 |
+
install_qt4_plugin("${plugin}" "${executable}" 0 installed_plugin_paths "${plugins_dir}" "${component}")
|
| 387 |
+
list(APPEND libs ${installed_plugin_paths})
|
| 388 |
+
endforeach()
|
| 389 |
+
endif()
|
| 390 |
+
|
| 391 |
+
resolve_qt4_paths(libs "")
|
| 392 |
+
|
| 393 |
+
install(CODE
|
| 394 |
+
"include(\"${CMAKE_CURRENT_FUNCTION_LIST_DIR}/DeployQt4.cmake\")
|
| 395 |
+
set(BU_CHMOD_BUNDLE_ITEMS TRUE)
|
| 396 |
+
FIXUP_QT4_EXECUTABLE(\"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${executable}\" \"\" \"${libs}\" \"${dirs}\" \"${plugins_dir}\" \"${request_qt_conf}\")"
|
| 397 |
+
${component}
|
| 398 |
+
)
|
| 399 |
+
endfunction()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindASPELL.cmake
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
FindASPELL
|
| 6 |
+
----------
|
| 7 |
+
|
| 8 |
+
Try to find ASPELL
|
| 9 |
+
|
| 10 |
+
Once done this will define
|
| 11 |
+
|
| 12 |
+
::
|
| 13 |
+
|
| 14 |
+
ASPELL_FOUND - system has ASPELL
|
| 15 |
+
ASPELL_EXECUTABLE - the ASPELL executable
|
| 16 |
+
ASPELL_INCLUDE_DIR - the ASPELL include directory
|
| 17 |
+
ASPELL_LIBRARIES - The libraries needed to use ASPELL
|
| 18 |
+
ASPELL_DEFINITIONS - Compiler switches required for using ASPELL
|
| 19 |
+
#]=======================================================================]
|
| 20 |
+
|
| 21 |
+
find_path(ASPELL_INCLUDE_DIR aspell.h )
|
| 22 |
+
|
| 23 |
+
find_program(ASPELL_EXECUTABLE
|
| 24 |
+
NAMES aspell
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
find_library(ASPELL_LIBRARIES NAMES aspell aspell-15 libaspell-15 libaspell)
|
| 28 |
+
|
| 29 |
+
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
| 30 |
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(ASPELL DEFAULT_MSG ASPELL_LIBRARIES ASPELL_INCLUDE_DIR ASPELL_EXECUTABLE)
|
| 31 |
+
|
| 32 |
+
mark_as_advanced(ASPELL_INCLUDE_DIR ASPELL_LIBRARIES ASPELL_EXECUTABLE)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindBacktrace.cmake
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
FindBacktrace
|
| 6 |
+
-------------
|
| 7 |
+
|
| 8 |
+
Find provider for `backtrace(3) <https://man7.org/linux/man-pages/man3/backtrace.3.html>`__.
|
| 9 |
+
|
| 10 |
+
Checks if OS supports ``backtrace(3)`` via either ``libc`` or custom library.
|
| 11 |
+
This module defines the following variables:
|
| 12 |
+
|
| 13 |
+
``Backtrace_HEADER``
|
| 14 |
+
The header file needed for ``backtrace(3)``. Cached.
|
| 15 |
+
Could be forcibly set by user.
|
| 16 |
+
``Backtrace_INCLUDE_DIRS``
|
| 17 |
+
The include directories needed to use ``backtrace(3)`` header.
|
| 18 |
+
``Backtrace_LIBRARIES``
|
| 19 |
+
The libraries (linker flags) needed to use ``backtrace(3)``, if any.
|
| 20 |
+
``Backtrace_FOUND``
|
| 21 |
+
Is set if and only if ``backtrace(3)`` support detected.
|
| 22 |
+
|
| 23 |
+
The following cache variables are also available to set or use:
|
| 24 |
+
|
| 25 |
+
``Backtrace_LIBRARY``
|
| 26 |
+
The external library providing backtrace, if any.
|
| 27 |
+
``Backtrace_INCLUDE_DIR``
|
| 28 |
+
The directory holding the ``backtrace(3)`` header.
|
| 29 |
+
|
| 30 |
+
Typical usage is to generate of header file using :command:`configure_file`
|
| 31 |
+
with the contents like the following::
|
| 32 |
+
|
| 33 |
+
#cmakedefine01 Backtrace_FOUND
|
| 34 |
+
#if Backtrace_FOUND
|
| 35 |
+
# include <${Backtrace_HEADER}>
|
| 36 |
+
#endif
|
| 37 |
+
|
| 38 |
+
And then reference that generated header file in actual source.
|
| 39 |
+
|
| 40 |
+
Imported Targets
|
| 41 |
+
^^^^^^^^^^^^^^^^
|
| 42 |
+
|
| 43 |
+
.. versionadded:: 3.30
|
| 44 |
+
|
| 45 |
+
This module defines the following :prop_tgt:`IMPORTED` targets:
|
| 46 |
+
|
| 47 |
+
``Backtrace::Backtrace``
|
| 48 |
+
An interface library providing usage requirements for the found components.
|
| 49 |
+
|
| 50 |
+
#]=======================================================================]
|
| 51 |
+
|
| 52 |
+
include(CMakePushCheckState)
|
| 53 |
+
include(CheckSymbolExists)
|
| 54 |
+
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
| 55 |
+
|
| 56 |
+
# List of variables to be provided to find_package_handle_standard_args()
|
| 57 |
+
set(_Backtrace_STD_ARGS Backtrace_INCLUDE_DIR)
|
| 58 |
+
|
| 59 |
+
if(Backtrace_HEADER)
|
| 60 |
+
set(_Backtrace_HEADER_TRY "${Backtrace_HEADER}")
|
| 61 |
+
else(Backtrace_HEADER)
|
| 62 |
+
set(_Backtrace_HEADER_TRY "execinfo.h")
|
| 63 |
+
endif(Backtrace_HEADER)
|
| 64 |
+
|
| 65 |
+
find_path(Backtrace_INCLUDE_DIR "${_Backtrace_HEADER_TRY}")
|
| 66 |
+
set(Backtrace_INCLUDE_DIRS ${Backtrace_INCLUDE_DIR})
|
| 67 |
+
|
| 68 |
+
if (NOT DEFINED Backtrace_LIBRARY)
|
| 69 |
+
# First, check if we already have backtrace(), e.g., in libc
|
| 70 |
+
cmake_push_check_state(RESET)
|
| 71 |
+
set(CMAKE_REQUIRED_INCLUDES ${Backtrace_INCLUDE_DIRS})
|
| 72 |
+
set(CMAKE_REQUIRED_QUIET ${Backtrace_FIND_QUIETLY})
|
| 73 |
+
check_symbol_exists("backtrace" "${_Backtrace_HEADER_TRY}" _Backtrace_SYM_FOUND)
|
| 74 |
+
cmake_pop_check_state()
|
| 75 |
+
endif()
|
| 76 |
+
|
| 77 |
+
if(_Backtrace_SYM_FOUND)
|
| 78 |
+
# Avoid repeating the message() call below each time CMake is run.
|
| 79 |
+
if(NOT Backtrace_FIND_QUIETLY AND NOT DEFINED Backtrace_LIBRARY)
|
| 80 |
+
message(STATUS "backtrace facility detected in default set of libraries")
|
| 81 |
+
endif()
|
| 82 |
+
set(Backtrace_LIBRARY "" CACHE FILEPATH "Library providing backtrace(3), empty for default set of libraries")
|
| 83 |
+
else()
|
| 84 |
+
# Check for external library, for non-glibc systems
|
| 85 |
+
if(Backtrace_INCLUDE_DIR)
|
| 86 |
+
# OpenBSD has libbacktrace renamed to libexecinfo
|
| 87 |
+
find_library(Backtrace_LIBRARY "execinfo")
|
| 88 |
+
else() # respect user wishes
|
| 89 |
+
set(_Backtrace_HEADER_TRY "backtrace.h")
|
| 90 |
+
find_path(Backtrace_INCLUDE_DIR ${_Backtrace_HEADER_TRY})
|
| 91 |
+
find_library(Backtrace_LIBRARY "backtrace")
|
| 92 |
+
endif()
|
| 93 |
+
|
| 94 |
+
# Prepend list with library path as it's more common practice
|
| 95 |
+
set(_Backtrace_STD_ARGS Backtrace_LIBRARY ${_Backtrace_STD_ARGS})
|
| 96 |
+
endif()
|
| 97 |
+
|
| 98 |
+
set(Backtrace_LIBRARIES ${Backtrace_LIBRARY})
|
| 99 |
+
set(Backtrace_HEADER "${_Backtrace_HEADER_TRY}" CACHE STRING "Header providing backtrace(3) facility")
|
| 100 |
+
|
| 101 |
+
find_package_handle_standard_args(Backtrace FOUND_VAR Backtrace_FOUND REQUIRED_VARS ${_Backtrace_STD_ARGS})
|
| 102 |
+
mark_as_advanced(Backtrace_HEADER Backtrace_INCLUDE_DIR Backtrace_LIBRARY)
|
| 103 |
+
|
| 104 |
+
if(Backtrace_FOUND AND NOT TARGET Backtrace::Backtrace)
|
| 105 |
+
if(Backtrace_LIBRARY)
|
| 106 |
+
add_library(Backtrace::Backtrace UNKNOWN IMPORTED)
|
| 107 |
+
set_property(TARGET Backtrace::Backtrace PROPERTY IMPORTED_LOCATION "${Backtrace_LIBRARY}")
|
| 108 |
+
else()
|
| 109 |
+
add_library(Backtrace::Backtrace INTERFACE IMPORTED)
|
| 110 |
+
target_link_libraries(Backtrace::Backtrace INTERFACE ${Backtrace_LIBRARIES})
|
| 111 |
+
endif()
|
| 112 |
+
target_include_directories(Backtrace::Backtrace INTERFACE ${Backtrace_INCLUDE_DIRS})
|
| 113 |
+
endif()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindCUDAToolkit.cmake
ADDED
|
@@ -0,0 +1,1409 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
FindCUDAToolkit
|
| 6 |
+
---------------
|
| 7 |
+
|
| 8 |
+
.. versionadded:: 3.17
|
| 9 |
+
|
| 10 |
+
This script locates the NVIDIA CUDA toolkit and the associated libraries, but
|
| 11 |
+
does not require the ``CUDA`` language be enabled for a given project. This
|
| 12 |
+
module does not search for the NVIDIA CUDA Samples.
|
| 13 |
+
|
| 14 |
+
.. versionadded:: 3.19
|
| 15 |
+
QNX support.
|
| 16 |
+
|
| 17 |
+
Search Behavior
|
| 18 |
+
^^^^^^^^^^^^^^^
|
| 19 |
+
|
| 20 |
+
The CUDA Toolkit search behavior uses the following order:
|
| 21 |
+
|
| 22 |
+
1. If the ``CUDA`` language has been enabled we will use the directory
|
| 23 |
+
containing the compiler as the first search location for ``nvcc``.
|
| 24 |
+
|
| 25 |
+
2. If the variable :variable:`CMAKE_CUDA_COMPILER <CMAKE_<LANG>_COMPILER>` or
|
| 26 |
+
the environment variable :envvar:`CUDACXX` is defined, it will be used
|
| 27 |
+
as the path to the ``nvcc`` executable.
|
| 28 |
+
|
| 29 |
+
3. If the ``CUDAToolkit_ROOT`` cmake configuration variable (e.g.,
|
| 30 |
+
``-DCUDAToolkit_ROOT=/some/path``) *or* environment variable is defined, it
|
| 31 |
+
will be searched. If both an environment variable **and** a
|
| 32 |
+
configuration variable are specified, the *configuration* variable takes
|
| 33 |
+
precedence.
|
| 34 |
+
|
| 35 |
+
The directory specified here must be such that the executable ``nvcc`` or
|
| 36 |
+
the appropriate ``version.txt`` or ``version.json`` file can be found
|
| 37 |
+
underneath the specified directory.
|
| 38 |
+
|
| 39 |
+
4. If the CUDA_PATH environment variable is defined, it will be searched
|
| 40 |
+
for ``nvcc``.
|
| 41 |
+
|
| 42 |
+
5. The user's path is searched for ``nvcc`` using :command:`find_program`. If
|
| 43 |
+
this is found, no subsequent search attempts are performed. Users are
|
| 44 |
+
responsible for ensuring that the first ``nvcc`` to show up in the path is
|
| 45 |
+
the desired path in the event that multiple CUDA Toolkits are installed.
|
| 46 |
+
|
| 47 |
+
6. On Unix systems, if the symbolic link ``/usr/local/cuda`` exists, this is
|
| 48 |
+
used. No subsequent search attempts are performed. No default symbolic link
|
| 49 |
+
location exists for the Windows platform.
|
| 50 |
+
|
| 51 |
+
7. The platform specific default install locations are searched. If exactly one
|
| 52 |
+
candidate is found, this is used. The default CUDA Toolkit install locations
|
| 53 |
+
searched are:
|
| 54 |
+
|
| 55 |
+
+-------------+-------------------------------------------------------------+
|
| 56 |
+
| Platform | Search Pattern |
|
| 57 |
+
+=============+=============================================================+
|
| 58 |
+
| macOS | ``/Developer/NVIDIA/CUDA-X.Y`` |
|
| 59 |
+
+-------------+-------------------------------------------------------------+
|
| 60 |
+
| Other Unix | ``/usr/local/cuda-X.Y`` |
|
| 61 |
+
+-------------+-------------------------------------------------------------+
|
| 62 |
+
| Windows | ``C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vX.Y`` |
|
| 63 |
+
+-------------+-------------------------------------------------------------+
|
| 64 |
+
|
| 65 |
+
Where ``X.Y`` would be a specific version of the CUDA Toolkit, such as
|
| 66 |
+
``/usr/local/cuda-9.0`` or
|
| 67 |
+
``C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0``
|
| 68 |
+
|
| 69 |
+
.. note::
|
| 70 |
+
|
| 71 |
+
When multiple CUDA Toolkits are installed in the default location of a
|
| 72 |
+
system (e.g., both ``/usr/local/cuda-9.0`` and ``/usr/local/cuda-10.0``
|
| 73 |
+
exist but the ``/usr/local/cuda`` symbolic link does **not** exist), this
|
| 74 |
+
package is marked as **not** found.
|
| 75 |
+
|
| 76 |
+
There are too many factors involved in making an automatic decision in
|
| 77 |
+
the presence of multiple CUDA Toolkits being installed. In this
|
| 78 |
+
situation, users are encouraged to either (1) set ``CUDAToolkit_ROOT`` or
|
| 79 |
+
(2) ensure that the correct ``nvcc`` executable shows up in ``$PATH`` for
|
| 80 |
+
:command:`find_program` to find.
|
| 81 |
+
|
| 82 |
+
Arguments
|
| 83 |
+
^^^^^^^^^
|
| 84 |
+
|
| 85 |
+
``[<version>]``
|
| 86 |
+
The ``[<version>]`` argument requests a version with which the package found
|
| 87 |
+
should be compatible. See :ref:`find_package version format <FIND_PACKAGE_VERSION_FORMAT>`
|
| 88 |
+
for more details.
|
| 89 |
+
|
| 90 |
+
Options
|
| 91 |
+
^^^^^^^
|
| 92 |
+
|
| 93 |
+
``REQUIRED``
|
| 94 |
+
If specified, configuration will error if a suitable CUDA Toolkit is not
|
| 95 |
+
found.
|
| 96 |
+
|
| 97 |
+
``QUIET``
|
| 98 |
+
If specified, the search for a suitable CUDA Toolkit will not produce any
|
| 99 |
+
messages.
|
| 100 |
+
|
| 101 |
+
``EXACT``
|
| 102 |
+
If specified, the CUDA Toolkit is considered found only if the exact
|
| 103 |
+
``VERSION`` specified is recovered.
|
| 104 |
+
|
| 105 |
+
Imported targets
|
| 106 |
+
^^^^^^^^^^^^^^^^
|
| 107 |
+
|
| 108 |
+
An :ref:`imported target <Imported targets>` named ``CUDA::toolkit`` is provided.
|
| 109 |
+
|
| 110 |
+
This module defines :prop_tgt:`IMPORTED` targets for each
|
| 111 |
+
of the following libraries that are part of the CUDAToolkit:
|
| 112 |
+
|
| 113 |
+
- :ref:`CUDA Runtime Library<cuda_toolkit_rt_lib>`
|
| 114 |
+
- :ref:`CUDA Driver Library<cuda_toolkit_driver_lib>`
|
| 115 |
+
- :ref:`cuBLAS<cuda_toolkit_cuBLAS>`
|
| 116 |
+
- :ref:`cuDLA<cuda_toolkit_cuDLA>`
|
| 117 |
+
- :ref:`cuFile<cuda_toolkit_cuFile>`
|
| 118 |
+
- :ref:`cuFFT<cuda_toolkit_cuFFT>`
|
| 119 |
+
- :ref:`cuRAND<cuda_toolkit_cuRAND>`
|
| 120 |
+
- :ref:`cuSOLVER<cuda_toolkit_cuSOLVER>`
|
| 121 |
+
- :ref:`cuSPARSE<cuda_toolkit_cuSPARSE>`
|
| 122 |
+
- :ref:`cuPTI<cuda_toolkit_cupti>`
|
| 123 |
+
- :ref:`NPP<cuda_toolkit_NPP>`
|
| 124 |
+
- :ref:`nvBLAS<cuda_toolkit_nvBLAS>`
|
| 125 |
+
- :ref:`nvGRAPH<cuda_toolkit_nvGRAPH>`
|
| 126 |
+
- :ref:`nvJPEG<cuda_toolkit_nvJPEG>`
|
| 127 |
+
- :ref:`nvidia-ML<cuda_toolkit_nvML>`
|
| 128 |
+
- :ref:`nvPTX Compiler<cuda_toolkit_nvptx>`
|
| 129 |
+
- :ref:`nvRTC<cuda_toolkit_nvRTC>`
|
| 130 |
+
- :ref:`nvJitLink<cuda_toolkit_nvJitLink>`
|
| 131 |
+
- :ref:`nvFatBin<cuda_toolkit_nvfatbin>`
|
| 132 |
+
- :ref:`nvToolsExt<cuda_toolkit_nvToolsExt>`
|
| 133 |
+
- :ref:`nvtx3<cuda_toolkit_nvtx3>`
|
| 134 |
+
- :ref:`OpenCL<cuda_toolkit_opencl>`
|
| 135 |
+
- :ref:`cuLIBOS<cuda_toolkit_cuLIBOS>`
|
| 136 |
+
|
| 137 |
+
.. _`cuda_toolkit_rt_lib`:
|
| 138 |
+
|
| 139 |
+
CUDA Runtime Library
|
| 140 |
+
""""""""""""""""""""
|
| 141 |
+
|
| 142 |
+
The CUDA Runtime library (cudart) are what most applications will typically
|
| 143 |
+
need to link against to make any calls such as `cudaMalloc`, and `cudaFree`.
|
| 144 |
+
|
| 145 |
+
Targets Created:
|
| 146 |
+
|
| 147 |
+
- ``CUDA::cudart``
|
| 148 |
+
- ``CUDA::cudart_static``
|
| 149 |
+
|
| 150 |
+
.. _`cuda_toolkit_driver_lib`:
|
| 151 |
+
|
| 152 |
+
CUDA Driver Library
|
| 153 |
+
""""""""""""""""""""
|
| 154 |
+
|
| 155 |
+
The CUDA Driver library (cuda) are used by applications that use calls
|
| 156 |
+
such as `cuMemAlloc`, and `cuMemFree`.
|
| 157 |
+
|
| 158 |
+
Targets Created:
|
| 159 |
+
|
| 160 |
+
- ``CUDA::cuda_driver``
|
| 161 |
+
|
| 162 |
+
.. _`cuda_toolkit_cuBLAS`:
|
| 163 |
+
|
| 164 |
+
cuBLAS
|
| 165 |
+
""""""
|
| 166 |
+
|
| 167 |
+
The `cuBLAS <https://docs.nvidia.com/cuda/cublas>`_ library.
|
| 168 |
+
|
| 169 |
+
Targets Created:
|
| 170 |
+
|
| 171 |
+
- ``CUDA::cublas``
|
| 172 |
+
- ``CUDA::cublas_static``
|
| 173 |
+
- ``CUDA::cublasLt`` starting in CUDA 10.1
|
| 174 |
+
- ``CUDA::cublasLt_static`` starting in CUDA 10.1
|
| 175 |
+
|
| 176 |
+
.. _`cuda_toolkit_cuDLA`:
|
| 177 |
+
|
| 178 |
+
cuDLA
|
| 179 |
+
""""""
|
| 180 |
+
|
| 181 |
+
.. versionadded:: 3.27
|
| 182 |
+
|
| 183 |
+
The NVIDIA Tegra Deep Learning Accelerator `cuDLA <https://docs.nvidia.com/cuda/cublas>`_ library.
|
| 184 |
+
|
| 185 |
+
Targets Created:
|
| 186 |
+
|
| 187 |
+
- ``CUDA::cudla`` starting in CUDA 11.6
|
| 188 |
+
|
| 189 |
+
.. _`cuda_toolkit_cuFile`:
|
| 190 |
+
|
| 191 |
+
cuFile
|
| 192 |
+
""""""
|
| 193 |
+
|
| 194 |
+
.. versionadded:: 3.25
|
| 195 |
+
|
| 196 |
+
The NVIDIA GPUDirect Storage `cuFile <https://docs.nvidia.com/gpudirect-storage/api-reference-guide>`_ library.
|
| 197 |
+
|
| 198 |
+
Targets Created:
|
| 199 |
+
|
| 200 |
+
- ``CUDA::cuFile`` starting in CUDA 11.4
|
| 201 |
+
- ``CUDA::cuFile_static`` starting in CUDA 11.4
|
| 202 |
+
- ``CUDA::cuFile_rdma`` starting in CUDA 11.4
|
| 203 |
+
- ``CUDA::cuFile_rdma_static`` starting in CUDA 11.4
|
| 204 |
+
|
| 205 |
+
.. _`cuda_toolkit_cuFFT`:
|
| 206 |
+
|
| 207 |
+
cuFFT
|
| 208 |
+
"""""
|
| 209 |
+
|
| 210 |
+
The `cuFFT <https://docs.nvidia.com/cuda/cufft>`_ library.
|
| 211 |
+
|
| 212 |
+
Targets Created:
|
| 213 |
+
|
| 214 |
+
- ``CUDA::cufft``
|
| 215 |
+
- ``CUDA::cufftw``
|
| 216 |
+
- ``CUDA::cufft_static``
|
| 217 |
+
- ``CUDA::cufft_static_nocallback`` starting in CUDA 9.2, requires CMake 3.23+
|
| 218 |
+
- ``CUDA::cufftw_static``
|
| 219 |
+
|
| 220 |
+
cuRAND
|
| 221 |
+
""""""
|
| 222 |
+
|
| 223 |
+
The `cuRAND <https://docs.nvidia.com/cuda/curand>`_ library.
|
| 224 |
+
|
| 225 |
+
Targets Created:
|
| 226 |
+
|
| 227 |
+
- ``CUDA::curand``
|
| 228 |
+
- ``CUDA::curand_static``
|
| 229 |
+
|
| 230 |
+
.. _`cuda_toolkit_cuSOLVER`:
|
| 231 |
+
|
| 232 |
+
cuSOLVER
|
| 233 |
+
""""""""
|
| 234 |
+
|
| 235 |
+
The `cuSOLVER <https://docs.nvidia.com/cuda/cusolver>`_ library.
|
| 236 |
+
|
| 237 |
+
Targets Created:
|
| 238 |
+
|
| 239 |
+
- ``CUDA::cusolver``
|
| 240 |
+
- ``CUDA::cusolver_static``
|
| 241 |
+
|
| 242 |
+
.. _`cuda_toolkit_cuSPARSE`:
|
| 243 |
+
|
| 244 |
+
cuSPARSE
|
| 245 |
+
""""""""
|
| 246 |
+
|
| 247 |
+
The `cuSPARSE <https://docs.nvidia.com/cuda/cusparse>`_ library.
|
| 248 |
+
|
| 249 |
+
Targets Created:
|
| 250 |
+
|
| 251 |
+
- ``CUDA::cusparse``
|
| 252 |
+
- ``CUDA::cusparse_static``
|
| 253 |
+
|
| 254 |
+
.. _`cuda_toolkit_cupti`:
|
| 255 |
+
|
| 256 |
+
cupti
|
| 257 |
+
"""""
|
| 258 |
+
|
| 259 |
+
The `NVIDIA CUDA Profiling Tools Interface <https://developer.nvidia.com/cupti>`_.
|
| 260 |
+
|
| 261 |
+
Targets Created:
|
| 262 |
+
|
| 263 |
+
- ``CUDA::cupti``
|
| 264 |
+
- ``CUDA::cupti_static``
|
| 265 |
+
|
| 266 |
+
.. versionadded:: 3.27
|
| 267 |
+
|
| 268 |
+
- ``CUDA::nvperf_host`` starting in CUDA 10.2
|
| 269 |
+
- ``CUDA::nvperf_host_static`` starting in CUDA 10.2
|
| 270 |
+
- ``CUDA::nvperf_target`` starting in CUDA 10.2
|
| 271 |
+
- ``CUDA::pcsamplingutil`` starting in CUDA 11.3
|
| 272 |
+
|
| 273 |
+
.. _`cuda_toolkit_NPP`:
|
| 274 |
+
|
| 275 |
+
NPP
|
| 276 |
+
"""
|
| 277 |
+
|
| 278 |
+
The `NPP <https://docs.nvidia.com/cuda/npp>`_ libraries.
|
| 279 |
+
|
| 280 |
+
Targets Created:
|
| 281 |
+
|
| 282 |
+
- `nppc`:
|
| 283 |
+
|
| 284 |
+
- ``CUDA::nppc``
|
| 285 |
+
- ``CUDA::nppc_static``
|
| 286 |
+
|
| 287 |
+
- `nppial`: Arithmetic and logical operation functions in `nppi_arithmetic_and_logical_operations.h`
|
| 288 |
+
|
| 289 |
+
- ``CUDA::nppial``
|
| 290 |
+
- ``CUDA::nppial_static``
|
| 291 |
+
|
| 292 |
+
- `nppicc`: Color conversion and sampling functions in `nppi_color_conversion.h`
|
| 293 |
+
|
| 294 |
+
- ``CUDA::nppicc``
|
| 295 |
+
- ``CUDA::nppicc_static``
|
| 296 |
+
|
| 297 |
+
- `nppicom`: JPEG compression and decompression functions in `nppi_compression_functions.h`
|
| 298 |
+
Removed starting in CUDA 11.0, use :ref:`nvJPEG<cuda_toolkit_nvJPEG>` instead.
|
| 299 |
+
|
| 300 |
+
- ``CUDA::nppicom``
|
| 301 |
+
- ``CUDA::nppicom_static``
|
| 302 |
+
|
| 303 |
+
- `nppidei`: Data exchange and initialization functions in `nppi_data_exchange_and_initialization.h`
|
| 304 |
+
|
| 305 |
+
- ``CUDA::nppidei``
|
| 306 |
+
- ``CUDA::nppidei_static``
|
| 307 |
+
|
| 308 |
+
- `nppif`: Filtering and computer vision functions in `nppi_filter_functions.h`
|
| 309 |
+
|
| 310 |
+
- ``CUDA::nppif``
|
| 311 |
+
- ``CUDA::nppif_static``
|
| 312 |
+
|
| 313 |
+
- `nppig`: Geometry transformation functions found in `nppi_geometry_transforms.h`
|
| 314 |
+
|
| 315 |
+
- ``CUDA::nppig``
|
| 316 |
+
- ``CUDA::nppig_static``
|
| 317 |
+
|
| 318 |
+
- `nppim`: Morphological operation functions found in `nppi_morphological_operations.h`
|
| 319 |
+
|
| 320 |
+
- ``CUDA::nppim``
|
| 321 |
+
- ``CUDA::nppim_static``
|
| 322 |
+
|
| 323 |
+
- `nppist`: Statistics and linear transform in `nppi_statistics_functions.h` and `nppi_linear_transforms.h`
|
| 324 |
+
|
| 325 |
+
- ``CUDA::nppist``
|
| 326 |
+
- ``CUDA::nppist_static``
|
| 327 |
+
|
| 328 |
+
- `nppisu`: Memory support functions in `nppi_support_functions.h`
|
| 329 |
+
|
| 330 |
+
- ``CUDA::nppisu``
|
| 331 |
+
- ``CUDA::nppisu_static``
|
| 332 |
+
|
| 333 |
+
- `nppitc`: Threshold and compare operation functions in `nppi_threshold_and_compare_operations.h`
|
| 334 |
+
|
| 335 |
+
- ``CUDA::nppitc``
|
| 336 |
+
- ``CUDA::nppitc_static``
|
| 337 |
+
|
| 338 |
+
- `npps`:
|
| 339 |
+
|
| 340 |
+
- ``CUDA::npps``
|
| 341 |
+
- ``CUDA::npps_static``
|
| 342 |
+
|
| 343 |
+
.. _`cuda_toolkit_nvBLAS`:
|
| 344 |
+
|
| 345 |
+
nvBLAS
|
| 346 |
+
""""""
|
| 347 |
+
|
| 348 |
+
The `nvBLAS <https://docs.nvidia.com/cuda/nvblas>`_ libraries.
|
| 349 |
+
This is a shared library only.
|
| 350 |
+
|
| 351 |
+
Targets Created:
|
| 352 |
+
|
| 353 |
+
- ``CUDA::nvblas``
|
| 354 |
+
|
| 355 |
+
.. _`cuda_toolkit_nvGRAPH`:
|
| 356 |
+
|
| 357 |
+
nvGRAPH
|
| 358 |
+
"""""""
|
| 359 |
+
|
| 360 |
+
The `nvGRAPH <https://web.archive.org/web/20201111171403/https://docs.nvidia.com/cuda/nvgraph/index.html>`_ library.
|
| 361 |
+
Removed starting in CUDA 11.0
|
| 362 |
+
|
| 363 |
+
Targets Created:
|
| 364 |
+
|
| 365 |
+
- ``CUDA::nvgraph``
|
| 366 |
+
- ``CUDA::nvgraph_static``
|
| 367 |
+
|
| 368 |
+
|
| 369 |
+
.. _`cuda_toolkit_nvJPEG`:
|
| 370 |
+
|
| 371 |
+
nvJPEG
|
| 372 |
+
""""""
|
| 373 |
+
|
| 374 |
+
The `nvJPEG <https://docs.nvidia.com/cuda/nvjpeg>`_ library.
|
| 375 |
+
Introduced in CUDA 10.
|
| 376 |
+
|
| 377 |
+
Targets Created:
|
| 378 |
+
|
| 379 |
+
- ``CUDA::nvjpeg``
|
| 380 |
+
- ``CUDA::nvjpeg_static``
|
| 381 |
+
|
| 382 |
+
.. _`cuda_toolkit_nvPTX`:
|
| 383 |
+
|
| 384 |
+
nvPTX Compiler
|
| 385 |
+
""""""""""""""
|
| 386 |
+
|
| 387 |
+
.. versionadded:: 3.25
|
| 388 |
+
|
| 389 |
+
The `nvPTX <https://docs.nvidia.com/cuda/ptx-compiler-api>`_ (PTX Compilation) library.
|
| 390 |
+
The PTX Compiler APIs are a set of APIs which can be used to compile a PTX program into GPU assembly code.
|
| 391 |
+
Introduced in CUDA 11.1
|
| 392 |
+
This is a static library only.
|
| 393 |
+
|
| 394 |
+
Targets Created:
|
| 395 |
+
|
| 396 |
+
- ``CUDA::nvptxcompiler_static`` starting in CUDA 11.1
|
| 397 |
+
|
| 398 |
+
.. _`cuda_toolkit_nvRTC`:
|
| 399 |
+
|
| 400 |
+
nvRTC
|
| 401 |
+
"""""
|
| 402 |
+
|
| 403 |
+
The `nvRTC <https://docs.nvidia.com/cuda/nvrtc>`_ (Runtime Compilation) library.
|
| 404 |
+
|
| 405 |
+
Targets Created:
|
| 406 |
+
|
| 407 |
+
- ``CUDA::nvrtc``
|
| 408 |
+
|
| 409 |
+
.. versionadded:: 3.26
|
| 410 |
+
|
| 411 |
+
- ``CUDA::nvrtc_builtins``
|
| 412 |
+
- ``CUDA::nvrtc_static`` starting in CUDA 11.5
|
| 413 |
+
- ``CUDA::nvrtc_builtins_static`` starting in CUDA 11.5
|
| 414 |
+
|
| 415 |
+
.. _`cuda_toolkit_nvjitlink`:
|
| 416 |
+
|
| 417 |
+
nvJitLink
|
| 418 |
+
"""""""""
|
| 419 |
+
|
| 420 |
+
The `nvJItLink <https://docs.nvidia.com/cuda/>`_ (Runtime LTO Linking) library.
|
| 421 |
+
|
| 422 |
+
Targets Created:
|
| 423 |
+
|
| 424 |
+
- ``CUDA::nvJitLink`` starting in CUDA 12.0
|
| 425 |
+
- ``CUDA::nvJitLink_static`` starting in CUDA 12.0
|
| 426 |
+
|
| 427 |
+
.. _`cuda_toolkit_nvfatbin`:
|
| 428 |
+
|
| 429 |
+
nvFatBin
|
| 430 |
+
"""""""""
|
| 431 |
+
|
| 432 |
+
.. versionadded:: 3.30
|
| 433 |
+
|
| 434 |
+
The `nvFatBin <https://docs.nvidia.com/cuda/>`_ (Runtime fatbin creation) library.
|
| 435 |
+
|
| 436 |
+
Targets Created:
|
| 437 |
+
|
| 438 |
+
- ``CUDA::nvfatbin`` starting in CUDA 12.4
|
| 439 |
+
- ``CUDA::nvfatbin_static`` starting in CUDA 12.4
|
| 440 |
+
|
| 441 |
+
.. _`cuda_toolkit_nvml`:
|
| 442 |
+
|
| 443 |
+
nvidia-ML
|
| 444 |
+
"""""""""
|
| 445 |
+
|
| 446 |
+
The `NVIDIA Management Library <https://developer.nvidia.com/management-library-nvml>`_.
|
| 447 |
+
|
| 448 |
+
Targets Created:
|
| 449 |
+
|
| 450 |
+
- ``CUDA::nvml``
|
| 451 |
+
- ``CUDA::nvml_static`` starting in CUDA 12.4
|
| 452 |
+
|
| 453 |
+
.. versionadded:: 3.31
|
| 454 |
+
Added ``CUDA::nvml_static``.
|
| 455 |
+
|
| 456 |
+
.. _`cuda_toolkit_nvToolsExt`:
|
| 457 |
+
|
| 458 |
+
nvToolsExt
|
| 459 |
+
""""""""""
|
| 460 |
+
|
| 461 |
+
.. deprecated:: 3.25 With CUDA 10.0+, use :ref:`nvtx3 <cuda_toolkit_nvtx3>`.
|
| 462 |
+
|
| 463 |
+
The `NVIDIA Tools Extension <https://docs.nvidia.com/nvtx/>`_.
|
| 464 |
+
This is a shared library only.
|
| 465 |
+
|
| 466 |
+
Targets Created:
|
| 467 |
+
|
| 468 |
+
- ``CUDA::nvToolsExt``
|
| 469 |
+
|
| 470 |
+
.. _`cuda_toolkit_nvtx3`:
|
| 471 |
+
|
| 472 |
+
nvtx3
|
| 473 |
+
"""""
|
| 474 |
+
|
| 475 |
+
.. versionadded:: 3.25
|
| 476 |
+
|
| 477 |
+
The header-only `NVIDIA Tools Extension Library <https://nvidia.github.io/NVTX/doxygen>`_.
|
| 478 |
+
Introduced in CUDA 10.0.
|
| 479 |
+
|
| 480 |
+
Targets created:
|
| 481 |
+
|
| 482 |
+
- ``CUDA::nvtx3``
|
| 483 |
+
|
| 484 |
+
.. _`cuda_toolkit_opencl`:
|
| 485 |
+
|
| 486 |
+
OpenCL
|
| 487 |
+
""""""
|
| 488 |
+
|
| 489 |
+
The `NVIDIA OpenCL Library <https://developer.nvidia.com/opencl>`_.
|
| 490 |
+
This is a shared library only.
|
| 491 |
+
|
| 492 |
+
Targets Created:
|
| 493 |
+
|
| 494 |
+
- ``CUDA::OpenCL``
|
| 495 |
+
|
| 496 |
+
.. _`cuda_toolkit_cuLIBOS`:
|
| 497 |
+
|
| 498 |
+
cuLIBOS
|
| 499 |
+
"""""""
|
| 500 |
+
|
| 501 |
+
The cuLIBOS library is a backend thread abstraction layer library which is
|
| 502 |
+
static only. The ``CUDA::cublas_static``, ``CUDA::cusparse_static``,
|
| 503 |
+
``CUDA::cufft_static``, ``CUDA::curand_static``, and (when implemented) NPP
|
| 504 |
+
libraries all automatically have this dependency linked.
|
| 505 |
+
|
| 506 |
+
Target Created:
|
| 507 |
+
|
| 508 |
+
- ``CUDA::culibos``
|
| 509 |
+
|
| 510 |
+
**Note**: direct usage of this target by consumers should not be necessary.
|
| 511 |
+
|
| 512 |
+
.. _`cuda_toolkit_cuRAND`:
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
|
| 516 |
+
Result variables
|
| 517 |
+
^^^^^^^^^^^^^^^^
|
| 518 |
+
|
| 519 |
+
``CUDAToolkit_FOUND``
|
| 520 |
+
A boolean specifying whether or not the CUDA Toolkit was found.
|
| 521 |
+
|
| 522 |
+
``CUDAToolkit_VERSION``
|
| 523 |
+
The exact version of the CUDA Toolkit found (as reported by
|
| 524 |
+
``nvcc --version``, ``version.txt``, or ``version.json``).
|
| 525 |
+
|
| 526 |
+
``CUDAToolkit_VERSION_MAJOR``
|
| 527 |
+
The major version of the CUDA Toolkit.
|
| 528 |
+
|
| 529 |
+
``CUDAToolkit_VERSION_MINOR``
|
| 530 |
+
The minor version of the CUDA Toolkit.
|
| 531 |
+
|
| 532 |
+
``CUDAToolkit_VERSION_PATCH``
|
| 533 |
+
The patch version of the CUDA Toolkit.
|
| 534 |
+
|
| 535 |
+
``CUDAToolkit_BIN_DIR``
|
| 536 |
+
The path to the CUDA Toolkit library directory that contains the CUDA
|
| 537 |
+
executable ``nvcc``.
|
| 538 |
+
|
| 539 |
+
``CUDAToolkit_INCLUDE_DIRS``
|
| 540 |
+
List of paths to all the CUDA Toolkit folders containing header files
|
| 541 |
+
required to compile a project linking against CUDA.
|
| 542 |
+
|
| 543 |
+
``CUDAToolkit_LIBRARY_DIR``
|
| 544 |
+
The path to the CUDA Toolkit library directory that contains the CUDA
|
| 545 |
+
Runtime library ``cudart``.
|
| 546 |
+
|
| 547 |
+
``CUDAToolkit_LIBRARY_ROOT``
|
| 548 |
+
.. versionadded:: 3.18
|
| 549 |
+
|
| 550 |
+
The path to the CUDA Toolkit directory containing the nvvm directory and
|
| 551 |
+
either version.txt or version.json.
|
| 552 |
+
|
| 553 |
+
``CUDAToolkit_TARGET_DIR``
|
| 554 |
+
The path to the CUDA Toolkit directory including the target architecture
|
| 555 |
+
when cross-compiling. When not cross-compiling this will be equivalent to
|
| 556 |
+
the parent directory of ``CUDAToolkit_BIN_DIR``.
|
| 557 |
+
|
| 558 |
+
``CUDAToolkit_NVCC_EXECUTABLE``
|
| 559 |
+
The path to the NVIDIA CUDA compiler ``nvcc``. Note that this path may
|
| 560 |
+
**not** be the same as
|
| 561 |
+
:variable:`CMAKE_CUDA_COMPILER <CMAKE_<LANG>_COMPILER>`. ``nvcc`` must be
|
| 562 |
+
found to determine the CUDA Toolkit version as well as determining other
|
| 563 |
+
features of the Toolkit. This variable is set for the convenience of
|
| 564 |
+
modules that depend on this one.
|
| 565 |
+
|
| 566 |
+
|
| 567 |
+
#]=======================================================================]
|
| 568 |
+
|
| 569 |
+
# NOTE: much of this was simply extracted from FindCUDA.cmake.
|
| 570 |
+
|
| 571 |
+
# James Bigler, NVIDIA Corp (nvidia.com - jbigler)
|
| 572 |
+
# Abe Stephens, SCI Institute -- http://www.sci.utah.edu/~abe/FindCuda.html
|
| 573 |
+
#
|
| 574 |
+
# Copyright (c) 2008 - 2009 NVIDIA Corporation. All rights reserved.
|
| 575 |
+
#
|
| 576 |
+
# Copyright (c) 2007-2009
|
| 577 |
+
# Scientific Computing and Imaging Institute, University of Utah
|
| 578 |
+
#
|
| 579 |
+
# This code is licensed under the MIT License. See the FindCUDA.cmake script
|
| 580 |
+
# for the text of the license.
|
| 581 |
+
|
| 582 |
+
# The MIT License
|
| 583 |
+
#
|
| 584 |
+
# License for the specific language governing rights and limitations under
|
| 585 |
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
| 586 |
+
# copy of this software and associated documentation files (the "Software"),
|
| 587 |
+
# to deal in the Software without restriction, including without limitation
|
| 588 |
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
| 589 |
+
# and/or sell copies of the Software, and to permit persons to whom the
|
| 590 |
+
# Software is furnished to do so, subject to the following conditions:
|
| 591 |
+
#
|
| 592 |
+
# The above copyright notice and this permission notice shall be included
|
| 593 |
+
# in all copies or substantial portions of the Software.
|
| 594 |
+
#
|
| 595 |
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 596 |
+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 597 |
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
| 598 |
+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 599 |
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
| 600 |
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
| 601 |
+
# DEALINGS IN THE SOFTWARE.
|
| 602 |
+
#
|
| 603 |
+
###############################################################################
|
| 604 |
+
|
| 605 |
+
function(_CUDAToolkit_build_include_dirs result_variable default_paths_variable)
|
| 606 |
+
set(content "${${default_paths_variable}}")
|
| 607 |
+
set(${result_variable} "${content}" PARENT_SCOPE)
|
| 608 |
+
endfunction()
|
| 609 |
+
|
| 610 |
+
function(_CUDAToolkit_build_library_dirs result_variable default_paths_variable)
|
| 611 |
+
set(content "${${default_paths_variable}}")
|
| 612 |
+
set(${result_variable} "${content}" PARENT_SCOPE)
|
| 613 |
+
endfunction()
|
| 614 |
+
|
| 615 |
+
# The toolkit is located during compiler detection for CUDA and stored in CMakeCUDACompiler.cmake as
|
| 616 |
+
# - CMAKE_CUDA_COMPILER_TOOLKIT_ROOT
|
| 617 |
+
# - CMAKE_CUDA_COMPILER_LIBRARY_ROOT
|
| 618 |
+
# - CMAKE_CUDA_COMPILER_LIBRARY_DIRECTORIES_FROM_IMPLICIT_LIBRARIES
|
| 619 |
+
# - CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES
|
| 620 |
+
# We compute the rest based on those here to avoid re-searching and to avoid finding a possibly
|
| 621 |
+
# different installation.
|
| 622 |
+
if(CMAKE_CUDA_COMPILER_TOOLKIT_ROOT)
|
| 623 |
+
set(CUDAToolkit_ROOT_DIR "${CMAKE_CUDA_COMPILER_TOOLKIT_ROOT}")
|
| 624 |
+
set(CUDAToolkit_LIBRARY_ROOT "${CMAKE_CUDA_COMPILER_LIBRARY_ROOT}")
|
| 625 |
+
_CUDAToolkit_build_library_dirs(CUDAToolkit_IMPLICIT_LIBRARY_DIRECTORIES CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES)
|
| 626 |
+
_CUDAToolkit_build_include_dirs(CUDAToolkit_INCLUDE_DIRECTORIES CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES)
|
| 627 |
+
set(CUDAToolkit_BIN_DIR "${CUDAToolkit_ROOT_DIR}/bin")
|
| 628 |
+
set(CUDAToolkit_NVCC_EXECUTABLE "${CUDAToolkit_BIN_DIR}/nvcc${CMAKE_EXECUTABLE_SUFFIX}")
|
| 629 |
+
set(CUDAToolkit_VERSION "${CMAKE_CUDA_COMPILER_TOOLKIT_VERSION}")
|
| 630 |
+
|
| 631 |
+
if(CUDAToolkit_VERSION MATCHES [=[([0-9]+)\.([0-9]+)\.([0-9]+)]=])
|
| 632 |
+
set(CUDAToolkit_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
| 633 |
+
set(CUDAToolkit_VERSION_MINOR "${CMAKE_MATCH_2}")
|
| 634 |
+
set(CUDAToolkit_VERSION_PATCH "${CMAKE_MATCH_3}")
|
| 635 |
+
endif()
|
| 636 |
+
else()
|
| 637 |
+
function(_CUDAToolkit_find_root_dir )
|
| 638 |
+
cmake_parse_arguments(arg "COMPILER_PATHS" "" "SEARCH_PATHS;FIND_FLAGS" ${ARGN})
|
| 639 |
+
|
| 640 |
+
if(NOT CUDAToolkit_BIN_DIR)
|
| 641 |
+
if(arg_COMPILER_PATHS)
|
| 642 |
+
# need to find parent dir, since this could clang and not nvcc
|
| 643 |
+
if(EXISTS "${CMAKE_CUDA_COMPILER}")
|
| 644 |
+
get_filename_component(possible_nvcc_path "${CMAKE_CUDA_COMPILER}" PROGRAM PROGRAM_ARGS CUDAToolkit_compiler_args)
|
| 645 |
+
get_filename_component(possible_nvcc_path "${possible_nvcc_path}" DIRECTORY)
|
| 646 |
+
elseif(EXISTS "$ENV{CUDACXX}")
|
| 647 |
+
get_filename_component(possible_nvcc_path "$ENV{CUDACXX}" PROGRAM PROGRAM_ARGS CUDAToolkit_compiler_args)
|
| 648 |
+
get_filename_component(possible_nvcc_path "${possible_nvcc_path}" DIRECTORY)
|
| 649 |
+
endif()
|
| 650 |
+
if(possible_nvcc_path)
|
| 651 |
+
find_program(CUDAToolkit_NVCC_EXECUTABLE
|
| 652 |
+
NAMES nvcc nvcc.exe
|
| 653 |
+
NO_DEFAULT_PATH
|
| 654 |
+
PATHS ${possible_nvcc_path}
|
| 655 |
+
)
|
| 656 |
+
endif()
|
| 657 |
+
endif()
|
| 658 |
+
|
| 659 |
+
if(NOT CUDAToolkit_SENTINEL_FILE)
|
| 660 |
+
find_program(CUDAToolkit_NVCC_EXECUTABLE
|
| 661 |
+
NAMES nvcc nvcc.exe
|
| 662 |
+
PATHS ${arg_SEARCH_PATHS}
|
| 663 |
+
${arg_FIND_FLAGS}
|
| 664 |
+
)
|
| 665 |
+
endif()
|
| 666 |
+
|
| 667 |
+
if(NOT CUDAToolkit_NVCC_EXECUTABLE)
|
| 668 |
+
find_file(CUDAToolkit_SENTINEL_FILE
|
| 669 |
+
NAMES version.txt version.json
|
| 670 |
+
PATHS ${arg_SEARCH_PATHS}
|
| 671 |
+
NO_DEFAULT_PATH
|
| 672 |
+
)
|
| 673 |
+
endif()
|
| 674 |
+
|
| 675 |
+
if(EXISTS "${CUDAToolkit_NVCC_EXECUTABLE}")
|
| 676 |
+
# If NVCC exists then invoke it to find the toolkit location.
|
| 677 |
+
# This allows us to support wrapper scripts (e.g. ccache or colornvcc), CUDA Toolkit,
|
| 678 |
+
# NVIDIA HPC SDK, and distro's splayed layouts
|
| 679 |
+
execute_process(COMMAND ${CUDAToolkit_NVCC_EXECUTABLE} "-v" "__cmake_determine_cuda"
|
| 680 |
+
OUTPUT_VARIABLE _CUDA_NVCC_OUT ERROR_VARIABLE _CUDA_NVCC_OUT)
|
| 681 |
+
message(CONFIGURE_LOG
|
| 682 |
+
"Executed nvcc to extract CUDAToolkit information:\n${_CUDA_NVCC_OUT}\n\n")
|
| 683 |
+
if(_CUDA_NVCC_OUT MATCHES "\\#\\$ TOP=([^\r\n]*)")
|
| 684 |
+
get_filename_component(CUDAToolkit_BIN_DIR "${CMAKE_MATCH_1}/bin" ABSOLUTE)
|
| 685 |
+
message(CONFIGURE_LOG
|
| 686 |
+
"Parsed CUDAToolkit nvcc location:\n${CUDAToolkit_BIN_DIR}\n\n")
|
| 687 |
+
else()
|
| 688 |
+
get_filename_component(CUDAToolkit_BIN_DIR "${CUDAToolkit_NVCC_EXECUTABLE}" DIRECTORY)
|
| 689 |
+
endif()
|
| 690 |
+
if(_CUDA_NVCC_OUT MATCHES "\\#\\$ INCLUDES=([^\r\n]*)")
|
| 691 |
+
separate_arguments(_nvcc_output NATIVE_COMMAND "${CMAKE_MATCH_1}")
|
| 692 |
+
foreach(line IN LISTS _nvcc_output)
|
| 693 |
+
string(REGEX REPLACE "^-I" "" line "${line}")
|
| 694 |
+
get_filename_component(line "${line}" ABSOLUTE)
|
| 695 |
+
list(APPEND _cmake_CUDAToolkit_include_directories "${line}")
|
| 696 |
+
endforeach()
|
| 697 |
+
message(CONFIGURE_LOG
|
| 698 |
+
"Parsed CUDAToolkit nvcc implicit include information:\n${_cmake_CUDAToolkit_include_directories}\n\n")
|
| 699 |
+
|
| 700 |
+
set(_cmake_CUDAToolkit_include_directories "${_cmake_CUDAToolkit_include_directories}" CACHE INTERNAL "CUDAToolkit internal list of include directories")
|
| 701 |
+
endif()
|
| 702 |
+
if(_CUDA_NVCC_OUT MATCHES "\\#\\$ LIBRARIES=([^\r\n]*)")
|
| 703 |
+
include(${CMAKE_ROOT}/Modules/CMakeParseImplicitLinkInfo.cmake)
|
| 704 |
+
set(_nvcc_link_line "cuda-fake-ld ${CMAKE_MATCH_1}")
|
| 705 |
+
CMAKE_PARSE_IMPLICIT_LINK_INFO("${_nvcc_link_line}"
|
| 706 |
+
_cmake_CUDAToolkit_implicit_link_libs
|
| 707 |
+
_cmake_CUDAToolkit_implicit_link_directories
|
| 708 |
+
_cmake_CUDAToolkit_implicit_frameworks
|
| 709 |
+
_nvcc_log
|
| 710 |
+
"${CMAKE_CUDA_IMPLICIT_OBJECT_REGEX}"
|
| 711 |
+
LANGUAGE CUDA)
|
| 712 |
+
message(CONFIGURE_LOG
|
| 713 |
+
"Parsed CUDAToolkit nvcc implicit link information:\n${_nvcc_log}\n${_cmake_CUDAToolkit_implicit_link_directories}\n\n")
|
| 714 |
+
unset(_nvcc_link_line)
|
| 715 |
+
unset(_cmake_CUDAToolkit_implicit_link_libs)
|
| 716 |
+
unset(_cmake_CUDAToolkit_implicit_frameworks)
|
| 717 |
+
|
| 718 |
+
set(_cmake_CUDAToolkit_implicit_link_directories "${_cmake_CUDAToolkit_implicit_link_directories}" CACHE INTERNAL "CUDAToolkit internal list of implicit link directories")
|
| 719 |
+
endif()
|
| 720 |
+
unset(_CUDA_NVCC_OUT)
|
| 721 |
+
|
| 722 |
+
set(CUDAToolkit_BIN_DIR "${CUDAToolkit_BIN_DIR}" CACHE PATH "" FORCE)
|
| 723 |
+
mark_as_advanced(CUDAToolkit_BIN_DIR)
|
| 724 |
+
endif()
|
| 725 |
+
|
| 726 |
+
if(CUDAToolkit_SENTINEL_FILE)
|
| 727 |
+
get_filename_component(CUDAToolkit_BIN_DIR ${CUDAToolkit_SENTINEL_FILE} DIRECTORY ABSOLUTE)
|
| 728 |
+
set(CUDAToolkit_BIN_DIR "${CUDAToolkit_BIN_DIR}/bin")
|
| 729 |
+
|
| 730 |
+
set(CUDAToolkit_BIN_DIR "${CUDAToolkit_BIN_DIR}" CACHE PATH "" FORCE)
|
| 731 |
+
mark_as_advanced(CUDAToolkit_BIN_DIR)
|
| 732 |
+
endif()
|
| 733 |
+
endif()
|
| 734 |
+
|
| 735 |
+
if(DEFINED _cmake_CUDAToolkit_include_directories)
|
| 736 |
+
_CUDAToolkit_build_include_dirs(_cmake_CUDAToolkit_contents _cmake_CUDAToolkit_include_directories)
|
| 737 |
+
set(CUDAToolkit_INCLUDE_DIRECTORIES "${_cmake_CUDAToolkit_contents}" PARENT_SCOPE)
|
| 738 |
+
endif()
|
| 739 |
+
if(DEFINED _cmake_CUDAToolkit_implicit_link_directories)
|
| 740 |
+
_CUDAToolkit_build_library_dirs(_cmake_CUDAToolkit_contents _cmake_CUDAToolkit_implicit_link_directories)
|
| 741 |
+
set(CUDAToolkit_IMPLICIT_LIBRARY_DIRECTORIES "${_cmake_CUDAToolkit_contents}" PARENT_SCOPE)
|
| 742 |
+
endif()
|
| 743 |
+
|
| 744 |
+
if(CUDAToolkit_BIN_DIR)
|
| 745 |
+
get_filename_component(CUDAToolkit_ROOT_DIR ${CUDAToolkit_BIN_DIR} DIRECTORY ABSOLUTE)
|
| 746 |
+
set(CUDAToolkit_ROOT_DIR "${CUDAToolkit_ROOT_DIR}" PARENT_SCOPE)
|
| 747 |
+
endif()
|
| 748 |
+
|
| 749 |
+
endfunction()
|
| 750 |
+
|
| 751 |
+
function(_CUDAToolkit_find_version_file result_variable)
|
| 752 |
+
# We first check for a non-scattered installation to prefer it over a scattered installation.
|
| 753 |
+
set(version_files version.txt version.json)
|
| 754 |
+
foreach(vf IN LISTS version_files)
|
| 755 |
+
if(CUDAToolkit_ROOT AND EXISTS "${CUDAToolkit_ROOT}/${vf}")
|
| 756 |
+
set(${result_variable} "${CUDAToolkit_ROOT}/${vf}" PARENT_SCOPE)
|
| 757 |
+
break()
|
| 758 |
+
elseif(CUDAToolkit_ROOT_DIR AND EXISTS "${CUDAToolkit_ROOT_DIR}/${vf}")
|
| 759 |
+
set(${result_variable} "${CUDAToolkit_ROOT_DIR}/${vf}" PARENT_SCOPE)
|
| 760 |
+
break()
|
| 761 |
+
elseif(CMAKE_SYSROOT_LINK AND EXISTS "${CMAKE_SYSROOT_LINK}/usr/lib/cuda/${vf}")
|
| 762 |
+
set(${result_variable} "${CMAKE_SYSROOT_LINK}/usr/lib/cuda/${vf}" PARENT_SCOPE)
|
| 763 |
+
break()
|
| 764 |
+
elseif(EXISTS "${CMAKE_SYSROOT}/usr/lib/cuda/${vf}")
|
| 765 |
+
set(${result_variable} "${CMAKE_SYSROOT}/usr/lib/cuda/${vf}" PARENT_SCOPE)
|
| 766 |
+
break()
|
| 767 |
+
endif()
|
| 768 |
+
endforeach()
|
| 769 |
+
endfunction()
|
| 770 |
+
|
| 771 |
+
function(_CUDAToolkit_parse_version_file version_file)
|
| 772 |
+
if(version_file)
|
| 773 |
+
file(READ "${version_file}" file_conents)
|
| 774 |
+
cmake_path(GET version_file EXTENSION LAST_ONLY version_ext)
|
| 775 |
+
if(version_ext STREQUAL ".json")
|
| 776 |
+
string(JSON cuda_version_info GET "${file_conents}" "cuda" "version")
|
| 777 |
+
set(cuda_version_match_regex [=[([0-9]+)\.([0-9]+)\.([0-9]+)]=])
|
| 778 |
+
elseif(version_ext STREQUAL ".txt")
|
| 779 |
+
set(cuda_version_info "${file_conents}")
|
| 780 |
+
set(cuda_version_match_regex [=[CUDA Version ([0-9]+)\.([0-9]+)\.([0-9]+)]=])
|
| 781 |
+
endif()
|
| 782 |
+
|
| 783 |
+
if(cuda_version_info MATCHES "${cuda_version_match_regex}")
|
| 784 |
+
set(CUDAToolkit_VERSION_MAJOR "${CMAKE_MATCH_1}" PARENT_SCOPE)
|
| 785 |
+
set(CUDAToolkit_VERSION_MINOR "${CMAKE_MATCH_2}" PARENT_SCOPE)
|
| 786 |
+
set(CUDAToolkit_VERSION_PATCH "${CMAKE_MATCH_3}" PARENT_SCOPE)
|
| 787 |
+
set(CUDAToolkit_VERSION "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}.${CMAKE_MATCH_3}" PARENT_SCOPE)
|
| 788 |
+
endif()
|
| 789 |
+
endif()
|
| 790 |
+
endfunction()
|
| 791 |
+
|
| 792 |
+
# For NVCC we can easily deduce the SDK binary directory from the compiler path.
|
| 793 |
+
if(CMAKE_CUDA_COMPILER_LOADED AND NOT CUDAToolkit_BIN_DIR AND CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA")
|
| 794 |
+
get_filename_component(CUDAToolkit_BIN_DIR "${CMAKE_CUDA_COMPILER}" DIRECTORY)
|
| 795 |
+
set(CUDAToolkit_BIN_DIR "${CUDAToolkit_BIN_DIR}" CACHE PATH "")
|
| 796 |
+
# Try language provided path first.
|
| 797 |
+
_CUDAToolkit_find_root_dir(SEARCH_PATHS "${CUDAToolkit_BIN_DIR}" FIND_FLAGS NO_DEFAULT_PATH)
|
| 798 |
+
mark_as_advanced(CUDAToolkit_BIN_DIR)
|
| 799 |
+
endif()
|
| 800 |
+
|
| 801 |
+
# Try user provided path
|
| 802 |
+
_CUDAToolkit_find_root_dir(COMPILER_PATHS)
|
| 803 |
+
if(NOT CUDAToolkit_ROOT_DIR AND CUDAToolkit_ROOT)
|
| 804 |
+
_CUDAToolkit_find_root_dir(SEARCH_PATHS "${CUDAToolkit_ROOT}" FIND_FLAGS PATH_SUFFIXES bin NO_DEFAULT_PATH)
|
| 805 |
+
endif()
|
| 806 |
+
if(NOT CUDAToolkit_ROOT_DIR)
|
| 807 |
+
_CUDAToolkit_find_root_dir(FIND_FLAGS PATHS ENV CUDA_PATH PATH_SUFFIXES bin)
|
| 808 |
+
endif()
|
| 809 |
+
|
| 810 |
+
# If the user specified CUDAToolkit_ROOT but the toolkit could not be found, this is an error.
|
| 811 |
+
if(NOT CUDAToolkit_ROOT_DIR AND (DEFINED CUDAToolkit_ROOT OR DEFINED ENV{CUDAToolkit_ROOT}))
|
| 812 |
+
# Declare error messages now, print later depending on find_package args.
|
| 813 |
+
set(fail_base "Could not find nvcc executable in path specified by")
|
| 814 |
+
set(cuda_root_fail "${fail_base} CUDAToolkit_ROOT=${CUDAToolkit_ROOT}")
|
| 815 |
+
set(env_cuda_root_fail "${fail_base} environment variable CUDAToolkit_ROOT=$ENV{CUDAToolkit_ROOT}")
|
| 816 |
+
|
| 817 |
+
if(CUDAToolkit_FIND_REQUIRED)
|
| 818 |
+
if(DEFINED CUDAToolkit_ROOT)
|
| 819 |
+
message(FATAL_ERROR ${cuda_root_fail})
|
| 820 |
+
elseif(DEFINED ENV{CUDAToolkit_ROOT})
|
| 821 |
+
message(FATAL_ERROR ${env_cuda_root_fail})
|
| 822 |
+
endif()
|
| 823 |
+
else()
|
| 824 |
+
if(NOT CUDAToolkit_FIND_QUIETLY)
|
| 825 |
+
if(DEFINED CUDAToolkit_ROOT)
|
| 826 |
+
message(STATUS ${cuda_root_fail})
|
| 827 |
+
elseif(DEFINED ENV{CUDAToolkit_ROOT})
|
| 828 |
+
message(STATUS ${env_cuda_root_fail})
|
| 829 |
+
endif()
|
| 830 |
+
endif()
|
| 831 |
+
set(CUDAToolkit_FOUND FALSE)
|
| 832 |
+
unset(fail_base)
|
| 833 |
+
unset(cuda_root_fail)
|
| 834 |
+
unset(env_cuda_root_fail)
|
| 835 |
+
return()
|
| 836 |
+
endif()
|
| 837 |
+
endif()
|
| 838 |
+
|
| 839 |
+
# CUDAToolkit_ROOT cmake / env variable not specified, try platform defaults.
|
| 840 |
+
#
|
| 841 |
+
# - Linux: /usr/local/cuda-X.Y
|
| 842 |
+
# - macOS: /Developer/NVIDIA/CUDA-X.Y
|
| 843 |
+
# - Windows: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vX.Y
|
| 844 |
+
#
|
| 845 |
+
# We will also search the default symlink location /usr/local/cuda first since
|
| 846 |
+
# if CUDAToolkit_ROOT is not specified, it is assumed that the symlinked
|
| 847 |
+
# directory is the desired location.
|
| 848 |
+
if(NOT CUDAToolkit_ROOT_DIR)
|
| 849 |
+
if(UNIX)
|
| 850 |
+
if(NOT APPLE)
|
| 851 |
+
set(platform_base "/usr/local/cuda-")
|
| 852 |
+
else()
|
| 853 |
+
set(platform_base "/Developer/NVIDIA/CUDA-")
|
| 854 |
+
endif()
|
| 855 |
+
else()
|
| 856 |
+
set(platform_base "C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v")
|
| 857 |
+
endif()
|
| 858 |
+
|
| 859 |
+
# Build out a descending list of possible cuda installations, e.g.
|
| 860 |
+
file(GLOB possible_paths "${platform_base}*")
|
| 861 |
+
# Iterate the glob results and create a descending list.
|
| 862 |
+
set(versions)
|
| 863 |
+
foreach(p ${possible_paths})
|
| 864 |
+
# Extract version number from end of string
|
| 865 |
+
string(REGEX MATCH "[0-9][0-9]?\\.[0-9]$" p_version ${p})
|
| 866 |
+
if(IS_DIRECTORY ${p} AND p_version)
|
| 867 |
+
list(APPEND versions ${p_version})
|
| 868 |
+
endif()
|
| 869 |
+
endforeach()
|
| 870 |
+
|
| 871 |
+
# Sort numerically in descending order, so we try the newest versions first.
|
| 872 |
+
list(SORT versions COMPARE NATURAL ORDER DESCENDING)
|
| 873 |
+
|
| 874 |
+
# With a descending list of versions, populate possible paths to search.
|
| 875 |
+
set(search_paths)
|
| 876 |
+
foreach(v ${versions})
|
| 877 |
+
list(APPEND search_paths "${platform_base}${v}")
|
| 878 |
+
endforeach()
|
| 879 |
+
|
| 880 |
+
# Force the global default /usr/local/cuda to the front on Unix.
|
| 881 |
+
if(UNIX)
|
| 882 |
+
list(INSERT search_paths 0 "/usr/local/cuda")
|
| 883 |
+
endif()
|
| 884 |
+
|
| 885 |
+
# Now search for the toolkit again using the platform default search paths.
|
| 886 |
+
_CUDAToolkit_find_root_dir(SEARCH_PATHS "${search_paths}" FIND_FLAGS PATH_SUFFIXES bin)
|
| 887 |
+
|
| 888 |
+
# We are done with these variables now, cleanup for caller.
|
| 889 |
+
unset(platform_base)
|
| 890 |
+
unset(possible_paths)
|
| 891 |
+
unset(versions)
|
| 892 |
+
unset(search_paths)
|
| 893 |
+
|
| 894 |
+
if(NOT CUDAToolkit_ROOT_DIR)
|
| 895 |
+
if(CUDAToolkit_FIND_REQUIRED)
|
| 896 |
+
message(FATAL_ERROR "Could not find nvcc, please set CUDAToolkit_ROOT.")
|
| 897 |
+
elseif(NOT CUDAToolkit_FIND_QUIETLY)
|
| 898 |
+
message(STATUS "Could not find nvcc, please set CUDAToolkit_ROOT.")
|
| 899 |
+
endif()
|
| 900 |
+
|
| 901 |
+
set(CUDAToolkit_FOUND FALSE)
|
| 902 |
+
return()
|
| 903 |
+
endif()
|
| 904 |
+
endif()
|
| 905 |
+
|
| 906 |
+
_CUDAToolkit_find_version_file( _CUDAToolkit_version_file )
|
| 907 |
+
if(_CUDAToolkit_version_file)
|
| 908 |
+
# CUDAToolkit_LIBRARY_ROOT contains the device library and version file.
|
| 909 |
+
get_filename_component(CUDAToolkit_LIBRARY_ROOT "${_CUDAToolkit_version_file}" DIRECTORY ABSOLUTE)
|
| 910 |
+
endif()
|
| 911 |
+
unset(_CUDAToolkit_version_file)
|
| 912 |
+
|
| 913 |
+
if(CUDAToolkit_NVCC_EXECUTABLE AND
|
| 914 |
+
CMAKE_CUDA_COMPILER_VERSION AND
|
| 915 |
+
CUDAToolkit_NVCC_EXECUTABLE STREQUAL CMAKE_CUDA_COMPILER)
|
| 916 |
+
# Need to set these based off the already computed CMAKE_CUDA_COMPILER_VERSION value
|
| 917 |
+
# This if statement will always match, but is used to provide variables for MATCH 1,2,3...
|
| 918 |
+
if(CMAKE_CUDA_COMPILER_VERSION MATCHES [=[([0-9]+)\.([0-9]+)\.([0-9]+)]=])
|
| 919 |
+
set(CUDAToolkit_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
| 920 |
+
set(CUDAToolkit_VERSION_MINOR "${CMAKE_MATCH_2}")
|
| 921 |
+
set(CUDAToolkit_VERSION_PATCH "${CMAKE_MATCH_3}")
|
| 922 |
+
set(CUDAToolkit_VERSION "${CMAKE_CUDA_COMPILER_VERSION}")
|
| 923 |
+
endif()
|
| 924 |
+
elseif(CUDAToolkit_NVCC_EXECUTABLE)
|
| 925 |
+
# Compute the version by invoking nvcc
|
| 926 |
+
execute_process(COMMAND ${CUDAToolkit_NVCC_EXECUTABLE} "--version" OUTPUT_VARIABLE NVCC_OUT)
|
| 927 |
+
if(NVCC_OUT MATCHES [=[ V([0-9]+)\.([0-9]+)\.([0-9]+)]=])
|
| 928 |
+
set(CUDAToolkit_VERSION_MAJOR "${CMAKE_MATCH_1}")
|
| 929 |
+
set(CUDAToolkit_VERSION_MINOR "${CMAKE_MATCH_2}")
|
| 930 |
+
set(CUDAToolkit_VERSION_PATCH "${CMAKE_MATCH_3}")
|
| 931 |
+
set(CUDAToolkit_VERSION "${CMAKE_MATCH_1}.${CMAKE_MATCH_2}.${CMAKE_MATCH_3}")
|
| 932 |
+
endif()
|
| 933 |
+
unset(NVCC_OUT)
|
| 934 |
+
else()
|
| 935 |
+
_CUDAToolkit_find_version_file(version_file)
|
| 936 |
+
_CUDAToolkit_parse_version_file("${version_file}")
|
| 937 |
+
endif()
|
| 938 |
+
endif()
|
| 939 |
+
|
| 940 |
+
# Find target directory when crosscompiling.
|
| 941 |
+
if(CMAKE_CROSSCOMPILING)
|
| 942 |
+
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "armv7-a")
|
| 943 |
+
# Support for NVPACK
|
| 944 |
+
set(CUDAToolkit_TARGET_NAMES "armv7-linux-androideabi")
|
| 945 |
+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
|
| 946 |
+
set(CUDAToolkit_TARGET_NAMES "armv7-linux-gnueabihf")
|
| 947 |
+
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
|
| 948 |
+
if(ANDROID_ARCH_NAME STREQUAL "arm64")
|
| 949 |
+
set(CUDAToolkit_TARGET_NAMES "aarch64-linux-androideabi")
|
| 950 |
+
elseif (CMAKE_SYSTEM_NAME STREQUAL "QNX")
|
| 951 |
+
set(CUDAToolkit_TARGET_NAMES "aarch64-qnx")
|
| 952 |
+
else()
|
| 953 |
+
set(CUDAToolkit_TARGET_NAMES "aarch64-linux" "sbsa-linux")
|
| 954 |
+
endif()
|
| 955 |
+
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
|
| 956 |
+
set(CUDAToolkit_TARGET_NAMES "x86_64-linux")
|
| 957 |
+
endif()
|
| 958 |
+
|
| 959 |
+
foreach(CUDAToolkit_TARGET_NAME IN LISTS CUDAToolkit_TARGET_NAMES)
|
| 960 |
+
if(EXISTS "${CUDAToolkit_ROOT_DIR}/targets/${CUDAToolkit_TARGET_NAME}")
|
| 961 |
+
set(CUDAToolkit_TARGET_DIR "${CUDAToolkit_ROOT_DIR}/targets/${CUDAToolkit_TARGET_NAME}")
|
| 962 |
+
# add known CUDA target root path to the set of directories we search for programs, libraries and headers
|
| 963 |
+
list(PREPEND CMAKE_FIND_ROOT_PATH "${CUDAToolkit_TARGET_DIR}")
|
| 964 |
+
|
| 965 |
+
# Mark that we need to pop the root search path changes after we have
|
| 966 |
+
# found all cuda libraries so that searches for our cross-compilation
|
| 967 |
+
# libraries work when another cuda sdk is in CMAKE_PREFIX_PATH or
|
| 968 |
+
# PATh
|
| 969 |
+
set(_CUDAToolkit_Pop_ROOT_PATH True)
|
| 970 |
+
break()
|
| 971 |
+
endif()
|
| 972 |
+
endforeach()
|
| 973 |
+
endif()
|
| 974 |
+
|
| 975 |
+
# Determine windows search path suffix for libraries
|
| 976 |
+
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
|
| 977 |
+
if(CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL "AMD64")
|
| 978 |
+
set(_CUDAToolkit_win_search_dirs lib/x64)
|
| 979 |
+
set(_CUDAToolkit_win_stub_search_dirs lib/x64/stubs)
|
| 980 |
+
endif()
|
| 981 |
+
endif()
|
| 982 |
+
|
| 983 |
+
# If not already set we can simply use the toolkit root or it's a scattered installation.
|
| 984 |
+
if(NOT CUDAToolkit_TARGET_DIR)
|
| 985 |
+
# Not cross compiling
|
| 986 |
+
set(CUDAToolkit_TARGET_DIR "${CUDAToolkit_ROOT_DIR}")
|
| 987 |
+
# Now that we have the real ROOT_DIR, find components inside it.
|
| 988 |
+
list(APPEND CMAKE_PREFIX_PATH ${CUDAToolkit_ROOT_DIR})
|
| 989 |
+
|
| 990 |
+
# Mark that we need to pop the prefix path changes after we have
|
| 991 |
+
# found the cudart library.
|
| 992 |
+
set(_CUDAToolkit_Pop_Prefix True)
|
| 993 |
+
endif()
|
| 994 |
+
|
| 995 |
+
|
| 996 |
+
# We don't need to verify the cuda_runtime header when we are using `nvcc` include paths
|
| 997 |
+
# as the compiler being enabled means the header was found
|
| 998 |
+
if(NOT CUDAToolkit_INCLUDE_DIRECTORIES)
|
| 999 |
+
# Otherwise use CUDAToolkit_TARGET_DIR to guess where the `cuda_runtime.h` is located
|
| 1000 |
+
# On a scattered installation /usr, on a non-scattered something like /usr/local/cuda or /usr/local/cuda-10.2/targets/aarch64-linux.
|
| 1001 |
+
if(EXISTS "${CUDAToolkit_TARGET_DIR}/include/cuda_runtime.h")
|
| 1002 |
+
set(CUDAToolkit_INCLUDE_DIRECTORIES "${CUDAToolkit_TARGET_DIR}/include")
|
| 1003 |
+
else()
|
| 1004 |
+
message(STATUS "Unable to find cuda_runtime.h in \"${CUDAToolkit_TARGET_DIR}/include\" for CUDAToolkit_INCLUDE_DIRECTORIES.")
|
| 1005 |
+
endif()
|
| 1006 |
+
endif()
|
| 1007 |
+
|
| 1008 |
+
# The NVHPC layout moves math library headers and libraries to a sibling directory and it could be nested under
|
| 1009 |
+
# the version of the CUDA toolchain
|
| 1010 |
+
# Create a separate variable so this directory can be selectively added to math targets.
|
| 1011 |
+
find_path(CUDAToolkit_CUBLAS_INCLUDE_DIR cublas_v2.h PATHS
|
| 1012 |
+
${CUDAToolkit_INCLUDE_DIRECTORIES}
|
| 1013 |
+
NO_DEFAULT_PATH)
|
| 1014 |
+
|
| 1015 |
+
if(NOT CUDAToolkit_CUBLAS_INCLUDE_DIR)
|
| 1016 |
+
file(REAL_PATH "${CUDAToolkit_TARGET_DIR}" CUDAToolkit_MATH_INCLUDE_DIR)
|
| 1017 |
+
cmake_path(APPEND CUDAToolkit_MATH_INCLUDE_DIR "../../math_libs/")
|
| 1018 |
+
if(EXISTS "${CUDAToolkit_MATH_INCLUDE_DIR}/${CUDAToolkit_VERSION_MAJOR}.${CUDAToolkit_VERSION_MINOR}/")
|
| 1019 |
+
cmake_path(APPEND CUDAToolkit_MATH_INCLUDE_DIR "${CUDAToolkit_VERSION_MAJOR}.${CUDAToolkit_VERSION_MINOR}/")
|
| 1020 |
+
endif()
|
| 1021 |
+
cmake_path(APPEND CUDAToolkit_MATH_INCLUDE_DIR "include")
|
| 1022 |
+
cmake_path(NORMAL_PATH CUDAToolkit_MATH_INCLUDE_DIR)
|
| 1023 |
+
|
| 1024 |
+
find_path(CUDAToolkit_CUBLAS_INCLUDE_DIR cublas_v2.h PATHS
|
| 1025 |
+
${CUDAToolkit_INCLUDE_DIRECTORIES}
|
| 1026 |
+
)
|
| 1027 |
+
if(CUDAToolkit_CUBLAS_INCLUDE_DIR)
|
| 1028 |
+
list(APPEND CUDAToolkit_INCLUDE_DIRECTORIES "${CUDAToolkit_CUBLAS_INCLUDE_DIR}")
|
| 1029 |
+
endif()
|
| 1030 |
+
endif()
|
| 1031 |
+
unset(CUDAToolkit_CUBLAS_INCLUDE_DIR CACHE)
|
| 1032 |
+
unset(CUDAToolkit_CUBLAS_INCLUDE_DIR)
|
| 1033 |
+
|
| 1034 |
+
# Find the CUDA Runtime Library libcudart
|
| 1035 |
+
find_library(CUDA_CUDART
|
| 1036 |
+
NAMES cudart
|
| 1037 |
+
PATHS ${CUDAToolkit_IMPLICIT_LIBRARY_DIRECTORIES}
|
| 1038 |
+
PATH_SUFFIXES lib64 ${_CUDAToolkit_win_search_dirs}
|
| 1039 |
+
)
|
| 1040 |
+
find_library(CUDA_CUDART
|
| 1041 |
+
NAMES cudart
|
| 1042 |
+
PATHS ${CUDAToolkit_IMPLICIT_LIBRARY_DIRECTORIES}
|
| 1043 |
+
PATH_SUFFIXES lib64/stubs ${_CUDAToolkit_win_stub_search_dirs} lib/stubs stubs
|
| 1044 |
+
)
|
| 1045 |
+
|
| 1046 |
+
if(NOT CUDA_CUDART AND NOT CUDAToolkit_FIND_QUIETLY)
|
| 1047 |
+
message(STATUS "Unable to find cudart library.")
|
| 1048 |
+
endif()
|
| 1049 |
+
|
| 1050 |
+
if(_CUDAToolkit_Pop_Prefix)
|
| 1051 |
+
list(REMOVE_AT CMAKE_PREFIX_PATH -1)
|
| 1052 |
+
unset(_CUDAToolkit_Pop_Prefix)
|
| 1053 |
+
endif()
|
| 1054 |
+
|
| 1055 |
+
#-----------------------------------------------------------------------------
|
| 1056 |
+
# Perform version comparison and validate all required variables are set.
|
| 1057 |
+
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
| 1058 |
+
find_package_handle_standard_args(CUDAToolkit
|
| 1059 |
+
REQUIRED_VARS
|
| 1060 |
+
CUDAToolkit_INCLUDE_DIRECTORIES
|
| 1061 |
+
CUDA_CUDART
|
| 1062 |
+
CUDAToolkit_BIN_DIR
|
| 1063 |
+
VERSION_VAR
|
| 1064 |
+
CUDAToolkit_VERSION
|
| 1065 |
+
)
|
| 1066 |
+
|
| 1067 |
+
unset(CUDAToolkit_ROOT_DIR)
|
| 1068 |
+
mark_as_advanced(CUDA_CUDART
|
| 1069 |
+
CUDAToolkit_NVCC_EXECUTABLE
|
| 1070 |
+
CUDAToolkit_SENTINEL_FILE
|
| 1071 |
+
)
|
| 1072 |
+
|
| 1073 |
+
#-----------------------------------------------------------------------------
|
| 1074 |
+
# Construct result variables
|
| 1075 |
+
if(CUDAToolkit_FOUND)
|
| 1076 |
+
set(CUDAToolkit_INCLUDE_DIRS "${CUDAToolkit_INCLUDE_DIRECTORIES}")
|
| 1077 |
+
get_filename_component(CUDAToolkit_LIBRARY_DIR ${CUDA_CUDART} DIRECTORY ABSOLUTE)
|
| 1078 |
+
|
| 1079 |
+
# Build search paths without any symlinks
|
| 1080 |
+
file(REAL_PATH "${CUDAToolkit_LIBRARY_DIR}" _cmake_search_dir)
|
| 1081 |
+
set(CUDAToolkit_LIBRARY_SEARCH_DIRS "${_cmake_search_dir}")
|
| 1082 |
+
|
| 1083 |
+
# Detect we are in a splayed nvhpc toolkit layout and add extra
|
| 1084 |
+
# search paths without symlinks
|
| 1085 |
+
if(CUDAToolkit_LIBRARY_DIR MATCHES ".*/cuda/${CUDAToolkit_VERSION_MAJOR}.${CUDAToolkit_VERSION_MINOR}/lib64$")
|
| 1086 |
+
# Search location for math_libs/
|
| 1087 |
+
block(SCOPE_FOR POLICIES)
|
| 1088 |
+
cmake_policy(SET CMP0152 NEW)
|
| 1089 |
+
file(REAL_PATH "${CUDAToolkit_LIBRARY_DIR}/../../../../../" _cmake_search_dir)
|
| 1090 |
+
list(APPEND CUDAToolkit_LIBRARY_SEARCH_DIRS "${_cmake_search_dir}")
|
| 1091 |
+
|
| 1092 |
+
# Search location for extras like cupti
|
| 1093 |
+
file(REAL_PATH "${CUDAToolkit_LIBRARY_DIR}/../../../" _cmake_search_dir)
|
| 1094 |
+
list(APPEND CUDAToolkit_LIBRARY_SEARCH_DIRS "${_cmake_search_dir}")
|
| 1095 |
+
endblock()
|
| 1096 |
+
endif()
|
| 1097 |
+
|
| 1098 |
+
if(DEFINED CUDAToolkit_IMPLICIT_LIBRARY_DIRECTORIES)
|
| 1099 |
+
list(APPEND CUDAToolkit_LIBRARY_SEARCH_DIRS "${CUDAToolkit_IMPLICIT_LIBRARY_DIRECTORIES}")
|
| 1100 |
+
endif()
|
| 1101 |
+
|
| 1102 |
+
# If no `CUDAToolkit_LIBRARY_ROOT` exists set it based on CUDAToolkit_LIBRARY_DIR
|
| 1103 |
+
if(NOT DEFINED CUDAToolkit_LIBRARY_ROOT)
|
| 1104 |
+
foreach(CUDAToolkit_search_loc IN LISTS CUDAToolkit_LIBRARY_DIR CUDAToolkit_BIN_DIR)
|
| 1105 |
+
get_filename_component(CUDAToolkit_possible_lib_root "${CUDAToolkit_search_loc}" DIRECTORY ABSOLUTE)
|
| 1106 |
+
if(EXISTS "${CUDAToolkit_possible_lib_root}/nvvm/")
|
| 1107 |
+
set(CUDAToolkit_LIBRARY_ROOT "${CUDAToolkit_possible_lib_root}")
|
| 1108 |
+
break()
|
| 1109 |
+
endif()
|
| 1110 |
+
endforeach()
|
| 1111 |
+
unset(CUDAToolkit_search_loc)
|
| 1112 |
+
unset(CUDAToolkit_possible_lib_root)
|
| 1113 |
+
endif()
|
| 1114 |
+
else()
|
| 1115 |
+
# clear cache results when we fail
|
| 1116 |
+
unset(_cmake_CUDAToolkit_implicit_link_directories CACHE)
|
| 1117 |
+
unset(_cmake_CUDAToolkit_include_directories CACHE)
|
| 1118 |
+
unset(CUDA_CUDART CACHE)
|
| 1119 |
+
unset(CUDAToolkit_BIN_DIR CACHE)
|
| 1120 |
+
unset(CUDAToolkit_NVCC_EXECUTABLE CACHE)
|
| 1121 |
+
unset(CUDAToolkit_SENTINEL_FILE CACHE)
|
| 1122 |
+
endif()
|
| 1123 |
+
unset(CUDAToolkit_IMPLICIT_LIBRARY_DIRECTORIES)
|
| 1124 |
+
unset(CUDAToolkit_INCLUDE_DIRECTORIES)
|
| 1125 |
+
|
| 1126 |
+
#-----------------------------------------------------------------------------
|
| 1127 |
+
# Construct import targets
|
| 1128 |
+
if(CUDAToolkit_FOUND)
|
| 1129 |
+
|
| 1130 |
+
function(_CUDAToolkit_find_and_add_import_lib lib_name)
|
| 1131 |
+
cmake_parse_arguments(arg "" "" "ALT;DEPS;EXTRA_PATH_SUFFIXES;EXTRA_INCLUDE_DIRS;ONLY_SEARCH_FOR" ${ARGN})
|
| 1132 |
+
|
| 1133 |
+
if(arg_ONLY_SEARCH_FOR)
|
| 1134 |
+
set(search_names ${arg_ONLY_SEARCH_FOR})
|
| 1135 |
+
else()
|
| 1136 |
+
set(search_names ${lib_name} ${arg_ALT})
|
| 1137 |
+
endif()
|
| 1138 |
+
|
| 1139 |
+
find_library(CUDA_${lib_name}_LIBRARY
|
| 1140 |
+
NAMES ${search_names}
|
| 1141 |
+
HINTS ${CUDAToolkit_LIBRARY_SEARCH_DIRS}
|
| 1142 |
+
ENV CUDA_PATH
|
| 1143 |
+
PATH_SUFFIXES nvidia/current lib64 ${_CUDAToolkit_win_search_dirs} lib
|
| 1144 |
+
# Support NVHPC splayed math library layout
|
| 1145 |
+
math_libs/${CUDAToolkit_VERSION_MAJOR}.${CUDAToolkit_VERSION_MINOR}/lib64
|
| 1146 |
+
math_libs/lib64
|
| 1147 |
+
${arg_EXTRA_PATH_SUFFIXES}
|
| 1148 |
+
)
|
| 1149 |
+
# Don't try any stub directories until we have exhausted all other
|
| 1150 |
+
# search locations.
|
| 1151 |
+
set(CUDA_IMPORT_PROPERTY IMPORTED_LOCATION)
|
| 1152 |
+
set(CUDA_IMPORT_TYPE UNKNOWN)
|
| 1153 |
+
if(NOT CUDA_${lib_name}_LIBRARY)
|
| 1154 |
+
find_library(CUDA_${lib_name}_LIBRARY
|
| 1155 |
+
NAMES ${search_names}
|
| 1156 |
+
HINTS ${CUDAToolkit_LIBRARY_SEARCH_DIRS}
|
| 1157 |
+
ENV CUDA_PATH
|
| 1158 |
+
PATH_SUFFIXES lib64/stubs ${_CUDAToolkit_win_stub_search_dirs} lib/stubs stubs
|
| 1159 |
+
)
|
| 1160 |
+
endif()
|
| 1161 |
+
if(CUDA_${lib_name}_LIBRARY MATCHES "/stubs/" AND NOT CUDA_${lib_name}_LIBRARY MATCHES "\\.a$" AND NOT WIN32)
|
| 1162 |
+
# Use a SHARED library with IMPORTED_IMPLIB, but not IMPORTED_LOCATION,
|
| 1163 |
+
# to indicate that the stub is for linkers but not dynamic loaders.
|
| 1164 |
+
# It will not contribute any RPATH entry. When encountered as
|
| 1165 |
+
# a private transitive dependency of another shared library,
|
| 1166 |
+
# it will be passed explicitly to linkers so they can find it
|
| 1167 |
+
# even when the runtime library file does not exist on disk.
|
| 1168 |
+
set(CUDA_IMPORT_PROPERTY IMPORTED_IMPLIB)
|
| 1169 |
+
set(CUDA_IMPORT_TYPE SHARED)
|
| 1170 |
+
endif()
|
| 1171 |
+
|
| 1172 |
+
mark_as_advanced(CUDA_${lib_name}_LIBRARY)
|
| 1173 |
+
|
| 1174 |
+
if (NOT TARGET CUDA::${lib_name} AND CUDA_${lib_name}_LIBRARY)
|
| 1175 |
+
add_library(CUDA::${lib_name} ${CUDA_IMPORT_TYPE} IMPORTED)
|
| 1176 |
+
target_include_directories(CUDA::${lib_name} SYSTEM INTERFACE "${CUDAToolkit_INCLUDE_DIRS}")
|
| 1177 |
+
if(DEFINED CUDAToolkit_MATH_INCLUDE_DIR)
|
| 1178 |
+
string(FIND ${CUDA_${lib_name}_LIBRARY} "math_libs" math_libs)
|
| 1179 |
+
if(NOT ${math_libs} EQUAL -1)
|
| 1180 |
+
target_include_directories(CUDA::${lib_name} SYSTEM INTERFACE "${CUDAToolkit_MATH_INCLUDE_DIR}")
|
| 1181 |
+
endif()
|
| 1182 |
+
endif()
|
| 1183 |
+
set_property(TARGET CUDA::${lib_name} PROPERTY ${CUDA_IMPORT_PROPERTY} "${CUDA_${lib_name}_LIBRARY}")
|
| 1184 |
+
foreach(dep ${arg_DEPS})
|
| 1185 |
+
if(TARGET CUDA::${dep})
|
| 1186 |
+
target_link_libraries(CUDA::${lib_name} INTERFACE CUDA::${dep})
|
| 1187 |
+
endif()
|
| 1188 |
+
endforeach()
|
| 1189 |
+
if(arg_EXTRA_INCLUDE_DIRS)
|
| 1190 |
+
target_include_directories(CUDA::${lib_name} SYSTEM INTERFACE "${arg_EXTRA_INCLUDE_DIRS}")
|
| 1191 |
+
endif()
|
| 1192 |
+
endif()
|
| 1193 |
+
endfunction()
|
| 1194 |
+
|
| 1195 |
+
if(NOT TARGET CUDA::toolkit)
|
| 1196 |
+
add_library(CUDA::toolkit IMPORTED INTERFACE)
|
| 1197 |
+
target_include_directories(CUDA::toolkit SYSTEM INTERFACE "${CUDAToolkit_INCLUDE_DIRS}")
|
| 1198 |
+
target_link_directories(CUDA::toolkit INTERFACE "${CUDAToolkit_LIBRARY_DIR}")
|
| 1199 |
+
endif()
|
| 1200 |
+
|
| 1201 |
+
# setup dependencies that are required for cudart/cudart_static when building
|
| 1202 |
+
# on linux. These are generally only required when using the CUDA toolkit
|
| 1203 |
+
# when CUDA language is disabled
|
| 1204 |
+
if(NOT TARGET CUDA::cudart_static_deps)
|
| 1205 |
+
add_library(CUDA::cudart_static_deps IMPORTED INTERFACE)
|
| 1206 |
+
if(UNIX AND (CMAKE_C_COMPILER OR CMAKE_CXX_COMPILER))
|
| 1207 |
+
find_package(Threads REQUIRED)
|
| 1208 |
+
target_link_libraries(CUDA::cudart_static_deps INTERFACE Threads::Threads ${CMAKE_DL_LIBS})
|
| 1209 |
+
endif()
|
| 1210 |
+
|
| 1211 |
+
if(UNIX AND NOT APPLE AND NOT (CMAKE_SYSTEM_NAME STREQUAL "QNX"))
|
| 1212 |
+
# On Linux, you must link against librt when using the static cuda runtime.
|
| 1213 |
+
find_library(CUDAToolkit_rt_LIBRARY rt)
|
| 1214 |
+
mark_as_advanced(CUDAToolkit_rt_LIBRARY)
|
| 1215 |
+
if(NOT CUDAToolkit_rt_LIBRARY)
|
| 1216 |
+
message(WARNING "Could not find librt library, needed by CUDA::cudart_static")
|
| 1217 |
+
else()
|
| 1218 |
+
target_link_libraries(CUDA::cudart_static_deps INTERFACE ${CUDAToolkit_rt_LIBRARY})
|
| 1219 |
+
endif()
|
| 1220 |
+
endif()
|
| 1221 |
+
endif()
|
| 1222 |
+
|
| 1223 |
+
_CUDAToolkit_find_and_add_import_lib(cuda_driver ALT cuda DEPS cudart_static_deps)
|
| 1224 |
+
_CUDAToolkit_find_and_add_import_lib(cudart DEPS cudart_static_deps)
|
| 1225 |
+
_CUDAToolkit_find_and_add_import_lib(cudart_static DEPS cudart_static_deps)
|
| 1226 |
+
|
| 1227 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.0.0)
|
| 1228 |
+
_CUDAToolkit_find_and_add_import_lib(nvJitLink)
|
| 1229 |
+
_CUDAToolkit_find_and_add_import_lib(nvJitLink_static DEPS cudart_static_deps)
|
| 1230 |
+
endif()
|
| 1231 |
+
|
| 1232 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 12.4.0)
|
| 1233 |
+
_CUDAToolkit_find_and_add_import_lib(nvfatbin DEPS cudart_static_deps)
|
| 1234 |
+
_CUDAToolkit_find_and_add_import_lib(nvfatbin_static DEPS cudart_static_deps)
|
| 1235 |
+
endif()
|
| 1236 |
+
|
| 1237 |
+
_CUDAToolkit_find_and_add_import_lib(culibos) # it's a static library
|
| 1238 |
+
foreach (cuda_lib cublasLt cufft nvjpeg)
|
| 1239 |
+
_CUDAToolkit_find_and_add_import_lib(${cuda_lib})
|
| 1240 |
+
_CUDAToolkit_find_and_add_import_lib(${cuda_lib}_static DEPS cudart_static_deps culibos)
|
| 1241 |
+
endforeach()
|
| 1242 |
+
foreach (cuda_lib curand nppc)
|
| 1243 |
+
_CUDAToolkit_find_and_add_import_lib(${cuda_lib})
|
| 1244 |
+
_CUDAToolkit_find_and_add_import_lib(${cuda_lib}_static DEPS culibos)
|
| 1245 |
+
endforeach()
|
| 1246 |
+
|
| 1247 |
+
_CUDAToolkit_find_and_add_import_lib(cusparse DEPS nvJitLink)
|
| 1248 |
+
_CUDAToolkit_find_and_add_import_lib(cusparse_static DEPS nvJitLink_static culibos)
|
| 1249 |
+
|
| 1250 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.0.0)
|
| 1251 |
+
# cublas depends on cublasLt
|
| 1252 |
+
# https://docs.nvidia.com/cuda/archive/11.0/cublas#static-library
|
| 1253 |
+
_CUDAToolkit_find_and_add_import_lib(cublas DEPS cublasLt culibos)
|
| 1254 |
+
_CUDAToolkit_find_and_add_import_lib(cublas_static DEPS cublasLt_static culibos)
|
| 1255 |
+
else()
|
| 1256 |
+
_CUDAToolkit_find_and_add_import_lib(cublas DEPS culibos)
|
| 1257 |
+
_CUDAToolkit_find_and_add_import_lib(cublas_static DEPS culibos)
|
| 1258 |
+
endif()
|
| 1259 |
+
|
| 1260 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.4)
|
| 1261 |
+
_CUDAToolkit_find_and_add_import_lib(cuFile ALT cufile DEPS culibos)
|
| 1262 |
+
_CUDAToolkit_find_and_add_import_lib(cuFile_static ALT cufile_static DEPS culibos)
|
| 1263 |
+
|
| 1264 |
+
_CUDAToolkit_find_and_add_import_lib(cuFile_rdma ALT cufile_rdma DEPS cuFile culibos)
|
| 1265 |
+
_CUDAToolkit_find_and_add_import_lib(cuFile_rdma_static ALT cufile_rdma_static DEPS cuFile_static culibos)
|
| 1266 |
+
endif()
|
| 1267 |
+
|
| 1268 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.6)
|
| 1269 |
+
_CUDAToolkit_find_and_add_import_lib(cudla)
|
| 1270 |
+
endif()
|
| 1271 |
+
|
| 1272 |
+
|
| 1273 |
+
# cuFFTW depends on cuFFT
|
| 1274 |
+
_CUDAToolkit_find_and_add_import_lib(cufftw DEPS cufft)
|
| 1275 |
+
_CUDAToolkit_find_and_add_import_lib(cufftw_static DEPS cufft_static)
|
| 1276 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 9.2)
|
| 1277 |
+
_CUDAToolkit_find_and_add_import_lib(cufft_static_nocallback DEPS culibos)
|
| 1278 |
+
endif()
|
| 1279 |
+
|
| 1280 |
+
# cuSOLVER depends on cuBLAS, and cuSPARSE
|
| 1281 |
+
set(cusolver_deps cublas cusparse)
|
| 1282 |
+
set(cusolver_static_deps cublas_static cusparse_static culibos)
|
| 1283 |
+
if(CUDAToolkit_VERSION VERSION_GREATER 11.2.1)
|
| 1284 |
+
# cusolver depends on libcusolver_metis and cublasLt
|
| 1285 |
+
# https://docs.nvidia.com/cuda/archive/11.2.2/cusolver#link-dependency
|
| 1286 |
+
list(APPEND cusolver_deps cublasLt)
|
| 1287 |
+
_CUDAToolkit_find_and_add_import_lib(cusolver_metis_static ALT metis_static) # implementation detail static lib
|
| 1288 |
+
list(APPEND cusolver_static_deps cusolver_metis_static cublasLt_static)
|
| 1289 |
+
endif()
|
| 1290 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 10.1.2)
|
| 1291 |
+
# cusolver depends on liblapack_static.a starting with CUDA 10.1 update 2,
|
| 1292 |
+
# https://docs.nvidia.com/cuda/archive/11.5.0/cusolver#static-link-lapack
|
| 1293 |
+
_CUDAToolkit_find_and_add_import_lib(cusolver_lapack_static ALT lapack_static) # implementation detail static lib
|
| 1294 |
+
list(APPEND cusolver_static_deps cusolver_lapack_static)
|
| 1295 |
+
endif()
|
| 1296 |
+
_CUDAToolkit_find_and_add_import_lib(cusolver DEPS ${cusolver_deps})
|
| 1297 |
+
_CUDAToolkit_find_and_add_import_lib(cusolver_static DEPS ${cusolver_static_deps})
|
| 1298 |
+
unset(cusolver_deps)
|
| 1299 |
+
unset(cusolver_static_deps)
|
| 1300 |
+
|
| 1301 |
+
# nvGRAPH depends on cuRAND, and cuSOLVER.
|
| 1302 |
+
_CUDAToolkit_find_and_add_import_lib(nvgraph DEPS curand cusolver)
|
| 1303 |
+
_CUDAToolkit_find_and_add_import_lib(nvgraph_static DEPS curand_static cusolver_static)
|
| 1304 |
+
|
| 1305 |
+
# Process the majority of the NPP libraries.
|
| 1306 |
+
foreach (cuda_lib nppial nppicc nppidei nppif nppig nppim nppist nppitc npps nppicom nppisu)
|
| 1307 |
+
_CUDAToolkit_find_and_add_import_lib(${cuda_lib} DEPS nppc)
|
| 1308 |
+
_CUDAToolkit_find_and_add_import_lib(${cuda_lib}_static DEPS nppc_static)
|
| 1309 |
+
endforeach()
|
| 1310 |
+
|
| 1311 |
+
find_path(CUDAToolkit_CUPTI_INCLUDE_DIR cupti.h PATHS
|
| 1312 |
+
"${CUDAToolkit_ROOT_DIR}/extras/CUPTI/include"
|
| 1313 |
+
${CUDAToolkit_INCLUDE_DIRS}
|
| 1314 |
+
PATH_SUFFIXES "../extras/CUPTI/include"
|
| 1315 |
+
"../../../extras/CUPTI/include"
|
| 1316 |
+
NO_DEFAULT_PATH)
|
| 1317 |
+
mark_as_advanced(CUDAToolkit_CUPTI_INCLUDE_DIR)
|
| 1318 |
+
|
| 1319 |
+
if(CUDAToolkit_CUPTI_INCLUDE_DIR)
|
| 1320 |
+
set(_cmake_cupti_extra_paths extras/CUPTI/lib64/
|
| 1321 |
+
extras/CUPTI/lib/
|
| 1322 |
+
../extras/CUPTI/lib64/
|
| 1323 |
+
../extras/CUPTI/lib/)
|
| 1324 |
+
_CUDAToolkit_find_and_add_import_lib(cupti
|
| 1325 |
+
EXTRA_PATH_SUFFIXES ${_cmake_cupti_extra_paths}
|
| 1326 |
+
EXTRA_INCLUDE_DIRS "${CUDAToolkit_CUPTI_INCLUDE_DIR}")
|
| 1327 |
+
_CUDAToolkit_find_and_add_import_lib(cupti_static
|
| 1328 |
+
EXTRA_PATH_SUFFIXES ${_cmake_cupti_extra_paths}
|
| 1329 |
+
EXTRA_INCLUDE_DIRS "${CUDAToolkit_CUPTI_INCLUDE_DIR}")
|
| 1330 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 10.2.0)
|
| 1331 |
+
_CUDAToolkit_find_and_add_import_lib(nvperf_host
|
| 1332 |
+
EXTRA_PATH_SUFFIXES ${_cmake_cupti_extra_paths}
|
| 1333 |
+
EXTRA_INCLUDE_DIRS "${CUDAToolkit_CUPTI_INCLUDE_DIR}")
|
| 1334 |
+
_CUDAToolkit_find_and_add_import_lib(nvperf_host_static
|
| 1335 |
+
EXTRA_PATH_SUFFIXES ${_cmake_cupti_extra_paths}
|
| 1336 |
+
EXTRA_INCLUDE_DIRS "${CUDAToolkit_CUPTI_INCLUDE_DIR}")
|
| 1337 |
+
_CUDAToolkit_find_and_add_import_lib(nvperf_target
|
| 1338 |
+
EXTRA_PATH_SUFFIXES ${_cmake_cupti_extra_paths}
|
| 1339 |
+
EXTRA_INCLUDE_DIRS "${CUDAToolkit_CUPTI_INCLUDE_DIR}")
|
| 1340 |
+
endif()
|
| 1341 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.3.0)
|
| 1342 |
+
_CUDAToolkit_find_and_add_import_lib(pcsamplingutil
|
| 1343 |
+
EXTRA_PATH_SUFFIXES ${_cmake_cupti_extra_paths}
|
| 1344 |
+
EXTRA_INCLUDE_DIRS "${CUDAToolkit_CUPTI_INCLUDE_DIR}")
|
| 1345 |
+
endif()
|
| 1346 |
+
endif()
|
| 1347 |
+
|
| 1348 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.1.0)
|
| 1349 |
+
if(NOT TARGET CUDA::nvptxcompiler_static)
|
| 1350 |
+
_CUDAToolkit_find_and_add_import_lib(nvptxcompiler_static)
|
| 1351 |
+
if(TARGET CUDA::nvptxcompiler_static)
|
| 1352 |
+
target_link_libraries(CUDA::nvptxcompiler_static INTERFACE CUDA::cudart_static_deps)
|
| 1353 |
+
endif()
|
| 1354 |
+
endif()
|
| 1355 |
+
endif()
|
| 1356 |
+
|
| 1357 |
+
_CUDAToolkit_find_and_add_import_lib(nvrtc_builtins ALT nvrtc-builtins)
|
| 1358 |
+
_CUDAToolkit_find_and_add_import_lib(nvrtc)
|
| 1359 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 11.5.0)
|
| 1360 |
+
_CUDAToolkit_find_and_add_import_lib(nvrtc_builtins_static ALT nvrtc-builtins_static)
|
| 1361 |
+
if(NOT TARGET CUDA::nvrtc_static)
|
| 1362 |
+
_CUDAToolkit_find_and_add_import_lib(nvrtc_static DEPS nvrtc_builtins_static nvptxcompiler_static)
|
| 1363 |
+
if(TARGET CUDA::nvrtc_static AND WIN32 AND NOT (BORLAND OR MINGW OR CYGWIN))
|
| 1364 |
+
target_link_libraries(CUDA::nvrtc_static INTERFACE Ws2_32.lib)
|
| 1365 |
+
endif()
|
| 1366 |
+
endif()
|
| 1367 |
+
endif()
|
| 1368 |
+
|
| 1369 |
+
_CUDAToolkit_find_and_add_import_lib(nvml ALT nvidia-ml nvml)
|
| 1370 |
+
_CUDAToolkit_find_and_add_import_lib(nvml_static ONLY_SEARCH_FOR libnvidia-ml.a libnvml.a)
|
| 1371 |
+
|
| 1372 |
+
if(WIN32)
|
| 1373 |
+
# nvtools can be installed outside the CUDA toolkit directory
|
| 1374 |
+
# so prefer the NVTOOLSEXT_PATH windows only environment variable
|
| 1375 |
+
# In addition on windows the most common name is nvToolsExt64_1
|
| 1376 |
+
find_library(CUDA_nvToolsExt_LIBRARY
|
| 1377 |
+
NAMES nvToolsExt64_1 nvToolsExt64 nvToolsExt
|
| 1378 |
+
PATHS ENV NVTOOLSEXT_PATH
|
| 1379 |
+
ENV CUDA_PATH
|
| 1380 |
+
PATH_SUFFIXES lib/x64 lib
|
| 1381 |
+
)
|
| 1382 |
+
endif()
|
| 1383 |
+
_CUDAToolkit_find_and_add_import_lib(nvToolsExt ALT nvToolsExt64)
|
| 1384 |
+
|
| 1385 |
+
if(CUDAToolkit_VERSION VERSION_GREATER_EQUAL 10.0)
|
| 1386 |
+
# nvToolsExt is deprecated since nvtx3 introduction.
|
| 1387 |
+
# Warn only if the project requires a sufficiently new CMake to make migration possible.
|
| 1388 |
+
if(TARGET CUDA::nvToolsExt AND CMAKE_MINIMUM_REQUIRED_VERSION VERSION_GREATER_EQUAL 3.25)
|
| 1389 |
+
set_property(TARGET CUDA::nvToolsExt PROPERTY DEPRECATION "nvToolsExt has been superseded by nvtx3 since CUDA 10.0 and CMake 3.25. Use CUDA::nvtx3 and include <nvtx3/nvToolsExt.h> instead.")
|
| 1390 |
+
endif()
|
| 1391 |
+
|
| 1392 |
+
# Header-only variant. Uses dlopen().
|
| 1393 |
+
if(NOT TARGET CUDA::nvtx3)
|
| 1394 |
+
add_library(CUDA::nvtx3 INTERFACE IMPORTED)
|
| 1395 |
+
target_include_directories(CUDA::nvtx3 SYSTEM INTERFACE "${CUDAToolkit_INCLUDE_DIRS}")
|
| 1396 |
+
target_link_libraries(CUDA::nvtx3 INTERFACE ${CMAKE_DL_LIBS})
|
| 1397 |
+
endif()
|
| 1398 |
+
endif()
|
| 1399 |
+
|
| 1400 |
+
_CUDAToolkit_find_and_add_import_lib(OpenCL)
|
| 1401 |
+
endif()
|
| 1402 |
+
|
| 1403 |
+
if(_CUDAToolkit_Pop_ROOT_PATH)
|
| 1404 |
+
list(REMOVE_AT CMAKE_FIND_ROOT_PATH 0)
|
| 1405 |
+
unset(_CUDAToolkit_Pop_ROOT_PATH)
|
| 1406 |
+
endif()
|
| 1407 |
+
|
| 1408 |
+
unset(_CUDAToolkit_win_search_dirs)
|
| 1409 |
+
unset(_CUDAToolkit_win_stub_search_dirs)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindCurses.cmake
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
FindCurses
|
| 6 |
+
----------
|
| 7 |
+
|
| 8 |
+
Find the curses or ncurses include file and library.
|
| 9 |
+
|
| 10 |
+
Result Variables
|
| 11 |
+
^^^^^^^^^^^^^^^^
|
| 12 |
+
|
| 13 |
+
This module defines the following variables:
|
| 14 |
+
|
| 15 |
+
``CURSES_FOUND``
|
| 16 |
+
True if Curses is found.
|
| 17 |
+
``CURSES_INCLUDE_DIRS``
|
| 18 |
+
The include directories needed to use Curses.
|
| 19 |
+
``CURSES_LIBRARIES``
|
| 20 |
+
The libraries needed to use Curses.
|
| 21 |
+
``CURSES_CFLAGS``
|
| 22 |
+
.. versionadded:: 3.16
|
| 23 |
+
|
| 24 |
+
Parameters which ought be given to C/C++ compilers when using Curses.
|
| 25 |
+
``CURSES_HAVE_CURSES_H``
|
| 26 |
+
True if curses.h is available.
|
| 27 |
+
``CURSES_HAVE_NCURSES_H``
|
| 28 |
+
True if ncurses.h is available.
|
| 29 |
+
``CURSES_HAVE_NCURSES_NCURSES_H``
|
| 30 |
+
True if ``ncurses/ncurses.h`` is available.
|
| 31 |
+
``CURSES_HAVE_NCURSES_CURSES_H``
|
| 32 |
+
True if ``ncurses/curses.h`` is available.
|
| 33 |
+
|
| 34 |
+
Set ``CURSES_NEED_NCURSES`` to ``TRUE`` before the
|
| 35 |
+
``find_package(Curses)`` call if NCurses functionality is required.
|
| 36 |
+
|
| 37 |
+
.. versionadded:: 3.10
|
| 38 |
+
Set ``CURSES_NEED_WIDE`` to ``TRUE`` before the
|
| 39 |
+
``find_package(Curses)`` call if unicode functionality is required.
|
| 40 |
+
|
| 41 |
+
Backward Compatibility
|
| 42 |
+
^^^^^^^^^^^^^^^^^^^^^^
|
| 43 |
+
|
| 44 |
+
The following variable are provided for backward compatibility:
|
| 45 |
+
|
| 46 |
+
``CURSES_INCLUDE_DIR``
|
| 47 |
+
Path to Curses include. Use ``CURSES_INCLUDE_DIRS`` instead.
|
| 48 |
+
``CURSES_LIBRARY``
|
| 49 |
+
Path to Curses library. Use ``CURSES_LIBRARIES`` instead.
|
| 50 |
+
#]=======================================================================]
|
| 51 |
+
|
| 52 |
+
include(${CMAKE_CURRENT_LIST_DIR}/CheckLibraryExists.cmake)
|
| 53 |
+
|
| 54 |
+
# we don't know anything about cursesw, so only ncurses
|
| 55 |
+
# may be ncursesw
|
| 56 |
+
if(NOT CURSES_NEED_WIDE)
|
| 57 |
+
set(NCURSES_LIBRARY_NAME "ncurses")
|
| 58 |
+
set(CURSES_FORM_LIBRARY_NAME "form")
|
| 59 |
+
else()
|
| 60 |
+
set(NCURSES_LIBRARY_NAME "ncursesw")
|
| 61 |
+
set(CURSES_FORM_LIBRARY_NAME "formw")
|
| 62 |
+
# Also, if we are searching for wide curses - we are actually searching
|
| 63 |
+
# for ncurses, we don't know about any other unicode version.
|
| 64 |
+
set(CURSES_NEED_NCURSES TRUE)
|
| 65 |
+
endif()
|
| 66 |
+
|
| 67 |
+
find_library(CURSES_CURSES_LIBRARY NAMES curses)
|
| 68 |
+
|
| 69 |
+
find_library(CURSES_NCURSES_LIBRARY NAMES "${NCURSES_LIBRARY_NAME}" )
|
| 70 |
+
set(CURSES_USE_NCURSES FALSE)
|
| 71 |
+
|
| 72 |
+
if(CURSES_NCURSES_LIBRARY AND ((NOT CURSES_CURSES_LIBRARY) OR CURSES_NEED_NCURSES))
|
| 73 |
+
set(CURSES_USE_NCURSES TRUE)
|
| 74 |
+
endif()
|
| 75 |
+
# http://cygwin.com/ml/cygwin-announce/2010-01/msg00002.html
|
| 76 |
+
# cygwin ncurses stopped providing curses.h symlinks see above
|
| 77 |
+
# message. Cygwin is an ncurses package, so force ncurses on
|
| 78 |
+
# cygwin if the curses.h is missing
|
| 79 |
+
if(CURSES_NCURSES_LIBRARY AND CYGWIN)
|
| 80 |
+
if (CURSES_NEED_WIDE)
|
| 81 |
+
if(NOT EXISTS /usr/include/ncursesw/curses.h)
|
| 82 |
+
set(CURSES_USE_NCURSES TRUE)
|
| 83 |
+
endif()
|
| 84 |
+
else()
|
| 85 |
+
if(NOT EXISTS /usr/include/curses.h)
|
| 86 |
+
set(CURSES_USE_NCURSES TRUE)
|
| 87 |
+
endif()
|
| 88 |
+
endif()
|
| 89 |
+
endif()
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
# Not sure the logic is correct here.
|
| 93 |
+
# If NCurses is required, use the function wsyncup() to check if the library
|
| 94 |
+
# has NCurses functionality (at least this is where it breaks on NetBSD).
|
| 95 |
+
# If wsyncup is in curses, use this one.
|
| 96 |
+
# If not, try to find ncurses and check if this has the symbol.
|
| 97 |
+
# Once the ncurses library is found, search the ncurses.h header first, but
|
| 98 |
+
# some web pages also say that even with ncurses there is not always a ncurses.h:
|
| 99 |
+
# http://osdir.com/ml/gnome.apps.mc.devel/2002-06/msg00029.html
|
| 100 |
+
# So at first try ncurses.h, if not found, try to find curses.h under the same
|
| 101 |
+
# prefix as the library was found, if still not found, try curses.h with the
|
| 102 |
+
# default search paths.
|
| 103 |
+
if(CURSES_CURSES_LIBRARY AND CURSES_NEED_NCURSES)
|
| 104 |
+
include(${CMAKE_CURRENT_LIST_DIR}/CMakePushCheckState.cmake)
|
| 105 |
+
cmake_push_check_state()
|
| 106 |
+
set(CMAKE_REQUIRED_QUIET ${Curses_FIND_QUIETLY})
|
| 107 |
+
CHECK_LIBRARY_EXISTS("${CURSES_CURSES_LIBRARY}"
|
| 108 |
+
wsyncup "" CURSES_CURSES_HAS_WSYNCUP)
|
| 109 |
+
|
| 110 |
+
if(CURSES_NCURSES_LIBRARY AND NOT CURSES_CURSES_HAS_WSYNCUP)
|
| 111 |
+
CHECK_LIBRARY_EXISTS("${CURSES_NCURSES_LIBRARY}"
|
| 112 |
+
wsyncup "" CURSES_NCURSES_HAS_WSYNCUP)
|
| 113 |
+
if( CURSES_NCURSES_HAS_WSYNCUP)
|
| 114 |
+
set(CURSES_USE_NCURSES TRUE)
|
| 115 |
+
endif()
|
| 116 |
+
endif()
|
| 117 |
+
cmake_pop_check_state()
|
| 118 |
+
|
| 119 |
+
endif()
|
| 120 |
+
|
| 121 |
+
if(CURSES_USE_NCURSES)
|
| 122 |
+
get_filename_component(_cursesLibDir "${CURSES_NCURSES_LIBRARY}" PATH)
|
| 123 |
+
get_filename_component(_cursesParentDir "${_cursesLibDir}" PATH)
|
| 124 |
+
|
| 125 |
+
# Use CURSES_NCURSES_INCLUDE_PATH if set, for compatibility.
|
| 126 |
+
if(CURSES_NCURSES_INCLUDE_PATH)
|
| 127 |
+
if (CURSES_NEED_WIDE)
|
| 128 |
+
find_path(CURSES_INCLUDE_PATH
|
| 129 |
+
NAMES ncursesw/ncurses.h ncursesw/curses.h ncursesw.h cursesw.h
|
| 130 |
+
PATHS ${CURSES_NCURSES_INCLUDE_PATH}
|
| 131 |
+
NO_DEFAULT_PATH
|
| 132 |
+
)
|
| 133 |
+
else()
|
| 134 |
+
find_path(CURSES_INCLUDE_PATH
|
| 135 |
+
NAMES ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h
|
| 136 |
+
PATHS ${CURSES_NCURSES_INCLUDE_PATH}
|
| 137 |
+
NO_DEFAULT_PATH
|
| 138 |
+
)
|
| 139 |
+
endif()
|
| 140 |
+
endif()
|
| 141 |
+
|
| 142 |
+
if (CURSES_NEED_WIDE)
|
| 143 |
+
set(CURSES_TINFO_LIBRARY_NAME tinfow)
|
| 144 |
+
find_path(CURSES_INCLUDE_PATH
|
| 145 |
+
NAMES ncursesw/ncurses.h ncursesw/curses.h ncursesw.h cursesw.h
|
| 146 |
+
HINTS "${_cursesParentDir}/include"
|
| 147 |
+
)
|
| 148 |
+
else()
|
| 149 |
+
set(CURSES_TINFO_LIBRARY_NAME tinfo)
|
| 150 |
+
find_path(CURSES_INCLUDE_PATH
|
| 151 |
+
NAMES ncurses/ncurses.h ncurses/curses.h ncurses.h curses.h
|
| 152 |
+
HINTS "${_cursesParentDir}/include"
|
| 153 |
+
)
|
| 154 |
+
endif()
|
| 155 |
+
|
| 156 |
+
# Previous versions of FindCurses provided these values.
|
| 157 |
+
if(NOT DEFINED CURSES_LIBRARY)
|
| 158 |
+
set(CURSES_LIBRARY "${CURSES_NCURSES_LIBRARY}")
|
| 159 |
+
endif()
|
| 160 |
+
|
| 161 |
+
CHECK_LIBRARY_EXISTS("${CURSES_NCURSES_LIBRARY}"
|
| 162 |
+
cbreak "" CURSES_NCURSES_HAS_CBREAK)
|
| 163 |
+
CHECK_LIBRARY_EXISTS("${CURSES_NCURSES_LIBRARY}"
|
| 164 |
+
nodelay "" CURSES_NCURSES_HAS_NODELAY)
|
| 165 |
+
if(NOT CURSES_NCURSES_HAS_CBREAK OR NOT CURSES_NCURSES_HAS_NODELAY)
|
| 166 |
+
find_library(CURSES_EXTRA_LIBRARY "${CURSES_TINFO_LIBRARY_NAME}" HINTS "${_cursesLibDir}")
|
| 167 |
+
find_library(CURSES_EXTRA_LIBRARY "${CURSES_TINFO_LIBRARY_NAME}" )
|
| 168 |
+
|
| 169 |
+
mark_as_advanced(
|
| 170 |
+
CURSES_EXTRA_LIBRARY
|
| 171 |
+
)
|
| 172 |
+
endif()
|
| 173 |
+
else()
|
| 174 |
+
get_filename_component(_cursesLibDir "${CURSES_CURSES_LIBRARY}" PATH)
|
| 175 |
+
get_filename_component(_cursesParentDir "${_cursesLibDir}" PATH)
|
| 176 |
+
|
| 177 |
+
#We can't find anything with CURSES_NEED_WIDE because we know
|
| 178 |
+
#only about ncursesw unicode curses version
|
| 179 |
+
if(NOT CURSES_NEED_WIDE)
|
| 180 |
+
find_path(CURSES_INCLUDE_PATH
|
| 181 |
+
NAMES curses.h
|
| 182 |
+
HINTS "${_cursesParentDir}/include"
|
| 183 |
+
)
|
| 184 |
+
endif()
|
| 185 |
+
|
| 186 |
+
# Previous versions of FindCurses provided these values.
|
| 187 |
+
if(NOT DEFINED CURSES_CURSES_H_PATH)
|
| 188 |
+
set(CURSES_CURSES_H_PATH "${CURSES_INCLUDE_PATH}")
|
| 189 |
+
endif()
|
| 190 |
+
if(NOT DEFINED CURSES_LIBRARY)
|
| 191 |
+
set(CURSES_LIBRARY "${CURSES_CURSES_LIBRARY}")
|
| 192 |
+
endif()
|
| 193 |
+
endif()
|
| 194 |
+
|
| 195 |
+
# Report whether each possible header name exists in the include directory.
|
| 196 |
+
if(NOT DEFINED CURSES_HAVE_NCURSES_NCURSES_H)
|
| 197 |
+
if(CURSES_NEED_WIDE)
|
| 198 |
+
if(EXISTS "${CURSES_INCLUDE_PATH}/ncursesw/ncurses.h")
|
| 199 |
+
set(CURSES_HAVE_NCURSES_NCURSES_H "${CURSES_INCLUDE_PATH}/ncursesw/ncurses.h")
|
| 200 |
+
endif()
|
| 201 |
+
elseif(EXISTS "${CURSES_INCLUDE_PATH}/ncurses/ncurses.h")
|
| 202 |
+
set(CURSES_HAVE_NCURSES_NCURSES_H "${CURSES_INCLUDE_PATH}/ncurses/ncurses.h")
|
| 203 |
+
endif()
|
| 204 |
+
if(NOT DEFINED CURSES_HAVE_NCURSES_NCURSES_H)
|
| 205 |
+
set(CURSES_HAVE_NCURSES_NCURSES_H "CURSES_HAVE_NCURSES_NCURSES_H-NOTFOUND")
|
| 206 |
+
endif()
|
| 207 |
+
endif()
|
| 208 |
+
if(NOT DEFINED CURSES_HAVE_NCURSES_CURSES_H)
|
| 209 |
+
if(CURSES_NEED_WIDE)
|
| 210 |
+
if(EXISTS "${CURSES_INCLUDE_PATH}/ncursesw/curses.h")
|
| 211 |
+
set(CURSES_HAVE_NCURSES_CURSES_H "${CURSES_INCLUDE_PATH}/ncursesw/curses.h")
|
| 212 |
+
endif()
|
| 213 |
+
elseif(EXISTS "${CURSES_INCLUDE_PATH}/ncurses/curses.h")
|
| 214 |
+
set(CURSES_HAVE_NCURSES_CURSES_H "${CURSES_INCLUDE_PATH}/ncurses/curses.h")
|
| 215 |
+
endif()
|
| 216 |
+
if(NOT DEFINED CURSES_HAVE_NCURSES_CURSES_H)
|
| 217 |
+
set(CURSES_HAVE_NCURSES_CURSES_H "CURSES_HAVE_NCURSES_CURSES_H-NOTFOUND")
|
| 218 |
+
endif()
|
| 219 |
+
endif()
|
| 220 |
+
if(NOT CURSES_NEED_WIDE)
|
| 221 |
+
#ncursesw can't be found for this paths
|
| 222 |
+
if(NOT DEFINED CURSES_HAVE_NCURSES_H)
|
| 223 |
+
if(EXISTS "${CURSES_INCLUDE_PATH}/ncurses.h")
|
| 224 |
+
set(CURSES_HAVE_NCURSES_H "${CURSES_INCLUDE_PATH}/ncurses.h")
|
| 225 |
+
else()
|
| 226 |
+
set(CURSES_HAVE_NCURSES_H "CURSES_HAVE_NCURSES_H-NOTFOUND")
|
| 227 |
+
endif()
|
| 228 |
+
endif()
|
| 229 |
+
if(NOT DEFINED CURSES_HAVE_CURSES_H)
|
| 230 |
+
if(EXISTS "${CURSES_INCLUDE_PATH}/curses.h")
|
| 231 |
+
set(CURSES_HAVE_CURSES_H "${CURSES_INCLUDE_PATH}/curses.h")
|
| 232 |
+
else()
|
| 233 |
+
set(CURSES_HAVE_CURSES_H "CURSES_HAVE_CURSES_H-NOTFOUND")
|
| 234 |
+
endif()
|
| 235 |
+
endif()
|
| 236 |
+
endif()
|
| 237 |
+
|
| 238 |
+
find_library(CURSES_FORM_LIBRARY "${CURSES_FORM_LIBRARY_NAME}" HINTS "${_cursesLibDir}")
|
| 239 |
+
find_library(CURSES_FORM_LIBRARY "${CURSES_FORM_LIBRARY_NAME}" )
|
| 240 |
+
|
| 241 |
+
# Previous versions of FindCurses provided these values.
|
| 242 |
+
if(NOT DEFINED FORM_LIBRARY)
|
| 243 |
+
set(FORM_LIBRARY "${CURSES_FORM_LIBRARY}")
|
| 244 |
+
endif()
|
| 245 |
+
|
| 246 |
+
# Need to provide the *_LIBRARIES
|
| 247 |
+
set(CURSES_LIBRARIES ${CURSES_LIBRARY})
|
| 248 |
+
|
| 249 |
+
if(CURSES_EXTRA_LIBRARY)
|
| 250 |
+
set(CURSES_LIBRARIES ${CURSES_LIBRARIES} ${CURSES_EXTRA_LIBRARY})
|
| 251 |
+
endif()
|
| 252 |
+
|
| 253 |
+
if(CURSES_FORM_LIBRARY)
|
| 254 |
+
set(CURSES_LIBRARIES ${CURSES_LIBRARIES} ${CURSES_FORM_LIBRARY})
|
| 255 |
+
endif()
|
| 256 |
+
|
| 257 |
+
# Provide the *_INCLUDE_DIRS and *_CFLAGS results.
|
| 258 |
+
set(CURSES_INCLUDE_DIRS ${CURSES_INCLUDE_PATH})
|
| 259 |
+
set(CURSES_INCLUDE_DIR ${CURSES_INCLUDE_PATH}) # compatibility
|
| 260 |
+
|
| 261 |
+
find_package(PkgConfig QUIET)
|
| 262 |
+
if(PKG_CONFIG_FOUND)
|
| 263 |
+
pkg_check_modules(NCURSES QUIET ${NCURSES_LIBRARY_NAME})
|
| 264 |
+
set(CURSES_CFLAGS ${NCURSES_CFLAGS_OTHER})
|
| 265 |
+
endif()
|
| 266 |
+
|
| 267 |
+
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
| 268 |
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Curses DEFAULT_MSG
|
| 269 |
+
CURSES_LIBRARY CURSES_INCLUDE_PATH)
|
| 270 |
+
|
| 271 |
+
mark_as_advanced(
|
| 272 |
+
CURSES_INCLUDE_PATH
|
| 273 |
+
CURSES_CURSES_LIBRARY
|
| 274 |
+
CURSES_NCURSES_LIBRARY
|
| 275 |
+
CURSES_FORM_LIBRARY
|
| 276 |
+
)
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindFLTK.cmake
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
FindFLTK
|
| 6 |
+
--------
|
| 7 |
+
|
| 8 |
+
Find the Fast Light Toolkit (FLTK) library
|
| 9 |
+
|
| 10 |
+
Input Variables
|
| 11 |
+
^^^^^^^^^^^^^^^
|
| 12 |
+
|
| 13 |
+
By default this module will search for all of the FLTK components and
|
| 14 |
+
add them to the ``FLTK_LIBRARIES`` variable. You can limit the components
|
| 15 |
+
which get placed in ``FLTK_LIBRARIES`` by defining one or more of the
|
| 16 |
+
following three options:
|
| 17 |
+
|
| 18 |
+
``FLTK_SKIP_OPENGL``
|
| 19 |
+
Set to true to disable searching for the FLTK GL library
|
| 20 |
+
|
| 21 |
+
``FLTK_SKIP_FORMS``
|
| 22 |
+
Set to true to disable searching for the FLTK Forms library
|
| 23 |
+
|
| 24 |
+
``FLTK_SKIP_IMAGES``
|
| 25 |
+
Set to true to disable searching for the FLTK Images library
|
| 26 |
+
|
| 27 |
+
FLTK is composed also by a binary tool. You can set the following option:
|
| 28 |
+
|
| 29 |
+
``FLTK_SKIP_FLUID``
|
| 30 |
+
Set to true to not look for the FLUID binary
|
| 31 |
+
|
| 32 |
+
Result Variables
|
| 33 |
+
^^^^^^^^^^^^^^^^
|
| 34 |
+
|
| 35 |
+
The following variables will be defined:
|
| 36 |
+
|
| 37 |
+
``FLTK_FOUND``
|
| 38 |
+
True if all components not skipped were found
|
| 39 |
+
|
| 40 |
+
``FLTK_INCLUDE_DIR``
|
| 41 |
+
Path to the include directory for FLTK header files
|
| 42 |
+
|
| 43 |
+
``FLTK_LIBRARIES``
|
| 44 |
+
List of the FLTK libraries found
|
| 45 |
+
|
| 46 |
+
``FLTK_FLUID_EXECUTABLE``
|
| 47 |
+
Path to the FLUID binary tool
|
| 48 |
+
|
| 49 |
+
``FLTK_WRAP_UI``
|
| 50 |
+
True if FLUID is found, used to enable the FLTK_WRAP_UI command
|
| 51 |
+
|
| 52 |
+
Cache Variables
|
| 53 |
+
^^^^^^^^^^^^^^^
|
| 54 |
+
|
| 55 |
+
The following cache variables are also available to set or use:
|
| 56 |
+
|
| 57 |
+
``FLTK_BASE_LIBRARY_RELEASE``
|
| 58 |
+
The FLTK base library (optimized)
|
| 59 |
+
|
| 60 |
+
``FLTK_BASE_LIBRARY_DEBUG``
|
| 61 |
+
The FLTK base library (debug)
|
| 62 |
+
|
| 63 |
+
``FLTK_GL_LIBRARY_RELEASE``
|
| 64 |
+
The FLTK GL library (optimized)
|
| 65 |
+
|
| 66 |
+
``FLTK_GL_LIBRARY_DEBUG``
|
| 67 |
+
The FLTK GL library (debug)
|
| 68 |
+
|
| 69 |
+
``FLTK_FORMS_LIBRARY_RELEASE``
|
| 70 |
+
The FLTK Forms library (optimized)
|
| 71 |
+
|
| 72 |
+
``FLTK_FORMS_LIBRARY_DEBUG``
|
| 73 |
+
The FLTK Forms library (debug)
|
| 74 |
+
|
| 75 |
+
``FLTK_IMAGES_LIBRARY_RELEASE``
|
| 76 |
+
The FLTK Images protobuf library (optimized)
|
| 77 |
+
|
| 78 |
+
``FLTK_IMAGES_LIBRARY_DEBUG``
|
| 79 |
+
The FLTK Images library (debug)
|
| 80 |
+
|
| 81 |
+
.. versionadded:: 3.11
|
| 82 |
+
Debug and Release variants are found separately and use per-configuration
|
| 83 |
+
variables.
|
| 84 |
+
#]=======================================================================]
|
| 85 |
+
|
| 86 |
+
if(NOT FLTK_SKIP_OPENGL)
|
| 87 |
+
find_package(OpenGL)
|
| 88 |
+
endif()
|
| 89 |
+
|
| 90 |
+
# Platform dependent libraries required by FLTK
|
| 91 |
+
if(WIN32)
|
| 92 |
+
if(NOT CYGWIN)
|
| 93 |
+
if(BORLAND)
|
| 94 |
+
set( FLTK_PLATFORM_DEPENDENT_LIBS import32 )
|
| 95 |
+
else()
|
| 96 |
+
set( FLTK_PLATFORM_DEPENDENT_LIBS wsock32 comctl32 )
|
| 97 |
+
endif()
|
| 98 |
+
endif()
|
| 99 |
+
endif()
|
| 100 |
+
|
| 101 |
+
if(UNIX)
|
| 102 |
+
include(${CMAKE_CURRENT_LIST_DIR}/FindX11.cmake)
|
| 103 |
+
find_library(FLTK_MATH_LIBRARY m)
|
| 104 |
+
set( FLTK_PLATFORM_DEPENDENT_LIBS ${X11_LIBRARIES} ${FLTK_MATH_LIBRARY})
|
| 105 |
+
endif()
|
| 106 |
+
|
| 107 |
+
if(APPLE)
|
| 108 |
+
set( FLTK_PLATFORM_DEPENDENT_LIBS "-framework Carbon -framework Cocoa -framework ApplicationServices -lz")
|
| 109 |
+
endif()
|
| 110 |
+
|
| 111 |
+
# If FLTK_INCLUDE_DIR is already defined we assign its value to FLTK_DIR.
|
| 112 |
+
if(FLTK_INCLUDE_DIR)
|
| 113 |
+
set(FLTK_DIR ${FLTK_INCLUDE_DIR})
|
| 114 |
+
endif()
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
# If FLTK has been built using CMake we try to find everything directly
|
| 118 |
+
set(FLTK_DIR_STRING "directory containing FLTKConfig.cmake. This is either the root of the build tree, or PREFIX/lib/fltk for an installation.")
|
| 119 |
+
|
| 120 |
+
# Search only if the location is not already known.
|
| 121 |
+
if(NOT FLTK_DIR)
|
| 122 |
+
# Get the system search path as a list.
|
| 123 |
+
file(TO_CMAKE_PATH "$ENV{PATH}" FLTK_DIR_SEARCH2)
|
| 124 |
+
|
| 125 |
+
# Construct a set of paths relative to the system search path.
|
| 126 |
+
set(FLTK_DIR_SEARCH "")
|
| 127 |
+
foreach(dir ${FLTK_DIR_SEARCH2})
|
| 128 |
+
set(FLTK_DIR_SEARCH ${FLTK_DIR_SEARCH} "${dir}/../lib/fltk")
|
| 129 |
+
endforeach()
|
| 130 |
+
string(REPLACE "//" "/" FLTK_DIR_SEARCH "${FLTK_DIR_SEARCH}")
|
| 131 |
+
|
| 132 |
+
#
|
| 133 |
+
# Look for an installation or build tree.
|
| 134 |
+
#
|
| 135 |
+
find_path(FLTK_DIR FLTKConfig.cmake
|
| 136 |
+
# Look for an environment variable FLTK_DIR.
|
| 137 |
+
HINTS
|
| 138 |
+
ENV FLTK_DIR
|
| 139 |
+
|
| 140 |
+
# Look in places relative to the system executable search path.
|
| 141 |
+
${FLTK_DIR_SEARCH}
|
| 142 |
+
|
| 143 |
+
PATH_SUFFIXES
|
| 144 |
+
fltk
|
| 145 |
+
fltk/include
|
| 146 |
+
lib/fltk
|
| 147 |
+
lib/fltk/include
|
| 148 |
+
|
| 149 |
+
# Help the user find it if we cannot.
|
| 150 |
+
DOC "The ${FLTK_DIR_STRING}"
|
| 151 |
+
)
|
| 152 |
+
endif()
|
| 153 |
+
|
| 154 |
+
# Check if FLTK was built using CMake
|
| 155 |
+
foreach(fltk_include IN LISTS FLTK_DIR)
|
| 156 |
+
if(EXISTS "${fltk_include}/FLTKConfig.cmake")
|
| 157 |
+
set(FLTK_BUILT_WITH_CMAKE 1)
|
| 158 |
+
set(FLTK_CMAKE_PATH "${fltk_include}/FLTKConfig.cmake")
|
| 159 |
+
break()
|
| 160 |
+
endif()
|
| 161 |
+
endforeach()
|
| 162 |
+
|
| 163 |
+
if(FLTK_BUILT_WITH_CMAKE)
|
| 164 |
+
set(FLTK_FOUND 1)
|
| 165 |
+
include("${FLTK_CMAKE_PATH}")
|
| 166 |
+
|
| 167 |
+
# Fluid
|
| 168 |
+
if(FLUID_COMMAND)
|
| 169 |
+
set(FLTK_FLUID_EXECUTABLE ${FLUID_COMMAND} CACHE FILEPATH "Fluid executable")
|
| 170 |
+
else()
|
| 171 |
+
find_program(FLTK_FLUID_EXECUTABLE fluid PATHS
|
| 172 |
+
${FLTK_EXECUTABLE_DIRS}
|
| 173 |
+
${FLTK_EXECUTABLE_DIRS}/RelWithDebInfo
|
| 174 |
+
${FLTK_EXECUTABLE_DIRS}/Debug
|
| 175 |
+
${FLTK_EXECUTABLE_DIRS}/Release
|
| 176 |
+
NO_SYSTEM_PATH)
|
| 177 |
+
endif()
|
| 178 |
+
# mark_as_advanced(FLTK_FLUID_EXECUTABLE)
|
| 179 |
+
|
| 180 |
+
set(FLTK_INCLUDE_DIR ${FLTK_DIR})
|
| 181 |
+
link_directories(${FLTK_LIBRARY_DIRS})
|
| 182 |
+
|
| 183 |
+
set(FLTK_BASE_LIBRARY fltk)
|
| 184 |
+
set(FLTK_GL_LIBRARY fltk_gl)
|
| 185 |
+
set(FLTK_FORMS_LIBRARY fltk_forms)
|
| 186 |
+
set(FLTK_IMAGES_LIBRARY fltk_images)
|
| 187 |
+
|
| 188 |
+
# Add the extra libraries
|
| 189 |
+
load_cache(${FLTK_DIR}
|
| 190 |
+
READ_WITH_PREFIX
|
| 191 |
+
FL FLTK_USE_SYSTEM_JPEG
|
| 192 |
+
FL FLTK_USE_SYSTEM_PNG
|
| 193 |
+
FL FLTK_USE_SYSTEM_ZLIB
|
| 194 |
+
)
|
| 195 |
+
|
| 196 |
+
set(FLTK_IMAGES_LIBS "")
|
| 197 |
+
if(FLFLTK_USE_SYSTEM_JPEG)
|
| 198 |
+
set(FLTK_IMAGES_LIBS ${FLTK_IMAGES_LIBS} fltk_jpeg)
|
| 199 |
+
endif()
|
| 200 |
+
if(FLFLTK_USE_SYSTEM_PNG)
|
| 201 |
+
set(FLTK_IMAGES_LIBS ${FLTK_IMAGES_LIBS} fltk_png)
|
| 202 |
+
endif()
|
| 203 |
+
if(FLFLTK_USE_SYSTEM_ZLIB)
|
| 204 |
+
set(FLTK_IMAGES_LIBS ${FLTK_IMAGES_LIBS} fltk_zlib)
|
| 205 |
+
endif()
|
| 206 |
+
set(FLTK_IMAGES_LIBS "${FLTK_IMAGES_LIBS}" CACHE INTERNAL
|
| 207 |
+
"Extra libraries for fltk_images library.")
|
| 208 |
+
|
| 209 |
+
else()
|
| 210 |
+
|
| 211 |
+
# if FLTK was not built using CMake
|
| 212 |
+
# Find fluid executable.
|
| 213 |
+
find_program(FLTK_FLUID_EXECUTABLE fluid ${FLTK_INCLUDE_DIR}/fluid)
|
| 214 |
+
|
| 215 |
+
# Use location of fluid to help find everything else.
|
| 216 |
+
set(FLTK_INCLUDE_SEARCH_PATH "")
|
| 217 |
+
set(FLTK_LIBRARY_SEARCH_PATH "")
|
| 218 |
+
if(FLTK_FLUID_EXECUTABLE)
|
| 219 |
+
get_filename_component(FLTK_BIN_DIR "${FLTK_FLUID_EXECUTABLE}" PATH)
|
| 220 |
+
set(FLTK_INCLUDE_SEARCH_PATH ${FLTK_INCLUDE_SEARCH_PATH}
|
| 221 |
+
${FLTK_BIN_DIR}/../include ${FLTK_BIN_DIR}/..)
|
| 222 |
+
set(FLTK_LIBRARY_SEARCH_PATH ${FLTK_LIBRARY_SEARCH_PATH}
|
| 223 |
+
${FLTK_BIN_DIR}/../lib)
|
| 224 |
+
set(FLTK_WRAP_UI 1)
|
| 225 |
+
endif()
|
| 226 |
+
|
| 227 |
+
#
|
| 228 |
+
# Try to find FLTK include dir using fltk-config
|
| 229 |
+
#
|
| 230 |
+
if(UNIX)
|
| 231 |
+
# Use fltk-config to generate a list of possible include directories
|
| 232 |
+
find_program(FLTK_CONFIG_SCRIPT fltk-config PATHS ${FLTK_BIN_DIR})
|
| 233 |
+
if(FLTK_CONFIG_SCRIPT)
|
| 234 |
+
if(NOT FLTK_INCLUDE_DIR)
|
| 235 |
+
execute_process(COMMAND ${FLTK_CONFIG_SCRIPT} --cxxflags OUTPUT_VARIABLE FLTK_CXXFLAGS)
|
| 236 |
+
if(FLTK_CXXFLAGS)
|
| 237 |
+
string(REGEX MATCHALL "-I[^ ]*" _fltk_temp_dirs ${FLTK_CXXFLAGS})
|
| 238 |
+
string(REPLACE "-I" "" _fltk_temp_dirs "${_fltk_temp_dirs}")
|
| 239 |
+
foreach(_dir ${_fltk_temp_dirs})
|
| 240 |
+
string(STRIP ${_dir} _output)
|
| 241 |
+
list(APPEND _FLTK_POSSIBLE_INCLUDE_DIRS ${_output})
|
| 242 |
+
endforeach()
|
| 243 |
+
endif()
|
| 244 |
+
endif()
|
| 245 |
+
endif()
|
| 246 |
+
endif()
|
| 247 |
+
|
| 248 |
+
list(APPEND FLTK_INCLUDE_SEARCH_PATH ${_FLTK_POSSIBLE_INCLUDE_DIRS})
|
| 249 |
+
|
| 250 |
+
find_path(FLTK_INCLUDE_DIR
|
| 251 |
+
NAMES FL/Fl.h FL/Fl.H # fltk 1.1.9 has Fl.H (#8376)
|
| 252 |
+
PATH_SUFFIXES fltk fltk/include
|
| 253 |
+
PATHS ${FLTK_INCLUDE_SEARCH_PATH})
|
| 254 |
+
|
| 255 |
+
#
|
| 256 |
+
# Try to find FLTK library
|
| 257 |
+
if(UNIX)
|
| 258 |
+
if(FLTK_CONFIG_SCRIPT)
|
| 259 |
+
execute_process(COMMAND ${FLTK_CONFIG_SCRIPT} --libs OUTPUT_VARIABLE _FLTK_POSSIBLE_LIBS)
|
| 260 |
+
if(_FLTK_POSSIBLE_LIBS)
|
| 261 |
+
get_filename_component(_FLTK_POSSIBLE_LIBRARY_DIR ${_FLTK_POSSIBLE_LIBS} PATH)
|
| 262 |
+
endif()
|
| 263 |
+
endif()
|
| 264 |
+
endif()
|
| 265 |
+
|
| 266 |
+
list(APPEND FLTK_LIBRARY_SEARCH_PATH ${FLTK_INCLUDE_DIR}/lib ${_FLTK_POSSIBLE_LIBRARY_DIR})
|
| 267 |
+
|
| 268 |
+
include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
|
| 269 |
+
|
| 270 |
+
# Allow libraries to be set manually
|
| 271 |
+
if(NOT FLTK_BASE_LIBRARY)
|
| 272 |
+
find_library(FLTK_BASE_LIBRARY_RELEASE NAMES fltk PATHS ${FLTK_LIBRARY_SEARCH_PATH} PATH_SUFFIXES fltk fltk/lib)
|
| 273 |
+
find_library(FLTK_BASE_LIBRARY_DEBUG NAMES fltkd PATHS ${FLTK_LIBRARY_SEARCH_PATH} PATH_SUFFIXES fltk fltk/lib)
|
| 274 |
+
select_library_configurations(FLTK_BASE)
|
| 275 |
+
endif()
|
| 276 |
+
if(NOT FLTK_GL_LIBRARY)
|
| 277 |
+
find_library(FLTK_GL_LIBRARY_RELEASE NAMES fltkgl fltk_gl PATHS ${FLTK_LIBRARY_SEARCH_PATH} PATH_SUFFIXES fltk fltk/lib)
|
| 278 |
+
find_library(FLTK_GL_LIBRARY_DEBUG NAMES fltkgld fltk_gld PATHS ${FLTK_LIBRARY_SEARCH_PATH} PATH_SUFFIXES fltk fltk/lib)
|
| 279 |
+
select_library_configurations(FLTK_GL)
|
| 280 |
+
endif()
|
| 281 |
+
if(NOT FLTK_FORMS_LIBRARY)
|
| 282 |
+
find_library(FLTK_FORMS_LIBRARY_RELEASE NAMES fltkforms fltk_forms PATHS ${FLTK_LIBRARY_SEARCH_PATH} PATH_SUFFIXES fltk fltk/lib)
|
| 283 |
+
find_library(FLTK_FORMS_LIBRARY_DEBUG NAMES fltkformsd fltk_formsd PATHS ${FLTK_LIBRARY_SEARCH_PATH} PATH_SUFFIXES fltk fltk/lib)
|
| 284 |
+
select_library_configurations(FLTK_FORMS)
|
| 285 |
+
endif()
|
| 286 |
+
if(NOT FLTK_IMAGES_LIBRARY)
|
| 287 |
+
find_library(FLTK_IMAGES_LIBRARY_RELEASE NAMES fltkimages fltk_images PATHS ${FLTK_LIBRARY_SEARCH_PATH} PATH_SUFFIXES fltk fltk/lib)
|
| 288 |
+
find_library(FLTK_IMAGES_LIBRARY_DEBUG NAMES fltkimagesd fltk_imagesd PATHS ${FLTK_LIBRARY_SEARCH_PATH} PATH_SUFFIXES fltk fltk/lib)
|
| 289 |
+
select_library_configurations(FLTK_IMAGES)
|
| 290 |
+
endif()
|
| 291 |
+
|
| 292 |
+
# Find the extra libraries needed for the fltk_images library.
|
| 293 |
+
if(UNIX)
|
| 294 |
+
if(FLTK_CONFIG_SCRIPT)
|
| 295 |
+
execute_process(COMMAND ${FLTK_CONFIG_SCRIPT} --use-images --ldflags
|
| 296 |
+
OUTPUT_VARIABLE FLTK_IMAGES_LDFLAGS)
|
| 297 |
+
set(FLTK_LIBS_EXTRACT_REGEX ".*-lfltk_images (.*) -lfltk.*")
|
| 298 |
+
if("${FLTK_IMAGES_LDFLAGS}" MATCHES "${FLTK_LIBS_EXTRACT_REGEX}")
|
| 299 |
+
string(REGEX REPLACE " +" ";" FLTK_IMAGES_LIBS "${CMAKE_MATCH_1}")
|
| 300 |
+
# The execute_process() will not be inherited into subdirectories from
|
| 301 |
+
# the file that originally included this module. Save the answer.
|
| 302 |
+
set(FLTK_IMAGES_LIBS "${FLTK_IMAGES_LIBS}" CACHE INTERNAL
|
| 303 |
+
"Extra libraries for fltk_images library.")
|
| 304 |
+
endif()
|
| 305 |
+
endif()
|
| 306 |
+
endif()
|
| 307 |
+
|
| 308 |
+
endif()
|
| 309 |
+
|
| 310 |
+
# Append all of the required libraries together (by default, everything)
|
| 311 |
+
set(FLTK_LIBRARIES)
|
| 312 |
+
if(NOT FLTK_SKIP_IMAGES)
|
| 313 |
+
list(APPEND FLTK_LIBRARIES ${FLTK_IMAGES_LIBRARY})
|
| 314 |
+
endif()
|
| 315 |
+
if(NOT FLTK_SKIP_FORMS)
|
| 316 |
+
list(APPEND FLTK_LIBRARIES ${FLTK_FORMS_LIBRARY})
|
| 317 |
+
endif()
|
| 318 |
+
if(NOT FLTK_SKIP_OPENGL)
|
| 319 |
+
list(APPEND FLTK_LIBRARIES ${FLTK_GL_LIBRARY} ${OPENGL_gl_LIBRARY})
|
| 320 |
+
list(APPEND FLTK_INCLUDE_DIR ${OPENGL_INCLUDE_DIR})
|
| 321 |
+
list(REMOVE_DUPLICATES FLTK_INCLUDE_DIR)
|
| 322 |
+
endif()
|
| 323 |
+
list(APPEND FLTK_LIBRARIES ${FLTK_BASE_LIBRARY})
|
| 324 |
+
|
| 325 |
+
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
| 326 |
+
if(FLTK_SKIP_FLUID)
|
| 327 |
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FLTK DEFAULT_MSG FLTK_LIBRARIES FLTK_INCLUDE_DIR)
|
| 328 |
+
else()
|
| 329 |
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(FLTK DEFAULT_MSG FLTK_LIBRARIES FLTK_INCLUDE_DIR FLTK_FLUID_EXECUTABLE)
|
| 330 |
+
endif()
|
| 331 |
+
|
| 332 |
+
if(FLTK_FOUND)
|
| 333 |
+
if(APPLE)
|
| 334 |
+
set(FLTK_LIBRARIES ${FLTK_PLATFORM_DEPENDENT_LIBS} ${FLTK_LIBRARIES})
|
| 335 |
+
else()
|
| 336 |
+
set(FLTK_LIBRARIES ${FLTK_LIBRARIES} ${FLTK_PLATFORM_DEPENDENT_LIBS})
|
| 337 |
+
endif()
|
| 338 |
+
|
| 339 |
+
# The following deprecated settings are for compatibility with CMake 1.4
|
| 340 |
+
set (HAS_FLTK ${FLTK_FOUND})
|
| 341 |
+
set (FLTK_INCLUDE_PATH ${FLTK_INCLUDE_DIR})
|
| 342 |
+
set (FLTK_FLUID_EXE ${FLTK_FLUID_EXECUTABLE})
|
| 343 |
+
set (FLTK_LIBRARY ${FLTK_LIBRARIES})
|
| 344 |
+
endif()
|
openflamingo/lib/python3.10/site-packages/cmake/data/share/cmake-3.31/Modules/FindGIF.cmake
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
| 2 |
+
# file Copyright.txt or https://cmake.org/licensing for details.
|
| 3 |
+
|
| 4 |
+
#[=======================================================================[.rst:
|
| 5 |
+
FindGIF
|
| 6 |
+
-------
|
| 7 |
+
|
| 8 |
+
This finds the Graphics Interchange Format (GIF) library (``giflib``)
|
| 9 |
+
|
| 10 |
+
Imported targets
|
| 11 |
+
^^^^^^^^^^^^^^^^
|
| 12 |
+
|
| 13 |
+
This module defines the following :prop_tgt:`IMPORTED` target:
|
| 14 |
+
|
| 15 |
+
``GIF::GIF``
|
| 16 |
+
The ``giflib`` library, if found.
|
| 17 |
+
|
| 18 |
+
Result variables
|
| 19 |
+
^^^^^^^^^^^^^^^^
|
| 20 |
+
|
| 21 |
+
This module will set the following variables in your project:
|
| 22 |
+
|
| 23 |
+
``GIF_FOUND``
|
| 24 |
+
If false, do not try to use GIF.
|
| 25 |
+
``GIF_INCLUDE_DIRS``
|
| 26 |
+
where to find gif_lib.h, etc.
|
| 27 |
+
``GIF_LIBRARIES``
|
| 28 |
+
the libraries needed to use GIF.
|
| 29 |
+
``GIF_VERSION``
|
| 30 |
+
3, 4 or a full version string (eg 5.1.4) for versions >= 4.1.6.
|
| 31 |
+
|
| 32 |
+
Cache variables
|
| 33 |
+
^^^^^^^^^^^^^^^
|
| 34 |
+
|
| 35 |
+
The following cache variables may also be set:
|
| 36 |
+
|
| 37 |
+
``GIF_INCLUDE_DIR``
|
| 38 |
+
where to find the GIF headers.
|
| 39 |
+
``GIF_LIBRARY``
|
| 40 |
+
where to find the GIF library.
|
| 41 |
+
|
| 42 |
+
Hints
|
| 43 |
+
^^^^^
|
| 44 |
+
|
| 45 |
+
``GIF_DIR`` is an environment variable that would correspond to the
|
| 46 |
+
``./configure --prefix=$GIF_DIR``.
|
| 47 |
+
#]=======================================================================]
|
| 48 |
+
|
| 49 |
+
cmake_policy(PUSH)
|
| 50 |
+
cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
|
| 51 |
+
|
| 52 |
+
# Created by Eric Wing.
|
| 53 |
+
# Modifications by Alexander Neundorf, Ben Campbell
|
| 54 |
+
|
| 55 |
+
find_path(GIF_INCLUDE_DIR gif_lib.h
|
| 56 |
+
HINTS
|
| 57 |
+
ENV GIF_DIR
|
| 58 |
+
PATH_SUFFIXES include
|
| 59 |
+
)
|
| 60 |
+
|
| 61 |
+
# the gif library can have many names :-/
|
| 62 |
+
set(POTENTIAL_GIF_LIBS gif libgif ungif libungif giflib giflib4)
|
| 63 |
+
|
| 64 |
+
find_library(GIF_LIBRARY
|
| 65 |
+
NAMES ${POTENTIAL_GIF_LIBS}
|
| 66 |
+
NAMES_PER_DIR
|
| 67 |
+
HINTS
|
| 68 |
+
ENV GIF_DIR
|
| 69 |
+
PATH_SUFFIXES lib
|
| 70 |
+
)
|
| 71 |
+
|
| 72 |
+
# Very basic version detection.
|
| 73 |
+
# The GIF_LIB_VERSION string in gif_lib.h seems to be unreliable, since it seems
|
| 74 |
+
# to be always " Version 2.0, " in versions 3.x of giflib.
|
| 75 |
+
# In version 4 the member UserData was added to GifFileType, so we check for this
|
| 76 |
+
# one.
|
| 77 |
+
# Versions after 4.1.6 define GIFLIB_MAJOR, GIFLIB_MINOR, and GIFLIB_RELEASE
|
| 78 |
+
# see http://giflib.sourceforge.net/gif_lib.html#compatibility
|
| 79 |
+
if(GIF_INCLUDE_DIR)
|
| 80 |
+
include(${CMAKE_CURRENT_LIST_DIR}/CMakePushCheckState.cmake)
|
| 81 |
+
include(${CMAKE_CURRENT_LIST_DIR}/CheckStructHasMember.cmake)
|
| 82 |
+
CMAKE_PUSH_CHECK_STATE()
|
| 83 |
+
set(CMAKE_REQUIRED_QUIET ${GIF_FIND_QUIETLY})
|
| 84 |
+
set(CMAKE_REQUIRED_INCLUDES "${GIF_INCLUDE_DIR}")
|
| 85 |
+
|
| 86 |
+
# Check for the specific version defines (>=4.1.6 only)
|
| 87 |
+
file(STRINGS ${GIF_INCLUDE_DIR}/gif_lib.h _GIF_DEFS REGEX "^[ \t]*#define[ \t]+GIFLIB_(MAJOR|MINOR|RELEASE)")
|
| 88 |
+
if(_GIF_DEFS)
|
| 89 |
+
# yay - got exact version info
|
| 90 |
+
string(REGEX REPLACE ".*GIFLIB_MAJOR ([0-9]+).*" "\\1" _GIF_MAJ "${_GIF_DEFS}")
|
| 91 |
+
string(REGEX REPLACE ".*GIFLIB_MINOR ([0-9]+).*" "\\1" _GIF_MIN "${_GIF_DEFS}")
|
| 92 |
+
string(REGEX REPLACE ".*GIFLIB_RELEASE ([0-9]+).*" "\\1" _GIF_REL "${_GIF_DEFS}")
|
| 93 |
+
set(GIF_VERSION "${_GIF_MAJ}.${_GIF_MIN}.${_GIF_REL}")
|
| 94 |
+
else()
|
| 95 |
+
# use UserData field to sniff version instead
|
| 96 |
+
CHECK_STRUCT_HAS_MEMBER(GifFileType UserData gif_lib.h GIF_GifFileType_UserData )
|
| 97 |
+
if(GIF_GifFileType_UserData)
|
| 98 |
+
set(GIF_VERSION 4)
|
| 99 |
+
else()
|
| 100 |
+
set(GIF_VERSION 3)
|
| 101 |
+
endif()
|
| 102 |
+
endif()
|
| 103 |
+
|
| 104 |
+
unset(_GIF_MAJ)
|
| 105 |
+
unset(_GIF_MIN)
|
| 106 |
+
unset(_GIF_REL)
|
| 107 |
+
unset(_GIF_DEFS)
|
| 108 |
+
CMAKE_POP_CHECK_STATE()
|
| 109 |
+
endif()
|
| 110 |
+
|
| 111 |
+
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
|
| 112 |
+
FIND_PACKAGE_HANDLE_STANDARD_ARGS(GIF REQUIRED_VARS GIF_LIBRARY GIF_INCLUDE_DIR
|
| 113 |
+
VERSION_VAR GIF_VERSION )
|
| 114 |
+
|
| 115 |
+
if(GIF_FOUND)
|
| 116 |
+
set(GIF_INCLUDE_DIRS "${GIF_INCLUDE_DIR}")
|
| 117 |
+
set(GIF_LIBRARIES ${GIF_LIBRARY})
|
| 118 |
+
|
| 119 |
+
if(NOT TARGET GIF::GIF)
|
| 120 |
+
add_library(GIF::GIF UNKNOWN IMPORTED)
|
| 121 |
+
set_target_properties(GIF::GIF PROPERTIES
|
| 122 |
+
INTERFACE_INCLUDE_DIRECTORIES "${GIF_INCLUDE_DIRS}")
|
| 123 |
+
if(EXISTS "${GIF_LIBRARY}")
|
| 124 |
+
set_target_properties(GIF::GIF PROPERTIES
|
| 125 |
+
IMPORTED_LINK_INTERFACE_LANGUAGES "C"
|
| 126 |
+
IMPORTED_LOCATION "${GIF_LIBRARY}")
|
| 127 |
+
endif()
|
| 128 |
+
endif()
|
| 129 |
+
endif()
|
| 130 |
+
|
| 131 |
+
mark_as_advanced(GIF_INCLUDE_DIR GIF_LIBRARY)
|
| 132 |
+
|
| 133 |
+
cmake_policy(POP)
|