Move kms client and server to separate directories

This commit is contained in:
dec05eba 2023-04-09 15:54:29 +02:00
parent e3702f147f
commit cb82677ae8
9 changed files with 16 additions and 7 deletions

View File

@ -5,7 +5,7 @@ build_gsr_kms_server() {
includes="$(pkg-config --cflags $dependencies)" includes="$(pkg-config --cflags $dependencies)"
libs="$(pkg-config --libs $dependencies) -ldl" libs="$(pkg-config --libs $dependencies) -ldl"
opts="-O2 -g0 -DNDEBUG" 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 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_cuda.c $opts $includes
gcc -c src/capture/xcomposite_vaapi.c $opts $includes gcc -c src/capture/xcomposite_vaapi.c $opts $includes
gcc -c src/capture/kms_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/egl.c $opts $includes
gcc -c src/cuda.c $opts $includes gcc -c src/cuda.c $opts $includes
gcc -c src/xnvctrl.c $opts $includes gcc -c src/xnvctrl.c $opts $includes

View File

@ -1,4 +1,4 @@
#include "../../include/kms/kms_client.h" #include "kms_client.h"
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,7 +1,7 @@
#ifndef GSR_KMS_CLIENT_H #ifndef GSR_KMS_CLIENT_H
#define GSR_KMS_CLIENT_H #define GSR_KMS_CLIENT_H
#include "kms_shared.h" #include "../kms_shared.h"
#include <sys/types.h> #include <sys/types.h>
typedef struct { typedef struct {

1
kms/server/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
sibs-build/

View File

@ -1,4 +1,4 @@
#include "../../include/kms/kms_shared.h" #include "../kms_shared.h"
#include <asm-generic/socket.h> #include <asm-generic/socket.h>
#include <stdio.h> #include <stdio.h>

8
kms/server/project.conf Normal file
View File

@ -0,0 +1,8 @@
[package]
name = "gsr-kms-server"
type = "executable"
version = "1.0.0"
platforms = ["posix"]
[dependencies]
libdrm = ">=2"

View File

@ -5,7 +5,7 @@ version = "2.0.0"
platforms = ["posix"] platforms = ["posix"]
[config] [config]
ignore_dirs = ["src/kms"] ignore_dirs = ["kms/server"]
[dependencies] [dependencies]
libavcodec = ">=58" libavcodec = ">=58"

View File

@ -1,5 +1,5 @@
#include "../../include/capture/kms_vaapi.h" #include "../../include/capture/kms_vaapi.h"
#include "../../include/kms/kms_client.h" #include "../../kms/client/kms_client.h"
#include "../../include/egl.h" #include "../../include/egl.h"
#include "../../include/utils.h" #include "../../include/utils.h"
#include <stdlib.h> #include <stdlib.h>