forked from minhngoc25a/freetype2
[ot-svg] Makes `rsvg_port.c' a part of the single build.
This commit is contained in:
parent
4d24f52ead
commit
7d6ebe3a81
|
@ -1125,7 +1125,6 @@ else
|
||||||
ftoption_unset FT_CONFIG_OPTION_USE_HARFBUZZ
|
ftoption_unset FT_CONFIG_OPTION_USE_HARFBUZZ
|
||||||
fi
|
fi
|
||||||
|
|
||||||
COMPILE_SVG_PORT=no
|
|
||||||
if test "$with_svg" = no-default; then
|
if test "$with_svg" = no-default; then
|
||||||
ftoption_set FT_CONFIG_OPTION_SVG
|
ftoption_set FT_CONFIG_OPTION_SVG
|
||||||
ftoption_unset FT_CONFIG_OPTION_DEFAULT_SVG
|
ftoption_unset FT_CONFIG_OPTION_DEFAULT_SVG
|
||||||
|
@ -1140,12 +1139,10 @@ else
|
||||||
LIBRSVG_CFLAGS=$(echo $LIBRSVG_CFLAGS | sed -e 's/freetype2//g')
|
LIBRSVG_CFLAGS=$(echo $LIBRSVG_CFLAGS | sed -e 's/freetype2//g')
|
||||||
CFLAGS="$CFLAGS $LIBRSVG_CFLAGS"
|
CFLAGS="$CFLAGS $LIBRSVG_CFLAGS"
|
||||||
LDFLAGS="$LDFLAGS $LIBRSVG_LIBS"
|
LDFLAGS="$LDFLAGS $LIBRSVG_LIBS"
|
||||||
COMPILE_SVG_PORT=yes
|
|
||||||
ftoption_set FT_CONFIG_OPTION_SVG
|
ftoption_set FT_CONFIG_OPTION_SVG
|
||||||
ftoption_set FT_CONFIG_OPTION_DEFAULT_SVG
|
ftoption_set FT_CONFIG_OPTION_DEFAULT_SVG
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST([COMPILE_SVG_PORT])
|
|
||||||
AC_SUBST([CFLAGS])
|
AC_SUBST([CFLAGS])
|
||||||
AC_SUBST([LDFLAGS])
|
AC_SUBST([LDFLAGS])
|
||||||
|
|
||||||
|
|
|
@ -81,8 +81,6 @@ T := -o$(space)
|
||||||
CPPFLAGS := @CPPFLAGS@
|
CPPFLAGS := @CPPFLAGS@
|
||||||
CFLAGS := -c @XX_CFLAGS@ @CFLAGS@ -DFT_CONFIG_CONFIG_H="<ftconfig.h>"
|
CFLAGS := -c @XX_CFLAGS@ @CFLAGS@ -DFT_CONFIG_CONFIG_H="<ftconfig.h>"
|
||||||
|
|
||||||
COMPILE_SVG_PORT := @COMPILE_SVG_PORT@
|
|
||||||
|
|
||||||
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
|
# ANSIFLAGS: Put there the flags used to make your compiler ANSI-compliant.
|
||||||
#
|
#
|
||||||
ANSIFLAGS := @XX_ANSIFLAGS@
|
ANSIFLAGS := @XX_ANSIFLAGS@
|
||||||
|
|
|
@ -24,10 +24,10 @@
|
||||||
#include FT_BBOX_H
|
#include FT_BBOX_H
|
||||||
|
|
||||||
#include "svgtypes.h"
|
#include "svgtypes.h"
|
||||||
|
|
||||||
#ifdef FT_CONFIG_OPTION_DEFAULT_SVG
|
#ifdef FT_CONFIG_OPTION_DEFAULT_SVG
|
||||||
#include <rsvg_port.h>
|
#include "rsvg_port.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "ftsvg.h"
|
#include "ftsvg.h"
|
||||||
|
|
|
@ -24,20 +24,17 @@ SVG_COMPILE := $(CC) $(ANSIFLAGS) \
|
||||||
$(INCLUDE_FLAGS) \
|
$(INCLUDE_FLAGS) \
|
||||||
$(FT_CFLAGS)
|
$(FT_CFLAGS)
|
||||||
|
|
||||||
# seperate compilation command for default rendering port files
|
|
||||||
SVG_PORT_COMPILE := $(CC) $I$(subst /,$(COMPILER_SEP),$(SVG_DIR)) \
|
|
||||||
$(INCLUDE_FLAGS) \
|
|
||||||
$(FT_CFLAGS)
|
|
||||||
|
|
||||||
# svg renderer sources (i.e., C files)
|
# svg renderer sources (i.e., C files)
|
||||||
#
|
#
|
||||||
SVG_DRV_SRC := $(SVG_DIR)/ftsvg.c
|
SVG_DRV_SRC := $(SVG_DIR)/ftsvg.c \
|
||||||
|
$(SVG_DIR)/rsvg_port.c
|
||||||
|
|
||||||
|
|
||||||
# svg renderer headers
|
# svg renderer headers
|
||||||
#
|
#
|
||||||
SVG_DRV_H := $(SVG_DIR)/ftsvg.h \
|
SVG_DRV_H := $(SVG_DIR)/ftsvg.h \
|
||||||
$(SVG_DIR)/svgtypes.h
|
$(SVG_DIR)/svgtypes.h \
|
||||||
|
$(SVG_DIR)/rsvg_port.h
|
||||||
|
|
||||||
|
|
||||||
# svg renderer object(s)
|
# svg renderer object(s)
|
||||||
|
@ -55,15 +52,6 @@ SVG_DRV_SRC_S := $(SVG_DIR)/svg.c
|
||||||
|
|
||||||
# svg renderer - single object
|
# svg renderer - single object
|
||||||
#
|
#
|
||||||
|
|
||||||
SVG_PORT_SRC_S := $(SVG_DIR)/rsvg_port.c
|
|
||||||
SVG_PORT_OBJ_S := $(OBJ_DIR)/rsvg_port.$O
|
|
||||||
|
|
||||||
ifeq ($(COMPILE_SVG_PORT), yes)
|
|
||||||
$(SVG_PORT_OBJ_S): $(SVG_PORT_SRC_S) $(FREETYPE_H)
|
|
||||||
$(SVG_PORT_COMPILE) $T$(subst /,$(COMPILER_SEP), $@ $(SVG_PORT_SRC_S))
|
|
||||||
endif
|
|
||||||
|
|
||||||
$(SVG_DRV_OBJ_S): $(SVG_DRV_SRC_S) $(SVG_DRV_SRC) \
|
$(SVG_DRV_OBJ_S): $(SVG_DRV_SRC_S) $(SVG_DRV_SRC) \
|
||||||
$(FREETYPE_H) $(SVG_DRV_H)
|
$(FREETYPE_H) $(SVG_DRV_H)
|
||||||
$(SVG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(SVG_DRV_SRC_S))
|
$(SVG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(SVG_DRV_SRC_S))
|
||||||
|
@ -80,9 +68,4 @@ $(OBJ_DIR)/%.$O: $(SVG_DIR)/%.c $(FREETYPE_H) $(SVG_DRV_H)
|
||||||
DRV_OBJS_S += $(SVG_DRV_OBJ_S)
|
DRV_OBJS_S += $(SVG_DRV_OBJ_S)
|
||||||
DRV_OBJS_M += $(SVG_DRV_OBJ_M)
|
DRV_OBJS_M += $(SVG_DRV_OBJ_M)
|
||||||
|
|
||||||
ifeq ($(COMPILE_SVG_PORT), yes)
|
|
||||||
DRV_OBJS_S += $(SVG_PORT_OBJ_S)
|
|
||||||
DRV_OBJS_M += $(SVG_PORT_OBJ_S)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# EOF
|
# EOF
|
||||||
|
|
|
@ -17,9 +17,15 @@
|
||||||
|
|
||||||
#define FT_MAKE_OPTION_SINGLE_OBJECT
|
#define FT_MAKE_OPTION_SINGLE_OBJECT
|
||||||
#include <ft2build.h>
|
#include <ft2build.h>
|
||||||
|
#include FT_FREETYPE_H
|
||||||
|
|
||||||
|
#ifdef FT_CONFIG_OPTION_DEFAULT_SVG
|
||||||
|
#include "rsvg_port.c"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "svgtypes.h"
|
#include "svgtypes.h"
|
||||||
#include "ftsvg.c"
|
#include "ftsvg.c"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* END */
|
/* END */
|
||||||
|
|
Loading…
Reference in New Issue