mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 10:30:47 +00:00
Make the JNI bindings compile on Windows
This commit is contained in:
@@ -1,8 +1,22 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
#include <libavcodec/avcodec.h>
|
||||
#include <libswscale/swscale.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"
|
||||
|
||||
|
||||
@@ -4,6 +4,14 @@
|
||||
|
||||
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
|
||||
// any other decoding functions
|
||||
int nv_opus_init(void) {
|
||||
|
||||
Reference in New Issue
Block a user