]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/tools/pkgdata/pkgtypes.h
ICU-461.12.tar.gz
[apple/icu.git] / icuSources / tools / pkgdata / pkgtypes.h
index 7c8d4349950919f02f454cb3a322fc570f937118..2f47239d17ac4de0345ae7e2fb6818fee891a619 100644 (file)
@@ -1,6 +1,6 @@
 /**************************************************************************
 *
-*   Copyright (C) 2000-2007, International Business Machines
+*   Copyright (C) 2000-2009, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ***************************************************************************
@@ -33,7 +33,7 @@ typedef struct _CharList
 
 
 
-/* 
+/*
  * write CharList 'l' into stream 's' using deliminter 'delim' (delim can be NULL). quoted: -1 remove, 0 as is, 1 add quotes
  */
 const char *pkg_writeCharList(FileStream *s, CharList *l, const char *delim, int32_t quoted);
@@ -49,25 +49,25 @@ const char *pkg_writeCharListWrap(FileStream *s, CharList *l, const char *delim,
  */
 uint32_t pkg_countCharList(CharList *l);
 
-/* 
+/*
  * Prepend string to CharList. Str is adopted!
  */
 CharList *pkg_prependToList(CharList *l, const char *str);
 
-/* 
- * append string to CharList. *end or even end can be null if you don't 
+/*
+ * append string to CharList. *end or even end can be null if you don't
  * know it.[slow]
  * Str is adopted!
  */
 CharList *pkg_appendToList(CharList *l, CharList** end, const char *str);
 
-/* 
+/*
  * strAlias is an alias to a full or relative path to a FILE.  This function
- * will search strAlias for the directory name (with strrchr). Then, it will 
+ * will search strAlias for the directory name (with strrchr). Then, it will
  * determine if that directory is already in list l.  If not, it will add it
- * with strdup(strAlias). 
+ * with strdup(strAlias).
  * @param l list to append to , or NULL
- * @param end end pointer-to-pointer.  Can point to null, or be null.  
+ * @param end end pointer-to-pointer.  Can point to null, or be null.
  * @param strAlias alias to full path string
  * @return new list
  */
@@ -79,7 +79,7 @@ CharList *pkg_appendUniqueDirToList(CharList *l, CharList** end, const char *str
 UBool  pkg_listContains(CharList *l, const char *str);
 
 /*
- * Delete list 
+ * Delete list
  */
 void pkg_deleteList(CharList *l);
 
@@ -90,14 +90,14 @@ struct UPKGOptions_;
 typedef   void (UPKGMODE)(struct UPKGOptions_ *, FileStream *s, UErrorCode *status);
 
 /*
- * Static mode - write the readme file 
+ * Static mode - write the readme file
  * @param opt UPKGOptions
  * @param libName Name of the .lib, etc file
  * @param status ICU error code
  */
 void pkg_sttc_writeReadme(struct UPKGOptions_ *opt, const char *libName, UErrorCode *status);
 
-/* 
+/*
  * Options to be passed throughout the program
  */
 
@@ -113,25 +113,18 @@ typedef struct UPKGOptions_
   const char *entryName;   /* special entrypoint name */
   const char *targetDir;  /* dir for packaged data to go */
   const char *dataDir;    /* parent of dir for package (default: tmpdir) */
-  const char *tmpDir;     
+  const char *tmpDir;
   const char *srcDir;
   const char *options;     /* Options arg */
   const char *mode;        /* Mode of building */
   const char *version;     /* Library version */
-  const char *makeArgs;    /* XXX Should be a CharList! */
   const char *comment;     /* comment string */
-  const char *makeFile;    /* Makefile path */
   const char *install;     /* Where to install to (NULL = don't install) */
   const char *icuroot;     /* where does ICU lives */
   const char *libName;     /* name for library (default: shortName) */
   UBool      rebuild;
-  UBool      clean;
-  UBool      nooutput;
   UBool      verbose;
   UBool      quiet;
-  UBool      hadStdin;     /* Stdin was a dependency - don't make anything depend on the file list coming in. */
-  
-  UPKGMODE  *fcn;          /* Handler function */
 } UPKGOptions;
 
 char * convertToNativePathSeparators(char *path);
@@ -159,16 +152,17 @@ char * convertToNativePathSeparators(char *path);
 # define LIB_STATIC_PREFIX "lib"
 # define OBJ_SUFFIX ".o"
 # define UDATA_LIB_SUFFIX ".a"
-#endif 
+#endif
 
 #define ASM_SUFFIX ".s"
 
-
 /* defines for common file names */
 #define UDATA_CMN_PREFIX ""
 #define UDATA_CMN_SUFFIX ".dat"
 #define UDATA_CMN_INTERMEDIATE_SUFFIX "_dat"
 
+#define ICUDATA_RES_FILE "icudata.res"
+
 #define PKGDATA_DERIVED_PATH '\t'
 
 #endif