jdk/make/java/redist/fonts/Makefile
author mchung
Thu, 07 Jan 2010 08:14:48 -0800
changeset 4665 d14dc3d9e1fa
child 5506 202f599c92aa
permissions -rw-r--r--
6911737: Module build: generate modules with native libraries and any other files not in jar Summary: create modules under OUTPUTDIR/modules directory containing resources, native libraries Reviewed-by: alanb, ohair
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4665
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
     1
#
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
     2
# Copyright 2009 Sun Microsystems, Inc.  All Rights Reserved.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
     4
#
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
     7
# published by the Free Software Foundation.  Sun designates this
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
     9
# by Sun in the LICENSE file that accompanied this code.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    10
#
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    15
# accompanied this code).
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    16
#
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    20
#
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    21
# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    22
# CA 95054 USA or visit www.sun.com if you need additional information or
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    23
# have any questions.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    24
#
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    25
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    26
BUILDDIR = ../../..
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    27
MODULE   = font
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    28
PRODUCT  = java
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    29
include $(BUILDDIR)/common/Defs.gmk
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    30
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    31
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    32
#
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    33
# List of lucida font files that we redistribute.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    34
#
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    35
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    36
SHARED_FONTFILES =					\
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    37
	$(LIBDIR)/fonts/LucidaTypewriterRegular.ttf	\
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    38
	$(LIBDIR)/fonts/LucidaTypewriterBold.ttf        \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    39
	$(LIBDIR)/fonts/LucidaBrightRegular.ttf         \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    40
	$(LIBDIR)/fonts/LucidaBrightDemiBold.ttf        \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    41
	$(LIBDIR)/fonts/LucidaBrightItalic.ttf          \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    42
	$(LIBDIR)/fonts/LucidaBrightDemiItalic.ttf	\
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    43
	$(LIBDIR)/fonts/LucidaSansRegular.ttf       	\
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    44
	$(LIBDIR)/fonts/LucidaSansDemiBold.ttf       	\
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    45
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    46
ifeq ($(PLATFORM), linux)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    47
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    48
# The oblique versions of the font are derived from the base versions
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    49
# and since 2D can do this derivation on the fly at run time there is no
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    50
# need to redistribute the fonts. An exception to this is on Linux.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    51
# The reason is that the Lucidas are specified in the font.properties files
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    52
# on Linux, and so AWT/Motif components expect to be able to ask the Xserver
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    53
# for these oblique fonts, but the Xserver cannot do the same derivation as
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    54
# 2D can.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    55
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    56
OBLIQUE_FONTFILES =                                             \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    57
	$(LIBDIR)/oblique-fonts/LucidaTypewriterOblique.ttf     \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    58
	$(LIBDIR)/oblique-fonts/LucidaTypewriterBoldOblique.ttf \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    59
	$(LIBDIR)/oblique-fonts/LucidaSansOblique.ttf       	\
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    60
	$(LIBDIR)/oblique-fonts/LucidaSansDemiOblique.ttf       \
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    61
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    62
endif
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    63
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    64
ifndef OPENJDK
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    65
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    66
# Lucida font files are not included in the OpenJDK distribution.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    67
# Get names of font files
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    68
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    69
# Copy font files into OUTPUTDIR area
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    70
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    71
FONTFILES = $(SHARED_FONTFILES)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    72
FONTSDIR  = $(LIBDIR)/fonts
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    73
FONTSDIRFILE  = $(FONTSDIR)/fonts.dir
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    74
INTERNAL_IMPORT_LIST = $(FONTFILES) 
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    75
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    76
ifneq ($(PLATFORM), windows)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    77
  INTERNAL_IMPORT_LIST += $(FONTSDIRFILE)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    78
endif
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    79
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    80
$(LIBDIR)/fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/%.ttf
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    81
	$(install-file)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    82
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    83
$(FONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.fonts.dir
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    84
	$(install-file)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    85
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    86
ifeq ($(PLATFORM), linux)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    87
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    88
# The oblique fonts are only needed/wanted on Linux.
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    89
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    90
OBLFONTSDIR  = $(LIBDIR)/oblique-fonts
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    91
OBLFONTSDIRFILE	 = $(OBLFONTSDIR)/fonts.dir
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    92
INTERNAL_IMPORT_LIST += $(OBLIQUE_FONTFILES) $(OBLFONTSDIRFILE)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    93
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    94
$(LIBDIR)/oblique-fonts/%.ttf: $(CLOSED_SRC)/share/lib/fonts/oblique/%.ttf
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    95
	$(install-file)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    96
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    97
$(OBLFONTSDIRFILE): $(PLATFORM_SRC)/classes/sun/awt/motif/java.oblique-fonts.dir
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    98
	$(install-file)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
    99
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   100
endif # linux
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   101
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   102
all build : $(INTERNAL_IMPORT_LIST)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   103
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   104
clean clobber::
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   105
	$(RM) $(INTERNAL_IMPORT_LIST)
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   106
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   107
else 
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   108
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   109
all build clean clobber :
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   110
d14dc3d9e1fa 6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
diff changeset
   111
endif # !OPENJDK