Support for compiling unzip as a build tool.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22170 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-09-04 19:04:48 +00:00
parent b4c9e509be
commit 35f57d15ff
3 changed files with 68 additions and 0 deletions
+1
View File
@@ -86,6 +86,7 @@ SubInclude HAIKU_TOP src tools remote_disk_server ;
SubInclude HAIKU_TOP src tools resattr ; SubInclude HAIKU_TOP src tools resattr ;
SubInclude HAIKU_TOP src tools rman ; SubInclude HAIKU_TOP src tools rman ;
SubInclude HAIKU_TOP src tools translation ; SubInclude HAIKU_TOP src tools translation ;
SubInclude HAIKU_TOP src tools unzip ;
SubInclude HAIKU_TOP src tools vmdkheader ; SubInclude HAIKU_TOP src tools vmdkheader ;
SubInclude HAIKU_TOP src tools unflatten ; SubInclude HAIKU_TOP src tools unflatten ;
+36
View File
@@ -0,0 +1,36 @@
SubDir HAIKU_TOP src tools unzip ;
SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin unzip ] ;
if ! $(HOST_PLATFORM_BEOS_COMPATIBLE) {
DEFINES += HAVE_TERMIOS_H=1 HAS_JUNK_EXTRA_FIELD_OPTION=1 ;
}
USES_BE_API on <build>libunzip.a <build>unzip = true ;
BuildPlatformStaticLibrary <build>libunzip.a :
crc32.c
ttyio.c
crctab.c
crypt.c
envargs.c
explode.c
extract.c
fileio.c
globals.c
inflate.c
list.c
match.c
process.c
zipinfo.c
beos.c
beosmain.cpp
;
BuildPlatformMain <build>unzip :
unzip.c
unreduce.c
unshrink.c
: <build>libunzip.a $(HOST_LIBBE)
;
+31
View File
@@ -0,0 +1,31 @@
// That's exactly the BeOS configuration.
#ifndef __BEOS__
# include <sys/types.h> /* [cjh]: This is pretty much a generic */
# include <sys/stat.h> /* POSIX 1003.1 system; see beos/ for */
# include <fcntl.h> /* extra code to deal with our extra file */
# include <sys/param.h> /* attributes. */
# include <unistd.h>
# include <utime.h>
# define DIRENT
# include <time.h>
# ifndef DATE_FORMAT
# define DATE_FORMAT DF_MDY /* GRR: customize with locale.h somehow? */
# endif
# define lenEOL 1
# define PutNativeEOL *q++ = native(LF);
# define SCREENSIZE(ttrows, ttcols) screensize(ttrows, ttcols)
# define SCREENWIDTH 80
# define USE_EF_UT_TIME
# define SET_DIR_ATTRIB
# if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP))
# define TIMESTAMP
# endif
# define RESTORE_UIDGID
# define NO_STRNICMP /* not in the x86 headers at least */
# define INT_SPRINTF
# define SYMLINKS
# define MAIN main_stub /* now that we're using a wrapper... */
# ifndef EOK
# define EOK B_OK
# endif
#endif // __BEOS__