summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-07-22 10:52:47 +0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-07-22 10:52:47 +0200
commit70386bc094a70c5a68ae614c37a1100a501d8e73 (patch)
tree5af91979b4b6780d3430edaaf1165c2aa2af849a
parentf4698fb41e56383c77afd5ab775c71b07e4da9c8 (diff)
more things!
-rw-r--r--AUTHORS1
-rw-r--r--COPYING25
-rw-r--r--ChangeLog0
-rw-r--r--NEWS0
-rw-r--r--README0
-rw-r--r--meson.build31
-rw-r--r--module.desktop7
-rw-r--r--src/meson.build15
8 files changed, 79 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..115ac3c
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1 @@
Marcel Hollerbach <marcel-hollerbach@t-online.de>
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..f60652c
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,25 @@
1Copyright notice for Enlightenment:
2
3Copyright (C) 2017 Marcel Hollerbach and various contributors (see AUTHORS)
4
5All rights reserved.
6
7Redistribution and use in source and binary forms, with or without
8modification, are permitted provided that the following conditions are met:
9
10 1. Redistributions of source code must retain the above copyright
11 notice, this list of conditions and the following disclaimer.
12 2. Redistributions in binary form must reproduce the above copyright
13 notice, this list of conditions and the following disclaimer in the
14 documentation and/or other materials provided with the distribution.
15
16THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
17INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
18FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
22OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
23LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
24NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ChangeLog
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/NEWS
diff --git a/README b/README
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/README
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..60e9e7a
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,31 @@
1project('presentator', 'c')
2
3e = dependency('enlightenment')
4
5dir_module_e = e.get_pkgconfig_variable('modules')
6release = e.get_pkgconfig_variable('release')
7host_os = host_machine.system()
8cc = meson.get_compiler('c')
9
10if host_os == 'linux'
11 if cc.has_header_symbol('features.h', '__UCLIBC__')
12 host_os = 'linux-uclibc'
13 elif cc.has_header_symbol('features.h', '__dietlibc__')
14 host_os = 'linux-dietlibc'
15 else
16 host_os = 'linux-gnu'
17 endif
18endif
19module_arch = '@0@-@1@-@2@'.format(host_os, host_machine.cpu_family(), release)
20
21install_mod_dir = join_paths(dir_module_e, meson.project_name())
22install_dir = join_paths(install_mod_dir, module_arch)
23
24config_h = configuration_data()
25config_h.set_quoted('MODULE_DIR', install_dir)
26
27subdir('src')
28
29configure_file(output: 'config.h', install: false, configuration: config_h)
30
31install_data('module.desktop', install_dir : install_mod_dir)
diff --git a/module.desktop b/module.desktop
new file mode 100644
index 0000000..754ab28
--- /dev/null
+++ b/module.desktop
@@ -0,0 +1,7 @@
1[Desktop Entry]
2Encoding=UTF-8
3Type=Link
4Name=Presentator
5Comment=Used to show what kind of keys are pressed and released
6Icon=preferences-desktop-wallpaper
7X-Enlightenment-ModuleType=settings
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..9f61afa
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1,15 @@
1e = dependency('enlightenment')
2x11 = dependency('x11')
3xi = dependency('xi')
4
5module = shared_module('module',
6 'e_mod_main.c',
7 dependencies : e,
8 install_dir: install_dir,
9 install: true,
10 name_prefix: '')
11
12keylogger = executable('keylogger', 'keylogger.c',
13 dependencies : [x11,xi],
14 install_dir: install_dir,
15 install: true)