duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 1 | # |
art | 433d273 | 2009-02-11 17:07:06 +0300 | [diff] [blame] | 2 | # Copyright 1995-2009 Sun Microsystems, Inc. All Rights Reserved. |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [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. Sun designates this |
| 8 | # particular file as subject to the "Classpath" exception as provided |
| 9 | # by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 22 | # CA 95054 USA or visit www.sun.com if you need additional information or |
| 23 | # have any questions. |
| 24 | # |
| 25 | |
| 26 | BUILDDIR = ../.. |
mchung | 3baa2d6 | 2010-01-07 08:14:48 -0800 | [diff] [blame^] | 27 | MODULE = awt |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 28 | PACKAGE = sun.awt |
| 29 | LIBRARY = awt |
| 30 | PRODUCT = sun |
| 31 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 32 | # Tell Defs.gmk that VIS is needed |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 33 | VIS_NEEDED=true |
| 34 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 35 | # Use highest optimization level |
ohair | 850fb25 | 2008-07-30 19:40:57 -0700 | [diff] [blame] | 36 | OPTMIZATION_LEVEL = HIGHEST |
| 37 | |
| 38 | include $(BUILDDIR)/common/Defs.gmk |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 39 | |
| 40 | OTHER_CFLAGS += -D__MEDIALIB_OLD_NAMES -D__USE_J2D_NAMES |
| 41 | |
| 42 | # |
| 43 | # Files |
| 44 | # |
| 45 | |
| 46 | # |
| 47 | # Include all Java source files in sun/awt and sun/java2d, except for: |
| 48 | # sun/awt/resources handled by java/awt/Makefile |
| 49 | # sun/java2d/pisces handled by sun/pisces/Makefile |
| 50 | # |
anthony | 421dab8 | 2009-02-04 11:58:13 +0300 | [diff] [blame] | 51 | AUTO_FILES_JAVA_DIRS = sun/awt sun/java2d com/sun/awt |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 52 | AUTO_JAVA_PRUNE = resources pisces |
| 53 | |
| 54 | ifeq ($(PLATFORM), windows) |
| 55 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
| 56 | |
| 57 | # |
| 58 | # Files |
| 59 | # |
| 60 | include FILES_c_windows.gmk |
| 61 | include FILES_export_windows.gmk |
| 62 | |
| 63 | # |
| 64 | # Prune files that are currently unused on Windows (but still used on |
| 65 | # Solaris/Linux). |
| 66 | # |
| 67 | AUTO_JAVA_PRUNE += RemoteOffScreenImage.java |
| 68 | |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 69 | OTHER_CFLAGS += $(GX_OPTION) -DMLIB_NO_LIBSUNMATH -DUNICODE -D_UNICODE |
| 70 | OTHER_CXXFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE |
| 71 | |
| 72 | ifeq ($(ARCH_DATA_MODEL), 64) |
| 73 | OTHER_CFLAGS += -DMLIB_OS64BIT |
| 74 | endif |
| 75 | |
| 76 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
| 77 | endif # PLATFORM |
| 78 | |
| 79 | ifneq ($(PLATFORM), windows) |
| 80 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
| 81 | |
| 82 | # |
| 83 | # Files |
| 84 | # |
| 85 | include FILES_c_unix.gmk |
| 86 | include FILES_export_unix.gmk |
| 87 | # |
| 88 | # Prune the sun/awt/X11 subdirectory, which is handled by sun/xawt/Makefile. |
| 89 | # Also prune files that are currently unused on Solaris/Linux (but still |
| 90 | # used on Windows). |
| 91 | # |
| 92 | AUTO_JAVA_PRUNE += X11 AWTCharset.java |
| 93 | |
| 94 | ifeq ($(PLATFORM), solaris) |
| 95 | FILES_c = $(FILES_2D_c) |
| 96 | FILES_c += awt_LoadLibrary.c |
| 97 | OTHER_LDLIBS = $(JVMLIB) $(LIBM) -ldl |
| 98 | ifeq ($(CC_VER), 5.8) |
| 99 | ifndef REMOVE_ALL_WORKAROUNDS |
| 100 | ifeq ($(ARCH_FAMILY), i586) |
| 101 | # If on Solaris 11 (or dlfcn.h has unknown_control_flow pragmas in it) |
| 102 | # we trigger a SS11 bug that causes the compiler to crash (bug 6343678) |
| 103 | # Here we check to see if we need this workaround and change the opt |
| 104 | # settings for this one file. |
| 105 | USE_WORKAROUND:=$(shell $(GREP) unknown_control_flow /usr/include/dlfcn.h) |
| 106 | ifneq ($(USE_WORKAROUND),) |
| 107 | ifeq ($(FASTDEBUG), true) |
| 108 | CFLAGS_DBG/awt_Mlib.o = -xO0 \ |
| 109 | $(warning "WARNING: Using workaround for SS11 bug 6343678, on $@") |
| 110 | endif |
| 111 | # Compiler bug 6343678 need to prevent a SEGV in the compiler |
| 112 | CFLAGS_OPT/awt_Mlib.o = -g \ |
| 113 | $(warning "WARNING: Using workaround for SS11 bug 6343678, on $@") |
| 114 | endif |
| 115 | endif |
| 116 | endif |
| 117 | endif |
| 118 | endif |
| 119 | |
| 120 | ifeq ($(PLATFORM), linux) |
| 121 | FILES_c = $(FILES_2D_c) |
| 122 | FILES_c += awt_LoadLibrary.c |
| 123 | OTHER_CFLAGS += -DMLIB_NO_LIBSUNMATH |
| 124 | OTHER_LDLIBS = $(JVMLIB) $(LIBM) -ldl |
| 125 | endif |
| 126 | |
| 127 | FILES_c += initIDs.c |
| 128 | |
| 129 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
| 130 | endif # PLATFORM |
| 131 | |
| 132 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS-SPARC |
| 133 | # solaris-sparc and solaris-sparcv9 both build 'vis' |
| 134 | ifeq ("$(PLATFORM)-$(ARCH_FAMILY)", "solaris-sparc") |
| 135 | FILES_c += $(FILES_2D_vis) |
| 136 | ASFLAGS += -P |
| 137 | FILES_s += mlib_v_ImageCopy_blk.s |
| 138 | INLINE_VIS = $(PLATFORM_SRC)/native/sun/awt/medialib/vis_$(ARCH_DATA_MODEL).il |
| 139 | CFLAGS_sparcv9 = -DMLIB_OS64BIT |
| 140 | |
| 141 | CFLAGS += $(CFLAGS_$(ARCH)) -DMLIB_ADD_SUFF $(INLINE_VIS) \ |
| 142 | -I$(SHARE_SRC)/native/sun/awt/medialib \ |
| 143 | -I$(PLATFORM_SRC)/native/sun/awt/medialib \ |
| 144 | -I$(PLATFORM_SRC)/native/sun/java2d/loops |
| 145 | |
| 146 | vpath %.c $(PLATFORM_SRC)/native/sun/java2d/loops |
| 147 | vpath %.c $(SHARE_SRC)/native/sun/awt/medialib |
| 148 | vpath %.c $(PLATFORM_SRC)/native/sun/awt/medialib |
| 149 | vpath %.s $(PLATFORM_SRC)/native/sun/awt/medialib |
| 150 | |
| 151 | else |
| 152 | FILES_c += MapAccelFunc.c |
| 153 | endif |
| 154 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS-SPARC |
| 155 | |
| 156 | # |
| 157 | # Resources |
| 158 | # |
| 159 | LOCALE_SET_DEFINITION = jre |
| 160 | ifeq ($(PLATFORM), windows) |
| 161 | RESOURCE_BUNDLES_COMPILED_PROPERTIES += \ |
| 162 | sun/awt/windows/awtLocalization.properties |
| 163 | endif |
| 164 | |
| 165 | # |
| 166 | # Rules |
| 167 | # |
| 168 | ifeq ($(PLATFORM), linux) |
| 169 | FILES_m = mapfile-vers-linux |
| 170 | # libawt.so on Linux is statically linked with Motif and contains all the |
| 171 | # Xm symbols. Mapfile is disabled so the symbols will remain public. |
| 172 | LDNOMAP=true |
| 173 | endif |
| 174 | |
| 175 | include $(BUILDDIR)/common/Mapfile-vers.gmk |
| 176 | include $(BUILDDIR)/common/Library.gmk |
| 177 | |
| 178 | build: fontconfigs |
| 179 | |
| 180 | |
| 181 | ifeq ($(PLATFORM), windows) |
| 182 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
| 183 | # |
| 184 | # Additional dependencies. |
| 185 | # |
| 186 | # If make.depend is not working correctly, then it can be omitted |
| 187 | # if you always build from a clean workspace. |
| 188 | |
| 189 | include make.depend |
| 190 | |
| 191 | # required additional rules: |
| 192 | |
| 193 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
| 194 | endif # PLATFORM |
| 195 | |
| 196 | ifneq ($(PLATFORM), windows) |
| 197 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
| 198 | |
| 199 | ifndef OPENJDK |
| 200 | build: dgalibs |
| 201 | endif |
| 202 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
| 203 | endif # PLATFORM |
| 204 | |
| 205 | clobber clean:: java2d.clean fontconfigs.clean |
| 206 | |
| 207 | ifndef OPENJDK |
| 208 | clobber clean:: dgalib.clean |
| 209 | endif |
| 210 | |
| 211 | java2d.clean: |
| 212 | $(RM) -r $(CLASSBINDIR)/sun/java2d .classes.* |
| 213 | |
| 214 | # |
| 215 | # Add to the ambient vpath to pick up files in subdirectories |
| 216 | # |
| 217 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image |
| 218 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/gif |
| 219 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/cvutils |
| 220 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/shell |
| 221 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/medialib |
| 222 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/debug |
art | 433d273 | 2009-02-11 17:07:06 +0300 | [diff] [blame] | 223 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/utility |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 224 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d |
| 225 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops |
| 226 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe |
| 227 | vpath %.cpp $(SHARE_SRC)/native/$(PKGDIR)/image |
| 228 | ifeq ($(PLATFORM), windows) |
| 229 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
| 230 | vpath %.cpp $(PLATFORM_SRC)/native/sun/windows |
| 231 | vpath %.cpp $(PLATFORM_SRC)/native/$(PKGDIR) |
| 232 | vpath %.cpp $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/windows |
| 233 | vpath %.cpp $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/d3d |
| 234 | vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl |
| 235 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl |
| 236 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../font |
| 237 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
| 238 | endif # PLATFORM |
| 239 | |
| 240 | ifeq ($(PLATFORM), linux) |
| 241 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX |
| 242 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl |
| 243 | vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl |
| 244 | vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 |
| 245 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/../font |
| 246 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX |
| 247 | endif # PLATFORM |
| 248 | |
| 249 | ifeq ($(PLATFORM), windows) |
| 250 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
| 251 | OTHER_LDLIBS = kernel32.lib user32.lib gdi32.lib winspool.lib \ |
art | 591952e | 2008-08-26 13:09:34 +0400 | [diff] [blame] | 252 | imm32.lib ole32.lib uuid.lib shell32.lib \ |
| 253 | comdlg32.lib winmm.lib comctl32.lib delayimp.lib \ |
| 254 | $(JVMLIB) \ |
| 255 | /DELAYLOAD:user32.dll /DELAYLOAD:gdi32.dll \ |
| 256 | /DELAYLOAD:shell32.dll /DELAYLOAD:winmm.dll \ |
| 257 | /DELAYLOAD:winspool.drv /DELAYLOAD:imm32.dll \ |
| 258 | /DELAYLOAD:ole32.dll /DELAYLOAD:comdlg32.dll \ |
| 259 | /DELAYLOAD:comctl32.dll |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 260 | |
| 261 | clean:: awt.clean |
| 262 | |
| 263 | awt.clean: |
| 264 | $(RM) $(TEMPDIR)/awt.ico |
| 265 | $(RM) $(TEMPDIR)/awt.res |
| 266 | $(RM) $(TEMPDIR)/hand.cur |
| 267 | $(RM) $(TEMPDIR)/check.bmp |
| 268 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
| 269 | endif # PLATFORM |
| 270 | |
| 271 | ifneq ($(PLATFORM), windows) |
| 272 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
| 273 | |
| 274 | LIBXTST = -lXtst |
| 275 | |
| 276 | # Use -lXmu for EditRes support |
| 277 | LIBXMU_DBG = -lXmu |
| 278 | LIBXMU_OPT = |
| 279 | LIBXMU = $(LIBXMU_$(VARIANT)) |
| 280 | |
| 281 | # |
| 282 | # Extra C flags. |
| 283 | # |
| 284 | |
| 285 | |
| 286 | ifndef OPENJDK |
| 287 | |
| 288 | # |
| 289 | # Solaris X11 Direct Graphics Access library |
| 290 | # |
| 291 | |
| 292 | _DGALIBS_sparc = \ |
| 293 | libxinerama.so \ |
| 294 | libjdgaSUNWcg6.so \ |
| 295 | libjdgaSUNWffb.so \ |
| 296 | libjdgaSUNWm64.so \ |
| 297 | libjdgaSUNWafb.so |
| 298 | |
| 299 | _DGALIBS_sparcv9 = \ |
| 300 | libxinerama.so \ |
| 301 | libjdgaSUNWcg6.so \ |
| 302 | libjdgaSUNWffb.so \ |
| 303 | libjdgaSUNWm64.so \ |
| 304 | libjdgaSUNWafb.so |
| 305 | |
| 306 | _DGALIBS_i586 = # no i586 library yet |
| 307 | |
| 308 | _DGALIBS_amd64 = # no amd64 library yet |
| 309 | |
| 310 | DGALIBS = $(_DGALIBS_$(ARCH):%=$(LIBDIR)/$(LIBARCH)/%) |
| 311 | |
| 312 | dgalibs: $(DGALIBS) |
| 313 | |
| 314 | $(LIBDIR)/$(LIBARCH)/libxinerama.so: $(CLOSED_SRC)/solaris/lib/$(ARCH)/libxinerama.so |
| 315 | $(install-file) |
mchung | 3baa2d6 | 2010-01-07 08:14:48 -0800 | [diff] [blame^] | 316 | $(call chmod-file, a+x) |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 317 | |
| 318 | $(LIBDIR)/$(LIBARCH)/libjdgaSUNW%.so: $(CLOSED_SRC)/solaris/lib/$(ARCH)/libjdgaSUNW%.so |
| 319 | $(install-file) |
mchung | 3baa2d6 | 2010-01-07 08:14:48 -0800 | [diff] [blame^] | 320 | $(call chmod-file, a+x) |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 321 | |
| 322 | $(LIBDIR)/$(LIBARCH)/libjdgaSUNWafb.so: $(LIBDIR)/$(LIBARCH)/libjdgaSUNWffb.so |
| 323 | $(prep-target) |
mchung | 3baa2d6 | 2010-01-07 08:14:48 -0800 | [diff] [blame^] | 324 | $(call install-sym-link, libjdgaSUNWffb.so) |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 325 | |
| 326 | clean:: dgalib.clean |
| 327 | |
| 328 | dgalib.clean: |
| 329 | $(RM) $(LIBDIR)/$(LIBARCH)/libjdgaSUNW* $(LIBDIR)/$(LIBARCH)/libxinerama.so |
| 330 | endif |
| 331 | |
| 332 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
| 333 | endif # PLATFORM |
| 334 | |
| 335 | # |
| 336 | # Font configs |
| 337 | # |
| 338 | |
| 339 | ifeq ($(PLATFORM), windows) |
| 340 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
| 341 | |
| 342 | FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/windows |
| 343 | _FONTCONFIGS = \ |
prr | 943cc3b | 2008-12-18 11:25:09 -0800 | [diff] [blame] | 344 | fontconfig.properties |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 345 | |
| 346 | FONTCONFIGS_SRC_PREFIX = |
| 347 | |
| 348 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
| 349 | endif # PLATFORM |
| 350 | |
| 351 | ifeq ($(PLATFORM), linux) |
| 352 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv LINUX |
| 353 | ifdef OPENJDK |
| 354 | |
| 355 | FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/fontconfigs |
| 356 | _FONTCONFIGS = \ |
| 357 | fontconfig.properties \ |
| 358 | fontconfig.SuSE.properties \ |
| 359 | fontconfig.Ubuntu.properties \ |
| 360 | fontconfig.Fedora.properties |
| 361 | else |
| 362 | |
| 363 | FONTCONFIGS_SRC = $(CLOSED_SRC)/solaris/classes/sun/awt/fontconfigs |
| 364 | _FONTCONFIGS = \ |
| 365 | fontconfig.properties \ |
| 366 | fontconfig.RedHat.properties \ |
| 367 | fontconfig.RedHat.2.1.properties \ |
| 368 | fontconfig.RedHat.3.properties \ |
| 369 | fontconfig.RedHat.4.properties \ |
| 370 | fontconfig.Sun.properties \ |
| 371 | fontconfig.Turbo.properties \ |
| 372 | fontconfig.SuSE.properties |
| 373 | endif |
| 374 | |
| 375 | FONTCONFIGS_SRC_PREFIX = $(PLATFORM). |
| 376 | |
| 377 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ LINUX |
| 378 | endif # PLATFORM |
| 379 | |
| 380 | ifeq ($(PLATFORM), solaris) |
| 381 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS |
| 382 | |
| 383 | FONTCONFIGS_SRC = $(PLATFORM_SRC)/classes/sun/awt/fontconfigs |
| 384 | _FONTCONFIGS = \ |
| 385 | fontconfig.properties \ |
| 386 | fontconfig.5.9.properties \ |
| 387 | fontconfig.5.8.properties |
| 388 | |
| 389 | FONTCONFIGS_SRC_PREFIX = $(PLATFORM). |
| 390 | |
| 391 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS |
| 392 | endif # PLATFORM |
| 393 | |
| 394 | FONTCONFIGS = $(_FONTCONFIGS:%=$(LIBDIR)/%.src) |
| 395 | BINARYFONTCONFIGS = $(_FONTCONFIGS:%.properties=$(LIBDIR)/%.bfc) |
| 396 | |
| 397 | fontconfigs: $(FONTCONFIGS) $(BINARYFONTCONFIGS) |
| 398 | |
| 399 | $(LIBDIR)/%.src: $(FONTCONFIGS_SRC)/$(FONTCONFIGS_SRC_PREFIX)% |
| 400 | $(install-file) |
| 401 | |
| 402 | COMPILEFONTCONFIG_JARFILE = $(BUILDTOOLJARDIR)/compilefontconfig.jar |
| 403 | |
| 404 | $(LIBDIR)/%.bfc: $(FONTCONFIGS_SRC)/$(FONTCONFIGS_SRC_PREFIX)%.properties \ |
| 405 | $(COMPILEFONTCONFIG_JARFILE) |
| 406 | $(prep-target) |
| 407 | $(BOOT_JAVA_CMD) -jar $(COMPILEFONTCONFIG_JARFILE) $< $@ |
mchung | 3baa2d6 | 2010-01-07 08:14:48 -0800 | [diff] [blame^] | 408 | $(install-module-file) |
| 409 | $(call chmod-file, 444) |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 410 | @$(java-vm-cleanup) |
| 411 | |
| 412 | fontconfigs.clean : |
| 413 | $(RM) $(FONTCONFIGS) |
| 414 | $(RM) $(BINARYFONTCONFIGS) |
| 415 | |
| 416 | ifeq ($(PLATFORM), windows) |
| 417 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv WINDOWS |
| 418 | OTHER_CFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE |
| 419 | |
| 420 | ifeq ($(MILESTONE), internal) |
| 421 | CPPFLAGS += -DINTERNAL_BUILD |
| 422 | endif |
| 423 | |
| 424 | # |
| 425 | # Useful variables that name parts of the src tree. |
| 426 | # |
| 427 | WINAWT_native = $(PLATFORM_SRC)/native/sun/windows |
| 428 | WINAWT_COMMON_native = $(PLATFORM_SRC)/native/sun/awt_common |
| 429 | |
| 430 | # FIXME: awt shouldn't have to see the VM's private headers. |
| 431 | # FIXME: if you re-order this list, the build breaks, possibly because |
| 432 | # of filename collision. Such a collision, if present, is pure |
| 433 | # evil. Need to investigate this. |
| 434 | |
| 435 | OTHER_INCLUDES += -I$(CLASSHDRDIR)/../../java/jvm \ |
| 436 | -I$(OBJDIR) \ |
| 437 | -I$(SHARE_SRC)/native/common \ |
| 438 | -I$(WINAWT_native) \ |
| 439 | -I$(DXSDK_INCLUDE_PATH) \ |
| 440 | -I$(SHARE_SRC)/native/sun/awt/image/cvutils \ |
| 441 | -I$(SHARE_SRC)/native/sun/awt/image \ |
| 442 | -I$(SHARE_SRC)/native/sun/java2d/loops \ |
| 443 | -I$(SHARE_SRC)/native/sun/java2d \ |
| 444 | -I$(PLATFORM_SRC)/native/sun/java2d \ |
| 445 | -I$(SHARE_SRC)/native/sun/java2d/opengl \ |
| 446 | -I$(PLATFORM_SRC)/native/sun/java2d/d3d \ |
| 447 | -I$(PLATFORM_SRC)/native/sun/java2d/opengl \ |
| 448 | -I$(PLATFORM_SRC)/native/sun/java2d/windows \ |
| 449 | -I$(SHARE_SRC)/native/sun/font \ |
| 450 | -I$(SHARE_SRC)/native/sun/java2d/pipe \ |
| 451 | -I$(SHARE_SRC)/native/sun/dc/path \ |
| 452 | -I$(SHARE_SRC)/native/sun/dc/doe \ |
| 453 | -I$(SHARE_SRC)/native/sun/awt/debug \ |
tdv | cf2e223 | 2008-07-18 10:48:44 -0700 | [diff] [blame] | 454 | -I$(PLATFORM_SRC)/native/sun/awt |
duke | 6e45e10 | 2007-12-01 00:00:00 +0000 | [diff] [blame] | 455 | # -I$(WINAWT_COMMON_native) |
| 456 | |
| 457 | # this is only required for compiling )/native/sun/awt/medialib/*.c files |
| 458 | # |
| 459 | OTHER_INCLUDES += -I$(SHARE_SRC)/native/sun/awt/medialib |
| 460 | |
| 461 | # |
| 462 | # .res file construction. |
| 463 | # |
| 464 | |
| 465 | ifdef OPENJDK |
| 466 | RC_FLAGS += -i "$(PLATFORM_SRC)/resource/icons" |
| 467 | else |
| 468 | RC_FLAGS += -i "$(CLOSED_SRC)/windows/native/sun/windows" |
| 469 | endif |
| 470 | VERSIONINFO_RESOURCE = $(WINAWT_native)/awt.rc |
| 471 | |
| 472 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ WINDOWS |
| 473 | endif # PLATFORM |
| 474 | |
| 475 | ifneq ($(PLATFORM), windows) |
| 476 | # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv SOLARIS/LINUX |
| 477 | |
| 478 | # |
| 479 | # Other extra flags needed for compiling. |
| 480 | # |
| 481 | |
| 482 | ifeq ($(PLATFORM), linux) |
| 483 | CPPFLAGS += -I$(OPENWIN_HOME)/include \ |
| 484 | -I$(OPENWIN_HOME)/include/X11/extensions \ |
| 485 | -I$(PLATFORM_SRC)/native/$(PKGDIR)/font |
| 486 | endif |
| 487 | CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/debug \ |
| 488 | -I$(SHARE_SRC)/native/$(PKGDIR)/../font \ |
| 489 | -I$(PLATFORM_SRC)/native/$(PKGDIR)/../font \ |
| 490 | -I$(SHARE_SRC)/native/$(PKGDIR)/image \ |
| 491 | -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \ |
| 492 | -I$(SHARE_SRC)/native/$(PKGDIR)/shell \ |
| 493 | -I$(SHARE_SRC)/native/$(PKGDIR)/medialib \ |
| 494 | -I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \ |
| 495 | -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d \ |
| 496 | -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d \ |
| 497 | -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \ |
| 498 | -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \ |
| 499 | -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \ |
| 500 | -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \ |
| 501 | -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \ |
| 502 | -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \ |
| 503 | -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \ |
| 504 | -I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \ |
| 505 | -I$(PLATFORM_SRC)/native/$(PKGDIR) \ |
| 506 | $(EVENT_MODEL) |
| 507 | |
| 508 | ifeq ($(PLATFORM), linux) |
| 509 | LDFLAGS += -L$(OPENWIN_LIB) |
| 510 | endif |
| 511 | |
| 512 | LDFLAGS += -L$(LIBDIR)/$(LIBARCH)/$(TSOBJDIR) \ |
| 513 | $(AWT_RUNPATH) |
| 514 | |
| 515 | # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SOLARIS/LINUX |
| 516 | endif # PLATFORM |
| 517 | |
| 518 | CLASSES.export += java.io.InputStream \ |
| 519 | java.lang.Integer \ |
| 520 | java.lang.ThreadGroup |
| 521 | |
| 522 | .PHONY: dgalibs dgalib.clean fontconfigs fontconfigs.clean |
| 523 | |