From cb0bf68aa475ddb96b0ecc3ac3676ad9f5598b59 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 13 Apr 2014 20:01:18 +0000 Subject: Add Windows icon capability, centralize make rule for link of programs git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2182 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- buildtools/configure.pl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'buildtools') diff --git a/buildtools/configure.pl b/buildtools/configure.pl index 056b705d..44493ca1 100755 --- a/buildtools/configure.pl +++ b/buildtools/configure.pl @@ -1048,6 +1048,19 @@ sub getSse($) { } +sub getIcon($$) { + + my ($platform, $wantIconR) = @_; + + if ($platform eq 'WINDOWS') { + print("Include an icon in each executable?\n"); + $$wantIconR = promptYesNo("y"); + } else { + $$wantIconR = $FALSE; + } +} + + # TODO: These should do test compiles to see if the headers are in the # default search path, both to create a default to offer and to issue a @@ -2082,6 +2095,8 @@ getSse(\my $wantSse); findProcessManagement(\my $dontHaveProcessMgmt); +getIcon($platform, \my $wantIcon); + #****************************************************************************** # # FIND THE PREREQUISITE LIBRARIES @@ -2370,6 +2385,9 @@ if ($platform eq "GNU") { if ($subplatform ne "cygwin") { push(@config_mk, "MSVCRT = Y\n"); } + if ($wantIcon) { + push(@config_mk, 'WINICON_OBJECT = $(BUILDDIR)/icon.netpbm.o'); + } } elsif ($platform eq "BEOS") { push(@config_mk, "LDSHLIB = -nostart\n"); } elsif ($platform eq "OPENBSD") { -- cgit 1.4.1