meson: port geolocation

This commit is contained in:
Marcel Hollerbach 2017-08-08 18:33:11 +02:00
parent 1caa140503
commit c0e6628651
2 changed files with 16 additions and 39 deletions

View File

@ -1,24 +1,4 @@
geolocation_dist = [ created_file = [
'e-module-geolocation.edj',
'module.desktop',
]
geolocation_src = [
'e_mod_main.c'
]
geolocation_dir = join_paths(dir_module_e, 'geolocation', module_arch)
if get_option('geolocation') == true
config_h.set('USE_MODULE_GEOLOCATION', '1')
install_data(geolocation_dist,
install_dir: join_paths(dir_module_e, 'geolocation')
)
gen_geo = custom_target('geolocation_gen',
input: 'org.freedesktop.GeoClue2.xml',
command: [eldbus_codegen, '@INPUT@', '-O', '@OUTDIR@'],
output: [
'eldbus_geo_clue2_client.c', 'eldbus_geo_clue2_client.c',
'eldbus_geo_clue2_client.h', 'eldbus_geo_clue2_client.h',
'eldbus_geo_clue2_location.c', 'eldbus_geo_clue2_location.c',
@ -26,17 +6,14 @@ if get_option('geolocation') == true
'eldbus_geo_clue2_manager.c', 'eldbus_geo_clue2_manager.c',
'eldbus_geo_clue2_manager.h', 'eldbus_geo_clue2_manager.h',
'eldbus_utils.h' 'eldbus_utils.h'
] ]
)
module_files += join_paths(geolocation_dir, 'geolocation.so') src = [files(
shared_module('geolocation', 'e_mod_main.c'
[geolocation_src, gen_geo], )]
include_directories: include_directories(module_includes),
name_prefix: '',
dependencies: module_deps,
install_dir: geolocation_dir,
install: true
)
endif
src += custom_target('geolocation_gen',
input: 'org.freedesktop.GeoClue2.xml',
command: [eldbus_codegen, '@INPUT@', '-O', '@OUTDIR@'],
output: created_file
)

View File

@ -7,7 +7,6 @@ subdir('teamwork')
subdir('wl_desktop_shell') subdir('wl_desktop_shell')
subdir('wl_text_input') subdir('wl_text_input')
subdir('wl_weekeyboard') subdir('wl_weekeyboard')
subdir('geolocation')
subdir('sysinfo') subdir('sysinfo')
# disabled for now # disabled for now
@ -39,6 +38,7 @@ mods = [
'conf_paths', 'conf_paths',
'conf_interaction', 'conf_interaction',
'gadman', 'gadman',
'geolocation',
'connman', 'connman',
'bluez4', 'bluez4',
'syscon', 'syscon',