Skip to content

Commit 85ab571

Browse files
authored
Merge pull request #148 from saxbophone/develop
v0.24.0 - Rename
2 parents a3c256c + 04c1f1a commit 85ab571

23 files changed

+112
-110
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ compiler:
1212
# different C Standard versions - test on C99 and C11
1313
env:
1414
matrix:
15-
- LIBSAXBOSPIRAL_C_STANDARD=99
16-
- LIBSAXBOSPIRAL_C_STANDARD=11
15+
- LIBSXBP_C_STANDARD=99
16+
- LIBSXBP_C_STANDARD=11
1717
matrix:
1818
# exclude gcc on osx as this always points to clang
1919
exclude:

CLA_INDIVIDUAL.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
### libsaxbospiral Individual Contributor Assignment Agreement
1+
### libsxbp Individual Contributor Assignment Agreement
22

3-
Thank you for your interest in contributing to libsaxbospiral ("We" or "Us").
3+
Thank you for your interest in contributing to libsxbp ("We" or "Us").
44

5-
This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it and send it to Us by email, following the instructions at [https://github.com/saxbophone/libsaxbospiral/blob/master/CONTRIBUTING.md](https://github.com/saxbophone/libsaxbospiral/blob/master/CONTRIBUTING.md). This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.
5+
This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it and send it to Us by email, following the instructions at [https://github.com/saxbophone/libsxbp/blob/master/CONTRIBUTING.md](https://github.com/saxbophone/libsxbp/blob/master/CONTRIBUTING.md). This is a legally binding document, so please read it carefully before agreeing to it. The Agreement may cover more than one software project managed by Us.
66

77
#### 1. Definitions
88

99
"You" means the individual who Submits a Contribution to Us.
1010

11-
"Contribution" means any work of authorship that is Submitted by You to Us in which You own or assert ownership of the Copyright. If You do not own the Copyright in the entire work of authorship, please follow the instructions in [https://github.com/saxbophone/libsaxbospiral/blob/master/CONTRIBUTING.md](https://github.com/saxbophone/libsaxbospiral/blob/master/CONTRIBUTING.md).
11+
"Contribution" means any work of authorship that is Submitted by You to Us in which You own or assert ownership of the Copyright. If You do not own the Copyright in the entire work of authorship, please follow the instructions in [https://github.com/saxbophone/libsxbp/blob/master/CONTRIBUTING.md](https://github.com/saxbophone/libsxbp/blob/master/CONTRIBUTING.md).
1212

1313
"Copyright" means all rights protecting works of authorship owned or controlled by You, including copyright, moral and neighboring rights, as appropriate, for the full term of their existence including any extensions by You.
1414

@@ -62,7 +62,7 @@ You confirm that:
6262

6363
(c) The grant of rights under Section 2 does not violate any grant of rights which You have made to third parties, including Your employer. If You are an employee, You have had Your employer approve this Agreement or sign the Entity version of this document. If You are less than eighteen years old, please have Your parents or guardian sign the Agreement.
6464

65-
(d) You have followed the instructions in [https://github.com/saxbophone/libsaxbospiral/blob/master/CONTRIBUTING.md](https://github.com/saxbophone/libsaxbospiral/blob/master/CONTRIBUTING.md), if You do not own the Copyright in the entire work of authorship Submitted.
65+
(d) You have followed the instructions in [https://github.com/saxbophone/libsxbp/blob/master/CONTRIBUTING.md](https://github.com/saxbophone/libsxbp/blob/master/CONTRIBUTING.md), if You do not own the Copyright in the entire work of authorship Submitted.
6666

6767
#### 4. Disclaimer
6868

CMakeLists.txt

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# This source file forms part of libsaxbospiral, a library which generates
1+
# This source file forms part of libsxbp, a library which generates
22
# experimental 2D spiral-like shapes based on input binary data.
33
#
4-
# This is the CMake build file for libsaxbospiral.
4+
# This is the CMake build file for libsxbp.
55
# It requires CMake v3.0 or greater.
66
#
77
#
@@ -23,45 +23,45 @@
2323
# begin basic metadata
2424
cmake_minimum_required(VERSION 3.0)
2525

26-
project(libsaxbospiral VERSION 0.23.0 LANGUAGES C)
26+
project(sxbp VERSION 0.24.0 LANGUAGES C)
2727

2828
# set default C standard to use (C99) if not already set
29-
if(NOT DEFINED SAXBOSPIRAL_C_STANDARD)
30-
set(SAXBOSPIRAL_C_STANDARD "99")
29+
if(NOT DEFINED LIBSXBP_C_STANDARD)
30+
set(LIBSXBP_C_STANDARD "99")
3131
endif()
32-
# if env variable LIBSAXBOSPIRAL_C_STANDARD is set and valid, override version
33-
if(DEFINED ENV{LIBSAXBOSPIRAL_C_STANDARD})
32+
# if env variable LIBSXBP_C_STANDARD is set and valid, override version
33+
if(DEFINED ENV{LIBSXBP_C_STANDARD})
3434
# not a very robust regex but ok for most purposes
35-
if("$ENV{LIBSAXBOSPIRAL_C_STANDARD}" MATCHES "(99|11)")
36-
set(SAXBOSPIRAL_C_STANDARD "$ENV{LIBSAXBOSPIRAL_C_STANDARD}")
35+
if("$ENV{LIBSXBP_C_STANDARD}" MATCHES "(99|11)")
36+
set(LIBSXBP_C_STANDARD "$ENV{LIBSXBP_C_STANDARD}")
3737
endif()
3838
endif()
39-
message(STATUS "C Standard set to C${SAXBOSPIRAL_C_STANDARD}")
40-
set(CMAKE_C_STANDARD ${SAXBOSPIRAL_C_STANDARD})
39+
message(STATUS "C Standard set to C${LIBSXBP_C_STANDARD}")
40+
set(CMAKE_C_STANDARD ${LIBSXBP_C_STANDARD})
4141
set(CMAKE_C_STANDARD_REQUIRED ON)
4242

4343
set(
44-
SAXBOSPIRAL_VERSION_STRING
44+
LIBSXBP_VERSION_STRING
4545
"${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}"
4646
)
47-
set(SAXBOSPIRAL_ESCAPED_VERSION_STRING "\"${SAXBOSPIRAL_VERSION_STRING}\"")
47+
set(LIBSXBP_ESCAPED_VERSION_STRING "\"${LIBSXBP_VERSION_STRING}\"")
4848
# end basic metadata
4949

5050
# this is a 64-bit project, so check now to make sure we're 64-bit, issue warning if not
5151
if(CMAKE_SIZEOF_VOID_P LESS 8)
5252
message(
5353
WARNING
5454
"It looks like this system's architecture is not at least 64-bit.\n"
55-
"libsaxbospiral requires a system with an architecture of at least 64 bits!\n"
55+
"libsxbp requires a system with an architecture of at least 64 bits!\n"
5656
"We'll continue trying to compile anyway, be sure to run the unit tests after."
5757
)
5858
endif()
5959

6060
# pass in version of library as preprocessor definitions
61-
add_definitions(-DSAXBOSPIRAL_VERSION_MAJOR=${PROJECT_VERSION_MAJOR})
62-
add_definitions(-DSAXBOSPIRAL_VERSION_MINOR=${PROJECT_VERSION_MINOR})
63-
add_definitions(-DSAXBOSPIRAL_VERSION_PATCH=${PROJECT_VERSION_PATCH})
64-
add_definitions(-DSAXBOSPIRAL_VERSION_STRING=${SAXBOSPIRAL_ESCAPED_VERSION_STRING})
61+
add_definitions(-DLIBSXBP_VERSION_MAJOR=${PROJECT_VERSION_MAJOR})
62+
add_definitions(-DLIBSXBP_VERSION_MINOR=${PROJECT_VERSION_MINOR})
63+
add_definitions(-DLIBSXBP_VERSION_PATCH=${PROJECT_VERSION_PATCH})
64+
add_definitions(-DLIBSXBP_VERSION_STRING=${LIBSXBP_ESCAPED_VERSION_STRING})
6565

6666
# used for enabling additional compiler options if supported
6767
include(CheckCCompilerFlag)
@@ -94,17 +94,17 @@ endif()
9494
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
9595
# libpng
9696
# work out whether we have or have not requested PNG support, or don't care (default)
97-
if(NOT DEFINED SAXBOSPIRAL_PNG_SUPPORT)
97+
if(NOT DEFINED LIBSXBP_PNG_SUPPORT)
9898
# try and find libpng v1.x, but don't fail if we can't
9999
message(STATUS "PNG output support will be enabled if possible")
100100
find_package(PNG 1 EXACT)
101-
# set SAXBOSPIRAL_PNG_SUPPORT based on value of PNG_FOUND
101+
# set SXBP_PNG_SUPPORT based on value of PNG_FOUND
102102
if(PNG_FOUND)
103-
set(SAXBOSPIRAL_PNG_SUPPORT ON)
103+
set(LIBSXBP_PNG_SUPPORT ON)
104104
else()
105-
set(SAXBOSPIRAL_PNG_SUPPORT OFF)
105+
set(LIBSXBP_PNG_SUPPORT OFF)
106106
endif()
107-
elseif(SAXBOSPIRAL_PNG_SUPPORT)
107+
elseif(LIBSXBP_PNG_SUPPORT)
108108
# find libpng v1.x and fail the build if we can't
109109
message(STATUS "PNG output support explicitly enabled")
110110
find_package(PNG 1 EXACT REQUIRED)
@@ -115,10 +115,10 @@ else()
115115
endif()
116116

117117
# include libpng directories and add feature test macro if support is enabled
118-
if(SAXBOSPIRAL_PNG_SUPPORT)
118+
if(LIBSXBP_PNG_SUPPORT)
119119
include_directories(${PNG_INCLUDE_DIR})
120120
# feature test macro
121-
add_definitions(-DSAXBOSPIRAL_PNG_SUPPORT)
121+
add_definitions(-DLIBSXBP_PNG_SUPPORT)
122122
# issue message
123123
message(STATUS "PNG output support enabled")
124124
else()
@@ -129,70 +129,70 @@ endif()
129129

130130
# C source files
131131
file(
132-
GLOB LIB_SAXBOSPIRAL_SOURCES
133-
"saxbospiral/*.c" "saxbospiral/render_backends/*.c"
132+
GLOB LIBSXBP_SOURCES
133+
"sxbp/*.c" "sxbp/render_backends/*.c"
134134
)
135135
# Header files
136-
file(GLOB LIB_SAXBOSPIRAL_HEADERS "saxbospiral/*.h")
136+
file(GLOB LIBSXBP_HEADERS "sxbp/*.h")
137137
# Header files for render_backends subdirectory
138138
file(
139-
GLOB LIB_SAXBOSPIRAL_RENDER_BACKENDS_HEADERS
140-
"saxbospiral/render_backends/*.h"
139+
GLOB LIBSXBP_RENDER_BACKENDS_HEADERS
140+
"sxbp/render_backends/*.h"
141141
)
142-
add_library(saxbospiral ${LIB_SAXBOSPIRAL_SOURCES})
142+
add_library(sxbp ${LIBSXBP_SOURCES})
143143
# set up version for library objects
144144
set_target_properties(
145-
saxbospiral PROPERTIES VERSION ${SAXBOSPIRAL_VERSION_STRING}
145+
sxbp PROPERTIES VERSION ${LIBSXBP_VERSION_STRING}
146146
SOVERSION ${PROJECT_VERSION_MAJOR}
147147
)
148-
# link libsaxbospiral with C math library
149-
target_link_libraries(saxbospiral m)
150-
# Link libsaxbospiral with libpng so we get libpng symbols (if support enabled)
151-
if(SAXBOSPIRAL_PNG_SUPPORT)
152-
target_link_libraries(saxbospiral ${PNG_LIBRARY})
148+
# link libsxbp with C math library
149+
target_link_libraries(sxbp m)
150+
# Link libsxbp with libpng so we get libpng symbols (if support enabled)
151+
if(SXBP_PNG_SUPPORT)
152+
target_link_libraries(sxbp ${PNG_LIBRARY})
153153
endif()
154154

155155
add_executable(sxp_test tests.c)
156156

157-
target_link_libraries(sxp_test saxbospiral)
157+
target_link_libraries(sxp_test sxbp)
158158

159159
install(
160-
TARGETS saxbospiral
160+
TARGETS sxbp
161161
ARCHIVE DESTINATION lib
162162
LIBRARY DESTINATION lib
163163
RUNTIME DESTINATION bin
164164
)
165165

166166
# Generate rough (nearest major) version-dependent header installation folder
167167
set(
168-
LIBSAXBOSPIRAL_ROUGH_HEADER_DESTINATION
169-
"saxbospiral-${PROJECT_VERSION_MAJOR}"
168+
LIBSXBP_ROUGH_HEADER_DESTINATION
169+
"sxbp-${PROJECT_VERSION_MAJOR}"
170170
)
171171
# Generate precise (major and minor) version-dependent header installation folder
172172
set(
173-
LIBSAXBOSPIRAL_PRECISE_HEADER_DESTINATION
174-
"saxbospiral-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}"
173+
LIBSXBP_PRECISE_HEADER_DESTINATION
174+
"sxbp-${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}"
175175
)
176176

177177
# Install main library header files, both to rough and precise install locations
178178
install(
179-
FILES ${LIB_SAXBOSPIRAL_HEADERS}
180-
DESTINATION "include/${LIBSAXBOSPIRAL_ROUGH_HEADER_DESTINATION}"
179+
FILES ${LIBSXBP_HEADERS}
180+
DESTINATION "include/${LIBSXBP_ROUGH_HEADER_DESTINATION}"
181181
)
182182
# Install render_backends header files
183183
install(
184-
FILES ${LIB_SAXBOSPIRAL_RENDER_BACKENDS_HEADERS}
185-
DESTINATION "include/${LIBSAXBOSPIRAL_ROUGH_HEADER_DESTINATION}/render_backends"
184+
FILES ${LIBSXBP_RENDER_BACKENDS_HEADERS}
185+
DESTINATION "include/${LIBSXBP_ROUGH_HEADER_DESTINATION}/render_backends"
186186
)
187187

188188
install(
189-
FILES ${LIB_SAXBOSPIRAL_HEADERS}
190-
DESTINATION "include/${LIBSAXBOSPIRAL_PRECISE_HEADER_DESTINATION}"
189+
FILES ${LIBSXBP_HEADERS}
190+
DESTINATION "include/${LIBSXBP_PRECISE_HEADER_DESTINATION}"
191191
)
192192
# Install render_backends header files
193193
install(
194-
FILES ${LIB_SAXBOSPIRAL_RENDER_BACKENDS_HEADERS}
195-
DESTINATION "include/${LIBSAXBOSPIRAL_PRECISE_HEADER_DESTINATION}/render_backends"
194+
FILES ${LIBSXBP_RENDER_BACKENDS_HEADERS}
195+
DESTINATION "include/${LIBSXBP_PRECISE_HEADER_DESTINATION}/render_backends"
196196
)
197197

198198
enable_testing()

CONTRIBUTING.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# libsaxbospiral - Contributing
1+
# libsxbp - Contributing
22

3-
Thanks for considering contributing to libsaxbospiral!
3+
Thanks for considering contributing to libsxbp!
44

5-
To get started, [sign the Contributor License Agreement](https://www.clahub.com/agreements/saxbophone/libsaxbospiral).
5+
To get started, [sign the Contributor License Agreement](https://www.clahub.com/agreements/saxbophone/libsxbp).
66

77
> [A copy of the CLA](CLA_INDIVIDUAL.md) is also available in this repository.
88
@@ -12,7 +12,7 @@ Here are some tips and general info about contributing to this project. Followin
1212

1313
Before you contribute, check the work you're about to do fulfils one of these criteria:
1414

15-
1. Implements a feature represented by an accepted issue in the project's [Github issue tracker](https://github.com/saxbophone/libsaxbospiral/issues)
15+
1. Implements a feature represented by an accepted issue in the project's [Github issue tracker](https://github.com/saxbophone/libsxbp/issues)
1616
2. Fixes a bug you discovered (preferably an issue should be created too, but for small or critical bugs, this may not be needed).
1717

1818
Please also check that the work is not already being undertaken by someone else.
@@ -32,6 +32,6 @@ In addition, please make sure:
3232

3333
## Testing
3434

35-
The unit tests for libsaxbospiral currently all reside in one C source file, `tests.c`. This isn't ideal, and I'm planning to clean these up at some point. Build and run the unit tests when you first pull down the code, rebuild and run them again when you've made your changes. Changes adding larger pieces of functionality will likely have additional tests requested for them, or an offer made to write the tests for them.
35+
The unit tests for libsxbp currently all reside in one C source file, `tests.c`. This isn't ideal, and I'm planning to clean these up at some point. Build and run the unit tests when you first pull down the code, rebuild and run them again when you've made your changes. Changes adding larger pieces of functionality will likely have additional tests requested for them, or an offer made to write the tests for them.
3636

3737
Pull requests also go through [Travis CI](https://travis-ci.org/) for automated testing.

0 commit comments

Comments
 (0)