Add version directive

This commit is contained in:
rexy712 2021-04-11 19:13:08 -07:00
parent baaec5dfec
commit d5d9d56bd0
21 changed files with 60 additions and 3 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ tester.cpp
pc/librexy.pc
makefile
test
include/rexy/rexy.hpp

View File

@ -2,6 +2,7 @@ project(librexy)
cmake_minimum_required(VERSION 3.0.2)
include(GNUInstallDirs)
set(librexy_VERSION_STRING "000010000L")
set(librexy_VERSION_MAJOR 0)
set(librexy_VERSION_MINOR 1)
set(librexy_VERSION_REVISION 0)
@ -37,7 +38,7 @@ if(BUILD_TESTS)
add_subdirectory(tests)
endif()
set(LIBREXY_PUBLIC_HEADERS "include/rexy/algorithm.hpp" "include/rexy/utility.hpp" "include/rexy/basic_string_hash.hpp" "include/rexy/hash.hpp" "include/rexy/static_string_hash.hpp" "include/rexy/string_hash.hpp" "include/rexy/mpmc_queue.hpp" "include/rexy/mpmc_queue.tpp" "include/rexy/traits.hpp" "include/rexy/steal.hpp" "include/rexy/binary.hpp" "include/rexy/expression.hpp" "include/rexy/binary_base.hpp" "include/rexy/binary_base.tpp" "include/rexy/string_base.hpp" "include/rexy/string.hpp" "include/rexy/filerd.hpp" "include/rexy/string_base.tpp" "include/rexy/allocator.hpp" "include/rexy/meta.hpp")
set(LIBREXY_PUBLIC_HEADERS "include/rexy/rexy.hpp" "include/rexy/algorithm.hpp" "include/rexy/utility.hpp" "include/rexy/basic_string_hash.hpp" "include/rexy/hash.hpp" "include/rexy/static_string_hash.hpp" "include/rexy/string_hash.hpp" "include/rexy/mpmc_queue.hpp" "include/rexy/mpmc_queue.tpp" "include/rexy/traits.hpp" "include/rexy/steal.hpp" "include/rexy/binary.hpp" "include/rexy/expression.hpp" "include/rexy/binary_base.hpp" "include/rexy/binary_base.tpp" "include/rexy/string_base.hpp" "include/rexy/string.hpp" "include/rexy/filerd.hpp" "include/rexy/string_base.tpp" "include/rexy/allocator.hpp" "include/rexy/meta.hpp")
target_compile_options(rexy PRIVATE -Wall -Wextra -pedantic -std=c++17)
install(TARGETS rexy
@ -56,5 +57,9 @@ configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/pc/librexy.pc"
@ONLY
)
configure_file(
"${INCLUDE_PATH}/rexy/rexy.hpp.in"
"${INCLUDE_PATH}/rexy/rexy.hpp"
)
add_custom_target(uninstall cat install_manifest.txt | xargs rm)

View File

@ -20,6 +20,7 @@
#define REXY_ALGORITHM_HPP
#include "utility.hpp" //swap
#include "rexy.hpp"
#include <cstdint> //SIZE_MAX
#include <cstdlib> //size_t
#include <type_traits>

View File

@ -24,6 +24,8 @@
#include <new>
#include <limits> //numeric_limits
#include "rexy.hpp"
namespace rexy{
template<class T>

View File

@ -22,6 +22,8 @@
#include "string_hash.hpp"
#include "string.hpp"
#include "rexy.hpp"
namespace rexy{
template<>

View File

@ -21,6 +21,7 @@
#include "binary_base.hpp"
#include "allocator.hpp"
#include "rexy.hpp"
namespace rexy{

View File

@ -32,6 +32,7 @@
#include "traits.hpp"
#include "detail/string_appender.hpp"
#include "detail/hasallocator.hpp"
#include "rexy.hpp"
namespace rexy{

View File

@ -22,6 +22,8 @@
#include <type_traits>
#include <utility> //forward
#include "rexy.hpp"
namespace rexy{
template<class L, class R>

View File

@ -21,11 +21,13 @@
#include <cstdio> //FILE
#include <cstddef> //size_t
#include <type_traits> //is_nothrow_constructible
#include "string.hpp"
#include "steal.hpp"
#include "binary.hpp"
#include "utility.hpp"
#include <type_traits>
#include "rexy.hpp"
namespace rexy{

View File

@ -20,6 +20,7 @@
#define REXY_HASH_HPP
#include <climits> //CHAR_BIT
#include "rexy.hpp"
namespace rexy{

View File

@ -19,6 +19,8 @@
#ifndef REXY_META_HPP
#define REXY_META_HPP
#include "rexy.hpp"
namespace rexy{
template<int... Is>

View File

@ -23,6 +23,8 @@
#include <cstdlib> //size_t
#include <atomic> //atomic (duh)
#include "rexy.hpp"
#ifdef __cpp_lib_hardware_interference_size
#include <new> //hardware_destructive_interference_size
#endif

24
include/rexy/rexy.hpp.in Normal file
View File

@ -0,0 +1,24 @@
/**
This file is a part of rexy's general purpose library
Copyright (C) 2021 rexy712
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef REXY_REXY_HPP
#define REXY_REXY_HPP
#define LIBREXY_VERSION @librexy_VERSION_STRING@
#endif

View File

@ -21,6 +21,7 @@
#include "string_hash.hpp"
#include "string_base.hpp"
#include "rexy.hpp"
namespace rexy{

View File

@ -20,8 +20,9 @@
#define REXY_STEAL_HPP
#include <utility> //forward
#include <type_traits> //is_nothrow_constructible
#include <type_traits>
#include "rexy.hpp"
namespace rexy{

View File

@ -21,6 +21,7 @@
#include "string_base.hpp"
#include "allocator.hpp"
#include "rexy.hpp"
namespace rexy{

View File

@ -32,6 +32,7 @@
#include "expression.hpp"
#include "detail/string_appender.hpp"
#include "detail/hasallocator.hpp"
#include "rexy.hpp"
namespace rexy{

View File

@ -20,6 +20,7 @@
#define REXY_STRING_HASH_HPP
#include "hash.hpp"
#include "rexy.hpp"
namespace rexy{

View File

@ -30,6 +30,8 @@
#include <functional> //function, bind
#include <utility> //move, forward
#include "rexy.hpp"
namespace rexy{
class threadpool

View File

@ -21,6 +21,8 @@
#include <type_traits> //is_same, decay, integral_constant, declval
#include "rexy.hpp"
namespace rexy{
template<class T, class U>

View File

@ -23,6 +23,8 @@
#include <cstdlib> //size_t
#include <type_traits>
#include "rexy.hpp"
namespace rexy{
namespace{