Skip to content

Commit

Permalink
rename source files to underscore notation
Browse files Browse the repository at this point in the history
  • Loading branch information
pantor committed Aug 30, 2023
1 parent 1787620 commit b413075
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 16 deletions.
24 changes: 12 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ endif()

add_library(ruckig
src/ruckig/brake.cpp
src/ruckig/position-first-step1.cpp
src/ruckig/position-first-step2.cpp
src/ruckig/position-second-step1.cpp
src/ruckig/position-second-step2.cpp
src/ruckig/position-third-step1.cpp
src/ruckig/position-third-step2.cpp
src/ruckig/velocity-second-step1.cpp
src/ruckig/velocity-second-step2.cpp
src/ruckig/velocity-third-step1.cpp
src/ruckig/velocity-third-step2.cpp
src/ruckig/position_first_step1.cpp
src/ruckig/position_first_step2.cpp
src/ruckig/position_second_step1.cpp
src/ruckig/position_second_step2.cpp
src/ruckig/position_third_step1.cpp
src/ruckig/position_third_step2.cpp
src/ruckig/velocity_second_step1.cpp
src/ruckig/velocity_second_step2.cpp
src/ruckig/velocity_third_step1.cpp
src/ruckig/velocity_third_step2.cpp
)
add_library(ruckig::ruckig ALIAS ruckig)

Expand Down Expand Up @@ -146,7 +146,7 @@ install(FILES
if(BUILD_TESTS)
enable_testing()

add_executable(test-target test/test-target.cpp test/test-target-known.cpp)
add_executable(test-target test/test_target.cpp test/test_target_known.cpp)

target_link_libraries(test-target PRIVATE ruckig)
target_include_directories(test-target PRIVATE third_party)
Expand All @@ -161,7 +161,7 @@ endif()


if(BUILD_BENCHMARK)
add_executable(benchmark-target test/benchmark-target.cpp)
add_executable(benchmark-target test/benchmark_target.cpp)

target_link_libraries(benchmark-target PRIVATE ruckig)
endif()
Expand Down
7 changes: 5 additions & 2 deletions doc/web-gui/make_wasm.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
emcc src/ruckig/wasm.cpp src/ruckig/brake.cpp \
src/ruckig/position-first-step1.cpp src/ruckig/position-first-step2.cpp src/ruckig/position-second-step1.cpp src/ruckig/position-second-step2.cpp src/ruckig/position-third-step1.cpp src/ruckig/position-third-step2.cpp \
src/ruckig/velocity-second-step1.cpp src/ruckig/velocity-second-step2.cpp src/ruckig/velocity-third-step1.cpp src/ruckig/velocity-third-step2.cpp \
src/ruckig/position_first_step1.cpp src/ruckig/position_first_step2.cpp \
src/ruckig/position_second_step1.cpp src/ruckig/position_second_step2.cpp \
src/ruckig/position_third_step1.cpp src/ruckig/position_third_step2.cpp \
src/ruckig/velocity_second_step1.cpp src/ruckig/velocity_second_step2.cpp \
src/ruckig/velocity_third_step1.cpp src/ruckig/velocity_third_step2.cpp \
-Iinclude -Ithird_party \
-std=c++17 -lembind -Os \
-s MODULARIZE -s EXPORT_ES6 -s EXPORT_NAME='RuckigModule' -s ENVIRONMENT='web' -s EXPORTED_RUNTIME_METHODS=ccall,cwrap \
Expand Down
4 changes: 2 additions & 2 deletions scripts/patch-c++11.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ replace include/ruckig/roots.hpp -e 's|if constexpr|if|g'
replace include/ruckig/ruckig.hpp -e 's|<optional>|<nonstd/optional.hpp>|g' -e 's|if constexpr|if|g'
replace include/ruckig/trajectory.hpp -e 's|if constexpr|if|g'
replace include/ruckig/velocity.hpp -e 's|<optional>|<nonstd/optional.hpp>|g'
replace test/test-target.cpp -e 's|std::nullopt|nonstd::nullopt|g' -e 's|<optional>|<nonstd/optional.hpp>|g'
replace test/test-target-known.cpp -e 's|std::nullopt|nonstd::nullopt|g' -e 's|<optional>|<nonstd/optional.hpp>|g'
replace test/test_target.cpp -e 's|std::nullopt|nonstd::nullopt|g' -e 's|<optional>|<nonstd/optional.hpp>|g'
replace test/test_target_known.cpp -e 's|std::nullopt|nonstd::nullopt|g' -e 's|<optional>|<nonstd/optional.hpp>|g'

replace CMakeLists.txt -e 's|cxx_std_17|cxx_std_11|g' -e 's|if(BUILD_BENCHMARK)|if(FALSE)|g'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b413075

Please sign in to comment.