2019-06-13 13:18:09 +02:00
|
|
|
#
|
|
|
|
# FreeType 2 svg renderer module build rules
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
# Copyright (C) 1996-2019 by
|
2019-07-01 21:15:50 +02:00
|
|
|
# David Turner, Robert Wilhelm, Werner Lemberg and Moazin Khatti.
|
2019-06-13 13:18:09 +02:00
|
|
|
#
|
|
|
|
# This file is part of the FreeType project, and may only be used, modified,
|
|
|
|
# and distributed under the terms of the FreeType project license,
|
|
|
|
# LICENSE.TXT. By continuing to use, modify, or distribute this file you
|
|
|
|
# indicate that you have read the license and understand and accept it
|
|
|
|
# fully.
|
|
|
|
|
|
|
|
|
|
|
|
# svg renderer driver directory
|
|
|
|
#
|
|
|
|
SVG_DIR := $(SRC_DIR)/svg
|
|
|
|
|
|
|
|
# compilation flags for the driver
|
|
|
|
#
|
2019-08-10 14:42:46 +02:00
|
|
|
SVG_COMPILE := $(CC) $(ANSIFLAGS) \
|
|
|
|
$I$(subst /,$(COMPILER_SEP),$(SVG_DIR)) \
|
|
|
|
$(INCLUDE_FLAGS) \
|
|
|
|
$(FT_CFLAGS)
|
2019-06-13 13:18:09 +02:00
|
|
|
|
2019-08-10 14:42:46 +02:00
|
|
|
# seperate compilation command for default rendering port files
|
|
|
|
SVG_PORT_COMPILE := $(CC) $I$(subst /,$(COMPILER_SEP),$(SVG_DIR)) \
|
|
|
|
$(INCLUDE_FLAGS) \
|
|
|
|
$(FT_CFLAGS)
|
2019-06-13 13:18:09 +02:00
|
|
|
|
2019-08-10 14:42:46 +02:00
|
|
|
# svg renderer sources (i.e., C files)
|
2019-06-13 13:18:09 +02:00
|
|
|
#
|
|
|
|
SVG_DRV_SRC := $(SVG_DIR)/ftsvg.c \
|
2019-08-10 14:42:46 +02:00
|
|
|
$(SVG_DIR)/svgtypes.c
|
2019-06-13 13:18:09 +02:00
|
|
|
|
|
|
|
|
2019-08-10 14:42:46 +02:00
|
|
|
# svg renderer headers
|
2019-06-13 13:18:09 +02:00
|
|
|
#
|
|
|
|
SVG_DRV_H := $(SVG_DIR)/ftsvg.h
|
|
|
|
|
|
|
|
|
2019-08-10 14:42:46 +02:00
|
|
|
# svg renderer object(s)
|
2019-06-13 13:18:09 +02:00
|
|
|
#
|
2019-08-10 14:42:46 +02:00
|
|
|
# SVG_DRV_OBJ_M is used during `multi' builds.
|
|
|
|
# SVG_DRV_OBJ_S is used during `single' builds.
|
2019-06-13 13:18:09 +02:00
|
|
|
#
|
|
|
|
SVG_DRV_OBJ_M := $(SVG_DRV_SRC:$(SVG_DIR)/%.c=$(OBJ_DIR)/%.$O)
|
|
|
|
SVG_DRV_OBJ_S := $(OBJ_DIR)/svg.$O
|
|
|
|
|
2019-08-10 14:42:46 +02:00
|
|
|
# svg renderer source file for single build
|
2019-06-13 13:18:09 +02:00
|
|
|
#
|
|
|
|
SVG_DRV_SRC_S := $(SVG_DIR)/svg.c
|
|
|
|
|
|
|
|
|
2019-08-10 14:42:46 +02:00
|
|
|
# svg renderer - single object
|
2019-06-13 13:18:09 +02:00
|
|
|
#
|
2019-07-21 08:39:10 +02:00
|
|
|
|
|
|
|
SVG_PORT_SRC_S := $(SVG_DIR)/rsvg_port.c
|
|
|
|
SVG_PORT_OBJ_S := $(OBJ_DIR)/rsvg_port.$O
|
|
|
|
|
2019-07-21 17:20:10 +02:00
|
|
|
ifeq ($(COMPILE_SVG_PORT), yes)
|
2019-07-21 08:39:10 +02:00
|
|
|
$(SVG_PORT_OBJ_S): $(SVG_PORT_SRC_S) $(FREETYPE_H)
|
|
|
|
$(SVG_PORT_COMPILE) $T$(subst /,$(COMPILER_SEP), $@ $(SVG_PORT_SRC_S))
|
2019-07-21 17:20:10 +02:00
|
|
|
endif
|
2019-07-21 08:39:10 +02:00
|
|
|
|
2019-06-13 13:18:09 +02:00
|
|
|
$(SVG_DRV_OBJ_S): $(SVG_DRV_SRC_S) $(SVG_DRV_SRC) \
|
|
|
|
$(FREETYPE_H) $(SVG_DRV_H)
|
|
|
|
$(SVG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(SVG_DRV_SRC_S))
|
|
|
|
|
|
|
|
|
2019-08-10 14:42:46 +02:00
|
|
|
# svg renderer - multiple objects
|
2019-06-13 13:18:09 +02:00
|
|
|
#
|
|
|
|
$(OBJ_DIR)/%.$O: $(SVG_DIR)/%.c $(FREETYPE_H) $(SVG_DRV_H)
|
|
|
|
$(SVG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
|
|
|
|
|
|
|
|
|
|
|
|
# update main driver object lists
|
|
|
|
#
|
|
|
|
DRV_OBJS_S += $(SVG_DRV_OBJ_S)
|
|
|
|
DRV_OBJS_M += $(SVG_DRV_OBJ_M)
|
|
|
|
|
2019-07-21 17:20:10 +02:00
|
|
|
ifeq ($(COMPILE_SVG_PORT), yes)
|
2019-07-21 08:39:10 +02:00
|
|
|
DRV_OBJS_S += $(SVG_PORT_OBJ_S)
|
2019-07-21 17:20:10 +02:00
|
|
|
endif
|
2019-06-13 13:18:09 +02:00
|
|
|
|
|
|
|
# EOF
|