erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 1 | # |
simonis | 57366f6 | 2013-11-08 18:17:06 +0100 | [diff] [blame] | 2 | # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 4 | # |
| 5 | # This code is free software; you can redistribute it and/or modify it |
| 6 | # under the terms of the GNU General Public License version 2 only, as |
| 7 | # published by the Free Software Foundation. Oracle designates this |
| 8 | # particular file as subject to the "Classpath" exception as provided |
| 9 | # by Oracle in the LICENSE file that accompanied this code. |
| 10 | # |
| 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
| 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 14 | # version 2 for more details (a copy is included in the LICENSE file that |
| 15 | # accompanied this code). |
| 16 | # |
| 17 | # You should have received a copy of the GNU General Public License version |
| 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
| 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | # |
| 21 | # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
| 22 | # or visit www.oracle.com if you need additional information or have any |
| 23 | # questions. |
| 24 | # |
| 25 | |
| 26 | GENDATA_FONT_CONFIG_DST := $(JDK_OUTPUTDIR)/lib |
| 27 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 28 | ifeq ($(OPENJDK_TARGET_OS), windows) |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 29 | GENDATA_FONT_CONFIG_SRC_DIR := $(JDK_TOPDIR)/src/windows/classes/sun/awt/windows |
| 30 | GENDATA_FONT_CONFIG_SRC_FILES := fontconfig.properties |
| 31 | GENDATA_FONT_CONFIG_SRC_PREFIX := |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 32 | endif |
| 33 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 34 | ifeq ($(OPENJDK_TARGET_OS), linux) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 35 | GENDATA_FONT_CONFIG_SRC_PREFIX := linux. |
| 36 | ifdef OPENJDK |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 37 | GENDATA_FONT_CONFIG_SRC_DIR := \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 38 | $(JDK_TOPDIR)/src/solaris/classes/sun/awt/fontconfigs |
andrew | cce1171 | 2013-05-30 16:50:31 +0100 | [diff] [blame] | 39 | # This is placeholder for possible fonconfig files which may |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 40 | # useful for some highly specialized Linux distributions |
Alexey Ushakov | 18f52ca | 2016-10-05 15:29:21 +0300 | [diff] [blame] | 41 | GENDATA_FONT_CONFIG_SRC_FILES := fontconfig.properties |
| 42 | GENDATA_FONT_CONFIG_SRC_PREFIX := linux. |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 43 | else |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 44 | GENDATA_FONT_CONFIG_SRC_DIR := \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 45 | $(JDK_TOPDIR)/src/closed/solaris/classes/sun/awt/fontconfigs |
| 46 | GENDATA_FONT_CONFIG_SRC_FILES := \ |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 47 | fontconfig.properties \ |
| 48 | fontconfig.RedHat.5.properties \ |
| 49 | fontconfig.RedHat.6.properties \ |
| 50 | fontconfig.Turbo.properties \ |
| 51 | fontconfig.SuSE.10.properties \ |
| 52 | fontconfig.SuSE.11.properties |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 53 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 54 | endif |
| 55 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 56 | ifeq ($(OPENJDK_TARGET_OS), solaris) |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 57 | GENDATA_FONT_CONFIG_SRC_DIR := \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 58 | $(JDK_TOPDIR)/src/solaris/classes/sun/awt/fontconfigs |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 59 | GENDATA_FONT_CONFIG_SRC_FILES := fontconfig.properties |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 60 | GENDATA_FONT_CONFIG_SRC_PREFIX := solaris. |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 61 | endif |
| 62 | |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 63 | ifeq ($(OPENJDK_TARGET_OS), macosx) |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 64 | GENDATA_FONT_CONFIG_SRC_DIR := \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 65 | $(JDK_TOPDIR)/src/macosx/classes/sun/awt/fontconfigs |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 66 | GENDATA_FONT_CONFIG_SRC_FILES := fontconfig.properties |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 67 | GENDATA_FONT_CONFIG_SRC_PREFIX := macosx. |
| 68 | endif |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 69 | |
simonis | 1321a6c | 2013-09-17 14:48:14 +0200 | [diff] [blame] | 70 | ifeq ($(OPENJDK_TARGET_OS), aix) |
| 71 | GENDATA_FONT_CONFIG_SRC_DIR := \ |
simonis | 57366f6 | 2013-11-08 18:17:06 +0100 | [diff] [blame] | 72 | $(JDK_TOPDIR)/src/aix/classes/sun/awt/fontconfigs |
simonis | 1321a6c | 2013-09-17 14:48:14 +0200 | [diff] [blame] | 73 | GENDATA_FONT_CONFIG_SRC_FILES := fontconfig.properties |
| 74 | GENDATA_FONT_CONFIG_SRC_PREFIX := aix. |
| 75 | endif |
| 76 | |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 77 | ### |
| 78 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 79 | $(GENDATA_FONT_CONFIG_DST)/%.src: \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 80 | $(GENDATA_FONT_CONFIG_SRC_DIR)/$(GENDATA_FONT_CONFIG_SRC_PREFIX)% |
erikj | 10d96fb | 2013-04-05 09:39:10 +0200 | [diff] [blame] | 81 | $(call install-file) |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 82 | |
ihse | a29e622 | 2013-10-10 15:06:21 +0200 | [diff] [blame] | 83 | $(GENDATA_FONT_CONFIG_DST)/%.bfc: \ |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 84 | $(GENDATA_FONT_CONFIG_SRC_DIR)/$(GENDATA_FONT_CONFIG_SRC_PREFIX)%.properties |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 85 | $(MKDIR) -p $(@D) |
ohair | 46fcac9 | 2012-09-18 11:29:24 -0700 | [diff] [blame] | 86 | $(RM) $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 87 | $(TOOL_COMPILEFONTCONFIG) $< $@ |
erikj | af85fc4 | 2012-07-03 16:10:44 -0700 | [diff] [blame] | 88 | $(CHMOD) 444 $@ |
erikj | e78df74 | 2012-06-07 20:40:50 -0700 | [diff] [blame] | 89 | |
| 90 | ### |
| 91 | |
| 92 | GENDATA_FONT_CONFIGS := $(GENDATA_FONT_CONFIG_SRC_FILES:%=$(GENDATA_FONT_CONFIG_DST)/%.src) |
| 93 | GENDATA_BFONT_CONFIGS := $(GENDATA_FONT_CONFIG_SRC_FILES:%.properties=$(GENDATA_FONT_CONFIG_DST)/%.bfc) |
| 94 | |
| 95 | GENDATA_FONT_CONFIG := $(GENDATA_FONT_CONFIGS) $(GENDATA_BFONT_CONFIGS) |
| 96 | |
| 97 | ### |