Skip to content

Commit

Permalink
Merge pull request #146 from Gottox/improve/rearrange-source
Browse files Browse the repository at this point in the history
Improve/rearrange source
  • Loading branch information
Gottox authored Sep 21, 2023
2 parents 16652b3 + 4c573e2 commit c18146d
Show file tree
Hide file tree
Showing 145 changed files with 603 additions and 683 deletions.
2 changes: 1 addition & 1 deletion .github/codecov.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ignore:
- "examples/"
- "fuzzer/"
- "libsqsh/fuzzer/"
- "subprojects/"
- "test/"
parsers:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches:
- main
paths:
- utils/*
- common/build_utils/*

jobs:
docker:
Expand All @@ -31,8 +31,8 @@ jobs:
sha-${{ github.sha }}-${{ matrix.tag_suffix }}
${{ github.ref_name }}-${{ matrix.tag_suffix }}
${{ matrix.extra_tags }}
context: utils
containerfiles: utils/Dockerfile
context: common/build_utils
containerfiles: common/build_utils/Dockerfile
- name: Push to Dockerhub
uses: redhat-actions/push-to-registry@v2
with:
Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions common/include/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
libsqsh_common_headers = files(
'sqsh_data_private.h',
)

libsqsh_common_include = include_directories('.')
File renamed without changes.
18 changes: 18 additions & 0 deletions common/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
subdir('include')

subdir('src')

libsqsh_common_dependencies = [
cextras_dep,
]

libsqsh_common_c_args = ['-Wconversion', '-Wsign-conversion']

libsqsh_common = static_library(
'sqsh',
libsqsh_common_sources,
include_directories: [libsqsh_common_include, libsqsh_include],
c_args: libsqsh_common_c_args,
dependencies: libsqsh_common_dependencies,
install: false,
)
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#define _DEFAULT_SOURCE

#include "../../../include/sqsh_data_private.h"
#include <sqsh_data_private.h>

#include <cextras/endian_compat.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#define _DEFAULT_SOURCE

#include "../../../include/sqsh_data_private.h"
#include <sqsh_data_private.h>

#include <cextras/endian_compat.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/data/fragment_data.c β†’ common/src/fragment_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#define _DEFAULT_SOURCE

#include "../../../include/sqsh_data_private.h"
#include <sqsh_data_private.h>

#include <cextras/endian_compat.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/data/inode_data.c β†’ common/src/inode_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#define _DEFAULT_SOURCE

#include "../../../include/sqsh_data_private.h"
#include <sqsh_data_private.h>

#include <cextras/endian_compat.h>

Expand Down
9 changes: 9 additions & 0 deletions common/src/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
libsqsh_common_sources = files(
'compression_options_data.c',
'directory_data.c',
'fragment_data.c',
'inode_data.c',
'metablock_data.c',
'superblock_data.c',
'xattr_data.c',
)
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#define _DEFAULT_SOURCE

#include "../../../include/sqsh_data_private.h"
#include <sqsh_data_private.h>

#include <cextras/endian_compat.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

#define _DEFAULT_SOURCE

#include "../../../include/sqsh_data_private.h"
#include <sqsh_data_private.h>

#include <cextras/endian_compat.h>

Expand Down
2 changes: 1 addition & 1 deletion lib/data/xattr_data.c β†’ common/src/xattr_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@

#define _DEFAULT_SOURCE

#include "../../../include/sqsh_data_private.h"
#include <cextras/endian_compat.h>
#include <sqsh_data_private.h>
#include <string.h>

uint16_t
Expand Down
2 changes: 1 addition & 1 deletion doc/Doxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ WARN_AS_ERROR = YES


# Input files
INPUT = @DOXYGEN_INPUT@/README.md @DOXYGEN_INPUT@/include @DOXYGEN_INPUT@/doc @DOXYGEN_INPUT@/examples
INPUT = @DOXYGEN_INPUT@/README.md @DOXYGEN_INPUT@/libsqsh/include @DOXYGEN_INPUT@/include @DOXYGEN_INPUT@/doc @DOXYGEN_INPUT@/examples
EXCLUDE = @DOXYGEN_INPUT@/include/sqsh_data_private.h
FILE_PATTERNS = *.c *.h *.md
EXCLUDE_PATTERNS = *_internal.h
Expand Down
12 changes: 0 additions & 12 deletions include/meson.build
Original file line number Diff line number Diff line change
@@ -1,29 +1,17 @@
headers = files(
'sqsh.h',
'sqsh_archive.h',
'sqsh_archive_private.h',
'sqsh_common.h',
'sqsh_data.h',
'sqsh_data_private.h',
'sqsh_directory.h',
'sqsh_directory_private.h',
'sqsh_easy.h',
'sqsh_error.h',
'sqsh_extract_private.h',
'sqsh_file.h',
'sqsh_file_private.h',
'sqsh_mapper.h',
'sqsh_mapper_private.h',
'sqsh_metablock_private.h',
'sqsh_posix.h',
'sqsh_reader_private.h',
'sqsh_table.h',
'sqsh_table_private.h',
'sqsh_thread_private.h',
'sqsh_tree.h',
'sqsh_tree_private.h',
'sqsh_xattr.h',
'sqsh_xattr_private.h',
)

libsqsh_include = include_directories('.')
Expand Down
77 changes: 0 additions & 77 deletions lib/.exrc

This file was deleted.

73 changes: 0 additions & 73 deletions lib/README.md

This file was deleted.

23 changes: 0 additions & 23 deletions lib/data/meson.build

This file was deleted.

3 changes: 0 additions & 3 deletions lib/meson.build

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions libsqsh/include/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
libsqsh_private_headers = files(
'sqsh_archive_private.h',
'sqsh_directory_private.h',
'sqsh_extract_private.h',
'sqsh_mapper_private.h',
'sqsh_metablock_private.h',
'sqsh_reader_private.h',
'sqsh_table_private.h',
'sqsh_thread_private.h',
'sqsh_tree_private.h',
'sqsh_xattr_private.h',
)

libsqsh_private_include = include_directories('.')
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit c18146d

Please sign in to comment.