Set up Meson build system

This commit is contained in:
Decaf Code
2018-11-01 18:18:44 -04:00
parent 12db544b06
commit 4fee7e1c80
4 changed files with 41 additions and 0 deletions
+4
View File
@@ -1 +1,5 @@
.*.swp
# Suggested names for build dirs
_build32/
_build64/
+10
View File
@@ -0,0 +1,10 @@
[binaries]
c = '/usr/bin/i686-w64-mingw32-gcc'
ar = '/usr/bin/i686-w64-mingw32-ar'
strip = '/usr/bin/i686-w64-mingw32-strip'
[host_machine]
system = 'windows'
cpu_family = 'x86'
cpu = 'i686'
endian = 'little'
+10
View File
@@ -0,0 +1,10 @@
[binaries]
c = '/usr/bin/x86_64-w64-mingw32-gcc'
ar = '/usr/bin/x86_64-w64-mingw32-ar'
strip = '/usr/bin/x86_64-w64-mingw32-strip'
[host_machine]
system = 'windows'
cpu_family = 'x86_64'
cpu = 'x86_64'
endian = 'little'
+17
View File
@@ -0,0 +1,17 @@
project('capnhook', 'c', version: '0.1.0')
add_project_arguments(
'-Wall',
'-DCOBJMACROS',
'-ffunction-sections',
'-fdata-sections',
language: 'c',
)
add_project_link_arguments(
'-Wl,--gc-sections',
'-static-libgcc',
language: 'c',
)
inc = include_directories('.')