aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/edje/utils
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-04 18:41:13 +1000
committerDavid Walter Seikel2012-01-04 18:41:13 +1000
commitdd7595a3475407a7fa96a97393bae8c5220e8762 (patch)
treee341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/edje/utils
parentAdd the skeleton. (diff)
downloadSledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/edje/utils')
-rw-r--r--libraries/edje/utils/Makefile.am7
-rw-r--r--libraries/edje/utils/Makefile.in497
-rwxr-xr-xlibraries/edje/utils/gimp-edje-export.py146
-rwxr-xr-xlibraries/edje/utils/inkscape2edc309
4 files changed, 959 insertions, 0 deletions
diff --git a/libraries/edje/utils/Makefile.am b/libraries/edje/utils/Makefile.am
new file mode 100644
index 0000000..81cbad4
--- /dev/null
+++ b/libraries/edje/utils/Makefile.am
@@ -0,0 +1,7 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3if HAVE_PYTHON
4bin_SCRIPTS = inkscape2edc
5endif
6
7EXTRA_DIST = gimp-edje-export.py inkscape2edc
diff --git a/libraries/edje/utils/Makefile.in b/libraries/edje/utils/Makefile.in
new file mode 100644
index 0000000..4c05fe5
--- /dev/null
+++ b/libraries/edje/utils/Makefile.in
@@ -0,0 +1,497 @@
1# Makefile.in generated by automake 1.11.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
6# Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17
18VPATH = @srcdir@
19pkgdatadir = $(datadir)/@PACKAGE@
20pkgincludedir = $(includedir)/@PACKAGE@
21pkglibdir = $(libdir)/@PACKAGE@
22pkglibexecdir = $(libexecdir)/@PACKAGE@
23am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24install_sh_DATA = $(install_sh) -c -m 644
25install_sh_PROGRAM = $(install_sh) -c
26install_sh_SCRIPT = $(install_sh) -c
27INSTALL_HEADER = $(INSTALL_DATA)
28transform = $(program_transform_name)
29NORMAL_INSTALL = :
30PRE_INSTALL = :
31POST_INSTALL = :
32NORMAL_UNINSTALL = :
33PRE_UNINSTALL = :
34POST_UNINSTALL = :
35build_triplet = @build@
36host_triplet = @host@
37subdir = utils
38DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40am__aclocal_m4_deps = $(top_srcdir)/m4/ac_attribute.m4 \
41 $(top_srcdir)/m4/efl_binary.m4 \
42 $(top_srcdir)/m4/efl_coverage.m4 \
43 $(top_srcdir)/m4/efl_doxygen.m4 \
44 $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \
45 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
46 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
47 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
48am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
49 $(ACLOCAL_M4)
50mkinstalldirs = $(install_sh) -d
51CONFIG_HEADER = $(top_builddir)/config.h
52CONFIG_CLEAN_FILES =
53CONFIG_CLEAN_VPATH_FILES =
54am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
55am__vpath_adj = case $$p in \
56 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
57 *) f=$$p;; \
58 esac;
59am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
60am__install_max = 40
61am__nobase_strip_setup = \
62 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
63am__nobase_strip = \
64 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
65am__nobase_list = $(am__nobase_strip_setup); \
66 for p in $$list; do echo "$$p $$p"; done | \
67 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
68 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
69 if (++n[$$2] == $(am__install_max)) \
70 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
71 END { for (dir in files) print dir, files[dir] }'
72am__base_list = \
73 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
74 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
75am__installdirs = "$(DESTDIR)$(bindir)"
76SCRIPTS = $(bin_SCRIPTS)
77AM_V_GEN = $(am__v_GEN_$(V))
78am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
79am__v_GEN_0 = @echo " GEN " $@;
80AM_V_at = $(am__v_at_$(V))
81am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
82am__v_at_0 = @
83SOURCES =
84DIST_SOURCES =
85DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
86ACLOCAL = @ACLOCAL@
87ALLOCA = @ALLOCA@
88ALSA_CFLAGS = @ALSA_CFLAGS@
89ALSA_LIBS = @ALSA_LIBS@
90AMTAR = @AMTAR@
91AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
92AR = @AR@
93AS = @AS@
94AUTOCONF = @AUTOCONF@
95AUTOHEADER = @AUTOHEADER@
96AUTOMAKE = @AUTOMAKE@
97AWK = @AWK@
98CC = @CC@
99CCDEPMODE = @CCDEPMODE@
100CFLAGS = @CFLAGS@
101CHECK_CFLAGS = @CHECK_CFLAGS@
102CHECK_LIBS = @CHECK_LIBS@
103CPP = @CPP@
104CPPFLAGS = @CPPFLAGS@
105CYGPATH_W = @CYGPATH_W@
106DEFS = @DEFS@
107DEPDIR = @DEPDIR@
108DLLTOOL = @DLLTOOL@
109DSYMUTIL = @DSYMUTIL@
110DUMPBIN = @DUMPBIN@
111ECHO_C = @ECHO_C@
112ECHO_N = @ECHO_N@
113ECHO_T = @ECHO_T@
114ECORE_IMF_CFLAGS = @ECORE_IMF_CFLAGS@
115ECORE_IMF_LIBS = @ECORE_IMF_LIBS@
116EDJE_CC_CFLAGS = @EDJE_CC_CFLAGS@
117EDJE_CC_LIBS = @EDJE_CC_LIBS@
118EDJE_CC_PRG = @EDJE_CC_PRG@
119EDJE_CFLAGS = @EDJE_CFLAGS@
120EDJE_DECC_CFLAGS = @EDJE_DECC_CFLAGS@
121EDJE_DECC_LIBS = @EDJE_DECC_LIBS@
122EDJE_DECC_PRG = @EDJE_DECC_PRG@
123EDJE_EXTERNAL_INSPECTOR_CFLAGS = @EDJE_EXTERNAL_INSPECTOR_CFLAGS@
124EDJE_EXTERNAL_INSPECTOR_LIBS = @EDJE_EXTERNAL_INSPECTOR_LIBS@
125EDJE_EXTERNAL_INSPECTOR_PRG = @EDJE_EXTERNAL_INSPECTOR_PRG@
126EDJE_INSPECTOR_CFLAGS = @EDJE_INSPECTOR_CFLAGS@
127EDJE_INSPECTOR_LIBS = @EDJE_INSPECTOR_LIBS@
128EDJE_INSPECTOR_PRG = @EDJE_INSPECTOR_PRG@
129EDJE_LIBS = @EDJE_LIBS@
130EDJE_PLAYER_CFLAGS = @EDJE_PLAYER_CFLAGS@
131EDJE_PLAYER_LIBS = @EDJE_PLAYER_LIBS@
132EDJE_PLAYER_PRG = @EDJE_PLAYER_PRG@
133EDJE_RECC_PRG = @EDJE_RECC_PRG@
134EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@
135EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@
136EFL_EDJE_BUILD = @EFL_EDJE_BUILD@
137EGREP = @EGREP@
138EVIL_CFLAGS = @EVIL_CFLAGS@
139EVIL_LIBS = @EVIL_LIBS@
140EXEEXT = @EXEEXT@
141FGREP = @FGREP@
142FLAC_CFLAGS = @FLAC_CFLAGS@
143FLAC_LIBS = @FLAC_LIBS@
144GREP = @GREP@
145INSTALL = @INSTALL@
146INSTALL_DATA = @INSTALL_DATA@
147INSTALL_PROGRAM = @INSTALL_PROGRAM@
148INSTALL_SCRIPT = @INSTALL_SCRIPT@
149INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
150LD = @LD@
151LDFLAGS = @LDFLAGS@
152LIBOBJS = @LIBOBJS@
153LIBS = @LIBS@
154LIBTOOL = @LIBTOOL@
155LIPO = @LIPO@
156LN_S = @LN_S@
157LTLIBOBJS = @LTLIBOBJS@
158LUA_CFLAGS = @LUA_CFLAGS@
159LUA_LIBS = @LUA_LIBS@
160MAKEINFO = @MAKEINFO@
161MINIMAL_CFLAGS = @MINIMAL_CFLAGS@
162MINIMAL_LIBS = @MINIMAL_LIBS@
163MKDIR_P = @MKDIR_P@
164MODULE_ARCH = @MODULE_ARCH@
165NM = @NM@
166NMEDIT = @NMEDIT@
167OBJDUMP = @OBJDUMP@
168OBJEXT = @OBJEXT@
169OTOOL = @OTOOL@
170OTOOL64 = @OTOOL64@
171PACKAGE = @PACKAGE@
172PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
173PACKAGE_NAME = @PACKAGE_NAME@
174PACKAGE_STRING = @PACKAGE_STRING@
175PACKAGE_TARNAME = @PACKAGE_TARNAME@
176PACKAGE_URL = @PACKAGE_URL@
177PACKAGE_VERSION = @PACKAGE_VERSION@
178PATH_SEPARATOR = @PATH_SEPARATOR@
179PKG_CONFIG = @PKG_CONFIG@
180PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
181PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
182PYTHON = @PYTHON@
183PYTHON_EXEC_PREFIX = @PYTHON_EXEC_PREFIX@
184PYTHON_PLATFORM = @PYTHON_PLATFORM@
185PYTHON_PREFIX = @PYTHON_PREFIX@
186PYTHON_VERSION = @PYTHON_VERSION@
187RANLIB = @RANLIB@
188REMIX_CFLAGS = @REMIX_CFLAGS@
189REMIX_LIBS = @REMIX_LIBS@
190REMIX_PLUGIN_DIR = @REMIX_PLUGIN_DIR@
191SED = @SED@
192SET_MAKE = @SET_MAKE@
193SHELL = @SHELL@
194SNDFILE_CFLAGS = @SNDFILE_CFLAGS@
195SNDFILE_LIBS = @SNDFILE_LIBS@
196STRIP = @STRIP@
197VERSION = @VERSION@
198VMAJ = @VMAJ@
199VORBISENC_CFLAGS = @VORBISENC_CFLAGS@
200VORBISENC_LIBS = @VORBISENC_LIBS@
201abs_builddir = @abs_builddir@
202abs_srcdir = @abs_srcdir@
203abs_top_builddir = @abs_top_builddir@
204abs_top_srcdir = @abs_top_srcdir@
205ac_ct_CC = @ac_ct_CC@
206ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
207am__include = @am__include@
208am__leading_dot = @am__leading_dot@
209am__quote = @am__quote@
210am__tar = @am__tar@
211am__untar = @am__untar@
212bindir = @bindir@
213build = @build@
214build_alias = @build_alias@
215build_cpu = @build_cpu@
216build_os = @build_os@
217build_vendor = @build_vendor@
218builddir = @builddir@
219datadir = @datadir@
220datarootdir = @datarootdir@
221docdir = @docdir@
222dvidir = @dvidir@
223edje_cc = @edje_cc@
224efl_doxygen = @efl_doxygen@
225efl_have_doxygen = @efl_have_doxygen@
226exec_prefix = @exec_prefix@
227have_lcov = @have_lcov@
228host = @host@
229host_alias = @host_alias@
230host_cpu = @host_cpu@
231host_os = @host_os@
232host_vendor = @host_vendor@
233htmldir = @htmldir@
234includedir = @includedir@
235infodir = @infodir@
236install_sh = @install_sh@
237libdir = @libdir@
238libexecdir = @libexecdir@
239localedir = @localedir@
240localstatedir = @localstatedir@
241lt_ECHO = @lt_ECHO@
242lt_enable_auto_import = @lt_enable_auto_import@
243lua_libs = @lua_libs@
244mandir = @mandir@
245mkdir_p = @mkdir_p@
246oldincludedir = @oldincludedir@
247pdfdir = @pdfdir@
248pkgconfig_requires_private = @pkgconfig_requires_private@
249pkgpyexecdir = @pkgpyexecdir@
250pkgpythondir = @pkgpythondir@
251prefix = @prefix@
252program_transform_name = @program_transform_name@
253psdir = @psdir@
254pyexecdir = @pyexecdir@
255pythondir = @pythondir@
256release_info = @release_info@
257requirement_edje = @requirement_edje@
258sbindir = @sbindir@
259sharedstatedir = @sharedstatedir@
260srcdir = @srcdir@
261sysconfdir = @sysconfdir@
262target_alias = @target_alias@
263top_build_prefix = @top_build_prefix@
264top_builddir = @top_builddir@
265top_srcdir = @top_srcdir@
266version_info = @version_info@
267vimdir = @vimdir@
268MAINTAINERCLEANFILES = Makefile.in
269@HAVE_PYTHON_TRUE@bin_SCRIPTS = inkscape2edc
270EXTRA_DIST = gimp-edje-export.py inkscape2edc
271all: all-am
272
273.SUFFIXES:
274$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
275 @for dep in $?; do \
276 case '$(am__configure_deps)' in \
277 *$$dep*) \
278 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
279 && { if test -f $@; then exit 0; else break; fi; }; \
280 exit 1;; \
281 esac; \
282 done; \
283 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu utils/Makefile'; \
284 $(am__cd) $(top_srcdir) && \
285 $(AUTOMAKE) --gnu utils/Makefile
286.PRECIOUS: Makefile
287Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
288 @case '$?' in \
289 *config.status*) \
290 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
291 *) \
292 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
293 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
294 esac;
295
296$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
297 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
298
299$(top_srcdir)/configure: $(am__configure_deps)
300 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
301$(ACLOCAL_M4): $(am__aclocal_m4_deps)
302 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
303$(am__aclocal_m4_deps):
304install-binSCRIPTS: $(bin_SCRIPTS)
305 @$(NORMAL_INSTALL)
306 test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)"
307 @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
308 for p in $$list; do \
309 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
310 if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
311 done | \
312 sed -e 'p;s,.*/,,;n' \
313 -e 'h;s|.*|.|' \
314 -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
315 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
316 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
317 if ($$2 == $$4) { files[d] = files[d] " " $$1; \
318 if (++n[d] == $(am__install_max)) { \
319 print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
320 else { print "f", d "/" $$4, $$1 } } \
321 END { for (d in files) print "f", d, files[d] }' | \
322 while read type dir files; do \
323 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
324 test -z "$$files" || { \
325 echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
326 $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
327 } \
328 ; done
329
330uninstall-binSCRIPTS:
331 @$(NORMAL_UNINSTALL)
332 @list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
333 files=`for p in $$list; do echo "$$p"; done | \
334 sed -e 's,.*/,,;$(transform)'`; \
335 test -n "$$list" || exit 0; \
336 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
337 cd "$(DESTDIR)$(bindir)" && rm -f $$files
338
339mostlyclean-libtool:
340 -rm -f *.lo
341
342clean-libtool:
343 -rm -rf .libs _libs
344tags: TAGS
345TAGS:
346
347ctags: CTAGS
348CTAGS:
349
350
351distdir: $(DISTFILES)
352 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
353 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
354 list='$(DISTFILES)'; \
355 dist_files=`for file in $$list; do echo $$file; done | \
356 sed -e "s|^$$srcdirstrip/||;t" \
357 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
358 case $$dist_files in \
359 */*) $(MKDIR_P) `echo "$$dist_files" | \
360 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
361 sort -u` ;; \
362 esac; \
363 for file in $$dist_files; do \
364 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
365 if test -d $$d/$$file; then \
366 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
367 if test -d "$(distdir)/$$file"; then \
368 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
369 fi; \
370 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
371 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
372 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
373 fi; \
374 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
375 else \
376 test -f "$(distdir)/$$file" \
377 || cp -p $$d/$$file "$(distdir)/$$file" \
378 || exit 1; \
379 fi; \
380 done
381check-am: all-am
382check: check-am
383all-am: Makefile $(SCRIPTS)
384installdirs:
385 for dir in "$(DESTDIR)$(bindir)"; do \
386 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
387 done
388install: install-am
389install-exec: install-exec-am
390install-data: install-data-am
391uninstall: uninstall-am
392
393install-am: all-am
394 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
395
396installcheck: installcheck-am
397install-strip:
398 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
399 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
400 `test -z '$(STRIP)' || \
401 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
402mostlyclean-generic:
403
404clean-generic:
405
406distclean-generic:
407 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
408 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
409
410maintainer-clean-generic:
411 @echo "This command is intended for maintainers to use"
412 @echo "it deletes files that may require special tools to rebuild."
413 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
414clean: clean-am
415
416clean-am: clean-generic clean-libtool mostlyclean-am
417
418distclean: distclean-am
419 -rm -f Makefile
420distclean-am: clean-am distclean-generic
421
422dvi: dvi-am
423
424dvi-am:
425
426html: html-am
427
428html-am:
429
430info: info-am
431
432info-am:
433
434install-data-am:
435
436install-dvi: install-dvi-am
437
438install-dvi-am:
439
440install-exec-am: install-binSCRIPTS
441
442install-html: install-html-am
443
444install-html-am:
445
446install-info: install-info-am
447
448install-info-am:
449
450install-man:
451
452install-pdf: install-pdf-am
453
454install-pdf-am:
455
456install-ps: install-ps-am
457
458install-ps-am:
459
460installcheck-am:
461
462maintainer-clean: maintainer-clean-am
463 -rm -f Makefile
464maintainer-clean-am: distclean-am maintainer-clean-generic
465
466mostlyclean: mostlyclean-am
467
468mostlyclean-am: mostlyclean-generic mostlyclean-libtool
469
470pdf: pdf-am
471
472pdf-am:
473
474ps: ps-am
475
476ps-am:
477
478uninstall-am: uninstall-binSCRIPTS
479
480.MAKE: install-am install-strip
481
482.PHONY: all all-am check check-am clean clean-generic clean-libtool \
483 distclean distclean-generic distclean-libtool distdir dvi \
484 dvi-am html html-am info info-am install install-am \
485 install-binSCRIPTS install-data install-data-am install-dvi \
486 install-dvi-am install-exec install-exec-am install-html \
487 install-html-am install-info install-info-am install-man \
488 install-pdf install-pdf-am install-ps install-ps-am \
489 install-strip installcheck installcheck-am installdirs \
490 maintainer-clean maintainer-clean-generic mostlyclean \
491 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
492 uninstall uninstall-am uninstall-binSCRIPTS
493
494
495# Tell versions [3.59,3.63) of GNU make to not export all variables.
496# Otherwise a system limit (for SysV at least) may be exceeded.
497.NOEXPORT:
diff --git a/libraries/edje/utils/gimp-edje-export.py b/libraries/edje/utils/gimp-edje-export.py
new file mode 100755
index 0000000..88e1cb6
--- /dev/null
+++ b/libraries/edje/utils/gimp-edje-export.py
@@ -0,0 +1,146 @@
1#!/usr/bin/env python
2
3# Gimp-Python - allows the writing of Gimp plugins in Python.
4# Copyright (C) 2007 Renato Chencarek <renato.chencarek@openbossa.org>
5#
6# This program is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 2 of the License, or
9# (at your option) any later version.
10#
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program; if not, write to the Free Software
18# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19#
20# INSTALL:
21#
22# cp gimp-edje-export.py ~/.gimp/plug-ins/
23# chmod +x ~/.gimp/plug-ins/gimp-edje-export.py
24#
25# Notes:
26# - ~/.gimp may change depending on gimp version, ie: ~/.gimp-2.4.
27# - Make sure this file is marked as executable!
28#
29# USAGE:
30# Load an image and go to "Python-Fu > Edje Save" that will
31# appear on the image's window.
32#
33
34from gimpfu import *
35import os.path
36import re, gettext
37
38
39def save_layer(layer, filename):
40 temp_image = pdb.gimp_image_new (layer.width, layer.height, layer.image.base_type)
41 temp_drawable = pdb.gimp_layer_new_from_drawable (layer, temp_image)
42 temp_image.add_layer (temp_drawable, -1)
43 pdb.gimp_file_save(temp_image, temp_drawable, filename, filename)
44 gimp.delete(temp_image)
45 return
46
47def write_image_section(layers, edje_file, filenames):
48 edje_file.write("images {\n")
49 for layer in layers:
50 edje_file.write(' image: "%s" COMP;\n' % filenames[layer.name])
51 edje_file.write("\n}\n")
52
53def write_layer_data(layer, edje_file, filename):
54 expr = re.compile('\W')
55 name = expr.sub("_", layer.name)
56 data = {'name':name, 'width':layer.width, 'height':layer.height,
57 'x0':layer.offsets[0], 'y0':layer.offsets[1],
58 'x1':layer.offsets[0] + layer.width, 'y1':layer.offsets[1] + layer.height,
59 'path':filename, 'visible':int(layer.visible)
60 }
61 text = """\
62 part {
63 name: "%(name)s";
64 type: IMAGE;
65 mouse_events: 0;
66 description {
67 state: "default" 0.0;
68 min: %(width)d %(height)d;
69 max: %(width)d %(height)d;
70 rel1 {
71 relative: 0.0 0.0;
72 offset: %(x0)d %(y0)d;
73 }
74 rel2 {
75 relative: 0.0 0.0;
76 offset: %(x1)d %(y1)d;
77 }
78 image {
79 normal: "%(path)s";
80 }
81 visible: %(visible)d;
82 }
83 }\n""" % data
84 edje_file.write(text)
85
86def fix_layers_name(img, save_path):
87 filenames = {}
88 for layer in img.layers:
89 expr = re.compile('\W')
90 name = expr.sub("_", layer.name)
91 if not name:
92 name = "unnamed"
93 layer.name = name
94 if name in filenames.keys():
95 continue
96 filename = os.path.join(save_path, name + ".png")
97 filenames[name] = filename
98
99 return filenames
100
101def edje_save(img, drawable, save_path, save_layers, edje_filename, invisible):
102 layers = []
103 filenames = {}
104 for layer in img.layers:
105 if layer.visible or invisible:
106 expr = re.compile('\W')
107 name = expr.sub("_", layer.name)
108 layer.name = name
109 if name in filenames.keys():
110 continue
111 filename = os.path.join(save_path, name + ".png")
112 filenames[name] = filename
113 layers.append(layer)
114
115 edje_file = open(os.path.join(save_path, edje_filename), 'w')
116 write_image_section(layers, edje_file, filenames)
117
118 edje_file.write('collections {\n group {\n name: "%s";\n' % img.name)
119 edje_file.write(' min: %d %d;\n max: %d %d;\n parts {\n' % (img.width, img.height,img.width, img.height))
120 layers.reverse()
121 for l in layers:
122 if save_layers:
123 save_layer(l, filenames[l.name])
124 write_layer_data(l, edje_file,filenames[l.name])
125 edje_file.write(' }\n }\n}\n')
126 edje_file.close()
127
128register(
129 "python_fu_edje_save",
130 "Export the Image as Edje file",
131 "Export the Image as Edje file",
132 "Renato Chencarek",
133 "Renato Chencarek",
134 "2007",
135 "<Image>/Python-Fu/_Edje Save",
136 "RGBA, GRAYA",
137 [
138 (PF_STRING, "save_path", "Path", "/tmp/"),
139 (PF_TOGGLE, "save_layers", "Save Layers ?", True),
140 (PF_STRING, "edje_filename", "Filename for edje", "edje.edc"),
141 (PF_TOGGLE, "export_invisible_layers", "Export invisible layers", False)
142 ],
143 [],
144 edje_save)
145
146main()
diff --git a/libraries/edje/utils/inkscape2edc b/libraries/edje/utils/inkscape2edc
new file mode 100755
index 0000000..25a1a8c
--- /dev/null
+++ b/libraries/edje/utils/inkscape2edc
@@ -0,0 +1,309 @@
1#!/usr/bin/env python
2
3import os
4import os.path
5import subprocess
6import logging as log
7import re
8
9
10class Inkscape2Edc(object):
11 cmd = "inkscape --without-gui"
12 def __init__(self, infile, outfile, group,
13 relative1_x=None, relative2_x=None,
14 relative1_y=None, relative2_y=None,
15 images_dir="",
16 show_max=True, show_min=True, show_mouse_events=True):
17 self.infile = infile
18 self.outfile = outfile
19 self.group = group
20 self.relative1_x = relative1_x
21 self.relative2_x = relative2_x
22 self.relative1_y = relative1_y
23 self.relative2_y = relative2_y
24 self.images_dir = images_dir
25 self.show_max = show_max
26 self.show_min = show_min
27 self.show_mouse_events = show_mouse_events
28
29 self.images = {}
30 self.sizes = {}
31 self.known_ids = tuple()
32 self.w = 0
33 self.h = 0
34
35 self.out = open(self.outfile, "wb")
36 self.basedir = os.path.dirname(self.outfile)
37
38 def _exec_cmd(self, *args):
39 s = " ".join(args)
40 cmd = "%s --file=%r %s" % (self.cmd, self.infile, s)
41 try:
42 p = subprocess.Popen(cmd, stdout=subprocess.PIPE,
43 stderr=subprocess.PIPE, shell=True)
44 except Exception, e:
45 log.error("cmd=%r exception: %s", cmd, e)
46 return ""
47
48 out, err = p.communicate()
49 if err:
50 log.error("cmd=%r error: %s", cmd, err)
51
52 return out
53
54 def load_sizes(self):
55 sizes = self._exec_cmd("--query-all").split('\n')
56
57 self.sizes = {}
58 order = []
59 for line in sizes:
60 if not line:
61 continue
62 try:
63 oid, x, y, w, h = line.split(',')
64 except ValueError:
65 log.warn("could not parse size line: %r", line)
66 continue
67 x = float(x)
68 y = float(y)
69 w = float(w)
70 h = float(h)
71 self.sizes[oid] = (x, y, w, h)
72 order.append(oid)
73
74 self.known_ids = tuple(order)
75
76 self.w = float(self._exec_cmd("--query-width"))
77 self.h = float(self._exec_cmd("--query-height"))
78
79 def output_file_header(self):
80 self.out.write("""\
81collections {
82 group {
83 name: "%(group)s";
84""" % self.__dict__)
85
86 if self.show_min:
87 self.out.write(" min: %(w)d %(h)d;\n" % self.__dict__)
88
89 if self.show_max:
90 self.out.write(" max: %(w)d %(h)d;\n" % self.__dict__)
91
92 def output_file_section_parts_begin(self):
93 self.out.write(" parts {\n")
94
95 def output_file_section_parts_end(self):
96 self.out.write(" }\n")
97
98 def output_file_section_images_begin(self):
99 self.out.write(" images {\n")
100
101 def output_file_section_images_end(self):
102 self.out.write(" }\n")
103
104 def output_file_foot(self):
105 self.out.write("""\
106 }
107}
108""")
109
110 def output_image(self, oid):
111 img = os.path.join(self.images_dir, oid)
112 img += ".png"
113
114 self._exec_cmd("--export-id='%s'" % oid,
115 "--export-id-only",
116 "--export-png='%s'" % os.path.join(self.basedir, img))
117
118 self.out.write(' image: "%s" COMP;\n' % img)
119 self.images[oid] = img
120
121 def output_part_desc_rel(self, x, y, w, h):
122 def choose_rel(relative, value, value_max):
123 if relative is not None:
124 return relative
125 elif value <= abs(value_max - value):
126 return 0.0
127 else:
128 return 1.0
129
130 x2 = x + w - 1
131 y2 = y + h - 1
132
133 rx1 = choose_rel(self.relative1_x, x, w)
134 rx2 = choose_rel(self.relative2_x, x2, w)
135 ry1 = choose_rel(self.relative1_y, y, h)
136 ry2 = choose_rel(self.relative2_y, y2, h)
137
138 ox1 = x - self.w * rx1
139 ox2 = x2 - self.w * rx2
140
141 oy1 = y - self.h * ry1
142 oy2 = y2 - self.h * ry2
143
144 self.out.write("""\
145 rel1 {
146 relative: %03.1f %03.1f;
147 offset: %d %d;
148 }
149 rel2 {
150 relative: %03.1f %03.1f;
151 offset: %d %d;
152 }
153""" % (rx1, ry1, ox1, oy1, rx2, ry2, ox2, oy2))
154
155
156 def output_part(self, oid):
157 try:
158 x, y, w, h = self.sizes[oid]
159 except KeyError:
160 log.error("no such object id: %s", oid)
161 return
162
163 info = {
164 "name": oid,
165 "x": x,
166 "y": y,
167 "w": w,
168 "h": h,
169 }
170
171 self.out.write("""
172 part {
173 name: "%(name)s";
174 type: IMAGE;
175""" % info)
176
177 if self.show_mouse_events:
178 self.out.write(" mouse_events: 0;\n")
179
180 self.out.write("""\
181 description {
182 state: "default" 0.0;
183""")
184
185 if self.show_min:
186 self.out.write(" min: %(w)d %(h)d;\n" % info)
187
188 if self.show_max:
189 self.out.write(" max: %(w)d %(h)d;\n" % info)
190
191 self.output_part_desc_rel(x, y, w, h)
192 self.out.write("""\
193 image.normal: "%s";
194 }
195 }
196""" % (self.images[oid],))
197
198
199def foreach_id(inkscape2edc, ids=None, re_exclude=None):
200 if ids:
201 for oid in inkscape2edc.known_ids:
202 if oid in ids:
203 yield oid
204 else:
205 for oid in inkscape2edc.known_ids:
206 if re_exclude is not None and re_exclude.match(oid):
207 continue
208 yield oid
209
210
211if __name__ == "__main__":
212 import optparse
213
214 usage = "usage: %prog [options] <input.svg>"
215 parser = optparse.OptionParser(usage=usage)
216
217 parser.add_option("-i", "--id", action="append", default=[],
218 help=("Object ID to use, it will be the part name. "
219 "Multiple usage to use more object ids."))
220 parser.add_option("-e", "--exclude", action="store", default=None,
221 help=("Exclude regular expression."
222 "Matching IDs will be ignored."))
223 parser.add_option("-o", "--output", action="store", default=None,
224 help="Output file to use")
225 parser.add_option("-g", "--group", action="store", default=None,
226 help="Group name")
227 parser.add_option("-d", "--images-dir", action="store", default="",
228 help="Directory where to output images.")
229 parser.add_option("--no-min", action="store_true",
230 help="Do not output min values")
231 parser.add_option("--no-max", action="store_true",
232 help="Do not output max values")
233 parser.add_option("--no-mouse_events", action="store_true",
234 help="Do not output mouse_events lines")
235 parser.add_option("--relative1-y", action="store",
236 choices=("top", "bottom", "auto"),
237 default="auto",
238 help=("Choose what to use as base for rel1 y values, "
239 "top=0.0, bottom=1.0, auto=nearest"))
240 parser.add_option("--relative2-y", action="store",
241 choices=("top", "bottom", "auto"),
242 default="auto",
243 help=("Choose what to use as base for rel2 y values, "
244 "top=0.0, bottom=1.0, auto=nearest"))
245 parser.add_option("--relative1-x", action="store",
246 choices=("left", "right", "auto"),
247 default="auto",
248 help=("Choose what to use as base for rel1 x values, "
249 "left=0.0, right=1.0, auto=nearest"))
250 parser.add_option("--relative2-x", action="store",
251 choices=("left", "right", "auto"),
252 default="auto",
253 help=("Choose what to use as base for rel2 x values, "
254 "left=0.0, right=1.0, auto=nearest"))
255
256
257 options, args = parser.parse_args()
258
259 try:
260 infile = args[0]
261 except IndexError:
262 parser.print_help()
263 raise SystemExit("missing input file name")
264
265 fname = os.path.splitext(infile)[0]
266 if not options.output:
267 options.output = fname + ".edc"
268
269 if not options.group:
270 options.group = fname
271
272 rx_map = {"left": 0.0, "right": 1.0}
273 options.relative1_x = rx_map.get(options.relative1_x, None)
274 options.relative2_x = rx_map.get(options.relative2_x, None)
275
276 ry_map = {"top": 0.0, "bottom": 1.0}
277 options.relative1_y = ry_map.get(options.relative1_y, None)
278 options.relative2_y = ry_map.get(options.relative2_y, None)
279
280 o = Inkscape2Edc(infile, options.output, options.group,
281 relative1_x=options.relative1_x,
282 relative2_x=options.relative2_x,
283 relative1_y=options.relative1_y,
284 relative2_y=options.relative2_y,
285 images_dir=options.images_dir,
286 show_max=not options.no_max, show_min=not options.no_min,
287 show_mouse_events=not options.no_mouse_events)
288
289 re_exclude = None
290 if options.exclude:
291 re_exclude = re.compile(options.exclude)
292
293 if options.images_dir:
294 os.makedirs(options.images_dir)
295
296 o.load_sizes()
297 o.output_file_header()
298
299 o.output_file_section_images_begin()
300 for oid in foreach_id(o, options.id, re_exclude):
301 o.output_image(oid)
302 o.output_file_section_images_end()
303
304 o.output_file_section_parts_begin()
305 for oid in foreach_id(o, options.id, re_exclude):
306 o.output_part(oid)
307 o.output_file_section_parts_end()
308
309 o.output_file_foot()