mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-30 18:23:08 +03:00
9ec94e4dcf
svn path=/trunk/netsurf/; revision=8527
68 lines
2.4 KiB
Makefile
68 lines
2.4 KiB
Makefile
# Makefile for NetSurf's resources
|
|
#
|
|
# Copyright 2009 Daniel Silverstone <dsilvers@netsurf-browser.org>
|
|
#
|
|
#
|
|
# This file provides the rules and setup for built-in resources for
|
|
# the NetSurf browser binary.
|
|
|
|
ifeq ($(TARGET),framebuffer)
|
|
|
|
# We make convert_image depend on fb_bitmap.h so that if we change
|
|
# that header, we get new images built just in case.
|
|
$(TOOLROOT)/convert_image: $(TOOLROOT)/created framebuffer/convert_image.c framebuffer/bitmap.h
|
|
$(VQ)echo " HOST CC: $@"
|
|
$(Q)$(HOST_CC) -o $@ framebuffer/convert_image.c -lpng
|
|
|
|
FB_IMAGE_left_arrow := framebuffer/res/icons/back.png
|
|
FB_IMAGE_right_arrow := framebuffer/res/icons/forward.png
|
|
FB_IMAGE_reload := framebuffer/res/icons/reload.png
|
|
FB_IMAGE_stop_image := framebuffer/res/icons/stop.png
|
|
|
|
FB_IMAGE_left_arrow_g := framebuffer/res/icons/back_g.png
|
|
FB_IMAGE_right_arrow_g := framebuffer/res/icons/forward_g.png
|
|
FB_IMAGE_reload_g := framebuffer/res/icons/reload_g.png
|
|
FB_IMAGE_stop_image_g := framebuffer/res/icons/stop_g.png
|
|
|
|
FB_IMAGE_scrolll := framebuffer/res/icons/scrolll.png
|
|
FB_IMAGE_scrollr := framebuffer/res/icons/scrollr.png
|
|
FB_IMAGE_scrollu := framebuffer/res/icons/scrollu.png
|
|
FB_IMAGE_scrolld := framebuffer/res/icons/scrolld.png
|
|
|
|
|
|
FB_IMAGE_pointer_image := framebuffer/res/pointers/default.png
|
|
FB_IMAGE_hand_image := framebuffer/res/pointers/point.png
|
|
FB_IMAGE_caret_image := framebuffer/res/pointers/caret.png
|
|
FB_IMAGE_menu_image := framebuffer/res/pointers/menu.png
|
|
FB_IMAGE_progress_image := framebuffer/res/pointers/progress.png
|
|
|
|
FB_IMAGE_throbber0 := framebuffer/res/throbber/throbber0.png
|
|
FB_IMAGE_throbber1 := framebuffer/res/throbber/throbber1.png
|
|
FB_IMAGE_throbber2 := framebuffer/res/throbber/throbber2.png
|
|
FB_IMAGE_throbber3 := framebuffer/res/throbber/throbber3.png
|
|
FB_IMAGE_throbber4 := framebuffer/res/throbber/throbber4.png
|
|
FB_IMAGE_throbber5 := framebuffer/res/throbber/throbber5.png
|
|
FB_IMAGE_throbber6 := framebuffer/res/throbber/throbber6.png
|
|
FB_IMAGE_throbber7 := framebuffer/res/throbber/throbber7.png
|
|
FB_IMAGE_throbber8 := framebuffer/res/throbber/throbber8.png
|
|
|
|
# 1: input file
|
|
# 2: output file
|
|
# 3: bitmap name
|
|
define convert_image
|
|
|
|
S_IMAGES += $(2)
|
|
|
|
$(2): $(1) $(TOOLROOT)/convert_image
|
|
$(Q)$(TOOLROOT)/convert_image $(1) $(2) $(3)
|
|
|
|
endef
|
|
|
|
S_IMAGES :=
|
|
|
|
$(eval $(foreach V,$(filter FB_IMAGE_%,$(.VARIABLES)),$(call convert_image,$($(V)),$(OBJROOT)/$(patsubst FB_IMAGE_%,%,$(V)).c,$(patsubst FB_IMAGE_%,%,$(V)))))
|
|
|
|
|
|
|
|
# End of framebuffer resource definitions
|
|
endif |