Revision 6f2cae6de519a0d1c78b79525c3c88441e79b78b authored by Alex Reinking on 28 June 2023, 16:38:47 UTC, committed by GitHub on 28 June 2023, 16:38:47 UTC
* Hoist Threads::Threads to the top level

* Remove global OpenGL dependency

This is added by the helpers as-needed. Removing it here lets one build
just libHalide without searching for OpenGL.

* Narrow scope of OpenMP to tutorial

Only the tutorial targets actually use OpenMP. Don't search for OpenMP
if WITH_TUTORIALS is off.

* Move JPEG and PNG deps to tools

Only the Halide::ImageIO library uses these directly, so limiting the
scope protects against unintented use.

* Work around CMake bug

The CMake $<TARGET_NAME_IF_EXISTS:...> genex uses dynamic scoping w.r.t.
the target environment, rather than the usual static scoping. This means
we need to move the PNG and JPEG dependencies higher up.

* Add link to CMake issue in comments.
1 parent 470f43c
Raw File
.clang-format
---
AccessModifierOffset: -4
AlignEscapedNewlines: Left
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: Empty
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: Always
AllowShortLoopsOnASingleLine: false
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: Yes
BinPackParameters: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeTernaryOperators: false
BreakConstructorInitializersBeforeComma: false
ColumnLimit: 0
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
ExperimentalAutoDetectBinPacking: false
IndentCaseLabels: false
IndentWrappedFunctionNames: false
IndentWidth: 4
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCSpaceBeforeProtocolList: true
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 60
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
SpaceBeforeParens: ControlStatements
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: false
SpaceBeforeAssignmentOperators: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 2
SpacesInAngles: false
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
Standard: c++17
TabWidth: 8
UseTab: Never
...
back to top