Skip to content

Commit 2c19493

Browse files
authored
Merge pull request #2 from Simon-12/develop
Develop
2 parents e9475c2 + a31d9ed commit 2c19493

File tree

198 files changed

+5975
-4415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

198 files changed

+5975
-4415
lines changed

.clang-format

Lines changed: 250 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,250 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: Google
4+
AccessModifierOffset: -4
5+
AlignAfterOpenBracket: Align
6+
AlignArrayOfStructures: None
7+
AlignConsecutiveAssignments:
8+
Enabled: false
9+
AcrossEmptyLines: false
10+
AcrossComments: false
11+
AlignCompound: false
12+
PadOperators: true
13+
AlignConsecutiveBitFields:
14+
Enabled: false
15+
AcrossEmptyLines: false
16+
AcrossComments: false
17+
AlignCompound: false
18+
PadOperators: false
19+
AlignConsecutiveDeclarations:
20+
Enabled: false
21+
AcrossEmptyLines: false
22+
AcrossComments: false
23+
AlignCompound: false
24+
PadOperators: false
25+
AlignConsecutiveMacros:
26+
Enabled: false
27+
AcrossEmptyLines: false
28+
AcrossComments: false
29+
AlignCompound: false
30+
PadOperators: false
31+
AlignEscapedNewlines: Left
32+
AlignOperands: Align
33+
AlignTrailingComments: true
34+
AllowAllArgumentsOnNextLine: true
35+
AllowAllParametersOfDeclarationOnNextLine: true
36+
AllowShortEnumsOnASingleLine: true
37+
AllowShortBlocksOnASingleLine: Never
38+
AllowShortCaseLabelsOnASingleLine: false
39+
AllowShortFunctionsOnASingleLine: All
40+
AllowShortLambdasOnASingleLine: All
41+
AllowShortIfStatementsOnASingleLine: WithoutElse
42+
AllowShortLoopsOnASingleLine: true
43+
AlwaysBreakAfterDefinitionReturnType: None
44+
AlwaysBreakAfterReturnType: None
45+
AlwaysBreakBeforeMultilineStrings: true
46+
AlwaysBreakTemplateDeclarations: Yes
47+
AttributeMacros:
48+
- __capability
49+
BinPackArguments: true
50+
BinPackParameters: true
51+
BraceWrapping:
52+
AfterCaseLabel: false
53+
AfterClass: false
54+
AfterControlStatement: Never
55+
AfterEnum: false
56+
AfterFunction: false
57+
AfterNamespace: false
58+
AfterObjCDeclaration: false
59+
AfterStruct: false
60+
AfterUnion: false
61+
AfterExternBlock: false
62+
BeforeCatch: false
63+
BeforeElse: false
64+
BeforeLambdaBody: false
65+
BeforeWhile: false
66+
IndentBraces: false
67+
SplitEmptyFunction: true
68+
SplitEmptyRecord: true
69+
SplitEmptyNamespace: true
70+
BreakBeforeBinaryOperators: None
71+
BreakBeforeConceptDeclarations: Always
72+
BreakBeforeBraces: Attach
73+
BreakBeforeInheritanceComma: false
74+
BreakInheritanceList: BeforeColon
75+
BreakBeforeTernaryOperators: true
76+
BreakConstructorInitializersBeforeComma: false
77+
BreakConstructorInitializers: BeforeColon
78+
BreakAfterJavaFieldAnnotations: false
79+
BreakStringLiterals: true
80+
ColumnLimit: 130
81+
CommentPragmas: '^ IWYU pragma:'
82+
QualifierAlignment: Leave
83+
CompactNamespaces: false
84+
ConstructorInitializerIndentWidth: 4
85+
ContinuationIndentWidth: 4
86+
Cpp11BracedListStyle: true
87+
DeriveLineEnding: true
88+
DerivePointerAlignment: true
89+
DisableFormat: false
90+
EmptyLineAfterAccessModifier: Never
91+
EmptyLineBeforeAccessModifier: LogicalBlock
92+
ExperimentalAutoDetectBinPacking: false
93+
PackConstructorInitializers: NextLine
94+
BasedOnStyle: ''
95+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
96+
AllowAllConstructorInitializersOnNextLine: true
97+
FixNamespaceComments: true
98+
ForEachMacros:
99+
- foreach
100+
- Q_FOREACH
101+
- BOOST_FOREACH
102+
IfMacros:
103+
- KJ_IF_MAYBE
104+
IncludeBlocks: Regroup
105+
IncludeCategories:
106+
- Regex: '^<ext/.*\.h>'
107+
Priority: 2
108+
SortPriority: 0
109+
CaseSensitive: false
110+
- Regex: '^<.*\.h>'
111+
Priority: 1
112+
SortPriority: 0
113+
CaseSensitive: false
114+
- Regex: '^<.*'
115+
Priority: 2
116+
SortPriority: 0
117+
CaseSensitive: false
118+
- Regex: '.*'
119+
Priority: 3
120+
SortPriority: 0
121+
CaseSensitive: false
122+
IncludeIsMainRegex: '([-_](test|unittest))?$'
123+
IncludeIsMainSourceRegex: ''
124+
IndentAccessModifiers: false
125+
IndentCaseLabels: true
126+
IndentCaseBlocks: false
127+
IndentGotoLabels: true
128+
IndentPPDirectives: None
129+
IndentExternBlock: AfterExternBlock
130+
IndentRequiresClause: true
131+
IndentWidth: 4
132+
IndentWrappedFunctionNames: false
133+
InsertBraces: false
134+
InsertTrailingCommas: None
135+
JavaScriptQuotes: Leave
136+
JavaScriptWrapImports: true
137+
KeepEmptyLinesAtTheStartOfBlocks: false
138+
LambdaBodyIndentation: Signature
139+
MacroBlockBegin: ''
140+
MacroBlockEnd: ''
141+
MaxEmptyLinesToKeep: 1
142+
NamespaceIndentation: None
143+
ObjCBinPackProtocolList: Never
144+
ObjCBlockIndentWidth: 2
145+
ObjCBreakBeforeNestedBlockParam: true
146+
ObjCSpaceAfterProperty: false
147+
ObjCSpaceBeforeProtocolList: true
148+
PenaltyBreakAssignment: 2
149+
PenaltyBreakBeforeFirstCallParameter: 1
150+
PenaltyBreakComment: 300
151+
PenaltyBreakFirstLessLess: 120
152+
PenaltyBreakOpenParenthesis: 0
153+
PenaltyBreakString: 1000
154+
PenaltyBreakTemplateDeclaration: 10
155+
PenaltyExcessCharacter: 1000000
156+
PenaltyReturnTypeOnItsOwnLine: 200
157+
PenaltyIndentedWhitespace: 0
158+
PointerAlignment: Left
159+
PPIndentWidth: -1
160+
RawStringFormats:
161+
- Language: Cpp
162+
Delimiters:
163+
- cc
164+
- CC
165+
- cpp
166+
- Cpp
167+
- CPP
168+
- 'c++'
169+
- 'C++'
170+
CanonicalDelimiter: ''
171+
BasedOnStyle: google
172+
- Language: TextProto
173+
Delimiters:
174+
- pb
175+
- PB
176+
- proto
177+
- PROTO
178+
EnclosingFunctions:
179+
- EqualsProto
180+
- EquivToProto
181+
- PARSE_PARTIAL_TEXT_PROTO
182+
- PARSE_TEST_PROTO
183+
- PARSE_TEXT_PROTO
184+
- ParseTextOrDie
185+
- ParseTextProtoOrDie
186+
- ParseTestProto
187+
- ParsePartialTestProto
188+
CanonicalDelimiter: pb
189+
BasedOnStyle: google
190+
ReferenceAlignment: Pointer
191+
ReflowComments: true
192+
RemoveBracesLLVM: false
193+
RequiresClausePosition: OwnLine
194+
SeparateDefinitionBlocks: Leave
195+
ShortNamespaceLines: 1
196+
SortIncludes: CaseSensitive
197+
SortJavaStaticImport: Before
198+
SortUsingDeclarations: true
199+
SpaceAfterCStyleCast: false
200+
SpaceAfterLogicalNot: false
201+
SpaceAfterTemplateKeyword: true
202+
SpaceBeforeAssignmentOperators: true
203+
SpaceBeforeCaseColon: false
204+
SpaceBeforeCpp11BracedList: false
205+
SpaceBeforeCtorInitializerColon: true
206+
SpaceBeforeInheritanceColon: true
207+
SpaceBeforeParens: ControlStatements
208+
SpaceBeforeParensOptions:
209+
AfterControlStatements: true
210+
AfterForeachMacros: true
211+
AfterFunctionDefinitionName: false
212+
AfterFunctionDeclarationName: false
213+
AfterIfMacros: true
214+
AfterOverloadedOperator: false
215+
AfterRequiresInClause: false
216+
AfterRequiresInExpression: false
217+
BeforeNonEmptyParentheses: false
218+
SpaceAroundPointerQualifiers: Default
219+
SpaceBeforeRangeBasedForLoopColon: true
220+
SpaceInEmptyBlock: false
221+
SpaceInEmptyParentheses: false
222+
SpacesBeforeTrailingComments: 2
223+
SpacesInAngles: Never
224+
SpacesInConditionalStatement: false
225+
SpacesInContainerLiterals: true
226+
SpacesInCStyleCastParentheses: false
227+
SpacesInLineCommentPrefix:
228+
Minimum: 1
229+
Maximum: -1
230+
SpacesInParentheses: false
231+
SpacesInSquareBrackets: false
232+
SpaceBeforeSquareBrackets: false
233+
BitFieldColonSpacing: Both
234+
Standard: Auto
235+
StatementAttributeLikeMacros:
236+
- Q_EMIT
237+
StatementMacros:
238+
- Q_UNUSED
239+
- QT_REQUIRE_VERSION
240+
TabWidth: 8
241+
UseCRLF: false
242+
UseTab: Never
243+
WhitespaceSensitiveMacros:
244+
- STRINGIZE
245+
- PP_STRINGIZE
246+
- BOOST_PP_STRINGIZE
247+
- NS_SWIFT_NAME
248+
- CF_SWIFT_NAME
249+
...
250+

