Skip to content

Commit 8ea127d

Browse files
committed
Update source code for RRA v1.4 release
1 parent bcb42ee commit 8ea127d

105 files changed

Lines changed: 1431 additions & 777 deletions

File tree

Some content is hidden

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

CMakeLists.txt

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
cmake_minimum_required(VERSION 3.11)
22

3-
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/source/renderer/cmake")
3+
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
4+
include(dev_tools)
45

56
## Specify the top level name of the project - this will define the solution name for Visual Studio
67
project(RRA)
78

89
# Define version information
910
set(RRA_MAJOR_VERSION 1)
10-
set(RRA_MINOR_VERSION 3)
11+
set(RRA_MINOR_VERSION 4)
1112
if (NOT RRA_BUGFIX_NUMBER)
12-
set(RRA_BUGFIX_NUMBER 1)
13+
set(RRA_BUGFIX_NUMBER 0)
1314
endif ()
1415
if (NOT RRA_BUILD_NUMBER)
1516
set(RRA_BUILD_NUMBER 0)
@@ -39,6 +40,7 @@ IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
3940
set(ADT_PLATFORM_POSTFIX "-x64")
4041
ENDIF()
4142

43+
# As default for RRA, include the debug status in filename - but not the platform bitness
4244
set (CMAKE_DEBUG_POSTFIX -d)
4345
set (CMAKE_RELEASE_POSTFIX)
4446

@@ -53,29 +55,17 @@ ENDIF(WIN32)
5355
# Add for CentOS compiler warning
5456
add_definitions(-DJSON_SKIP_UNSUPPORTED_COMPILER_CHECK)
5557

56-
# Define C++ standard for RRA
57-
set(CMAKE_CXX_STANDARD 17)
58-
5958
include_directories("${PROJECT_SOURCE_DIR}/external/")
6059
include_directories("${PROJECT_SOURCE_DIR}/external/qt_common/")
6160
include_directories("${PROJECT_SOURCE_DIR}/external/third_party/")
6261
include_directories("${PROJECT_SOURCE_DIR}/external/third_party/vulkan/include/")
6362

6463
# Global compiler options
6564
IF(WIN32)
66-
add_compile_options(/MP)
67-
# disable warning C4201: nonstandard extension used: nameless struct/union
68-
add_compile_options(/wd4201)
69-
# this warning is caused by the QT header files - use pragma to disable at source
70-
# disable warning C4127: conditional expression is constant
71-
add_compile_options(/wd4127)
72-
# this warning is caused by QT header files and has been introduced by VS2019 16.9.6
73-
# disable warning C5240: 'nodiscard': attribute is ignored in this syntactic position
74-
add_compile_options(/wd5240)
7565
# bump the stack size
7666
add_link_options(/STACK:16777216)
7767
ELSEIF(UNIX)
78-
add_compile_options(-D_LINUX -mno-avx2)
68+
add_compile_options(-mno-avx2)
7969
# Allow executable to be double clicked.
8070
add_link_options(-no-pie)
8171
# Use _DEBUG on Unix for Debug Builds (defined automatically on Windows)

build/pre_build.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
parser.add_argument("--qt-root", default="~/Qt", help="specify the root directory for locating QT on this system (default: ~/Qt) ")
6464
else:
6565
parser.add_argument("--qt-root", default="~/Qt", help="specify the root directory for locating QT on this system (default: ~/Qt) ")
66-
parser.add_argument("--disable-extra-qt-lib-deploy", action="store_true", help="prevent extra Qt library files (XCB and ICU libs) from being copied during post build step")
6766
parser.add_argument("--qt-system", action="store_true", help="use the system-installed version of QT")
6867
parser.add_argument("--qt", default="5.15.2", help="specify the version of QT to be used with the script (default: 5.15.2)" )
6968
parser.add_argument("--clean", action="store_true", help="delete any directories created by this script")
@@ -264,8 +263,6 @@ def generate_config(config):
264263

265264

266265
if sys.platform.startswith('linux'):
267-
if args.disable_extra_qt_lib_deploy:
268-
cmake_args.extend(["-DDISABLE_EXTRA_QT_LIB_DEPLOY:BOOL=TRUE"])
269266
if args.qt_system:
270267
cmake_args.extend(["-DQT_SYSTEM:BOOL=TRUE"])
271268

cmake/dev_tools.cmake

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ function(devtools_target_options name)
3030
-Wall
3131
-Werror
3232
-Wextra
33-
-Wno-deprecated-declarations
34-
-Wno-unused-variable
35-
-Wno-missing-field-initializers
36-
-Wno-unknown-pragmas
3733
)
34+
3835
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
3936
target_compile_options(${name}
4037
PRIVATE
@@ -50,8 +47,12 @@ function(devtools_target_options name)
5047
/wd4127
5148

5249
# Disable warnings about deprecated features
53-
# This happens when using later versions of Qt than RDP defaults to.
50+
# This happens when using later versions of Qt than RRA defaults to.
5451
/wd4996
52+
53+
# this warning is caused by QT header files and has been introduced by VS2019 16.9.6
54+
# disable warning C5240: 'nodiscard': attribute is ignored in this syntactic position
55+
/wd5240
5556
)
5657
else ()
5758

cmake/devtools_qt_helper.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,13 @@ if (Qt5_DIR OR Qt6_DIR)
8787
${CMAKE_COMMAND} -E env LD_LIBRARY_PATH=${EXTERNAL_DIR}/libtraceevent/lib:${EXTERNAL_DIR}/libtracefs/lib:${_qt_bin_dir}/../lib
8888
${DEPLOYQT_EXECUTABLE} $<TARGET_FILE:${target}> -qmake=${QT_QMAKE_EXECUTABLE} -verbose=0 -unsupported-allow-new-glibc
8989
WORKING_DIRECTORY ${output_directory})
90+
# If Qt5, install X11Extras
91+
if (Qt5_DIR)
92+
add_custom_command(
93+
TARGET ${target} POST_BUILD
94+
COMMAND ${CMAKE_COMMAND} -E make_directory $<TARGET_FILE_DIR:${PROJECT_NAME}>/lib
95+
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${_qt_bin_dir}/../lib/libQt5X11Extras.so.5 $<TARGET_FILE_DIR:${PROJECT_NAME}>/lib)
96+
endif()
9097
elseif (include_mac)
9198

9299
set(DEPLOYQT_POST_BUILD_COMMAND
Lines changed: 36 additions & 68 deletions
Loading
Lines changed: 36 additions & 68 deletions
Loading

0 commit comments

Comments
 (0)