Set up Meson build system
parent
e18c195c2c
commit
ab2d64b7af
|
@ -1 +1,8 @@
|
||||||
.*.swp
|
.*.swp
|
||||||
|
|
||||||
|
# Suggested names for build dirs
|
||||||
|
_build32/
|
||||||
|
_build64/
|
||||||
|
|
||||||
|
# External dependencies
|
||||||
|
subprojects/capnhook
|
||||||
|
|
|
@ -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'
|
|
@ -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'
|
|
@ -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')
|
|
@ -0,0 +1,4 @@
|
||||||
|
[wrap-git]
|
||||||
|
directory = capnhook
|
||||||
|
url = https://github.com/decafcode/capnhook
|
||||||
|
revision = v0.2.1
|
Loading…
Reference in New Issue