Skip to content

Commit

Permalink
adapt flat_map library to replace boost::flat_map
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-urban committed Jun 18, 2024
1 parent a7a1861 commit e44a9be
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
5 changes: 4 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project(
'cpp',
license: 'MPL-2.0',

version: '0.24.0',
version: '0.24.1',
default_options: ['warning_level=2', 'buildtype=release', 'cpp_std=c++20'],
meson_version: '>=1.3.2' #first version with clang-cl openmp support
)
Expand Down Expand Up @@ -68,6 +68,9 @@ xtensor_dep = dependency('xtensor', static: true, default_options: ['xsimd=enabl
#fast_float (for fast locale independent float parsing)
fast_float_dep = dependency('fast_float')

#fast_float (for fast locale independent float parsing)
flat_map_dep = dependency('flat_map')

#xxhash_cpp (for fast hashing of classes/buffers)
xxhash_cpp_dep = dependency('xxhash_cpp')

Expand Down
3 changes: 3 additions & 0 deletions src/themachinethatgoesping/tools/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ if build_machine.system() != 'linux'
magic_enum_dep,
xtensor_dep,
fast_float_dep,
flat_map_dep,
frozen_dep,
xxhash_cpp_dep],
override_options: [
Expand All @@ -104,6 +105,7 @@ else
magic_enum_dep,
xtensor_dep,
fast_float_dep,
flat_map_dep,
frozen_dep,
xxhash_cpp_dep],
override_options: [
Expand All @@ -127,6 +129,7 @@ tools_dep = declare_dependency(
magic_enum_dep,
xtensor_dep,
fast_float_dep,
flat_map_dep,
frozen_dep,
xxhash_cpp_dep
],
Expand Down
14 changes: 14 additions & 0 deletions subprojects/flat_map.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SPDX-FileCopyrightText: 2022 - 2023 Peter Urban, Ghent University
#
# SPDX-License-Identifier: CC0-1.0

[wrap-git]
url = https://github.com/Flast/flat_map.git
revision = master
directory = flat_map-master
patch_directory = flat_map

[provide]
flat_map = flat_map_dep


22 changes: 22 additions & 0 deletions subprojects/packagefiles/flat_map/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# SPDX-FileCopyrightText: 2022 - 2023 Peter Urban, Ghent University
# SPDX-FileCopyrightText: 2019 - 2022 Daniil Goncharov
#
# SPDX-License-Identifier: MIT

project(
'flat_map', ['cpp'],
default_options: ['cpp_std=c++20'],
version: '0.1.0',
)

flat_map_include = include_directories('.')

flat_map_dep = declare_dependency(
include_directories: flat_map_include,
)

# list and install headers
headers = [
]

#install_headers(headers, preserve_path: false)

0 comments on commit e44a9be

Please sign in to comment.