aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-05-13 14:33:09 -0500
committerMatt Strapp <matt@mattstrapp.net>2024-05-13 14:33:09 -0500
commit0d7386c7529dc106dc12827ce0f2dee91c3945c2 (patch)
tree3070f83eb7f8990d61e21236caa3137203d2b5fa /meson.build
parentAdd versioning to CMake and Meson (diff)
downloadlocusts-0d7386c7529dc106dc12827ce0f2dee91c3945c2.tar
locusts-0d7386c7529dc106dc12827ce0f2dee91c3945c2.tar.gz
locusts-0d7386c7529dc106dc12827ce0f2dee91c3945c2.tar.bz2
locusts-0d7386c7529dc106dc12827ce0f2dee91c3945c2.tar.lz
locusts-0d7386c7529dc106dc12827ce0f2dee91c3945c2.tar.xz
locusts-0d7386c7529dc106dc12827ce0f2dee91c3945c2.tar.zst
locusts-0d7386c7529dc106dc12827ce0f2dee91c3945c2.zip
Add a C file to make C compilers actually build this into a shared object
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 6 insertions, 4 deletions
diff --git a/meson.build b/meson.build
index 7afb496..c38fa14 100644
--- a/meson.build
+++ b/meson.build
@@ -1,12 +1,14 @@
project('locusts', 'c', version: '1.0.0', default_options: ['warning_level=3'])
-source = 'include/locusts.h'
+source = 'src/locusts.c'
+header = 'include/locusts.h'
+includes = include_directories('include')
-lib = library('ocusts', source, install: true, version: meson.project_version(), soversion: '1')
+lib = library('ocusts', source, include_directories: includes, install: true, version: meson.project_version(), soversion: '1')
-project_dep =declare_dependency(include_directories: include_directories('include'))
+project_dep =declare_dependency(include_directories: includes)
-install_headers(source)
+install_headers(header)
pkg = import('pkgconfig')
pkg.generate(lib, description: 'A completely normal C library')