blob: c1d89a702799236d261a9d5925670b5770a9ec40 [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
9run_command('sh', '-c', 'mkdir -p iniparser-include/iniparser')
10run_command('sh', '-c', 'cp -r src/* iniparser-include/iniparser/')
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)