Skip to content

Commit

Permalink
Remove unnecessary implementation files
Browse files Browse the repository at this point in the history
speeds up compilation
  • Loading branch information
tttapa committed Feb 17, 2024
1 parent 39696e5 commit 7b0eee1
Show file tree
Hide file tree
Showing 28 changed files with 6 additions and 113 deletions.
38 changes: 6 additions & 32 deletions src/AH/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,15 @@
option(AH_FAST_COMPILE "Compile only necessary files" On)

if (AH_FAST_COMPILE)
set(Arduino_Helpers_SOURCES
"PrintStream/PrintStream.cpp"
"Debug/Debug.cpp"
"Hardware/IncrementDecrementButtons.cpp"
"Hardware/Button.cpp"
"Hardware/IncrementButton.cpp"
"Hardware/ExtendedInputOutput/ShiftRegisterOutRGB.cpp"
"Hardware/ExtendedInputOutput/ExtendedIOElement.cpp"
"Hardware/ExtendedInputOutput/ExtendedInputOutput.cpp"
"Error/Exit.cpp"
"Math/Vector.cpp"
"Math/Quaternion.cpp"
)
else ()
file(GLOB_RECURSE
Arduino_Helpers_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
endif ()

file(GLOB_RECURSE
Arduino_Helpers_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
add_library(Arduino_Helpers ${Arduino_Helpers_SOURCES})
target_include_directories(Arduino_Helpers
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/..)

if (AH_FAST_COMPILE)
target_compile_definitions(Arduino_Helpers
PUBLIC
-DNO_DEBUG_PRINTS
-DANALOG_FILTER_SHIFT_FACTOR_OVERRIDE=2)
else ()
target_compile_definitions(Arduino_Helpers
PUBLIC
#-DNO_DEBUG_PRINTS
-DTEST_COMPILE_ALL_HEADERS_SEPARATELY
-DANALOG_FILTER_SHIFT_FACTOR_OVERRIDE=2)
endif ()
target_compile_definitions(Arduino_Helpers PUBLIC
NO_DEBUG_PRINTS
ANALOG_FILTER_SHIFT_FACTOR_OVERRIDE=2)

target_link_libraries(Arduino_Helpers
PUBLIC ArduinoMock
PRIVATE Arduino-Helpers::warnings)
PRIVATE Arduino-Helpers::warnings)
3 changes: 0 additions & 3 deletions src/AH/Containers/Array.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Containers/ArrayHelpers.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Containers/BitArray.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Containers/LinkedList.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Containers/Updatable.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Error/Error.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Filters/EMA.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Filters/Hysteresis.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/ADCConfig.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/ButtonMatrix.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/ExtendedInputOutput/AnalogMultiplex.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/ExtendedInputOutput/MAX7219.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/ExtendedInputOutput/SPIShiftRegisterOut.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/ExtendedInputOutput/ShiftRegisterOut.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/ExtendedInputOutput/ShiftRegisterOutBase.cpp

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/FilteredAnalog.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/LEDs/DotBarDisplayLEDs.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/LEDs/LEDs.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/LEDs/MAX7219SevenSegmentDisplay.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Hardware/LEDs/MAX7219_Base.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Math/IncreaseBitDepth.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Math/MinMaxFix.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Settings/NamespaceSettings.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Settings/Settings.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Settings/SettingsWrapper.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions src/AH/Timing/MillisMicrosTimer.cpp

This file was deleted.

0 comments on commit 7b0eee1

Please sign in to comment.