aboutsummaryrefslogtreecommitdiff
path: root/src/meson.build
blob: e91cc838c9ddaff18437f28c05a44e6d826de1cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
autodarkmode_sources = [
  'main.c',
  'sun.c',
  'extString.c',
  'configuration.c',
  'iniparser/src/dictionary.c',
  'iniparser/src/iniparser.c',
]

autodarkmode_deps = [
  dependency('glib-2.0'),
  dependency('libgeoclue-2.0', required : get_option('gclue_support')),
]

if get_option('gclue_support').enabled()
   add_project_arguments('-DUSE_GCLUE', language: 'c')
endif

executable('autodarkmode', autodarkmode_sources,
  dependencies: autodarkmode_deps,
  install: true,
  link_args: '-lm',
)