File tree 5 files changed +9
-6
lines changed
5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #if defined(WINDOWS) || defined(WIN32)
3
+ #if defined(WINDOWS) || defined(WIN32) || defined(__MINGW32__)
4
4
#if defined(SC_LITE_DLL)
5
5
#define SC_LITE_EXTERN __declspec (dllexport)
6
6
#else
Original file line number Diff line number Diff line change 5
5
#ifndef SCREEN_CAPTURE_LITE_BUILD_SCREENCAPTURE_C_API_H
6
6
#define SCREEN_CAPTURE_LITE_BUILD_SCREENCAPTURE_C_API_H
7
7
8
- #if defined(WINDOWS) || defined(WIN32)
8
+ #if defined(WINDOWS) || defined(WIN32) || defined(__MINGW32__)
9
9
#if defined(SC_LITE_DLL) && defined(__cplusplus)
10
10
#define SC_LITE_C_EXTERN extern " C" __declspec(dllexport)
11
11
#else
Original file line number Diff line number Diff line change 7
7
#include < d3d11.h>
8
8
#include < dxgi1_2.h>
9
9
10
- #pragma comment(lib, "dxgi.lib")
11
- #pragma comment(lib, "d3d11.lib")
12
-
13
10
namespace SL {
14
11
namespace Screen_Capture {
15
12
class DXFrameProcessor : public BaseFrameProcessor {
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ if(WIN32)
17
17
../include /windows
18
18
)
19
19
add_definitions (-DNOMINMAX)
20
+ link_libraries (dxgi.lib d3d11.lib)
20
21
elseif (APPLE )
21
22
22
23
set (SCREEN_CAPTURE_PLATFORM_SRC
@@ -80,12 +81,13 @@ set(libsrc
80
81
if (NOT ${BUILD_SHARED_LIBS} )
81
82
message ("Building STATIC Library" )
82
83
add_library (${PROJECT_NAME} _static STATIC ${libsrc} )
84
+ target_link_libraries (${PROJECT_NAME} _static Dwmapi)
83
85
else ()
84
86
message ("Building SHARED Library" )
85
87
86
88
add_library (${PROJECT_NAME} _shared SHARED ${libsrc} ../include /ScreenCapture_C_API.h)
87
89
88
- set_target_properties ( ${PROJECT_NAME} _shared PROPERTIES DEFINE_SYMBOL SC_LITE_DLL )
90
+ add_definitions (-DSC_LITE_DLL )
89
91
if (WIN32 )
90
92
target_link_libraries (${PROJECT_NAME} _shared Dwmapi)
91
93
if (!MINGW)
Original file line number Diff line number Diff line change 1
1
#include " GDIFrameProcessor.h"
2
2
#include < Dwmapi.h>
3
3
4
+ #ifndef PW_RENDERFULLCONTENT
5
+ #define PW_RENDERFULLCONTENT 2
6
+ #endif
7
+
4
8
namespace SL {
5
9
namespace Screen_Capture {
6
10
You can’t perform that action at this time.
0 commit comments