Skip to content

Commit

Permalink
Enable "tee surfaces" in Cairo
Browse files Browse the repository at this point in the history
* Set CAIRO_HAS_TEE_SURFACE=1 and add cairo-tee.h to the output folder
  • Loading branch information
preshing committed Aug 29, 2020
1 parent 925dd85 commit ddd59a2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-cairo-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ else
sed '/^CAIRO_LIBS =/s/ $(top_builddir)\/..\/freetype\/freetype.lib//;/^DEFAULT_CFLAGS =/s/ -I$(top_srcdir)\/..\/freetype\/include//' build/Makefile.win32.common > Makefile.win32.common.fixed
fi
mv Makefile.win32.common.fixed build/Makefile.win32.common
sed "s/CAIRO_HAS_FT_FONT=./CAIRO_HAS_FT_FONT=$USE_FREETYPE/" build/Makefile.win32.features > Makefile.win32.features.fixed
sed "s/CAIRO_HAS_FT_FONT=./CAIRO_HAS_FT_FONT=$USE_FREETYPE/;s/CAIRO_HAS_TEE_SURFACE=./CAIRO_HAS_TEE_SURFACE=1/" build/Makefile.win32.features > Makefile.win32.features.fixed
mv Makefile.win32.features.fixed build/Makefile.win32.features
# pass -B for switching between x86/x64
make -B -f Makefile.win32 cairo "CFG=release"
Expand All @@ -129,7 +129,8 @@ for file in cairo/cairo-version.h \
cairo/src/cairo-script.h \
cairo/src/cairo-ps.h \
cairo/src/cairo-pdf.h \
cairo/src/cairo-svg.h; do
cairo/src/cairo-svg.h \
cairo/src/cairo-tee.h; do
cp $file $OUTPUT_FOLDER/include
done
if [ $USE_FREETYPE -ne 0 ]; then
Expand Down

0 comments on commit ddd59a2

Please sign in to comment.