mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-23 14:59:47 +03:00
5bebf2f2fc
svn path=/trunk/netsurf/; revision=10605
80 lines
2.8 KiB
Makefile
80 lines
2.8 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_history_image := framebuffer/res/icons/history.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_history_image_g := framebuffer/res/icons/history_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
|
|
|
|
ifeq ($(TARGET),windows)
|
|
|
|
$(OBJROOT)/windows_resource.o: windows/res/resource.rc
|
|
$(VQ)echo " WINDRES: compiling windows resources"
|
|
${Q}$(MINGW_PREFIX)windres $< -O coff -o $@
|
|
|
|
S_RESOURCES := windows_resource.o
|
|
|
|
# End of windows resource definitions
|
|
endif
|