Skip to content

Commit

Permalink
Drop intx::int128 library
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Sep 21, 2021
1 parent 8d52dce commit b7ba995
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 39 deletions.
9 changes: 1 addition & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,11 @@ include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
set(INTX_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)

add_library(int128 INTERFACE)
add_library(intx::int128 ALIAS int128)
target_compile_features(int128 INTERFACE cxx_std_17)
target_sources(int128 INTERFACE $<BUILD_INTERFACE:${INTX_INCLUDE_DIR}/intx/int128.hpp>)
target_include_directories(int128 INTERFACE $<BUILD_INTERFACE:${INTX_INCLUDE_DIR}>$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)

add_library(intx INTERFACE)
add_library(intx::intx ALIAS intx)
target_compile_features(intx INTERFACE cxx_std_17)
target_sources(intx INTERFACE $<BUILD_INTERFACE:${INTX_INCLUDE_DIR}/intx/intx.hpp>)
target_include_directories(intx INTERFACE $<BUILD_INTERFACE:${INTX_INCLUDE_DIR}>$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
target_link_libraries(intx INTERFACE intx::int128)


if(INTX_TESTING)
Expand All @@ -73,7 +66,7 @@ if(INTX_INSTALL)
)

install(
TARGETS int128 intx
TARGETS intx
EXPORT intxTargets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Provides following types:

- `uint128` (standalone module [int128.hpp]),
- `uint128`,
- `uint256`,
- `uint512`.

Expand Down Expand Up @@ -38,7 +38,6 @@ Licensed under the [Apache License, Version 2.0].

[@chfast]: https://github.com/chfast
[Apache License, Version 2.0]: LICENSE
[int128.hpp]: include/intx/int128.hpp
[standard readme]: https://github.com/RichardLitt/standard-readme

[readme style standard badge]: https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square
Expand Down
3 changes: 0 additions & 3 deletions examples/use_cmake_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ project(use_intx_cmake_package LANGUAGES CXX)

find_package(intx CONFIG REQUIRED)

add_executable(use_int128 use_int128.cpp)
target_link_libraries(use_int128 PRIVATE intx::int128)

add_executable(use_intx use_intx.cpp)
target_link_libraries(use_intx PRIVATE intx::intx)
10 changes: 0 additions & 10 deletions examples/use_cmake_package/use_int128.cpp

This file was deleted.

3 changes: 0 additions & 3 deletions examples/use_cmake_subproject/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@ project(use_intx_cmake_subproject LANGUAGES CXX)

add_subdirectory(intx)

add_executable(use_int128 use_int128.cpp)
target_link_libraries(use_int128 PRIVATE intx::int128)

add_executable(use_intx use_intx.cpp)
target_link_libraries(use_intx PRIVATE intx::intx)
10 changes: 0 additions & 10 deletions examples/use_cmake_subproject/use_int128.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion test/benchmarks/bench_builtins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.

#include <benchmark/benchmark.h>
#include <intx/int128.hpp>
#include <intx/intx.hpp>
#include <array>


Expand Down
2 changes: 1 addition & 1 deletion test/benchmarks/bench_int128.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.

#include <benchmark/benchmark.h>
#include <intx/int128.hpp>
#include <intx/intx.hpp>
#include <test/utils/gmp.hpp>
#include <test/utils/random.hpp>

Expand Down
2 changes: 1 addition & 1 deletion test/benchmarks/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Copyright 2019-2020 Pawel Bylica.
// Licensed under the Apache License, Version 2.0.

#include <intx/int128.hpp>
#include <intx/intx.hpp>
#include <cstdint>
#include <cstring>

Expand Down

0 comments on commit b7ba995

Please sign in to comment.