Changeset 87


Ignore:
Timestamp:
Aug 4, 2010, 10:36:04 PM (15 years ago)
Author:
dmik
Message:

jdk/src: Adopted jli.dll to OS/2.

Location:
trunk/openjdk/jdk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/make/java/jli/Makefile

    r2 r87  
    9797endif
    9898
     99ifeq ($(PLATFORM), os2)
     100
     101EXTRA_LIBS =
     102JAVALIB =
     103
     104# exports live in .def file
     105DEF_FILE = $(OBJDIR)/$(LIBRARY).def
     106$(DEF_FILE): $(MAKEFILE)
     107        @$(ECHO) 'EXPORTS \n \
     108  JLI_ParseManifest = _JLI_ParseManifest \n \
     109  JLI_JarUnpackFile = _JLI_JarUnpackFile \n \
     110  JLI_FreeManifest = _JLI_FreeManifest \n \
     111  JLI_ManifestIterate = _JLI_ManifestIterate \n \
     112  JLI_ExactVersionId = _JLI_ExactVersionId \n \
     113  JLI_PrefixVersionId = _JLI_PrefixVersionId \n \
     114  JLI_AcceptableRelease = _JLI_AcceptableRelease \n \
     115  JLI_ValidVersionString = _JLI_ValidVersionString \n \
     116  JLI_WildcardExpandClasspath = _JLI_WildcardExpandClasspath \n \
     117  JLI_MemAlloc = _JLI_MemAlloc \n \
     118  JLI_MemRealloc = _JLI_MemRealloc \n \
     119  JLI_StringDup = _JLI_StringDup \n \
     120  JLI_MemFree = _JLI_MemFree \n \
     121' > $@
     122
     123clean::
     124        -$(RM) $(DEF_FILE)
     125
     126endif
     127
    99128OTHER_INCLUDES += -I$(LAUNCHER_SHARE_SRC)
    100129OTHER_INCLUDES += -I$(LAUNCHER_PLATFORM_SRC)
     
    117146# the build process.  The import library is built by the standard rules
    118147# in Library.gmk.  The additional rules which follow build the standard
    119 # library.
     148# library.  The same thing should be done on OS/2.
    120149#
    121 ifeq ($(PLATFORM), windows)
     150ifeq ($(filter-out windows os2, $(PLATFORM)),)
    122151
    123152STATIC_LIBRARY_DIR = $(OBJDIR)/static
     
    131160$(STATIC_LIBRARY): $(STATIC_LIBRARY_DIR)
    132161        @$(prep-target)
     162ifeq ($(PLATFORM), windows)
    133163        $(LIBEXE) -nologo -out:$@ $(FILES_o)
     164else
     165        $(AR) r $@ $(FILES_o)
     166endif
    134167
    135168library:: $(STATIC_LIBRARY)
  • trunk/openjdk/jdk/src/share/bin/parse_manifest.c

    r2 r87  
    3535 * POSIX says it should be?
    3636 */
    37 #ifdef _WIN32
     37#if defined(_WIN32)
    3838#include <windows.h>
    3939#include <io.h>
     40#elif defined(__WIN32OS2__)
     41#include <windows.h>
     42#ifdef __EMX__
     43#include <unistd.h>
     44#include <strings.h>
     45#endif
    4046#else   /* Unix */
    4147#include <unistd.h>
  • trunk/openjdk/jdk/src/share/bin/wildcard.c

    r2 r87  
    9494#include "jli_util.h"
    9595
    96 #ifdef _WIN32
     96#if defined(_WIN32)
    9797#include <windows.h>
     98#elif defined(__WIN32OS2__)
     99#include <windows.h>
     100#ifdef __EMX__
     101#include <unistd.h>
     102#include <dirent.h>
     103#endif
    98104#else /* Unix */
    99105#include <unistd.h>
Note: See TracChangeset for help on using the changeset viewer.