meson_options.txt 1.8 KB

123456789101112131415161718192021222324
  1. # SPDX-FileCopyrightText: 2021 Andrea Pappacoda
  2. #
  3. # SPDX-License-Identifier: MIT
  4. option('tls', type: 'feature', description: 'Enable TLS support')
  5. option('tls_backend', type: 'combo', choices: ['openssl', 'mbedtls'], value: 'openssl', description: 'Which TLS library to use')
  6. option('zlib', type: 'feature', value: 'auto', description: 'Enable zlib support')
  7. option('brotli', type: 'feature', value: 'auto', description: 'Enable Brotli support')
  8. option('zstd', type: 'feature', value: 'auto', description: 'Enable zstd support')
  9. option('disable_macosx_automatic_root_certificates', type: 'boolean', value: false, description: 'Disable loading system certs from the Apple Keychain on macOS')
  10. option('non_blocking_getaddrinfo', type: 'feature', value: 'auto', description: 'Enable asynchronous name lookup')
  11. option('compile', type: 'boolean', value: false, description: 'Split the header into a compilable header & source file (requires python3)')
  12. option('test', type: 'boolean', value: false, description: 'Build tests')
  13. # Old option names
  14. option('openssl', type: 'feature', deprecated: 'tls')
  15. option('cpp-httplib_openssl', type: 'feature', deprecated: 'openssl')
  16. option('cpp-httplib_zlib', type: 'feature', deprecated: 'zlib')
  17. option('cpp-httplib_brotli', type: 'feature', deprecated: 'brotli')
  18. option('macosx_keychain', type: 'feature', deprecated: true, description: 'Deprecated: use disable_macosx_automatic_root_certificates instead')
  19. option('cpp-httplib_macosx_keychain', type: 'feature', deprecated: 'macosx_keychain')
  20. option('cpp-httplib_non_blocking_getaddrinfo', type: 'feature', deprecated: 'non_blocking_getaddrinfo')
  21. option('cpp-httplib_compile', type: 'boolean', value: false, deprecated: 'compile')
  22. option('cpp-httplib_test', type: 'boolean', value: false, deprecated: 'test')