meson: port geolocation

devs/derekf/for_derbyw
Marcel Hollerbach 6 years ago
parent 1caa140503
commit c0e6628651
  1. 53
      src/modules/geolocation/meson.build
  2. 2
      src/modules/meson.build

@ -1,42 +1,19 @@
geolocation_dist = [
'e-module-geolocation.edj',
'module.desktop',
created_file = [
'eldbus_geo_clue2_client.c',
'eldbus_geo_clue2_client.h',
'eldbus_geo_clue2_location.c',
'eldbus_geo_clue2_location.h',
'eldbus_geo_clue2_manager.c',
'eldbus_geo_clue2_manager.h',
'eldbus_utils.h'
]
geolocation_src = [
src = [files(
'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.h',
'eldbus_geo_clue2_location.c',
'eldbus_geo_clue2_location.h',
'eldbus_geo_clue2_manager.c',
'eldbus_geo_clue2_manager.h',
'eldbus_utils.h'
]
)
module_files += join_paths(geolocation_dir, 'geolocation.so')
shared_module('geolocation',
[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
)

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

Loading…
Cancel
Save