Skip to content

Commit 67310f1

Browse files
authored
Merge pull request #3 from saxbophone/project-rename
Rename project to "unmoving", a fun play-on-word of "fixed point"
2 parents 20f392a + 7509756 commit 67310f1

25 files changed

+103
-103
lines changed

.github/workflows/build-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Upload
5656
uses: actions/upload-artifact@v2
5757
with:
58-
name: sxpsxfp_build_${{ github.run_number }}_${{ matrix.platform_name }}
58+
name: unmoving_build_${{ github.run_number }}_${{ matrix.platform_name }}
5959
path: ${{github.workspace}}/artifacts
6060
build-docs:
6161
runs-on: ubuntu-20.04

CMakeLists.txt

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ cmake_minimum_required(VERSION 3.15)
44

55
# detect if Project is being used as a sub-project of another CMake project
66
if(NOT DEFINED PROJECT_NAME)
7-
set(SXPSXFP_SUBPROJECT OFF)
7+
set(UNMOVING_SUBPROJECT OFF)
88
else()
9-
set(SXPSXFP_SUBPROJECT ON)
9+
set(UNMOVING_SUBPROJECT ON)
1010
endif()
1111

12-
project(SxPsxFp VERSION 0.0.0 LANGUAGES CXX)
12+
project(Unmoving VERSION 0.0.0 LANGUAGES CXX)
1313

1414
find_program(CCACHE_PROGRAM ccache)
1515
if(CCACHE_PROGRAM)
@@ -27,24 +27,24 @@ endif()
2727

2828
# set some handy custom variables to detect Release-type builds from Debug-type ones
2929
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
30-
set(SXPSXFP_BUILD_DEBUG ON)
31-
set(SXPSXFP_BUILD_RELEASE OFF)
30+
set(UNMOVING_BUILD_DEBUG ON)
31+
set(UNMOVING_BUILD_RELEASE OFF)
3232
else()
33-
set(SXPSXFP_BUILD_DEBUG OFF)
34-
set(SXPSXFP_BUILD_RELEASE ON)
33+
set(UNMOVING_BUILD_DEBUG OFF)
34+
set(UNMOVING_BUILD_RELEASE ON)
3535
endif()
3636

37-
message(STATUS "[sxpsxfp] Build Mode: ${CMAKE_BUILD_TYPE}")
37+
message(STATUS "[unmoving] Build Mode: ${CMAKE_BUILD_TYPE}")
3838

3939
# set the C++ standard to use to C++20 always
40-
set(SXPSXFP_CXX_STANDARD "20")
41-
message(STATUS "[sxpsxfp] C++ Standard set to C++${SXPSXFP_CXX_STANDARD}")
42-
set(CMAKE_CXX_STANDARD ${SXPSXFP_CXX_STANDARD})
40+
set(UNMOVING_CXX_STANDARD "20")
41+
message(STATUS "[unmoving] C++ Standard set to C++${UNMOVING_CXX_STANDARD}")
42+
set(CMAKE_CXX_STANDARD ${UNMOVING_CXX_STANDARD})
4343
set(CMAKE_CXX_STANDARD_REQUIRED ON)
4444

4545
include(CMakeDependentOption)
4646
# if building in Release mode, provide an option to explicitly enable tests if desired (always ON for other builds, OFF by default for Release builds)
47-
cmake_dependent_option(ENABLE_TESTS "Build the unit tests in release mode?" OFF SXPSXFP_BUILD_RELEASE ON)
47+
cmake_dependent_option(ENABLE_TESTS "Build the unit tests in release mode?" OFF UNMOVING_BUILD_RELEASE ON)
4848

