summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Caldwell <inc@inc-omplete.org>2008-09-01 23:43:27 +0000
committerIan Caldwell <inc@inc-omplete.org>2008-09-01 23:43:27 +0000
commit67b24c62bdf6246aecc13348b89663565c366f0b (patch)
tree04f086ad65a8c9f1cd46cd64a4416717decd4e63
Moving exchange.enlightenment.org application to svn in order to allow
the e community to further as needed. SVN revision: 35786
-rw-r--r--AUTHORS1
-rw-r--r--COPYING20
-rw-r--r--ChangeLog0
-rw-r--r--Makefile.am7
-rw-r--r--NEWS0
-rw-r--r--README0
-rwxr-xr-xautogen.sh16
-rw-r--r--configure.in27
-rw-r--r--src/Makefile.am4
-rw-r--r--src/bin/Makefile.am16
-rw-r--r--src/bin/main.c32
-rw-r--r--src/bin/main.h29
12 files changed, 152 insertions, 0 deletions
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..569e63f
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1 @@
Sthithaprajna Garapaty (iamsthitha) \ No newline at end of file
diff --git a/COPYING b/COPYING
new file mode 100644
index 0000000..25562c5
--- /dev/null
+++ b/COPYING
@@ -0,0 +1,20 @@
1Copyright (C) 2008 Sthithaprajna Garapaty
2
3Permission is hereby granted, free of charge, to any person obtaining a copy
4of this software and associated documentation files (the "Software"), to
5deal in the Software without restriction, including without limitation the
6rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7sell copies of the Software, and to permit persons to whom the Software is
8furnished to do so, subject to the following conditions:
9
10The above copyright notice and this permission notice shall be included in
11all copies of the Software, its documentation and marketing & publicity
12materials, and acknowledgment shall be given in the documentation, materials
13and software packages that this Software was used.
14
15THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/ChangeLog b/ChangeLog
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/ChangeLog
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..bc44e24
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,7 @@
1
2SUBDIRS = src
3
4MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
5 config.h.in config.sub configure install-sh \
6 ltconfig ltmain.sh missing mkinstalldirs \
7 stamp-h.in depcomp
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/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..995ff2f
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,16 @@
1#!/bin/sh
2
3rm -rf autom4te.cache
4rm -f aclocal.m4 ltmain.sh
5
6touch README
7
8echo "Running aclocal..." ; aclocal $ACLOCAL_FLAGS -I m4 || exit 1
9echo "Running autoheader..." ; autoheader || exit 1
10echo "Running autoconf..." ; autoconf || exit 1
11echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
12echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
13
14if [ -z "$NOCONFIGURE" ]; then
15 ./configure "$@"
16fi
diff --git a/configure.in b/configure.in
new file mode 100644
index 0000000..e731bb9
--- /dev/null
+++ b/configure.in
@@ -0,0 +1,27 @@
1dnl Process this file with autoconf to produce a configure script.
2
3AC_INIT(edje_list, 0.0.1, enlightenment-devel@lists.sourceforge.net)
4AC_PREREQ(2.52)
5AC_CONFIG_SRCDIR(configure.in)
6
7AM_INIT_AUTOMAKE
8AM_CONFIG_HEADER(config.h)
9
10AC_PROG_CC
11AM_PROG_CC_STDC
12AC_HEADER_STDC
13AC_C_CONST
14
15define([AC_LIBTOOL_LANG_CXX_CONFIG], [:])dnl
16define([AC_LIBTOOL_LANG_F77_CONFIG], [:])dnl
17AC_PROG_LIBTOOL
18
19PKG_CHECK_MODULES(EVAS, [evas >= 0.9.9])
20
21PKG_CHECK_MODULES(EDJE, [edje >= 0.5.0])
22
23AC_OUTPUT([
24Makefile
25src/Makefile
26src/bin/Makefile
27])
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..c296d8c
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,4 @@
1
2SUBDIRS = bin
3
4MAINTAINERCLEANFILES = Makefile.in
diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am
new file mode 100644
index 0000000..6206f7a
--- /dev/null
+++ b/src/bin/Makefile.am
@@ -0,0 +1,16 @@
1
2MAINTAINERCLEANFILES = Makefile.in
3
4AM_CPPFLAGS = \
5-I$(top_builddir) \
6-I$(top_srcdir) \
7-I$(top_srcdir)/src/bin \
8@EDJE_CFLAGS@ @EVAS_CFLAGS@
9
10bin_PROGRAMS = edje_list
11
12edje_list_SOURCES = \
13main.c \
14main.h
15
16edje_list_LDADD = @EDJE_LIBS@ @EVAS_LIBS@
diff --git a/src/bin/main.c b/src/bin/main.c
new file mode 100644
index 0000000..1d4612b
--- /dev/null
+++ b/src/bin/main.c
@@ -0,0 +1,32 @@
1#include "main.h"
2
3int
4main(int argc, char **argv)
5{
6 Evas_List *l;
7 char *string;
8 edje_init();
9
10 string = edje_file_data_get(argv[argc - 1], "theme/name");
11 if (!string)
12 string = "";
13 printf("Name: %s\n", string);
14 string = edje_file_data_get(argv[argc - 1], "theme/author");
15 if (!string)
16 string = "";
17 printf("Author: %s\n", string);
18 string = edje_file_data_get(argv[argc - 1], "theme/license");
19 if (!string)
20 string = "";
21 printf("License: %s\n", string);
22 string = edje_file_data_get(argv[argc - 1], "theme/version");
23 if (!string)
24 string = "";
25 printf("Version: %s\n", string);
26 for(l = edje_file_collection_list(argv[argc - 1]); l; l = l->next)
27 {
28 printf("%s\n", l->data);
29 }
30 edje_shutdown();
31 return 0;
32}
diff --git a/src/bin/main.h b/src/bin/main.h
new file mode 100644
index 0000000..592fe38
--- /dev/null
+++ b/src/bin/main.h
@@ -0,0 +1,29 @@
1#include "config.h"
2
3#include <stdio.h>
4#include <string.h>
5#include <Evas.h>
6#include <Edje.h>
7
8#ifdef EAPI
9#undef EAPI
10#endif
11#ifdef WIN32
12# ifdef BUILDING_DLL
13# define EAPI __declspec(dllexport)
14# else
15# define EAPI __declspec(dllimport)
16# endif
17#else
18# ifdef __GNUC__
19# if __GNUC__ >= 4
20// BROKEN in gcc 4 on amd64
21//# pragma GCC visibility push(hidden)
22# define EAPI __attribute__ ((visibility("default")))
23# else
24# define EAPI
25# endif
26# else
27# define EAPI
28# endif
29#endif