[OpenJDK 2D-Dev] RFR: Allow using a system-installed lcms2

Omair Majid omajid at redhat.com
Sat Mar 22 19:11:33 UTC 2014


* Magnus Ihse Bursie <magnus.ihse.bursie at oracle.com> [2014-03-21 20:04]:
> On 2014-03-21 18:27, Omair Majid wrote:
> >* Andrew Hughes <gnu.andrew at redhat.com> [2014-03-21 13:25]:
> >>Why the huge duplication in make/lib/Awt2dLibraries.gmk?
> >I couldn't find a way to make an argument conditional (the
> >'INCLUDE_FILES := LCMS.c,' bit) inside the $(call ...) block.
> 
> The typical way to solve that is to assign to a variable, e.g.
> 
> ifeq ($(USE_EXTERNAL_LCMS), true)
>   # If we're using an external library, we'll just need the wrapper part.
>   # By including it explicitely, all other files will be excluded.
>   BUILD_LIBLCMS_INCLUDE_FILES := LCMS.c
> else
>   BUILD_LIBLCMS_INCLUDE_FILES :=
> endif
> 
> and then using
>     INCLUDE_FILES := $(BUILD_LIBLCMS_INCLUDE_FILES), \
> inside the build declaration.

Thanks. I wasn't sure how an empty value might be processed.

Updated webrev:
http://cr.openjdk.java.net/~omajid/webrevs/system-lcms/02/
http://cr.openjdk.java.net/~omajid/webrevs/system-lcms/02-jdk/

Thanks,
Omair

-- 
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681



More information about the build-dev mailing list