diff --git a/.clang-format b/.clang-format deleted file mode 100644 index e8824535c7b8151dbc29d629c1221b5cc1cc04ec..0000000000000000000000000000000000000000 --- a/.clang-format +++ /dev/null @@ -1,151 +0,0 @@ -AccessModifierOffset: -4 - -AlignAfterOpenBracket: Align -AlignConsecutiveAssignments: false -AlignConsecutiveDeclarations: false -AlignConsecutiveMacros: true -AlignEscapedNewlines: DontAlign -AlignOperands: false -AlignTrailingComments: true - -AllowAllArgumentsOnNextLine: true -AllowAllConstructorInitializersOnNextLine: false -AllowAllParametersOfDeclarationOnNextLine: false -AllowShortBlocksOnASingleLine: Empty -AllowShortCaseLabelsOnASingleLine: false -AllowShortFunctionsOnASingleLine: Empty -AllowShortIfStatementsOnASingleLine: Never -AllowShortLambdasOnASingleLine: Inline -AllowShortLoopsOnASingleLine: false - -AlwaysBreakAfterReturnType: None -AlwaysBreakBeforeMultilineStrings: true -AlwaysBreakTemplateDeclarations: Yes - -BinPackArguments: false -BinPackParameters: true - -BreakBeforeBraces: Custom -BraceWrapping: - AfterCaseLabel: false - AfterClass: false - AfterControlStatement: false - AfterEnum: false - AfterFunction: false - AfterNamespace: false - AfterObjCDeclaration: false - AfterStruct: false - AfterUnion: false - AfterExternBlock: false - BeforeCatch: false - BeforeElse: false - IndentBraces: false - SplitEmptyFunction: false - SplitEmptyRecord: false - SplitEmptyNamespace: true - -BreakBeforeBinaryOperators: None -BreakBeforeTernaryOperators: false -BreakConstructorInitializers: BeforeComma -BreakInheritanceList: BeforeComma -BreakStringLiterals: true - -ColumnLimit: 140 - -CommentPragmas: '' - -CompactNamespaces: false - -ConstructorInitializerAllOnOneLineOrOnePerLine: false -ConstructorInitializerIndentWidth: 4 - -ContinuationIndentWidth: 4 - -Cpp11BracedListStyle: true - -DerivePointerAlignment: false - -DisableFormat: false - -FixNamespaceComments: true - -ForEachMacros: - - Q_FOREACH - - BOOST_FOREACH - - FOREACH - - FOR_EACH - -IncludeBlocks: Regroup -IncludeCategories: - - Regex: '^<' - Priority: 2 - - Regex: '.*' - Priority: 1 -IncludeIsMainRegex: '(_test)?$' - -IndentCaseLabels: true -IndentGotoLabels: false -IndentPPDirectives: None -IndentWidth: 4 -IndentWrappedFunctionNames: false - -KeepEmptyLinesAtTheStartOfBlocks: false - -Language: Cpp - -MacroBlockBegin: '' -MacroBlockEnd: '' - -MaxEmptyLinesToKeep: 1 - -NamespaceIndentation: None -NamespaceMacros: - - NAMESPACE - -PenaltyBreakAssignment: 100 -PenaltyBreakBeforeFirstCallParameter: 10 -PenaltyBreakComment: 10 -PenaltyBreakFirstLessLess: 100 -PenaltyBreakString: 10 -PenaltyBreakTemplateDeclaration: 10000 -PenaltyExcessCharacter: 999999 -PenaltyReturnTypeOnItsOwnLine: 10000 - -PointerAlignment: Left - -ReflowComments: false - -SortIncludes: true -SortUsingDeclarations: true - -SpaceAfterCStyleCast: false -SpaceAfterLogicalNot: false -SpaceAfterTemplateKeyword: true -SpaceBeforeAssignmentOperators: true -SpaceBeforeCpp11BracedList: false -SpaceBeforeCtorInitializerColon: true -SpaceBeforeInheritanceColon: true -SpaceBeforeParens: ControlStatements -SpaceBeforeRangeBasedForLoopColon: true -SpaceInEmptyBlock: false -SpaceInEmptyParentheses: false -SpacesBeforeTrailingComments: 1 -SpacesInAngles: false -SpacesInCStyleCastParentheses: false -SpacesInContainerLiterals: false -SpacesInParentheses: false -SpacesInSquareBrackets: false - -Standard: Cpp11 - -StatementMacros: - - Q_UNUSED - -TabWidth: 4 - -TypenameMacros: - - STACK_OF - - LIST - - LIST_ENTRY - -UseTab: ForContinuationAndIndentation diff --git a/.clang-tidy b/.clang-tidy deleted file mode 100644 index c03f3a3f034cfa48cb255e5a3582356f26e543f9..0000000000000000000000000000000000000000 --- a/.clang-tidy +++ /dev/null @@ -1,22 +0,0 @@ -Checks: "clang-analyzer-*, - cppcoreguidelines-*, - misc-*, - modernize-*, - performance-*, - portability-*, - readability-*, - -cppcoreguidelines-avoid-c-arrays, - -cppcoreguidelines-avoid-magic-numbers, - -cppcoreguidelines-macro-usage, - -cppcoreguidelines-pro-bounds-array-to-pointer-decay, - -cppcoreguidelines-pro-bounds-pointer-arithmetic, - -cppcoreguidelines-pro-type-union-access, - -misc-non-private-member-variables-in-classes, - -misc-no-recursion, - -modernize-avoid-c-arrays, - -modernize-use-trailing-return-type, - -readability-function-cognitive-complexity, - -readability-magic-numbers, - -readability-named-parameter" -WarningsAsErrors: "*" -HeaderFilterRegex: "src/" diff --git a/README.md b/README.md index 8e24e07b92942bb06c93846a4745baf97783fcef..b35fe30ecbd63feef55b65d24f2022613c965890 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,6 @@ How to build and debug the library during development. The following packages are required in order to build the library: -- [CMake](https://cmake.org/) 3.8+ -- gcc 7+/clang 7+/msvc 16+ (C++ 17 support) - [Python](https://python.org/) 3.8+ - Python dependencies (install with `pip install -r requirements.txt` or they will be installed as part of the installation process): @@ -31,8 +29,6 @@ The following packages are required in order to build the library: - pyside6 - pyqt6 -During the compilation process, [fmtlib](https://github.com/fmtlib/fmt) and [pybind11](https://pybind11.readthedocs.io/) are used. - To build a binary distribution, the following additional packages are required: - Python: @@ -57,40 +53,6 @@ To generate the documentation, the following additional packages are required: - [Sphinx-Gallery](https://sphinx-gallery.github.io/) - [mplsignal](https://mplsignal.readthedocs.io/) -### Using CMake directly - -How to build using CMake. - -#### Configuring - -In `B-ASIC`: - -``` -mkdir build -cd build -cmake .. -``` - -#### Building (Debug) - -In `B-ASIC/build`: - -``` -cmake --build . -``` - -The output gets written to `B-ASIC/build/lib`. - -#### Building (Release) - -In `B-ASIC/build`: - -``` -cmake --build . --config Release -``` - -The output gets written to `B-ASIC/build/lib`. - ### Using setuptools to create a package How to create a package using setuptools that can be installed using pip. diff --git a/dependencies/CMakeLists.txt b/dependencies/CMakeLists.txt deleted file mode 100644 index 229a492f5ce8c0f1e232fffa3a06e334d057d686..0000000000000000000000000000000000000000 --- a/dependencies/CMakeLists.txt +++ /dev/null @@ -1,4 +0,0 @@ -include(FetchContent) - -add_subdirectory(fmt) -add_subdirectory(pybind11) diff --git a/dependencies/fmt/CMakeLists.txt b/dependencies/fmt/CMakeLists.txt deleted file mode 100644 index 682216486bb23e698dbded19fb4854f40eda33fa..0000000000000000000000000000000000000000 --- a/dependencies/fmt/CMakeLists.txt +++ /dev/null @@ -1,11 +0,0 @@ -message(STATUS "Fetching fmt...") - -FetchContent_Declare(fmt - GIT_REPOSITORY https://github.com/fmtlib/fmt - GIT_TAG 9.1.0 -) -FetchContent_MakeAvailable(fmt) - -add_library(dependency_fmt INTERFACE) -target_include_directories(dependency_fmt SYSTEM INTERFACE $<TARGET_PROPERTY:fmt-header-only,INTERFACE_INCLUDE_DIRECTORIES>) -target_link_libraries(dependency_fmt INTERFACE fmt-header-only) diff --git a/dependencies/pybind11/CMakeLists.txt b/dependencies/pybind11/CMakeLists.txt deleted file mode 100644 index 0d1b685be4cc32cfcfa21a0eba70cea7a641ee3a..0000000000000000000000000000000000000000 --- a/dependencies/pybind11/CMakeLists.txt +++ /dev/null @@ -1,7 +0,0 @@ -message(STATUS "Fetching pybind11...") - -FetchContent_Declare(pybind11 - GIT_REPOSITORY https://github.com/pybind/pybind11 - GIT_TAG v2.10.3 -) -FetchContent_MakeAvailable(pybind11)