Set up Meson build system

This commit is contained in:
Tau 2018-10-07 22:01:00 -04:00
parent e18c195c2c
commit ab2d64b7af
5 changed files with 49 additions and 0 deletions

7
.gitignore vendored
View File

@ -1 +1,8 @@
.*.swp
# Suggested names for build dirs
_build32/
_build64/
# External dependencies
subprojects/capnhook

10
cross-mingw-32.txt Normal file
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
cross-mingw-64.txt Normal file
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'

18
meson.build Normal file
View File

@ -0,0 +1,18 @@
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('.')
capnhook = subproject('capnhook')

View File

@ -0,0 +1,4 @@
[wrap-git]
directory = capnhook
url = https://github.com/decafcode/capnhook
revision = v0.2.1