4949
# Premature Optimisation causes problems. Commented out code below allows detection and enabling of LTO.
5050
# It's not being used currently because it seems to cause linker errors with Clang++ on Ubuntu if the library
@@ -54,17 +54,17 @@ cmake_dependent_option(ENABLE_TESTS "Build the unit tests in release mode?" OFF
5454

5555
# include(CheckIPOSupported)
5656
# check_ipo_supported(RESULT IPO_SUPPORTED)
57-
# # If we're in Release mode, set SXPSXFP_USE_IPO to ON by default if it's detected as supported (user can always explicitly enable it in Release mode)
58-
# cmake_dependent_option(SXPSXFP_USE_IPO "Use Link-Time/Inter-Procedural Optimisation?" ${IPO_SUPPORTED} SXPSXFP_BUILD_RELEASE OFF)
59-
# if(SXPSXFP_USE_IPO)
60-
# message(STATUS "[sxpsxfp] Link-Time-Optimisation Enabled")
57+
# # If we're in Release mode, set UNMOVING_USE_IPO to ON by default if it's detected as supported (user can always explicitly enable it in Release mode)
58+
# cmake_dependent_option(UNMOVING_USE_IPO "Use Link-Time/Inter-Procedural Optimisation?" ${IPO_SUPPORTED} UNMOVING_BUILD_RELEASE OFF)
59+
# if(UNMOVING_USE_IPO)
60+
# message(STATUS "[unmoving] Link-Time-Optimisation Enabled")
6161
# endif()
6262

6363
set(
64-
SXPSXFP_VERSION_STRING
64+
UNMOVING_VERSION_STRING
6565
"${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}"
6666
)
67-
set(SXPSXFP_ESCAPED_VERSION_STRING "\"${SXPSXFP_VERSION_STRING}\"")
67+
set(UNMOVING_ESCAPED_VERSION_STRING "\"${UNMOVING_VERSION_STRING}\"")
6868
# end basic metadata
6969

7070
# This is a special target which only exists to capture compilation options
@@ -74,17 +74,17 @@ set(SXPSXFP_ESCAPED_VERSION_STRING "\"${SXPSXFP_VERSION_STRING}\"")
7474
# projects can build successfully with.
7575
# Any target linked with this one will inherit the compiler options used for
7676
# project.
77-
add_library(sxpsxfp-compiler-options INTERFACE)
77+
add_library(unmoving-compiler-options INTERFACE)
7878

7979
# used for enabling additional compiler options if supported
8080
include(CheckCXXCompilerFlag)
8181

8282
function(enable_cxx_compiler_flag_if_supported flag)
83-
message(STATUS "[sxpsxfp] Checking if compiler supports warning flag '${flag}'")
83+
message(STATUS "[unmoving] Checking if compiler supports warning flag '${flag}'")
8484
check_cxx_compiler_flag("${flag}" flag_supported)
8585
if(flag_supported)
86-
message(STATUS "[sxpsxfp] Enabling warning flag '${flag}'")
87-
target_compile_options(sxpsxfp-compiler-options INTERFACE "${flag}")
86+
message(STATUS "[unmoving] Enabling warning flag '${flag}'")
87+
target_compile_options(unmoving-compiler-options INTERFACE "${flag}")
8888
endif()
8989
unset(flag_supported CACHE)
9090
endfunction()
@@ -137,10 +137,10 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/Mo
137137
include(CPM)
138138

139139
# library
140-
add_subdirectory(sxpsxfp)
140+
add_subdirectory(unmoving)
141141
# unit tests --only enable if requested AND we're not building as a sub-project
142-
if(ENABLE_TESTS AND NOT SXPSXFP_SUBPROJECT)
143-
message(STATUS "[sxpsxfp] Unit Tests Enabled")
142+
if(ENABLE_TESTS AND NOT UNMOVING_SUBPROJECT)
143+
message(STATUS "[unmoving] Unit Tests Enabled")
144144
add_subdirectory(tests)
145145
enable_testing()
146146
endif()

Doxyfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ DOXYFILE_ENCODING = UTF-8
3232
# title of most generated pages and in a few other places.
3333
# The default value is: My Project.
3434

35-
PROJECT_NAME = "sxpsxfp"
35+
PROJECT_NAME = "unmoving"
3636

3737
# The PROJECT_NUMBER tag can be used to enter a project or revision number. This
3838
# could be handy for archiving the generated documentation or if some version
@@ -771,7 +771,7 @@ WARN_LOGFILE =
771771
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
772772
# Note: If this tag is empty the current directory is searched.
773773

774-
INPUT = sxpsxfp README.md
774+
INPUT = unmoving README.md
775775

776776
# This tag can be used to specify the character encoding of the source files
777777
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
@@ -811,7 +811,7 @@ RECURSIVE = YES
811811
# Note that relative paths are relative to the directory from which doxygen is
812812
# run.
813813

814-
EXCLUDE = sxpsxfp/include/sxpsxfp/PRIVATE
814+
EXCLUDE = unmoving/include/unmoving/PRIVATE
815815

816816
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
817817
# directories that are symbolic links (a Unix file system feature) are excluded

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SxPsxFp
1+
# Unmoving
22
More convenient fixed-point arithmetic for the Sony PlayStation
33

4-
- [sxpsxfp](@ref com::saxbophone::sxpsxfp) API reference
4+
- [unmoving](@ref com::saxbophone::unmoving) API reference

sxpsxfp/Config.cmake.in

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ unset(flag_supported CACHE)
3737
target_link_libraries(
3838
tests
3939
PRIVATE
40-
sxpsxfp-compiler-options # tests use same compiler options as main project
41-
sxpsxfp
40+
unmoving-compiler-options # tests use same compiler options as main project
41+
unmoving
4242
Catch2::Catch2 # unit testing framework
4343
)
4444

tests/addition.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
#include <catch2/catch.hpp>
77

8-
#include <sxpsxfp/Fixed.hpp>
8+
#include <unmoving/Fixed.hpp>
99

1010
#include "config.hpp"
1111

12-
using namespace com::saxbophone::sxpsxfp;
12+
using namespace com::saxbophone::unmoving;
1313
using Underlying = Fixed::UnderlyingType;
1414

1515
// calculated propagated accuracy error after an addition

tests/casting.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
#include <catch2/catch.hpp>
44

5-
#include <sxpsxfp/Fixed.hpp>
5+
#include <unmoving/Fixed.hpp>
66

77
#include "config.hpp"
88

9-
using namespace com::saxbophone::sxpsxfp;
9+
using namespace com::saxbophone::unmoving;
1010
using Underlying = Fixed::UnderlyingType;
1111

1212
TEST_CASE("Casting") {

tests/comparisons.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include <catch2/catch.hpp>
22

3-
#include <sxpsxfp/Fixed.hpp>
3+
#include <unmoving/Fixed.hpp>
44

55
#include "config.hpp"
66

7-
using namespace com::saxbophone::sxpsxfp;
7+
using namespace com::saxbophone::unmoving;
88
using Underlying = Fixed::UnderlyingType;
99

1010
TEST_CASE("Comparisons") {

tests/config.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef COM_SAXBOPHONE_SXPSXFP_TESTS_CONFIG_HPP
2-
#define COM_SAXBOPHONE_SXPSXFP_TESTS_CONFIG_HPP
1+
#ifndef COM_SAXBOPHONE_UNMOVING_TESTS_CONFIG_HPP
2+
#define COM_SAXBOPHONE_UNMOVING_TESTS_CONFIG_HPP
33

44
#include <cstddef>
55

0 commit comments

Comments
 (0)