M Joonas Pihlaja
620028fd19
[script] Don't segfault when hashing empty strings.
...
Check for the empty string.
2008-12-12 12:00:41 +00:00
M Joonas Pihlaja
4ba77f7765
[script] Fix dictionary construction to access the right stack slots.
...
It bound values to themselves and ignored keys.
2008-12-12 12:00:41 +00:00
Chris Wilson
e184bf0d35
Fix compilation with --enable-png=no
...
Adrian Johnson spotted that the build was broken if the PNG functions were
disabled. Fix.
2008-12-12 10:20:47 +00:00
M Joonas Pihlaja
41cb91d417
[script] Use the in-tree libcairo for csi-replay.
...
csi-replay was missing the in-tree libcairo.la so the build was
failing while looking for new symbols from the system libcairo.
2008-11-26 23:49:12 +02:00
Chris Wilson
5591cb58fd
[script] Only use zlib if available.
...
Conditionally link against zlib - replaying a script will fail if the
trace uses a compressed format.
2008-11-26 17:43:22 +00:00
Chris Wilson
9432c0c9b8
[script] Link the interpreter against the built library.
...
Ensure we correctly link against the version of cairo just built.
2008-11-26 17:35:09 +00:00
Chris Wilson
815e5b962e
[script] Add a fallback image surface for replay
...
If we do not have a native windowing surface compiled into the library,
just replay the script to an image surface.
2008-11-26 17:30:29 +00:00
Luo Jinghua
1f44fb97f3
cairo-script: add $(top_builddir)/src to CPPPATH.
...
$(top_builddir)/src is needed to find cairo-features.h while
building out of tree.
2008-11-25 20:45:03 +08:00
Chris Wilson
1f48b36933
[script] Build fix for ! HAS_FT_FONT
...
Correct the macro definition used when compiling without FreeType.
2008-11-21 09:35:41 +00:00
Chris Wilson
c41b99268d
Conditionally include byteswap.h
...
Fixup compilation by copying the checks from cairo-wideint-private.h to
conditionally include byteswap.h and provide fallback implementations.
2008-11-19 11:59:21 +00:00
Chris Wilson
2839a0e800
[script] Add a simple replay.
...
A very simple replay program for trace replay.
2008-11-19 11:59:20 +00:00
M Joonas Pihlaja
3b11997a23
[cairo-script] Remove outdated #error to allow compilation to succeed.
...
The interpreter doesn't depend on the script surface anymore.
2008-11-13 18:06:40 +02:00
Chris Wilson
cdfffc7420
Add CairoScript interpreter
...
Add a CairoScript interpreter library and use it to replay the test output
for the CairoScript backend. The library is also used by the currently
standalone Sphinx debugger [git://anongit.freedesktop.org/~ickle/sphinx].
The syntax/operator semantics are not yet finalized, but are expected to
mature before the next stable release.
2008-11-13 11:36:55 +00:00