.cmake-format

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -----------------------------
2+
# Options affecting formatting.
3+
# -----------------------------
4+
with section("format"):
5+
6+
# A list of command names which should always be wrapped
7+
always_wrap = ['project', 'target_link_libraries']
8+
9+
# If a positional argument group contains more than this many arguments, then
10+
# force it to a vertical layout.
11+
max_pargs_hwrap = 4

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
21
*.dll
32
*.user
43
build*
54
docs/html/
5+
.vscode/
6+
.cache/
7+
CMakePresets.json
8+
CMakeUserPresets.json
9+
compile_commands.json

CMakeLists.txt

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,41 @@
1-
cmake_minimum_required(VERSION 3.14)
1+
cmake_minimum_required(VERSION 3.16)
22

3-
project(tidy-images
4-
VERSION 1.0.0
5-
LANGUAGES CXX)
3+
project(
4+
tidy-images
5+
VERSION 0.83.0
6+
LANGUAGES CXX)
67

78
# Options
8-
option( APP_BUILD_PLUGINS "Build plugins (be sure dependencies are installed and in PATH)" ON )
9-
option( APP_BUILD_TESTS "Build unit tests" ON )
10-
option( APP_BUILD_DOC "Generate documentation (requires Doxygen)" ON )
11-
option( APP_COPY_SAMPLES "Copy samples to application folder" ON )
9+
option(APP_BUILD_PLUGINS "Build plugins (be sure dependencies are installed and in PATH)" ON )
10+
option(APP_BUILD_TESTS "Build unit tests" ON )
11+
option(APP_BUILD_DOC "Generate documentation (requires Doxygen)" OFF)
12+
option(APP_COPY_SAMPLES "Copy samples to application folder" ON )
13+
option(APP_STATIC_BUILD "Build static application" OFF)
14+
option(APP_STATIC_PLUGINS "Build and add static plugins to the application" OFF)
1215

