-# XXX ATM only boost context, no SystemV fallback as it is obsolete anyway
-
dep_boost_context = dependency('boost', modules: ['context'], required: true)
+# Fixed value, we no longer support SystemV
conf.set('HAVE_BOOST_CONTEXT', true)
summary('Context', dep_boost_context.found(), bool_yn: true, section: 'Boost')
# with C++11.
have_boost_1_48_0 = dep_boost.version().version_compare('>= 1.48.0')
conf.set('HAVE_BOOST_GE_148', have_boost_1_48_0, description: 'Boost version >= 1.48.0')
-conf.set('HAVE_BOOST_CONTAINER_FLAT_SET_HPP', have_boost_1_48_0, description: 'Boost version >= 1.48.0 has boost::container::flat_set')
# conf.set('BOOST_CONTAINER_USE_STD_EXCEPTIONS', true, description: 'Boost use std exceptions')
add_project_arguments('-DBOOST_CONTAINER_USE_STD_EXCEPTIONS', language: ['c', 'cpp'])
summary('Boost', dep_boost.found(), bool_yn: true, section: 'Boost')
+++ /dev/null
-module_dist = ['LICENSE', 'README.md']
-
-subdir('yahttp')
--- /dev/null
+../../../../ext/yahttp/meson.build
\ No newline at end of file
+++ /dev/null
-lib_yahttp = static_library(
- 'yahttp',
- 'reqresp.cpp',
- 'router.cpp',
- extra_files: [
- 'cookie.hpp',
- 'exception.hpp',
- 'reqresp.hpp',
- 'router.hpp',
- 'url.hpp',
- 'utility.hpp',
- 'yahttp-config.h',
- 'yahttp.hpp',
- ],
- cpp_args: '-Wno-overloaded-virtual',
- dependencies: [dep_pdns],
-)
-
-dep_yahttp = declare_dependency(
- link_with: lib_yahttp,
- include_directories: include_directories('..'),
-)
--- /dev/null
+../../../../../ext/yahttp/yahttp/meson.build
\ No newline at end of file
endif
endforeach
+conf.set('HAVE_BOOST_CONTAINER_FLAT_SET_HPP', have_boost_1_48_0, description: 'Boost version >= 1.48.0 has boost::container::flat_set')
+
# Generate config.h
config_h = configure_file(configuration: conf, output: 'config.h')
+sh_program = find_program('sh')
+dep_no_config_in_source_check = custom_target(
+ input: [],
+ output: ['config.h file in source directory check'],
+ command: [sh_program, '-c', 'test ! -e @SOURCE_ROOT@/config.h'],
+ build_always_stale: true,
+)
+dep_no_config_in_source = declare_dependency(
+ sources: dep_no_config_in_source_check
+)
+
html_sources = [
src_dir / 'html/index.html',
src_dir / 'html/local-2022.js',
deps = [
dep_pdns,
+ dep_no_config_in_source,
dep_settings,
dep_rust_settings,
dep_boost,