This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch main
in repository skeleton.

View the commit online.

commit efb51db1bce6deef62a72dc60add233cc0326c72
Author: Alastair Poole <m...@alastairpoole.com>
AuthorDate: Sat Apr 5 22:15:36 2025 +0100

    Initial Commit
---
 README.md           |  1 +
 meson.build         | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/bin/main.c      | 10 ++++++++++
 src/bin/meson.build | 11 +++++++++++
 src/meson.build     |  1 +
 5 files changed, 80 insertions(+)

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..b2dcbf6
--- /dev/null
+++ b/README.md
@@ -0,0 +1 @@
+# Skeleton EFL Project.
diff --git a/meson.build b/meson.build
new file mode 100644
index 0000000..d004604
--- /dev/null
+++ b/meson.build
@@ -0,0 +1,57 @@
+##### Project
+project('skeleton', 'c',
+        version       : '0.0.1',
+        meson_version : '>= 0.56.0')
+
+efl_version = '>= 1.27.0'
+
+cfg = configuration_data()
+
+host_os = host_machine.system()
+
+cc = meson.get_compiler('c')
+
+deps = dependency('elementary', version: efl_version)
+
+##### dir locations
+dir_prefix = get_option('prefix')
+dir_bin    = join_paths(dir_prefix, get_option('bindir'))
+dir_lib    = join_paths(dir_prefix, get_option('libdir'))
+dir_data   = join_paths(dir_prefix, get_option('datadir'))
+dir_locale = join_paths(dir_prefix, get_option('localedir'))
+
+##### translation
+
+deps_nls = []
+translate_enabled = false
+intl_lib = cc.find_library('intl', required: false)
+if intl_lib.found()
+  translate_enabled = true
+  deps_nls = [intl_lib]
+else
+  gettext_code = '''
+  #include <libintl.h>
+  int main(int argc, char *argv[]) {
+      (void)ngettext("", "", 0);
+      return 0;
+  }
+  '''
+  if cc.links(gettext_code)
+    translate_enabled = true
+  endif
+endif
+
+##### config.h
+
+cfg.set_quoted('PACKAGE', meson.project_name())
+cfg.set_quoted('PACKAGE_VERSION', meson.project_version())
+cfg.set_quoted('PACKAGE_DATA_DIR', join_paths(dir_data, 'evisum'))
+
+if translate_enabled
+  message('Language Translation Support Enabled')
+  subdir('po')
+endif
+
+subdir('src')
+
+configure_file(output: 'config.h', configuration: cfg)
diff --git a/src/bin/main.c b/src/bin/main.c
new file mode 100644
index 0000000..fc69741
--- /dev/null
+++ b/src/bin/main.c
@@ -0,0 +1,10 @@
+#include <Elementary.h>
+
+int
+elm_main(int argc, char **argv)
+{
+
+   return 0;
+}
+
+ELM_MAIN()
diff --git a/src/bin/meson.build b/src/bin/meson.build
new file mode 100644
index 0000000..8af92d0
--- /dev/null
+++ b/src/bin/meson.build
@@ -0,0 +1,11 @@
+inc = include_directories('.', '../..')
+
+src = ""
+   'main.c',
+])
+
+executable('skeleton', src,
+   include_directories  : inc,
+   dependencies         : [ deps ],
+   install              : true)
+
diff --git a/src/meson.build b/src/meson.build
new file mode 100644
index 0000000..2ca5545
--- /dev/null
+++ b/src/meson.build
@@ -0,0 +1 @@
+subdir('bin')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to