diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-04-09 15:54:29 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-04-09 15:54:29 +0200 |
commit | cb82677ae8e7b3d5ef35a36b7c6d88020959864c (patch) | |
tree | f053a6b29d766d4dad977cfbd2fa2fcd985f1459 | |
parent | e3702f147ff5462a03299115f0e7765715a37976 (diff) |
Move kms client and server to separate directories
-rwxr-xr-x | build.sh | 4 | ||||
-rw-r--r-- | kms/client/kms_client.c (renamed from src/kms/kms_client.c) | 2 | ||||
-rw-r--r-- | kms/client/kms_client.h (renamed from include/kms/kms_client.h) | 2 | ||||
-rw-r--r-- | kms/kms_shared.h (renamed from include/kms/kms_shared.h) | 0 | ||||
-rw-r--r-- | kms/server/.gitignore | 1 | ||||
-rw-r--r-- | kms/server/kms_server.c (renamed from src/kms/kms_server.c) | 2 | ||||
-rw-r--r-- | kms/server/project.conf | 8 | ||||
-rw-r--r-- | project.conf | 2 | ||||
-rw-r--r-- | src/capture/kms_vaapi.c | 2 |
9 files changed, 16 insertions, 7 deletions
@@ -5,7 +5,7 @@ build_gsr_kms_server() { includes="$(pkg-config --cflags $dependencies)" libs="$(pkg-config --libs $dependencies) -ldl" opts="-O2 -g0 -DNDEBUG" - gcc -c src/kms/kms_server.c $opts $includes + gcc -c kms/server/kms_server.c $opts $includes gcc -o gsr-kms-server -O2 kms_server.o -s $libs } @@ -19,7 +19,7 @@ build_gsr() { gcc -c src/capture/xcomposite_cuda.c $opts $includes gcc -c src/capture/xcomposite_vaapi.c $opts $includes gcc -c src/capture/kms_vaapi.c $opts $includes - gcc -c src/kms/kms_client.c $opts $includes + gcc -c kms/client/kms_client.c $opts $includes gcc -c src/egl.c $opts $includes gcc -c src/cuda.c $opts $includes gcc -c src/xnvctrl.c $opts $includes diff --git a/src/kms/kms_client.c b/kms/client/kms_client.c index cddd8ff..2b59836 100644 --- a/src/kms/kms_client.c +++ b/kms/client/kms_client.c @@ -1,4 +1,4 @@ -#include "../../include/kms/kms_client.h" +#include "kms_client.h" #include <stdio.h> #include <string.h> #include <stdlib.h> diff --git a/include/kms/kms_client.h b/kms/client/kms_client.h index bb4325b..59d3cb3 100644 --- a/include/kms/kms_client.h +++ b/kms/client/kms_client.h @@ -1,7 +1,7 @@ #ifndef GSR_KMS_CLIENT_H #define GSR_KMS_CLIENT_H -#include "kms_shared.h" +#include "../kms_shared.h" #include <sys/types.h> typedef struct { diff --git a/include/kms/kms_shared.h b/kms/kms_shared.h index f63c2f3..f63c2f3 100644 --- a/include/kms/kms_shared.h +++ b/kms/kms_shared.h diff --git a/kms/server/.gitignore b/kms/server/.gitignore new file mode 100644 index 0000000..97420ef --- /dev/null +++ b/kms/server/.gitignore @@ -0,0 +1 @@ +sibs-build/ diff --git a/src/kms/kms_server.c b/kms/server/kms_server.c index e7ee02f..73cf9d0 100644 --- a/src/kms/kms_server.c +++ b/kms/server/kms_server.c @@ -1,4 +1,4 @@ -#include "../../include/kms/kms_shared.h" +#include "../kms_shared.h" #include <asm-generic/socket.h> #include <stdio.h> diff --git a/kms/server/project.conf b/kms/server/project.conf new file mode 100644 index 0000000..cf863c1 --- /dev/null +++ b/kms/server/project.conf @@ -0,0 +1,8 @@ +[package] +name = "gsr-kms-server" +type = "executable" +version = "1.0.0" +platforms = ["posix"] + +[dependencies] +libdrm = ">=2" diff --git a/project.conf b/project.conf index 3e39072..231ca5d 100644 --- a/project.conf +++ b/project.conf @@ -5,7 +5,7 @@ version = "2.0.0" platforms = ["posix"] [config] -ignore_dirs = ["src/kms"] +ignore_dirs = ["kms/server"] [dependencies] libavcodec = ">=58" diff --git a/src/capture/kms_vaapi.c b/src/capture/kms_vaapi.c index 7e42011..2e970a3 100644 --- a/src/capture/kms_vaapi.c +++ b/src/capture/kms_vaapi.c @@ -1,5 +1,5 @@ #include "../../include/capture/kms_vaapi.h" -#include "../../include/kms/kms_client.h" +#include "../../kms/client/kms_client.h" #include "../../include/egl.h" #include "../../include/utils.h" #include <stdlib.h> |