Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/reorganize includes #196

Merged
merged 7 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ include_directories("${PROJECT_BINARY_DIR}/include")

# Configure subdirs
#
add_subdirectory(src/libsail-common)
add_subdirectory(src/libsail-manip)
add_subdirectory(src/sail-common)
add_subdirectory(src/sail-codecs)
if (SAIL_COMBINE_CODECS)
add_subdirectory(src/sail-codecs-archive)
endif()
add_subdirectory(src/libsail)
add_subdirectory(src/bindings/c++)
add_subdirectory(src/sail)
add_subdirectory(src/sail-manip)
add_subdirectory(src/bindings/sail-c++)

if (SAIL_BUILD_APPS)
add_subdirectory(examples/c/sail)
Expand Down
2 changes: 1 addition & 1 deletion cmake/sail_check_c11_thread_local.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function(sail_check_c11_thread_local)

check_c_source_compiles(
"
#include \"libsail-common/compiler_specifics.h\"
#include \"sail-common/compiler_specifics.h\"

int main(int argc, char *argv[]) {
static SAIL_THREAD_LOCAL int i = 0;
Expand Down
2 changes: 1 addition & 1 deletion debian/libsail-c++-dev.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usr/include/sail/sail-c++
usr/lib/*/libsail-c++.so
usr/lib/*/pkgconfig/libsail-c++.pc
usr/lib/*/pkgconfig/sail-c++.pc
usr/lib/cmake/sailc++/SailC++*.cmake
2 changes: 1 addition & 1 deletion debian/libsail-common-dev.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usr/include/sail/sail-common/
usr/lib/*/libsail-common.so
usr/lib/*/pkgconfig/libsail-common.pc
usr/lib/*/pkgconfig/sail-common.pc
usr/lib/cmake/sailcommon/SailCommon*.cmake
2 changes: 1 addition & 1 deletion debian/libsail-dev.install
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
usr/include/sail/sail
usr/lib/*/libsail.so
usr/lib/*/pkgconfig/libsail.pc
usr/lib/*/pkgconfig/sail.pc
usr/lib/cmake/sail/SailConfig*.cmake
usr/lib/cmake/sail/SailTargets*.cmake
2 changes: 1 addition & 1 deletion debian/libsail-manip-dev.install
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
usr/include/sail/sail-manip/
usr/lib/*/libsail-manip.so
usr/lib/*/pkgconfig/libsail-manip.pc
usr/lib/*/pkgconfig/sail-manip.pc
usr/lib/cmake/sailmanip/SailManip*.cmake
8 changes: 3 additions & 5 deletions examples/c/sail-sdl-viewer/sail-sdl-viewer.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@
SOFTWARE.
*/

#include "config.h"

#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>

#include <SDL2/SDL.h>

#include "sail-common.h"
#include "sail.h"
#include "sail-manip.h"
#include <sail/sail.h>

#include <sail-manip/sail-manip.h>

int main(int argc, char *argv[]) {

Expand Down
7 changes: 3 additions & 4 deletions examples/c/sail/sail.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@
SOFTWARE.
*/

#include "config.h"

#include <stdio.h>
#include <stdlib.h> /* atoi */
#include <string.h>

#include "sail.h"
#include "sail-manip.h"
#include <sail/sail.h>

#include <sail-manip/sail-manip.h>

static void print_invalid_argument(void) {
fprintf(stderr, "Error: Invalid arguments. Run with -h to see command arguments.\n");
Expand Down
135 changes: 0 additions & 135 deletions src/bindings/c++/CMakeLists.txt

This file was deleted.

117 changes: 0 additions & 117 deletions src/bindings/c++/sail-c++.h

This file was deleted.

Loading