Skip to content

Commit

Permalink
add meson build
Browse files Browse the repository at this point in the history
Allows seamless integration with meson projects.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed May 24, 2022
1 parent f75fffc commit aeae6b1
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
project('frozen',
'cpp',
version : '1.0.1',
license : 'Apache-2.0',
)

install_headers(
'include/frozen/algorithm.h',
'include/frozen/map.h',
'include/frozen/random.h',
'include/frozen/set.h',
'include/frozen/string.h',
'include/frozen/unordered_map.h',
'include/frozen/unordered_set.h',
subdir : 'frozen',
)

install_headers(
'include/frozen/bits/algorithms.h',
'include/frozen/bits/basic_types.h',
'include/frozen/bits/constexpr_assert.h',
'include/frozen/bits/defines.h',
'include/frozen/bits/elsa.h',
'include/frozen/bits/exceptions.h',
'include/frozen/bits/pmh.h',
'include/frozen/bits/version.h',
subdir : 'frozen/bits',
)

pkgc = import('pkgconfig')
pkgc.generate(name: 'frozen',
version: meson.project_version(),
description: '0 cost initialization for immutable containers, fixed-size containers, and various algorithms.'
)

frozen_dep = declare_dependency(
include_directories : include_directories('include')
)

0 comments on commit aeae6b1

Please sign in to comment.