Skip to content

Commit ce3c680

Browse files
committed
Retrieving download information and filtering
1 parent 2884284 commit ce3c680

Some content is hidden

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

75 files changed

+5674
-52
lines changed

CMakeLists.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,28 +13,29 @@ if(MSVC)
1313
endif()
1414

1515
file(GLOB source "source/*.cpp" "source/*.hpp" "source/*.h")
16-
if(APPLE)
17-
set(macfiles "source/wxmac.icns" CACHE INERNAL "")
18-
elseif(WIN32)
19-
set(winfiles "source/windows.rc" CACHE INTERNAL "")
20-
endif()
21-
add_executable("${PROJECT_NAME}" WIN32 ${source} ${macfiles} ${winfiles})
16+
add_executable("${PROJECT_NAME}" WIN32 ${source} "source/wxmac.icns" "source/windows.rc")
2217

2318
#wxwidgets
2419
set(wxBUILD_SHARED OFF CACHE INTERNAL "")
2520
add_subdirectory("wxWidgets" EXCLUDE_FROM_ALL)
2621

22+
set(CPR_BUILD_TESTS OFF CACHE INTERNAL "")
23+
set(CPR_GENERATE_COVERAGE OFF CACHE INTERNAL "")
24+
add_subdirectory("cpr" EXCLUDE_FROM_ALL)
25+
2726
target_link_libraries("${PROJECT_NAME}"
2827
PUBLIC
2928
wx::base
3029
wx::core
3130
wx::webview
31+
cpr
3232
)
3333

3434
# mac app
3535
set_target_properties("${PROJECT_NAME}" PROPERTIES
3636
MACOSX_BUNDLE ON
3737
MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_LIST_DIR}/source/Info.plist"
38+
XCODE_GENERATE_SCHEME ON
3839
)
3940
set_source_files_properties("${CMAKE_CURRENT_LIST_DIR}/source/wxmac.icns" PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
4041
if(APPLE)

cpr/.clang-format

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: Google
4+
AccessModifierOffset: -2
5+
AlignAfterOpenBracket: true
6+
AlignEscapedNewlinesLeft: true
7+
AlignOperands: true
8+
AlignTrailingComments: true
9+
AllowAllParametersOfDeclarationOnNextLine: true
10+
AllowShortBlocksOnASingleLine: false
11+
AllowShortCaseLabelsOnASingleLine: false
12+
AllowShortIfStatementsOnASingleLine: false
13+
AllowShortLoopsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: Empty
15+
AlwaysBreakAfterDefinitionReturnType: false
16+
AlwaysBreakTemplateDeclarations: true
17+
AlwaysBreakBeforeMultilineStrings: true
18+
BreakBeforeBinaryOperators: None
19+
BreakBeforeTernaryOperators: true
20+
BreakConstructorInitializersBeforeComma: false
21+
BinPackParameters: true
22+
BinPackArguments: true
23+
ColumnLimit: 500
24+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
25+
ConstructorInitializerIndentWidth: 8
26+
DerivePointerAlignment: false
27+
ExperimentalAutoDetectBinPacking: false
28+
IndentCaseLabels: true
29+
IndentWrappedFunctionNames: false
30+
IndentFunctionDeclarationAfterType: false
31+
MaxEmptyLinesToKeep: 2
32+
KeepEmptyLinesAtTheStartOfBlocks: false
33+
NamespaceIndentation: None
34+
PenaltyBreakBeforeFirstCallParameter: 1
35+
PenaltyBreakComment: 300
36+
PenaltyBreakString: 1000
37+
PenaltyBreakFirstLessLess: 120
38+
PenaltyExcessCharacter: 1000000
39+
PenaltyReturnTypeOnItsOwnLine: 200
40+
PointerAlignment: Left
41+
SpacesBeforeTrailingComments: 1
42+
Cpp11BracedListStyle: true
43+
Standard: Auto
44+
IndentWidth: 4
45+
TabWidth: 8
46+
UseTab: Never
47+
BreakBeforeBraces: Attach
48+
SpacesInParentheses: false
49+
SpacesInSquareBrackets: false
50+
SpacesInAngles: false
51+
SpaceInEmptyParentheses: false
52+
SpacesInCStyleCastParentheses: false
53+
SpaceAfterCStyleCast: true
54+
SpacesInContainerLiterals: true
55+
SpaceBeforeAssignmentOperators: true
56+
ContinuationIndentWidth: 8
57+
CommentPragmas: '^ IWYU pragma:'
58+
SpaceBeforeParens: ControlStatements
59+
...

cpr/.clang-tidy

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
Checks: '*,
3+
-cppcoreguidelines-pro-type-static-cast-downcast,
4+
-fuchsia-default-arguments-calls,
5+
-fuchsia-default-arguments,
6+
-fuchsia-default-arguments-declarations,
7+
-fuchsia-overloaded-operator,
8+
-fuchsia-statically-constructed-objects,
9+
-hicpp-use-auto,
10+
-modernize-use-auto,
11+
-modernize-use-trailing-return-type,
12+
-readability-implicit-bool-conversion,
13+
-readability-const-return-type,
14+
-google-runtime-references,
15+
-misc-non-private-member-variables-in-classes,
16+
-llvm-include-order,
17+
-cppcoreguidelines-non-private-member-variables-in-classes,
18+
-cppcoreguidelines-pro-type-vararg,
19+
-hicpp-vararg,
20+
-cppcoreguidelines-owning-memory,
21+
-llvmlibc-callee-namespace,
22+
-cppcoreguidelines-pro-bounds-array-to-pointer-decay,
23+
-hicpp-no-array-decay,
24+
-modernize-pass-by-value,
25+
-cppcoreguidelines-pro-bounds-constant-array-index,
26+
-hicpp-signed-bitwise,
27+
-llvmlibc-implementation-in-namespace,
28+
-llvmlibc-restrict-system-libc-headers
29+
'
30+
WarningsAsErrors: '*'
31+
HeaderFilterRegex: 'src/*.hpp'
32+
FormatStyle: file

0 commit comments

Comments
 (0)