build: fix meson build on FreeBSD.

Summary: -Dsystemd=false and -Ddevice-udev=false with this.

Reviewers: raster, zmike!

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D5648

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Al Poole 2017-12-15 11:32:17 -08:00 committed by Mike Blumenkrantz
parent 2988791f95
commit 4f5598c62d
4 changed files with 13 additions and 6 deletions

View File

@ -213,7 +213,7 @@ if get_option('systemd') == true
endif
endif
if cc.has_function('eeze_disk_function', dependencies: dependency('eeze')) == true
if host_os.startswith('linux') and cc.has_function('eeze_disk_function', dependencies: dependency('eeze')) == true
config_h.set('HAVE_EEZE_MOUNT', '1')
eeze_mount = true
endif

View File

@ -1,6 +1,7 @@
deps = [
dep_eina,
dep_ecore,
dep_eet,
dep_ecore_con,
dep_ecore_file,
dep_ecore_ipc,

View File

@ -556,10 +556,11 @@ suid_exes += join_paths(dir_e_utils, 'enlightenment_sys')
if freebsd == true
executable('enlightenment_ckpasswd',
'e_ckpasswd_main.c',
c_args : suid_cflags,
link_args : suid_ldflags,
install_dir: dir_e_utils,
install : true
dependencies : [ dep_crypt ],
c_args : suid_cflags,
link_args : suid_ldflags,
install_dir : dir_e_utils,
install : true
)
suid_exes += join_paths(dir_e_utils, 'enlightenment_ckpasswd')
endif

View File

@ -2,6 +2,11 @@ src = files(
'e_mod_main.c',
'e_mod_config.c',
'e_mod_tempget.c',
'e_mod_udev.c',
'e_mod_main.h'
)
if get_option('device-udev') == true
src += files(
'e_mod_udev.c'
)
endif