Move kms client and server to separate directories
This commit is contained in:
parent
e3702f147f
commit
cb82677ae8
4
build.sh
4
build.sh
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
#include "../../include/kms/kms_client.h"
|
||||
#include "kms_client.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.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 {
|
1
kms/server/.gitignore
vendored
Normal file
1
kms/server/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
sibs-build/
|
@ -1,4 +1,4 @@
|
||||
#include "../../include/kms/kms_shared.h"
|
||||
#include "../kms_shared.h"
|
||||
|
||||
#include <asm-generic/socket.h>
|
||||
#include <stdio.h>
|
8
kms/server/project.conf
Normal file
8
kms/server/project.conf
Normal file
@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "gsr-kms-server"
|
||||
type = "executable"
|
||||
version = "1.0.0"
|
||||
platforms = ["posix"]
|
||||
|
||||
[dependencies]
|
||||
libdrm = ">=2"
|
@ -5,7 +5,7 @@ version = "2.0.0"
|
||||
platforms = ["posix"]
|
||||
|
||||
[config]
|
||||
ignore_dirs = ["src/kms"]
|
||||
ignore_dirs = ["kms/server"]
|
||||
|
||||
[dependencies]
|
||||
libavcodec = ">=58"
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user