1project('iniparser', 'c')
2
3# We create a directory for the include files to be able to include
4# iniparser/iniparser.h and not just iniparser.h
5# Because in case of iniparser being already installed, it is iniparser/iniparser.h
6
7inc = 'iniparser-include'
8
9run_command('sh', '-c', 'mkdir -p iniparser-include/iniparser', check: true)
10run_command('sh', '-c', 'cp -r src/* iniparser-include/iniparser/', check: true)
11
12iniparser = shared_library('iniparser',
13  'src/dictionary.c',
14  'src/iniparser.c',
15  include_directories : inc,
16  install : true)
17
18iniparser_dep = declare_dependency(include_directories : inc,
19  link_with : iniparser)
20