-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathbcompat7.patch
92 lines (89 loc) · 3.23 KB
/
bcompat7.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b53a5d42e9b..c1467a9b2d1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,6 +5,10 @@
# -----------------------------------------------------------------------------
# Early Initialization
+if (WIN32)
+ set(CMAKE_SYSTEM_VERSION 10.0 (latest installed version))
+endif ()
+
# NOTE: We don't allow in-source builds. This causes no end of troubles because
# all out-of-source builds will use the CMakeCache.txt file there and even
# build the libs and objects in it.
diff --git a/build_files/windows/check_libraries.cmd b/build_files/windows/check_libraries.cmd
index 8c92ac72aa8..a1e811794f9 100644
--- a/build_files/windows/check_libraries.cmd
+++ b/build_files/windows/check_libraries.cmd
@@ -46,6 +46,24 @@ if NOT EXIST "%BUILD_VS_LIBDIR%\.git" (
exit /b 1
)
)
+
+:RETRYBCOMPAT
+ git clone git@github.com:nalexandru/BlenderCompat.git %BUILD_VS_LIBDIR%/bcompat7
+ if errorlevel 1 (
+ set /p LibRetry= "Error during download, retry? y/n"
+ if /I "!LibRetry!"=="Y" (
+ cd %BUILD_VS_LIBDIR%
+ "%SVN%" cleanup
+ cd %BLENDER_DIR%
+ goto RETRYBCOMPAT
+ )
+ echo.
+ echo Error: Download of external libraries failed.
+ echo This is needed for building, please manually run 'svn cleanup' and 'svn update' in
+ echo %BUILD_VS_LIBDIR% , until this is resolved you CANNOT make a successful blender build
+ echo.
+ exit /b 1
+ )
) else (
if NOT EXIST %PYTHON% (
if not "%GIT%"=="" (
diff --git a/lib/windows_x64 b/lib/windows_x64
--- a/lib/windows_x64
+++ b/lib/windows_x64
@@ -1 +1 @@
-Subproject commit 1a8571ac5192a45f6fedf2b92932c2f1bf3b09f4
+Subproject commit 1a8571ac5192a45f6fedf2b92932c2f1bf3b09f4-dirty
diff --git a/source/blender/gpu/opengl/gl_backend.cc b/source/blender/gpu/opengl/gl_backend.cc
index 8cad6fdbe06..5de1216245c 100644
--- a/source/blender/gpu/opengl/gl_backend.cc
+++ b/source/blender/gpu/opengl/gl_backend.cc
@@ -374,7 +374,9 @@ static void detect_workarounds()
*/
if (GPU_type_matches(GPU_DEVICE_ATI, GPU_OS_ANY, GPU_DRIVER_OFFICIAL)) {
const Vector<std::string> matches = {
- "RX550/550", "(TM) 520", "(TM) 530", "(TM) 535", "R5", "R7", "R9", "HD"};
+ "RX 460", "RX 470", "RX 480", "RX 490", "RX 560", "RX 560X", "RX 570",
+ "RX 580", "RX 580X", "RX 590", "RX550/550", "(TM) 520", "(TM) 530",
+ "(TM) 535", "R5", "R7", "R9", "HD"};
if (match_renderer(renderer, matches)) {
GCaps.use_hq_normals_workaround = true;
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 7e3235e2641..78443d297f3 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -40,6 +40,9 @@ if(WITH_TBB)
list(INSERT LIB 0 bf_blenkernel)
endif()
+link_directories(${LIBDIR}/bcompat7/bin/lib)
+list(INSERT LIB 0 bcompat7)
+
if(WIN32)
list(APPEND INC ../../intern/utfconv)
endif()
@@ -1493,6 +1496,12 @@ elseif(WIN32)
if(PLATFORM_BUNDLED_LIBRARIES)
windows_process_platform_bundled_libraries("${PLATFORM_BUNDLED_LIBRARIES}")
endif()
+
+ install(
+ FILES ${LIBDIR}/bcompat7/bin/bin/bcompat7.dll
+ DESTINATION "."
+ CONFIGURATIONS Release;RelWithDebInfo;MinSizeRel;Debug
+ )
elseif(APPLE)
if(NOT WITH_PYTHON_MODULE)
# Uppercase name for app bundle.