project('civetweb', 'c', version: '1.12', meson_version: '>=0.49.2', default_options: ['buildtype=release', 'c_std=c11', 'cpp_std=c++17', 'b_ndebug=if-release'], license: 'MIT', ) has_cpp = add_languages('cpp', required: get_option('civetweb_cxx')) compiler_opts = [] if get_option('civetweb_enable_ipv6') compiler_opts += ['-DUSE_IPV6'] endif if get_option('civetweb_serve_files') compiler_opts += ['-DUSE_SERVER_STATS'] endif if not get_option('civetweb_serve_files') compiler_opts += ['-DNO_FILES'] endif if get_option('civetweb_ssl_openssl_api') == '1.0' compiler_opts += ['-DOPENSSL_API_1_1'] elif get_option('civetweb_ssl_openssl_api') == '1.1' compiler_opts += ['-DOPENSSL_API_1_1'] endif compiler_opts += ['-DUSE_STACK_SIZE=' + get_option('civetweb_thread_stack_size').to_string()] if not get_option('civetweb_serve_filesystems') compiler_opts += ['-DNO_FILESYSTEMS'] endif if not get_option('civetweb_enable_cgi') compiler_opts += ['-DNO_CGI'] endif if not get_option('civetweb_enable_caching') compiler_opts += ['-DNO_CACHING'] endif public_incl = include_directories('include') subdir('src')