forked from Dniel97/segatools
Set up Meson build system
This commit is contained in:
parent
e18c195c2c
commit
ab2d64b7af
7
.gitignore
vendored
7
.gitignore
vendored
@ -1 +1,8 @@
|
||||
.*.swp
|
||||
|
||||
# Suggested names for build dirs
|
||||
_build32/
|
||||
_build64/
|
||||
|
||||
# External dependencies
|
||||
subprojects/capnhook
|
||||
|
10
cross-mingw-32.txt
Normal file
10
cross-mingw-32.txt
Normal 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
10
cross-mingw-64.txt
Normal 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
18
meson.build
Normal 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')
|
4
subprojects/capnhook.wrap
Normal file
4
subprojects/capnhook.wrap
Normal file
@ -0,0 +1,4 @@
|
||||
[wrap-git]
|
||||
directory = capnhook
|
||||
url = https://github.com/decafcode/capnhook
|
||||
revision = v0.2.1
|
Loading…
Reference in New Issue
Block a user