forked from enlightenment/efl
meson: compiling without efl meson project
This commit is contained in:
parent
e291ab2005
commit
d0033ba6d4
|
@ -0,0 +1,41 @@
|
||||||
|
project('evil_unposix', 'c')
|
||||||
|
|
||||||
|
if target_machine.system() == 'windows'
|
||||||
|
subdir('sys')
|
||||||
|
|
||||||
|
evil_unposix_src = ['fnmatch.h',
|
||||||
|
'getopt.h',
|
||||||
|
'libgen.h',
|
||||||
|
'limits.h',
|
||||||
|
'locale.h',
|
||||||
|
'math.h',
|
||||||
|
'pthread.h',
|
||||||
|
'semaphore.h',
|
||||||
|
'stdlib.h',
|
||||||
|
'string.h',
|
||||||
|
'strings.h',
|
||||||
|
'unimplemented.h',
|
||||||
|
'unistd.h',
|
||||||
|
]
|
||||||
|
|
||||||
|
evil_unposix_lib = library('evil_unposix', evil_unposix_src,
|
||||||
|
include_directories: [include_directories('.')],
|
||||||
|
dependencies: [],
|
||||||
|
#install: true,
|
||||||
|
#version: meson.project_version(),
|
||||||
|
)
|
||||||
|
|
||||||
|
evil_unposix = declare_dependency(
|
||||||
|
include_directories: [include_directories('.')],
|
||||||
|
dependencies: [],
|
||||||
|
link_with: evil_unposix_lib,
|
||||||
|
)
|
||||||
|
|
||||||
|
else
|
||||||
|
evil_unposix = declare_dependency()
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
automatic_pkgfile = false
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
if target_machine.system() == 'windows'
|
||||||
|
|
||||||
|
evil_unposix_sys_src = ['time.c', 'time.h', 'stat.h', 'types.h']
|
||||||
|
evil_unposix_sys_lib = library('evil_unposix_sys',
|
||||||
|
evil_unposix_sys_src,
|
||||||
|
#version: 'meson.project_version(),
|
||||||
|
install: true,
|
||||||
|
)
|
||||||
|
|
||||||
|
evil_unposix_sys = declare_dependency(
|
||||||
|
include_directories: [include_directories('.')],
|
||||||
|
dependencies: [],
|
||||||
|
link_with: evil_unposix_sys_lib,
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
|
automatic_pkgfile = false
|
Loading…
Reference in New Issue