aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-11-11 15:04:11 +0000
committerMichael Williamson <mike@zwobble.org>2023-11-11 15:04:11 +0000
commit02c208014ca1d3770db2f7a33f3c196c05b32eef (patch)
tree34b0f4ee1260dc7f2206fd34f4ff0470cb0229ee /runtime
parent90792bb81602e61436988ccdf7345a04d54c2164 (diff)
Use meson instead of CMake
Diffstat (limited to 'runtime')
-rw-r--r--runtime/CMakeLists.txt11
-rw-r--r--runtime/makefile10
-rw-r--r--runtime/meson.build2
3 files changed, 7 insertions, 16 deletions
diff --git a/runtime/CMakeLists.txt b/runtime/CMakeLists.txt
deleted file mode 100644
index 0ec51e0a..00000000
--- a/runtime/CMakeLists.txt
+++ /dev/null
@@ -1,11 +0,0 @@
-cmake_minimum_required(VERSION 3.7)
-project(ShedRuntime LANGUAGES C)
-
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror")
-
-include_directories(src)
-
-add_library(
- shed STATIC
- src/shed.h src/shed.c
-)
diff --git a/runtime/makefile b/runtime/makefile
index 29f162af..88467074 100644
--- a/runtime/makefile
+++ b/runtime/makefile
@@ -3,13 +3,13 @@ CFLAGS_WASM = --target=wasm32 -c -I src -Wall -Werror -D__WASM__ -O2
.PHONY: all
-all: build/libshed.a build-wasm/libshed.o
+all: build-amd64/libshed.a build-wasm/libshed.o
-.PHONY: build/libshed.a
+.PHONY: build-amd64/libshed.a
-build/libshed.a:
- mkdir -p build
- cd build && cmake .. && make
+build-amd64/libshed.a:
+ meson setup build-amd64 --werror
+ cd build-amd64 && meson compile
.PHONY: build-wasm/libshed.o
diff --git a/runtime/meson.build b/runtime/meson.build
new file mode 100644
index 00000000..300cab2d
--- /dev/null
+++ b/runtime/meson.build
@@ -0,0 +1,2 @@
+project('shed-runtime', 'c', default_options : ['warning_level=1'])
+static_library('shed', 'src/shed.c', )