]>
Commit | Line | Data |
---|---|---|
db9ecf05 | 1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
3a726fcd | 2 | |
3976f372 YW |
3 | libudev_sources = files( |
4 | 'libudev-device.c', | |
5 | 'libudev-device-internal.h', | |
6 | 'libudev-enumerate.c', | |
7 | 'libudev-hwdb.c', | |
8 | 'libudev-list.c', | |
9 | 'libudev-list-internal.h', | |
10 | 'libudev-monitor.c', | |
11 | 'libudev-queue.c', | |
12 | 'libudev-util.c', | |
13 | 'libudev-util.h', | |
14 | 'libudev.c', | |
15 | 'libudev.h') | |
5c23128d ZJS |
16 | |
17 | ############################################################ | |
18 | ||
3976f372 YW |
19 | libudev_includes = [includes, include_directories('.')] |
20 | ||
0c06b506 | 21 | libudev_sym = files('libudev.sym') |
fce9abb2 | 22 | libudev_sym_path = meson.current_source_dir() / 'libudev.sym' |
5c23128d | 23 | |
5c23128d | 24 | install_headers('libudev.h') |
fce9abb2 | 25 | libudev_h_path = meson.current_source_dir() / 'libudev.h' |
3976f372 YW |
26 | |
27 | libudev_basic = static_library( | |
28 | 'udev-basic', | |
29 | libudev_sources, | |
30 | include_directories : includes, | |
03f7ddf0 ZJS |
31 | c_args : ['-fvisibility=default'], |
32 | build_by_default : false) | |
3976f372 | 33 | |
3976f372 YW |
34 | static_libudev = get_option('static-libudev') |
35 | static_libudev_pic = static_libudev == 'true' or static_libudev == 'pic' | |
5c23128d | 36 | |
ba29ee4c ZJS |
37 | custom_target( |
38 | 'libudev.pc', | |
37efbbd8 ZJS |
39 | input : 'libudev.pc.in', |
40 | output : 'libudev.pc', | |
8f04a1ca | 41 | command : [jinja2_cmdline, '@INPUT@', '@OUTPUT@'], |
ba29ee4c ZJS |
42 | install : pkgconfiglibdir != 'no', |
43 | install_dir : pkgconfiglibdir) | |
e025c9df YW |
44 | |
45 | ############################################################ | |
46 | ||
47 | tests += [ | |
e1eeebbb | 48 | [files('test-libudev.c'), |
e025c9df | 49 | [libshared, |
3a452411 | 50 | libudev_basic]], |
e025c9df | 51 | ] |