From 2b6106c41f3959d4deb8efc58c9055de0339959e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 23 Feb 2017 01:06:11 +0300 Subject: Impliment basic VirtFsDir for virtual fs based on directories. Api similar to VirtFs. VirtFsDir unused for now. --- data/test/CMakeLists.txt | 2 +- data/test/Makefile.am | 2 +- data/test/dir2/CMakeLists.txt | 6 ++++++ data/test/dir2/Makefile.am | 9 +++++++++ data/test/dir2/file1.txt | 1 + data/test/dir2/file2.txt | 1 + 6 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 data/test/dir2/CMakeLists.txt create mode 100644 data/test/dir2/Makefile.am create mode 100644 data/test/dir2/file1.txt create mode 100644 data/test/dir2/file2.txt (limited to 'data') diff --git a/data/test/CMakeLists.txt b/data/test/CMakeLists.txt index 11d0b5b61..2141da3cc 100644 --- a/data/test/CMakeLists.txt +++ b/data/test/CMakeLists.txt @@ -21,4 +21,4 @@ SET(FILES INSTALL(FILES ${FILES} DESTINATION ${DATA_DIR}/test) -ADD_SUBDIRECTORY(dir1) +ADD_SUBDIRECTORY(dir1 dir2) diff --git a/data/test/Makefile.am b/data/test/Makefile.am index 2f7b7f0dd..3d4fa7f8e 100644 --- a/data/test/Makefile.am +++ b/data/test/Makefile.am @@ -1,4 +1,4 @@ -SUBDIRS = dir1 +SUBDIRS = dir1 dir2 testdir = $(pkgdatadir)/data/test diff --git a/data/test/dir2/CMakeLists.txt b/data/test/dir2/CMakeLists.txt new file mode 100644 index 000000000..60f5429ec --- /dev/null +++ b/data/test/dir2/CMakeLists.txt @@ -0,0 +1,6 @@ +SET(FILES + file1.txt + file2.txt + ) + +INSTALL(FILES ${FILES} DESTINATION ${DATA_DIR}/test/dir2) diff --git a/data/test/dir2/Makefile.am b/data/test/dir2/Makefile.am new file mode 100644 index 000000000..17934f3df --- /dev/null +++ b/data/test/dir2/Makefile.am @@ -0,0 +1,9 @@ +dir2dir = $(pkgdatadir)/data/test/dir2 + +dir2_DATA = \ + file1.txt \ + file2.txt + +EXTRA_DIST = \ + $(dir2_DATA) \ + CMakeLists.txt diff --git a/data/test/dir2/file1.txt b/data/test/dir2/file1.txt new file mode 100644 index 000000000..7d4116bf2 --- /dev/null +++ b/data/test/dir2/file1.txt @@ -0,0 +1 @@ +file1 test line 1 diff --git a/data/test/dir2/file2.txt b/data/test/dir2/file2.txt new file mode 100644 index 000000000..aff8265a1 --- /dev/null +++ b/data/test/dir2/file2.txt @@ -0,0 +1 @@ +file2 test line 1 -- cgit v1.2.3-70-g09d2