mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-25 21:40:08 +00:00
Make the JNI bindings compile on Windows
This commit is contained in:
1 parent
300122c04f
commit
9c33c46fc6
2 files changed
+22
No files matched your search
@@ -1,8 +1,22 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define inline __inline
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <libavcodec/avcodec.h>
|
#include <libavcodec/avcodec.h>
|
||||||
#include <libswscale/swscale.h>
|
#include <libswscale/swscale.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#pragma comment(lib, "avcodec.lib")
|
||||||
|
#pragma comment(lib, "avfilter.lib")
|
||||||
|
#pragma comment(lib, "avformat.lib")
|
||||||
|
#pragma comment(lib, "avutil.lib")
|
||||||
|
#pragma comment(lib, "swresample.lib")
|
||||||
|
#pragma comment(lib, "swscale.lib")
|
||||||
|
#pragma comment(lib, "pthreadVC2.lib")
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "nv_avc_dec.h"
|
#include "nv_avc_dec.h"
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,14 @@
|
|||||||
|
|
||||||
OpusDecoder* decoder;
|
OpusDecoder* decoder;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#pragma comment(lib, "opus.lib")
|
||||||
|
#pragma comment(lib, "celt.lib")
|
||||||
|
#pragma comment(lib, "silk_common.lib")
|
||||||
|
#pragma comment(lib, "silk_float.lib")
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// This function must be called before
|
// This function must be called before
|
||||||
// any other decoding functions
|
// any other decoding functions
|
||||||
int nv_opus_init(void) {
|
int nv_opus_init(void) {
|
||||||
|
|||||||
Reference in new issue
Block a user