2009-02-26 17:14:29 +03:00
|
|
|
# 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)
|
|
|
|
|
2009-06-28 22:32:47 +04:00
|
|
|
# We make convert_image depend on fb_bitmap.h so that if we change
|
2009-02-26 17:14:29 +03:00
|
|
|
# that header, we get new images built just in case.
|
2009-06-28 22:32:47 +04:00
|
|
|
$(TOOLROOT)/convert_image: $(TOOLROOT)/created framebuffer/convert_image.c framebuffer/bitmap.h
|
2009-02-26 17:14:29 +03:00
|
|
|
$(VQ)echo " HOST CC: $@"
|
2009-06-28 22:32:47 +04:00
|
|
|
$(Q)$(HOST_CC) -o $@ framebuffer/convert_image.c -lpng
|
2009-02-26 17:14:29 +03:00
|
|
|
|
|
|
|
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
|
2009-03-23 02:11:38 +03:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-03-11 00:45:54 +03:00
|
|
|
FB_IMAGE_scrolll := framebuffer/res/icons/scrolll.png
|
|
|
|
FB_IMAGE_scrollr := framebuffer/res/icons/scrollr.png
|
2009-03-22 17:34:56 +03:00
|
|
|
FB_IMAGE_scrollu := framebuffer/res/icons/scrollu.png
|
|
|
|
FB_IMAGE_scrolld := framebuffer/res/icons/scrolld.png
|
2009-03-11 00:45:54 +03:00
|
|
|
|
2009-02-26 17:14:29 +03:00
|
|
|
|
|
|
|
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
|
2009-06-29 18:18:41 +04:00
|
|
|
FB_IMAGE_menu_image := framebuffer/res/pointers/menu.png
|
2009-07-14 20:18:35 +04:00
|
|
|
FB_IMAGE_progress_image := framebuffer/res/pointers/progress.png
|
2009-02-26 17:14:29 +03:00
|
|
|
|
2009-03-11 00:45:54 +03:00
|
|
|
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
|
|
|
|
|
2009-02-26 17:14:29 +03:00
|
|
|
# 1: input file
|
|
|
|
# 2: output file
|
|
|
|
# 3: bitmap name
|
|
|
|
define convert_image
|
|
|
|
|
|
|
|
S_IMAGES += $(2)
|
|
|
|
|
2009-06-28 22:32:47 +04:00
|
|
|
$(2): $(1) $(TOOLROOT)/convert_image
|
|
|
|
$(Q)$(TOOLROOT)/convert_image $(1) $(2) $(3)
|
2009-02-26 17:14:29 +03:00
|
|
|
|
|
|
|
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
|