peiyongz    2003/02/20 10:08:51

  Added:       c/src/xercesc/util/MsgLoaders/ICU/resources
                        res-file-list.txt Makefile.in
  Log:
  Bug#7077: build error message shared library for ICUMsgLoader
  
  Revision  Changes    Path
  1.1                  
xml-xerces/c/src/xercesc/util/MsgLoaders/ICU/resources/res-file-list.txt
  
  Index: res-file-list.txt
  ===================================================================
  XercesMessages_en_US.res
  
  
  1.1                  
xml-xerces/c/src/xercesc/util/MsgLoaders/ICU/resources/Makefile.in
  
  Index: Makefile.in
  ===================================================================
  # Copyright (c) 2001-2002 IBM, Inc. and others
  #
  # File
  #    icu/source/samples/ufortune/resources/Makefile
  #
  # Usage:
  #    See the instructions in the parent Makefile,
  #          icu/source/samples/ufortune/Makefile.
  #          This subproject builds the ICU resource files for ufortune.
  #          It is normally invoked from the parent directory,
  #            although the resources can be built from here.
  #
  #    Two ICU tools are run from this makefile:
  #      genrb    compiles a resource source file (.txt) into
  #               a binary .res file.
  #      pkgdata  combines all of the .res files into a single
  #               shared library that can then be linked with the
  #               main application.
  #
  #               pkgdata will recursively generate and run yet
  #               another makefile, which in turn runs two more
  #               icu tools.  gencmn combines the individual .res
  #               files, and genccode emits the data as C source
  #               code that can then be built into a .so
  #
  
  #
  PLATFORM = @platform@
  CC  = @cc@
  CXX = @cxx@
  GCC = @GCC@
  GXX = @GXX@
  CXXFLAGS = @cxxflags@
  CFLAGS = @cflags@
  PREFIX = @prefix@
  PREFIX_INCLUDE = @prefix_include@
  LDFLAGS = @ldflags@
  LIBS = @libs@
  OSVER = @osver@
  USELIBWWW = @uselibwww@
  MESSAGELOADER = @messageloader@
  TRANSCODER = @transcoder@
  THREADS = @threads@
  
  include ../../../../Makefile.incl
  
  ####################################################################
  # Load ICU information. You can copy this to other makefiles #######
  ####################################################################
  INVOKE=$(shell icu-config --invoke)
  GENRB=$(shell icu-config --invoke=genrb)
  GENRBOPT=--package-name $(RESNAME)
  PKGDATA=$(shell icu-config --invoke=pkgdata)
  PKGDATAOPTS=-v -d .
  
  ####################################################################
  ### Project independent things (common) 
  ### We depend on gmake for the bulk of the work 
  
  RMV=rm -rf
  
  # No conventional target - this dir is resources only.
  TARGET=
  CLEANFILES += *.mak *.[co] *.lst *.a *.$(SO) $(RESFILES) *.ao README*resources.txt
  
  RESMODE=dll
  
  # Resource shortname
  RESNAME=XercesMessages
  
  RESLDFLAGS=
  CHECK_VARS= ICU_DATA=$(RESDIR)
  
  # DLL and static modes are identical here
  RESLDFLAGS= -L$(RESDIR) -l$(RESNAME)
  RESCPPFLAGS=
  CHECK_VARS=
  
  # target file for resource bundle - this must be set, or 'make all' won't
  # build any resources.
  RESTARGET=lib$(RESNAME)$(SHLIBSUFFIX)
  
  # Resource files.  Add new ones for additional locales here.
  # keep in sync with the file RESLIST
  RESFILES=$(RESNAME)_en_US.res
  
  # list of resource bundles  - keep in sync with RESFILES
  RESLIST=res-file-list.txt
  
  # list of targets that aren't actually created
  .PHONY: all clean distclean check report 
  
  all: $(ALL_SUBDIR) $(RESTARGET) $(TARGET)  
  
  $(TARGET): $(OBJECTS)
        $(LINK.cc) $^ $(LOADLIBES) $(LDLIBS) -o $@ $(XTRALIBS)
  
  $(RESTARGET): $(RESFILES)
        $(PKGDATA) --name $(RESNAME) --mode $(RESMODE) $(PKGDATAOPTS) $(RESLIST)
        cp $(RESTARGET) $(XERCESCROOT)/lib
        
  res-install: $(RESTARGET)
        $(PKGDATA) --name $(RESNAME) --mode $(RESMODE) $(PKGDATAOPTS) $(RESLIST) 
--install $(shell icu-config --libdir)
  
  # clean out files
  distclean clean: $(CLEAN_SUBDIR)
        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
        -rm $(OBJECTS) $(TARGET) $(RESTARGET) $(RESFILES)
  
  # Make check: simply runs the sample, logged to a file
  check: $(TARGET)
        $(INVOKE) $(CHECK_VARS) ./$(TARGET) $(CHECK_ARGS) | tee $(TARGET).out
  
  ## resources
  $(RESNAME)_%.res: %.txt
        @echo "generating $@"
        $(GENRB) $(GENRBOPT) $^
  
  #end of rules.mk
  
  # for installing the library
  install: res-install
  
  $(RESNAME)_es.res: es.txt
        @echo "generating $@"
        $(GENRB) $(GENRBOPT) -e latin-1 $^
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to