#define calloc rfx_calloc_replacement
#endif
++//#ifdef HAVE_BUILTIN_EXPECT
++#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__)
++# define likely(x) __builtin_expect((x), 1)
++# define unlikely(x) __builtin_expect((x), 0)
++#else
++# define likely(x) (x)
++# define unlikely(x) (x)
++#endif
++
#endif
SRC = active.c convert.c poly.c wind.c renderpoly.c xrow.c stroke.c
OBJS = active.o convert.o poly.o wind.o renderpoly.o xrow.o stroke.o
- active.o: active.c active.h poly.h
+ active.o: active.c active.h poly.h Makefile
$(CC) -c active.c -o active.o
- convert.o: convert.c convert.h poly.h
+ convert.o: convert.c convert.h poly.h Makefile
$(CC) -c convert.c -o convert.o
- poly.o: poly.c poly.h active.h heap.h ../q.h
+ poly.o: poly.c poly.h active.h heap.h ../q.h Makefile
$(CC) -c poly.c -o poly.o
- wind.o: wind.c wind.h poly.h
+ wind.o: wind.c wind.h poly.h Makefile
$(CC) -c wind.c -o wind.o
- renderpoly.o: renderpoly.c wind.h poly.h renderpoly.h
+ renderpoly.o: renderpoly.c wind.h poly.h renderpoly.h Makefile
$(CC) -c renderpoly.c -o renderpoly.o
- xrow.o: xrow.c xrow.h ../q.h ../mem.h
+ xrow.o: xrow.c xrow.h ../q.h ../mem.h Makefile
$(CC) -c xrow.c -o xrow.o
- stroke.o: stroke.c poly.h convert.h wind.h
+ stroke.o: stroke.c poly.h convert.h wind.h Makefile
$(CC) -c stroke.c -o stroke.o
-GFX=../gfxfont.o ../gfxtools.o ../gfximage.o ../devices/ops.o ../devices/polyops.o ../devices/text.o ../devices/bbox.o ../devices/render.o ../devices/rescale.o ../devices/record.o
+GFX=../gfxfont.o ../gfxtools.o ../gfximage.o ../devices/ops.o ../devices/polyops.o ../devices/text.o ../devices/bbox.o ../devices/render.o ../devices/rescale.o ../devices/record.o
stroke: test_stroke.c $(OBJS) ../libgfxswf.a ../librfxswf.a ../libbase.a
$(CC) test_stroke.c $(OBJS) ../libgfxswf.a ../librfxswf.a $(GFX) ../libbase.a -o stroke $(LIBS)
SWF = ../librfxswf.a ../libgfxpdf.a -lstdc++
- test: ../libbase.a test.c $(OBJS) poly.h convert.h $(GFX)
+ test: ../libbase.a test.c $(OBJS) poly.h convert.h $(GFX) Makefile
$(CC) test.c $(OBJS) $(SWF) $(GFX) ../libbase.a -o test $(LIBS)
speedtest: ../libbase.a speedtest.c $(SRC) poly.h convert.h $(GFX)
all: pdf2swf_gui.exe
pdf2swf_gui.exe: gpdf2swf.py gui/*.py viewers/*.py
- cp gpdf2swf.py /xpython/main.py
- cp -R viewers gui lib /xpython/
+ cp -a ../installer/swftools.ico /xpython/xpython.ico
+ cp -a gpdf2swf.py /xpython/main.py
+ cp -a -R viewers gui lib /xpython/
cd /xpython/swftools;git pull
cd /xpython;make xpython.exe
ln -f /xpython/xpython.exe ./gpdf2swf.exe
#ln -f gpdf2swf.exe ../win32_gui/
ln -f gpdf2swf.exe ../win32/
cp -R viewers/* ../win32/viewers/
++ rm -rf ../win32/viewers/flexpaper* # we're not distributing flexpaper
.PHONY: exe
class AboutDialog:
def __init__(self, parent):
appname = wx.GetApp().GetAppName()
-- version = u"0.9.0"
++ version = u"0.10.0"
copyright = (u"Copyright (c) 2008,2009,2010\n"
u"Matthias Kramm <kramm@quiss.org>")
description = u"A graphical user interface for pdf2swf"