-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Qt-based config editor #3982
Changes from 29 commits
47f0fec
a6f9c51
9500842
3077fec
d585063
ed0c045
6a7914a
f553782
29fd62e
8b6fe0c
3077add
5f5a06f
5d5b411
aa4205c
3fcfd2c
8232be6
1e0273d
3a05b76
7176c71
15fef17
86d1ce7
f4fca44
fd1f564
58cff72
df86d80
68abe40
bebf420
6c92f94
ca9a94d
e88c57b
72d74ae
cc9ccf8
539d5ed
74da2eb
a444db7
8a5388f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,16 @@ | ||
add_subdirectory(CommonTools) | ||
|
||
if (NOT MINGW_BUILD) | ||
if (BUILD_FEXCONFIG) | ||
if (USE_FEXCONFIG_TOOLKIT STREQUAL "imgui") | ||
add_subdirectory(FEXConfig/) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we have a conditional so that we can only build this variant and not the other? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds reasonable. |
||
endif() | ||
elseif (USE_FEXCONFIG_TOOLKIT STREQUAL "qt") | ||
find_package(Qt6 COMPONENTS Qml Quick Widgets) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5 COMPONENTS Qml Quick Widgets REQUIRED) | ||
endif() | ||
|
||
add_subdirectory(FEXQonfig/) | ||
endif() | ||
|
||
if (ENABLE_GDB_SYMBOLS) | ||
add_subdirectory(FEXGDBReader/) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
set(CMAKE_AUTOMOC ON) | ||
|
||
add_executable(FEXConfig) | ||
target_sources(FEXConfig PRIVATE Main.cpp Main.h) | ||
target_include_directories(FEXConfig PRIVATE ${CMAKE_SOURCE_DIR}/Source/) | ||
target_link_libraries(FEXConfig PRIVATE Common) | ||
if (Qt6_FOUND) | ||
qt_add_resources(QT_RESOURCES qml6.qrc) | ||
target_link_libraries(FEXConfig PRIVATE Qt6::Qml Qt6::Quick Qt6::Widgets) | ||
else() | ||
qt_add_resources(QT_RESOURCES qml5.qrc) | ||
target_link_libraries(FEXConfig PRIVATE Qt5::Qml Qt5::Quick Qt5::Widgets) | ||
endif() | ||
target_sources(FEXConfig PRIVATE ${QT_RESOURCES}) | ||
|
||
if (CMAKE_BUILD_TYPE MATCHES "RELEASE") | ||
target_link_options(FEXConfig | ||
PRIVATE | ||
"LINKER:--gc-sections" | ||
"LINKER:--strip-all" | ||
"LINKER:--as-needed" | ||
) | ||
endif() | ||
|
||
install(TARGETS FEXConfig | ||
RUNTIME | ||
DESTINATION bin | ||
COMPONENT runtime) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to make
qt
the default before merging it?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to update our CI machines before it can be switched to default. Setting the cmake option until then should be fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also probably doesn't hurt to ship this as opt-in for one release, just in case edge case bugs come up :)