1316
# Main application
1417
add_subdirectory(app)
18+
# Build app without console
19+
set_target_properties(tidy-images PROPERTIES WIN32_EXECUTABLE TRUE)
1520

1621
# Plugins
17-
if( APP_BUILD_PLUGINS )
18-
add_subdirectory( plugins/exiv2 )
19-
add_subdirectory( plugins/opencv )
22+
if(APP_BUILD_PLUGINS)
23+
add_subdirectory(plugins/exiv2)
24+
add_subdirectory(plugins/opencv)
2025
endif()
2126

2227
# Unit tests
23-
if( APP_BUILD_TESTS )
24-
add_subdirectory( tests/test_app )
28+
if(APP_BUILD_TESTS)
29+
add_subdirectory(tests)
2530
endif()
2631

2732
# Documentation
28-
if( APP_BUILD_DOC )
29-
add_subdirectory( docs )
33+
if(APP_BUILD_DOC)
34+
add_subdirectory(docs)
3035
endif()
3136

3237
# Copy samples
33-
if( APP_COPY_SAMPLES )
34-
file(GLOB samples "samples/*")
35-
file(COPY ${samples} DESTINATION "app/samples")
38+
if(APP_COPY_SAMPLES)
39+
file(GLOB samples "samples/*")
40+
file(COPY ${samples} DESTINATION "app/samples")
3641
endif()

0 commit comments

Comments
 (0)