Skip to content

Commit c9dd914

Browse files
committed
Remove Qt rwviewer
1 parent c3a5a43 commit c9dd914

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+3
-2522
lines changed

CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,6 @@ add_subdirectory(rwcore)
7171
add_subdirectory(rwengine)
7272
add_subdirectory(rwgame)
7373

74-
if(BUILD_VIEWER)
75-
add_subdirectory(rwviewer)
76-
endif()
7774
if(BUILD_TESTS)
7875
enable_testing()
7976
add_subdirectory(tests)

cmake/ctest/build.ctest

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ set(_ARGS_BOOL
1010
BUILD_TYPE
1111
CHECK_IWYU
1212
BUILD_TOOLS
13-
BUILD_VIEWER
1413

1514
RUN_TESTS
1615
SEPARATE_TEST_SUITES
@@ -121,17 +120,11 @@ if(USE_CONAN)
121120
set(CONAN_CONFIGURATION "Release")
122121
endif()
123122

124-
if(BUILD_VIEWER)
125-
set(_BUILD_VIEWER True)
126-
else()
127-
set(_BUILD_VIEWER False)
128-
endif()
129-
130123
execute_process(
131124
COMMAND
132125
"${CONAN_BIN}" install "${CTEST_SOURCE_DIRECTORY}"
133126
-s arch=${CONAN_ARCH} -s build_type=${CONAN_CONFIGURATION}
134-
-o viewer=${_BUILD_VIEWER} --build missing
127+
--build missing
135128
WORKING_DIRECTORY "${CTEST_BINARY_DIRECTORY}"
136129
RESULT_VARIABLE RES
137130
)
@@ -161,7 +154,6 @@ set(CTEST_CONFIGURATION_TYPE "${BUILD_TYPE}")
161154

162155
set(_CONFIGURE_OPTIONS
163156
"-DBUILD_TOOLS=${BUILD_TOOLS}"
164-
"-DBUILD_VIEWER=${BUILD_VIEWER}"
165157
"-DBUILD_TESTS=TRUE"
166158
"-DTEST_COVERAGE=${TEST_COVERAGE}"
167159
"-DSEPARATE_TEST_SUITES=${SEPARATE_TEST_SUITES}"

cmake/ctest/configure_darwin.ctest

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ endif()
77
set(CONFIGURE_EXTRA_OPTIONS ";")
88
set(BUILD_EXTRA_FLAGS "")
99
set(BUILD_TOOLS TRUE)
10-
set(BUILD_VIEWER TRUE)
1110
set(CHECK_IWYU FALSE)
1211
set(ENABLE_SANITIZERS "")
1312

cmake/ctest/configure_linux.ctest

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ set(CONFIGURE_EXTRA_OPTIONS ";")
88
set(BUILD_EXTRA_FLAGS "")
99

1010
set(BUILD_TOOLS TRUE)
11-
set(BUILD_VIEWER TRUE)
1211
set(CHECK_IWYU FALSE)
1312
set(ENABLE_SANITIZERS "address")
1413

cmake/ctest/configure_windows.ctest

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,5 @@ set(BUILD_TYPE "${CONFIGURATION}")
3030
set(CONAN_ARCH "x86_64")
3131

3232
set(BUILD_TOOLS TRUE)
33-
set(BUILD_VIEWER TRUE)
3433
set(CHECK_IWYU FALSE) #FIXME: ENABLE
3534
set(ENABLE_SANITIZERS "")

cmake_options.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ option(RW_VERBOSE_DEBUG_MESSAGES "Print verbose debugging messages" ON)
22

33
option(BUILD_TOOLS "Build tools")
44
option(BUILD_TESTS "Build test suite")
5-
option(BUILD_VIEWER "Build GUI data viewer")
65

76
option(ENABLE_SCRIPT_DEBUG "Enable verbose script execution")
87
option(ENABLE_PROFILING "Enable detailed profiling metrics")

conanfile.py

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,11 @@ class OpenrwConan(ConanFile):
99
description = "OpenRW 'Open ReWrite' is an un-official open source recreation of the classic Grand Theft Auto III game executable"
1010
settings = 'os', 'compiler', 'build_type', 'arch'
1111
options = {
12-
'viewer': [True, False],
1312
'tools': [True, False],
1413
'profiling': [True, False],
1514
}
1615

1716
default_options = {
18-
'viewer': True,
1917
'tools': True,
2018
'profiling': True,
2119
'bullet3:shared': False,
@@ -24,7 +22,7 @@ class OpenrwConan(ConanFile):
2422

2523
generators = 'cmake',
2624
exports_sources = 'CMakeLists.txt', 'cmake_configure.cmake', 'cmake_options.cmake', 'CMakeCPack.cmake', 'COPYING', \
27-
'cmake/modules/*', 'benchmarks', 'rwcore/*', 'rwengine/*', 'rwgame/*', 'rwviewer/*', \
25+
'cmake/modules/*', 'benchmarks', 'rwcore/*', 'rwengine/*', 'rwgame/*', \
2826
'rwtools/*', 'tests/*', 'external/*'
2927

3028
_rw_dependencies = {
@@ -36,24 +34,14 @@ class OpenrwConan(ConanFile):
3634
'sdl2/2.0.9@bincrafters/stable',
3735
'boost/1.68.0@conan/stable',
3836
),
39-
'viewer': (
40-
'qt/5.12.0@bincrafters/stable',
41-
),
4237
'tools': (
4338
'freetype/2.9.0@bincrafters/stable',
4439
),
4540
}
4641

47-
def configure(self):
48-
if self.options.viewer:
49-
self.options['qt'].opengl = 'desktop'
50-
5142
def requirements(self):
5243
for dep in self._rw_dependencies['game']:
5344
self.requires(dep)
54-
if self.options.viewer:
55-
for dep in self._rw_dependencies['viewer']:
56-
self.requires(dep)
5745
if self.options.tools:
5846
for dep in self._rw_dependencies['tools']:
5947
self.requires(dep)
@@ -64,7 +52,6 @@ def _configure_cmake(self):
6452
'BUILD_SHARED_LIBS': False,
6553
'CMAKE_BUILD_TYPE': self.settings.build_type,
6654
'BUILD_TESTS': True,
67-
'BUILD_VIEWER': self.options.viewer,
6855
'BUILD_TOOLS': self.options.tools,
6956
'ENABLE_PROFILING': self.options.profiling,
7057
'USE_CONAN': True,
@@ -79,9 +66,6 @@ def build(self):
7966
cmake.build()
8067

8168
def package(self):
82-
if self.options.viewer:
83-
# FIXME: https://github.com/osechet/conan-qt/issues/6 and https://github.com/conan-io/conan/issues/2619
84-
self.copy('qt.conf', dst='bin', src='rwviewer')
8569
cmake = self._configure_cmake()
8670
cmake.install()
8771

rwviewer/CMakeLists.txt

Lines changed: 0 additions & 67 deletions
This file was deleted.

rwviewer/QOpenGLContextWrapper.cpp

Lines changed: 0 additions & 37 deletions
This file was deleted.

rwviewer/QOpenGLContextWrapper.hpp

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)