summaryrefslogtreecommitdiff
path: root/src/lib/curl/meson.build
blob: 4d9f534e9a0a898147e34ea8d8dd10b420166f06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
curl_dep = dependency('libcurl', version: '>= 7.18', required: get_option('curl'))
conf.set('ENABLE_CURL', curl_dep.found())
if not curl_dep.found()
  subdir_done()
endif

curl = static_library(
  'curl',
  'Delegate.cxx',
  'Version.cxx',
  'Init.cxx',
  'Global.cxx',
  'Request.cxx',
  'Escape.cxx',
  'Form.cxx',
  include_directories: inc,
  dependencies: [
    curl_dep,
  ],
)

curl_dep = declare_dependency(
  link_with: curl,
  dependencies: [
    event_dep,
    util_dep,
    curl_dep,
  ],
)