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 Cedric BAIL
parent cb66473320
commit 481a4d6611
4 changed files with 13 additions and 6 deletions

View File

@ -213,7 +213,7 @@ if get_option('systemd') == true
endif endif
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') config_h.set('HAVE_EEZE_MOUNT', '1')
eeze_mount = true eeze_mount = true
endif endif

View File

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

View File

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

View File

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