more things!
This commit is contained in:
parent
f4698fb41e
commit
70386bc094
|
@ -0,0 +1,25 @@
|
|||
Copyright notice for Enlightenment:
|
||||
|
||||
Copyright (C) 2017 Marcel Hollerbach and various contributors (see AUTHORS)
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
|
||||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
||||
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
||||
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -0,0 +1,31 @@
|
|||
project('presentator', 'c')
|
||||
|
||||
e = dependency('enlightenment')
|
||||
|
||||
dir_module_e = e.get_pkgconfig_variable('modules')
|
||||
release = e.get_pkgconfig_variable('release')
|
||||
host_os = host_machine.system()
|
||||
cc = meson.get_compiler('c')
|
||||
|
||||
if host_os == 'linux'
|
||||
if cc.has_header_symbol('features.h', '__UCLIBC__')
|
||||
host_os = 'linux-uclibc'
|
||||
elif cc.has_header_symbol('features.h', '__dietlibc__')
|
||||
host_os = 'linux-dietlibc'
|
||||
else
|
||||
host_os = 'linux-gnu'
|
||||
endif
|
||||
endif
|
||||
module_arch = '@0@-@1@-@2@'.format(host_os, host_machine.cpu_family(), release)
|
||||
|
||||
install_mod_dir = join_paths(dir_module_e, meson.project_name())
|
||||
install_dir = join_paths(install_mod_dir, module_arch)
|
||||
|
||||
config_h = configuration_data()
|
||||
config_h.set_quoted('MODULE_DIR', install_dir)
|
||||
|
||||
subdir('src')
|
||||
|
||||
configure_file(output: 'config.h', install: false, configuration: config_h)
|
||||
|
||||
install_data('module.desktop', install_dir : install_mod_dir)
|
|
@ -0,0 +1,7 @@
|
|||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Type=Link
|
||||
Name=Presentator
|
||||
Comment=Used to show what kind of keys are pressed and released
|
||||
Icon=preferences-desktop-wallpaper
|
||||
X-Enlightenment-ModuleType=settings
|
|
@ -0,0 +1,15 @@
|
|||
e = dependency('enlightenment')
|
||||
x11 = dependency('x11')
|
||||
xi = dependency('xi')
|
||||
|
||||
module = shared_module('module',
|
||||
'e_mod_main.c',
|
||||
dependencies : e,
|
||||
install_dir: install_dir,
|
||||
install: true,
|
||||
name_prefix: '')
|
||||
|
||||
keylogger = executable('keylogger', 'keylogger.c',
|
||||
dependencies : [x11,xi],
|
||||
install_dir: install_dir,
|
||||
install: true)
|
Loading…
Reference in New Issue