Skip to content

Commit 10d403e

Browse files
authored
Merge pull request #864 from openstudiocoalition/remove_qt_ruby
Remove Qt from ModelEditor Ruby bindings
2 parents 5d17b84 + fa98316 commit 10d403e

Some content is hidden

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

49 files changed

+4394
-5111
lines changed

.github/workflows/app_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ jobs:
435435
pip3 install aqtinstall
436436
aqt list-qt ${{ matrix.QT_OS_NAME }} desktop --arch $QT_VERSION
437437
aqt list-qt ${{ matrix.QT_OS_NAME }} desktop --modules $QT_VERSION ${{ matrix.QT_ARCH }}
438-
aqt install-qt --outputdir ./build/Qt-install/ ${{ matrix.QT_OS_NAME }} desktop $QT_VERSION ${{ matrix.QT_ARCH }} -m qtwebchannel qtwebengine qtwebview qt5compat qtpositioning qtcharts
438+
aqt install-qt --outputdir ./build/Qt-install/ ${{ matrix.QT_OS_NAME }} desktop $QT_VERSION ${{ matrix.QT_ARCH }} -m qtwebchannel qtwebengine qtwebview qtpositioning qtcharts
439439
fi
440440
441441
echo "$QT_INSTALL_DIR/bin" >> $GITHUB_PATH

CMake/CPackSignAndNotarizeDmg.cmake

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,20 @@ if(APPLE AND CPACK_GENERATOR STREQUAL "IFW")
3232
message(FATAL_ERROR "CPACK_CODESIGNING_MACOS_IDENTIFIER is required, this should not have happened")
3333
endif()
3434

35+
foreach(CPACK_PACKAGE_FILE ${CPACK_PACKAGE_FILES})
36+
if(NOT EXISTS "${CPACK_PACKAGE_FILE}")
37+
message(STATUS "File does not exist: ${CPACK_PACKAGE_FILE}")
38+
39+
# wait in case file has not been written to disk yet
40+
execute_process(COMMAND ${CMAKE_COMMAND} -E sleep 10)
41+
42+
if(NOT EXISTS "${CPACK_PACKAGE_FILE}")
43+
message(FATAL_ERROR "File still does not exist: ${CPACK_PACKAGE_FILE}")
44+
endif()
45+
46+
endif()
47+
endforeach()
48+
3549
codesign_files_macos(
3650
FILES ${CPACK_PACKAGE_FILES}
3751
SIGNING_IDENTITY ${CPACK_CODESIGNING_DEVELOPPER_ID_APPLICATION}

CMakeLists.txt

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if(CCACHE_PROGRAM)
1616
set(CMAKE_C_COMPILER_LAUNCHER ${CCACHE_PROGRAM} CACHE FILEPATH "C compiler cache used")
1717
endif()
1818

19-
project(OpenStudioApplication VERSION 1.11.0)
19+
project(OpenStudioApplication VERSION 1.12.0)
2020

2121
# Check system info globally so we can use it everywhere after: Has to be done before FindOpenStudioSDK.cmake
2222
if(APPLE)
@@ -272,7 +272,7 @@ endif()
272272

273273
# TODO: Modify the more specific variables as needed to indicate prerelease, etc
274274
# Keep in beta in-between release cycles. Set to empty string (or comment out) for official)
275-
set(PROJECT_VERSION_PRERELEASE "")
275+
set(PROJECT_VERSION_PRERELEASE "beta")
276276

277277
# OpenStudio version: Only include Major.Minor.Patch, eg "3.0.0", even if you have a prerelease tag
278278
set(OPENSTUDIOAPPLICATION_VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
@@ -544,7 +544,7 @@ message(STATUS "QT_INSTALL_DIR=${QT_INSTALL_DIR}")
544544

545545
find_package(Qt6 ${QT_VERSION} COMPONENTS CoreTools GuiTools WidgetsTools QmlTools WebEngineCoreTools REQUIRED PATHS ${QT_INSTALL_DIR} NO_DEFAULT_PATH)
546546

547-
find_package(Qt6 ${QT_VERSION} COMPONENTS Core Core5Compat Gui Widgets Sql Svg Network Xml Concurrent PrintSupport Quick QuickWidgets Qml WebChannel Positioning WebEngineCore WebEngineWidgets Charts REQUIRED PATHS ${QT_INSTALL_DIR} NO_DEFAULT_PATH)
547+
find_package(Qt6 ${QT_VERSION} COMPONENTS Core Gui Widgets Sql Svg Network Xml Concurrent PrintSupport Quick QuickWidgets Qml WebChannel Positioning WebEngineCore WebEngineWidgets Charts REQUIRED PATHS ${QT_INSTALL_DIR} NO_DEFAULT_PATH)
548548

549549
find_package(Qt6LinguistTools ${QT_VERSION} REQUIRED PATHS ${QT_INSTALL_DIR} NO_DEFAULT_PATH)
550550

@@ -612,7 +612,6 @@ endif()
612612

613613
# QT_LIBS are linked by OS App and by openstudio_modeleditor.so
614614
list(APPEND QT_LIBS Qt6::Core)
615-
list(APPEND QT_LIBS Qt6::Core5Compat)
616615
list(APPEND QT_LIBS Qt6::Widgets)
617616
list(APPEND QT_LIBS Qt6::Network)
618617
list(APPEND QT_LIBS Qt6::Xml)
@@ -643,7 +642,6 @@ list(APPEND QT_INCLUDES ${Qt6Widgets_INCLUDE_DIRS})
643642
list(APPEND QT_INCLUDES ${Qt6Xml_INCLUDE_DIRS})
644643
list(APPEND QT_INCLUDES ${Qt6Network_INCLUDE_DIRS})
645644
list(APPEND QT_INCLUDES ${Qt6Gui_INCLUDE_DIRS})
646-
list(APPEND QT_INCLUDES "${QT_INSTALL_DIR}/include/QtGui/${QT_VERSION}/QtGui") # needed by qtwinmigrate
647645
list(APPEND QT_INCLUDES ${Qt6PrintSupport_INCLUDE_DIRS})
648646

649647
# DLM: added this, but seems to conflict with idea of a separate set of Qt Web dependencies?
@@ -708,10 +706,6 @@ get_target_property(OS_CLI_IMPORTED_PATH openstudio::openstudio LOCATION)
708706
# set(OS_CLI_IMPORTED_NAME "openstudio${CMAKE_EXECUTABLE_SUFFIX}")
709707
get_filename_component(OS_CLI_IMPORTED_NAME ${OS_CLI_IMPORTED_PATH} NAME)
710708

711-
if(WIN32)
712-
include_directories("${PROJECT_SOURCE_DIR}/src/qtwinmigrate")
713-
list(APPEND project_directories "qtwinmigrate")
714-
endif()
715709
list(APPEND project_directories "utilities")
716710
list(APPEND project_directories "model_editor")
717711
list(APPEND project_directories "bimserver")
@@ -730,9 +724,6 @@ add_subdirectory("translations")
730724
# E X P O R T T A R G E T S #
731725
###############################################################################
732726

733-
if(WIN32)
734-
list(APPEND all_lib_targets "qtwinmigrate")
735-
endif()
736727
list(APPEND all_lib_targets "openstudio_modeleditor")
737728
list(APPEND all_lib_targets "openstudio_bimserver")
738729
list(APPEND all_lib_targets "openstudio_lib")

0 commit comments

Comments
 (0)