Skip to content

cenomla/oak_util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oak Util

A c++ standard library replacement

Meson Project Configuration

Add oak_util.wrap to your subprojects
[wrap-git]
url = [email protected]:cenomla/oak_util.git
revision = <commithash>
Recommended default meson project file
project('project', ['c', 'cpp'],
  default_options : [
    'default_library=static',
    'cpp_eh=none',
    'cpp_rtti=false',
    'cpp_std=c++17',
    'warning_level=3',
    'werror=true',
    'b_ndebug=if-release' ])
Add specific warnings
cxx = meson.get_compiler('cpp')
if cxx.get_id() == 'gcc'
  add_global_arguments(
    '-Wconversion',
    '-Wdouble-promotion',
    '-Wshadow',
    '-Wno-maybe-uninitialized',
    '-Wno-error=class-memaccess',
    '-Wno-error=shadow',
    '-Wno-error=format-truncation',
    language: 'cpp')
elif cxx.get_id() == 'msvc'
  add_global_arguments(
    '/wd4324', # struct padding
    '/wd4251', # dll interface
    language: 'cpp')
endif
Include oak_util in your project
oak_util = subproject('oak_util')
deps = [
  oak_util.get_variable('oak_util_dep'),
]

main = executable(
  'main',
  main_sources,
  gnu_symbol_visibility: 'hidden',
  dependencies : deps,
  install : true,
  build_rpath: '$ORIGIN',
  install_rpath: '$ORIGIN')

About

Common c++ framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published