summaryrefslogtreecommitdiff
path: root/lib/sqfs/Makemodule.am
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-11 12:53:47 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-10-11 13:03:18 +0200
commitacb4156bd5c730d0c62585eb78b2b6ff21a12fe4 (patch)
treefbcdec272ecd6dde779866ccb30ea1ee265c16fc /lib/sqfs/Makemodule.am
parentbd94eccbdf17c17faf8c0bc96177a497fd9d2655 (diff)
Add Windows implementation for sqfs_file_t
This commit moves the generic unix implementation into a "unix" subdirectory and adds a "win32" subdirectory with a winapi based implementation. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/Makemodule.am')
-rw-r--r--lib/sqfs/Makemodule.am8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/sqfs/Makemodule.am b/lib/sqfs/Makemodule.am
index 3742f7f..821f22a 100644
--- a/lib/sqfs/Makemodule.am
+++ b/lib/sqfs/Makemodule.am
@@ -10,7 +10,7 @@ LIBSQFS_HEARDS = include/sqfs/meta_writer.h \
include/sqfs/xattr_reader.h include/sqfs/xattr_writer.h
libsquashfs_la_SOURCES = $(LIBSQFS_HEARDS) lib/sqfs/id_table.c lib/sqfs/super.c
-libsquashfs_la_SOURCES += lib/sqfs/readdir.c lib/sqfs/io_file.c lib/sqfs/xattr.c
+libsquashfs_la_SOURCES += lib/sqfs/readdir.c lib/sqfs/xattr.c
libsquashfs_la_SOURCES += lib/sqfs/write_table.c lib/sqfs/meta_writer.c
libsquashfs_la_SOURCES += lib/sqfs/read_super.c lib/sqfs/meta_reader.c
libsquashfs_la_SOURCES += lib/sqfs/read_inode.c lib/sqfs/write_inode.c
@@ -30,6 +30,12 @@ libsquashfs_la_CFLAGS += $(ZSTD_CFLAGS) $(PTHREAD_CFLAGS)
libsquashfs_la_LIBADD = $(XZ_LIBS) $(ZLIB_LIBS) $(LZO_LIBS) $(LZ4_LIBS)
libsquashfs_la_LIBADD += $(ZSTD_LIBS) $(PTHREAD_LIBS) libutil.la
+if WINDOWS
+libsquashfs_la_SOURCES += lib/sqfs/win32/io_file.c
+else
+libsquashfs_la_SOURCES += lib/sqfs/unix/io_file.c
+endif
+
if HAVE_PTHREAD
libsquashfs_la_SOURCES += lib/sqfs/data_writer/pthread.c
libsquashfs_la_CPPFLAGS += -DWITH_PTHREAD