|
| 1 | +lib_headers = [ |
| 2 | + 'ell.h', |
| 3 | + 'util.h', |
| 4 | + 'test.h', |
| 5 | + 'strv.h', |
| 6 | + 'utf8.h', |
| 7 | + 'queue.h', |
| 8 | + 'hashmap.h', |
| 9 | + 'string.h', |
| 10 | + 'settings.h', |
| 11 | + 'main.h', |
| 12 | + 'idle.h', |
| 13 | + 'signal.h', |
| 14 | + 'timeout.h', |
| 15 | + 'io.h', |
| 16 | + 'ringbuf.h', |
| 17 | + 'log.h', |
| 18 | + 'checksum.h', |
| 19 | + 'netlink.h', |
| 20 | + 'genl.h', |
| 21 | + 'rtnl.h', |
| 22 | + 'dbus.h', |
| 23 | + 'dbus-service.h', |
| 24 | + 'dbus-client.h', |
| 25 | + 'hwdb.h', |
| 26 | + 'cipher.h', |
| 27 | + 'random.h', |
| 28 | + 'uintset.h', |
| 29 | + 'base64.h', |
| 30 | + 'pem.h', |
| 31 | + 'tls.h', |
| 32 | + 'uuid.h', |
| 33 | + 'key.h', |
| 34 | + 'file.h', |
| 35 | + 'dir.h', |
| 36 | + 'net.h', |
| 37 | + 'dhcp.h', |
| 38 | + 'dhcp6.h', |
| 39 | + 'cert.h', |
| 40 | + 'ecc.h', |
| 41 | + 'ecdh.h', |
| 42 | + 'time.h', |
| 43 | + 'gpio.h', |
| 44 | + 'path.h', |
| 45 | + 'icmp6.h', |
| 46 | + 'acd.h', |
| 47 | + 'tester.h', |
| 48 | + 'cleanup.h', |
| 49 | + 'netconfig.h', |
| 50 | + 'sysctl.h', |
| 51 | + 'minheap.h', |
| 52 | + 'notifylist.h', |
| 53 | +] |
| 54 | + |
| 55 | +lib_sources = [ |
| 56 | + 'private.h', |
| 57 | + 'useful.h', |
| 58 | + 'missing.h', |
| 59 | + 'util.c', |
| 60 | + 'test-private.h', |
| 61 | + 'test.c', |
| 62 | + 'test-dbus.c', |
| 63 | + 'strv.c', |
| 64 | + 'utf8.c', |
| 65 | + 'queue.c', |
| 66 | + 'hashmap.c', |
| 67 | + 'string.c', |
| 68 | + 'settings.c', |
| 69 | + 'main-private.h', |
| 70 | + 'main.c', |
| 71 | + 'idle.c', |
| 72 | + 'signal.c', |
| 73 | + 'timeout.c', |
| 74 | + 'io.c', |
| 75 | + 'ringbuf.c', |
| 76 | + 'log.c', |
| 77 | + 'checksum.c', |
| 78 | + 'netlink-private.h', |
| 79 | + 'netlink.c', |
| 80 | + 'genl.c', |
| 81 | + 'rtnl-private.h', |
| 82 | + 'rtnl.c', |
| 83 | + 'dbus-private.h', |
| 84 | + 'dbus.c', |
| 85 | + 'dbus-message.c', |
| 86 | + 'dbus-util.c', |
| 87 | + 'dbus-service.c', |
| 88 | + 'dbus-client.c', |
| 89 | + 'dbus-name-cache.c', |
| 90 | + 'dbus-filter.c', |
| 91 | + 'gvariant-private.h', |
| 92 | + 'gvariant-util.c', |
| 93 | + 'siphash-private.h', |
| 94 | + 'siphash.c', |
| 95 | + 'hwdb.c', |
| 96 | + 'cipher.c', |
| 97 | + 'random.c', |
| 98 | + 'uintset.c', |
| 99 | + 'base64.c', |
| 100 | + 'asn1-private.h', |
| 101 | + 'pem-private.h', |
| 102 | + 'pem.c', |
| 103 | + 'tls-private.h', |
| 104 | + 'tls.c', |
| 105 | + 'tls-record.c', |
| 106 | + 'tls-extensions.c', |
| 107 | + 'tls-suites.c', |
| 108 | + 'uuid.c', |
| 109 | + 'key.c', |
| 110 | + 'file.c', |
| 111 | + 'dir.c', |
| 112 | + 'net-private.h', |
| 113 | + 'net.c', |
| 114 | + 'dhcp-private.h', |
| 115 | + 'dhcp.c', |
| 116 | + 'dhcp-transport.c', |
| 117 | + 'dhcp-lease.c', |
| 118 | + 'dhcp6-private.h', |
| 119 | + 'dhcp6.c', |
| 120 | + 'dhcp6-transport.c', |
| 121 | + 'dhcp6-lease.c', |
| 122 | + 'dhcp-util.c', |
| 123 | + 'dhcp-server.c', |
| 124 | + 'cert-private.h', |
| 125 | + 'cert.c', |
| 126 | + 'cert-crypto.c', |
| 127 | + 'ecc-private.h', |
| 128 | + 'ecc.h', |
| 129 | + 'ecc-external.c', |
| 130 | + 'ecc.c', |
| 131 | + 'ecdh.c', |
| 132 | + 'time.c', |
| 133 | + 'time-private.h', |
| 134 | + 'gpio.c', |
| 135 | + 'path.c', |
| 136 | + 'icmp6.c', |
| 137 | + 'icmp6-private.h', |
| 138 | + 'acd.c', |
| 139 | + 'tester.c', |
| 140 | + 'netconfig.c', |
| 141 | + 'sysctl.c', |
| 142 | + 'minheap.c', |
| 143 | + 'notifylist.c', |
| 144 | +] |
| 145 | + |
| 146 | +linux_headers = ['../linux/gpio.h'] |
| 147 | + |
| 148 | +libell = library( |
| 149 | + 'ell', |
| 150 | + sources: lib_headers + lib_sources + linux_headers, |
| 151 | + include_directories: include_directories('..'), |
| 152 | + implicit_include_directories: false, |
| 153 | + gnu_symbol_visibility: 'hidden', |
| 154 | + version: '0.2.0', |
| 155 | + install: get_option('default_library') != 'static', |
| 156 | +) |
| 157 | + |
| 158 | +libell_dep = declare_dependency( |
| 159 | + include_directories: include_directories('..'), |
| 160 | + link_with: libell, |
| 161 | +) |
| 162 | + |
| 163 | +meson.override_dependency('ell', libell_dep) |
| 164 | + |
| 165 | +if get_option('default_library') != 'static' |
| 166 | + install_headers( |
| 167 | + lib_headers, |
| 168 | + subdir: 'ell', |
| 169 | + ) |
| 170 | + |
| 171 | + pkgconfig = import('pkgconfig') |
| 172 | + pkgconfig.generate( |
| 173 | + name: 'ell', |
| 174 | + description: 'Embedded Linux library', |
| 175 | + version: meson.project_version(), |
| 176 | + libraries: libell, |
| 177 | + # FIXME requires meson 1.9.0 |
| 178 | + # license: meson.project_license() |
| 179 | + ) |
| 180 | +endif |
| 181 | + |
| 182 | +libell_private = static_library( |
| 183 | + 'ell_private', |
| 184 | + sources: lib_headers + lib_sources + linux_headers, |
| 185 | + include_directories: include_directories('..'), |
| 186 | + implicit_include_directories: false, |
| 187 | + install: false, |
| 188 | +) |
| 189 | + |
| 190 | +libell_private_dep = declare_dependency( |
| 191 | + link_with: libell_private, |
| 192 | +) |
0 commit comments