blob: 511a830028ac0ce1582ecad7f31769da9dbf4564 [file] [log] [blame]
Alexander Hansen1e04f442024-06-12 16:35:58 +02001project('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
Andrew Jefferyab64dad2024-07-10 09:12:34 +09309run_command('sh', '-c', 'mkdir -p iniparser-include/iniparser', check: true)
10run_command('sh', '-c', 'cp -r src/* iniparser-include/iniparser/', check: true)
Alexander Hansen1e04f442024-06-12 16:35:58 +020011
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)