meson build - reformat and trim build files a bit to be more compact

working on it...
This commit is contained in:
Carsten Haitzler 2017-08-11 00:14:03 +09:00
parent 022dd52cd9
commit 2349a298f0
4 changed files with 551 additions and 567 deletions

View File

@ -1,5 +1,5 @@
if get_option('nls')
i18n = import('i18n')
i18n.gettext('enlightenment')
config_h.set('HAVE_GETTEXT', '1')
i18n = import('i18n')
i18n.gettext('enlightenment')
config_h.set('HAVE_GETTEXT', '1')
endif

View File

@ -1,50 +1,49 @@
deps_efm = [
dep_eina,
dep_ecore,
dep_ecore_con,
dep_ecore_file,
dep_ecore_ipc,
dep_efreet
deps = [
dep_eina,
dep_ecore,
dep_ecore_con,
dep_ecore_file,
dep_ecore_ipc,
dep_efreet
]
udisks_src = []
if config_h.has('HAVE_UDISKS_MOUNT') == true
udisks_src = [
'e_fm_main_udisks.c',
'e_fm_main_udisks.h',
'e_fm_main_udisks2.c',
'e_fm_main_udisks2.h'
]
deps_efm += [dep_eldbus]
udisks_src = [
'e_fm_main_udisks.c',
'e_fm_main_udisks.h',
'e_fm_main_udisks2.c',
'e_fm_main_udisks2.h'
]
deps += [ dep_eldbus ]
endif
eeze_src = []
if config_h.has('HAVE_EEZE_MOUNT') == true
eeze_src = [
'../e_prefix.c',
'e_fm_main_eeze.c',
'e_fm_main_eeze.h'
]
deps_efm += [dep_eeze, dep_eet]
eeze_src = [
'../e_prefix.c',
'e_fm_main_eeze.c',
'e_fm_main_eeze.h'
]
deps += [ dep_eeze, dep_eet ]
endif
efm_src = [
'e_fm_main.c',
'e_fm_main.h',
'e_fm_ipc.c',
'e_fm_ipc.h',
'../e_fm_shared_codec.c',
'../e_fm_shared_device.c',
'../e_user.c',
'../e_sha1.c',
udisks_src,
eeze_src
src = [
'e_fm_main.c',
'e_fm_main.h',
'e_fm_ipc.c',
'e_fm_ipc.h',
'../e_fm_shared_codec.c',
'../e_fm_shared_device.c',
'../e_user.c',
'../e_sha1.c',
udisks_src,
eeze_src
]
executable('enlightenment_fm',
[efm_src],
include_directories: include_directories('../../../', '../..', '.', '..'),
dependencies: [deps_efm],
install_dir: dir_e_utils,
install: true
executable('enlightenment_fm', src,
include_directories: include_directories('../../../', '../..', '.', '..'),
dependencies : deps,
install_dir : dir_e_utils,
install : true
)

View File

@ -1,20 +1,20 @@
protos = [
'@0@/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml'.format(dir_wayland_protocols),
'../../protocol/session-recovery.xml',
'../../protocol/www.xml',
'../../protocol/efl-aux-hints.xml',
'../../protocol/action_route.xml',
'@0@/unstable/xdg-foreign/xdg-foreign-unstable-v1.xml'.format(dir_wayland_protocols),
'@0@/unstable/relative-pointer/relative-pointer-unstable-v1.xml'.format(dir_wayland_protocols),
'@0@/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml'.format(dir_wayland_protocols),
'@0@/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml'.format(dir_wayland_protocols),
'../../protocol/session-recovery.xml',
'../../protocol/www.xml',
'../../protocol/efl-aux-hints.xml',
'../../protocol/action_route.xml',
'@0@/unstable/xdg-foreign/xdg-foreign-unstable-v1.xml'.format(dir_wayland_protocols),
'@0@/unstable/relative-pointer/relative-pointer-unstable-v1.xml'.format(dir_wayland_protocols),
'@0@/unstable/pointer-constraints/pointer-constraints-unstable-v1.xml'.format(dir_wayland_protocols),
]
proto_c = []
proto_h = []
foreach proto: protos
proto_h += gen_scanner_server.process(proto)
proto_c += gen_scanner_impl.process(proto)
foreach p: protos
proto_h += gen_scanner_server.process(p)
proto_c += gen_scanner_impl.process(p)
endforeach
wayland_proto_c = proto_c

File diff suppressed because it is too large Load Diff