forked from ares-emulator/ares
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
199 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# Stage and install slang shaders | ||
if(ARES_ENABLE_LIBRASHADER) | ||
add_custom_command( | ||
TARGET desktop-ui | ||
POST_BUILD | ||
COMMAND | ||
cp -R "${CMAKE_SOURCE_DIR}/.deps/ares-deps-linux-universal/lib/slang-shaders/." | ||
"${ARES_BUILD_OUTPUT_DIR}/$<CONFIG>/Shaders" | ||
COMMENT "Copying slang shaders to staging directory" | ||
) | ||
|
||
install( | ||
DIRECTORY "${CMAKE_SOURCE_DIR}/.deps/ares-deps-linux-universal/lib/slang-shaders/" | ||
DESTINATION "${ARES_INSTALL_DATA_DESTINATION}/Shaders" | ||
USE_SOURCE_PERMISSIONS | ||
COMPONENT Runtime | ||
) | ||
endif() | ||
|
||
# Stage and install mia database | ||
add_custom_command( | ||
TARGET desktop-ui | ||
POST_BUILD | ||
COMMAND "${CMAKE_COMMAND}" -E make_directory "${ARES_BUILD_OUTPUT_DIR}/$<CONFIG>/Database" | ||
COMMAND | ||
cp -R "${CMAKE_SOURCE_DIR}/mia/Database/." | ||
"${ARES_BUILD_OUTPUT_DIR}/$<CONFIG>/Database/" | ||
COMMENT "Copying mia database to staging directory" | ||
) | ||
|
||
install( | ||
DIRECTORY "${CMAKE_SOURCE_DIR}/mia/Database/" | ||
DESTINATION "${ARES_INSTALL_DATA_DESTINATION}/Database" | ||
USE_SOURCE_PERMISSIONS | ||
COMPONENT Runtime | ||
) | ||
|
||
# Stage and install icon, .desktop file | ||
add_custom_command( | ||
TARGET desktop-ui | ||
POST_BUILD | ||
COMMAND | ||
cp "${CMAKE_CURRENT_SOURCE_DIR}/resource/ares.desktop" | ||
"${ARES_BUILD_OUTPUT_DIR}/$<CONFIG>/ares.desktop" | ||
COMMAND | ||
cp "${CMAKE_CURRENT_SOURCE_DIR}/resource/ares.png" | ||
"${ARES_BUILD_OUTPUT_DIR}/$<CONFIG>/ares.png" | ||
COMMENT "Copying icon to staging directory" | ||
) | ||
|
||
install( | ||
FILES "${CMAKE_CURRENT_SOURCE_DIR}/resource/ares.desktop" | ||
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/applications" | ||
COMPONENT Runtime | ||
) | ||
|
||
install( | ||
FILES "${CMAKE_CURRENT_SOURCE_DIR}/resource/ares.png" | ||
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps" | ||
COMPONENT Runtime | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
find_package(X11) | ||
|
||
option(USE_QT5 "Use Qt5 UI backend" OFF) | ||
mark_as_advanced(USE_QT5) | ||
|
||
if(NOT USE_QT5) | ||
find_package(GTK REQUIRED) | ||
target_compile_definitions(hiro PRIVATE HIRO_GTK) | ||
|
||
target_link_libraries(hiro PRIVATE GTK::GTK X11::X11) | ||
|
||
target_enable_feature(hiro "GTK3 UI backend" HIRO_GTK=3) | ||
else() | ||
find_package(Qt6 COMPONENTS Widgets Xcb REQUIRED) | ||
|
||
find_program(qt_moc moc-qt6 moc) | ||
|
||
execute_process( | ||
COMMAND qt_moc -i -o ${CMAKE_CURRENT_SOURCE_DIR}/qt/qt.moc ${CMAKE_CURRENT_SOURCE_DIR}/qt/qt.hpp | ||
) | ||
|
||
target_link_libraries(hiro PRIVATE X11::X11 Qt6::Core Qt6::Gui Qt6::Widgets Qt6::Xcb) | ||
|
||
target_enable_feature(hiro "Qt6 UI backend" HIRO_QT=5) | ||
endif() | ||
|
||
get_target_property(hiro_SOURCES hiro SOURCES) | ||
|
||
set_source_files_properties(hiro ${hiro_SOURCES} PROPERTIES HEADER_FILE_ONLY TRUE) | ||
|
||
set_source_files_properties(hiro hiro.cpp PROPERTIES HEADER_FILE_ONLY FALSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -448,4 +448,5 @@ target_sources( | |
cmake/sources.cmake | ||
cmake/os-windows.cmake | ||
cmake/os-linux.cmake | ||
cmake/os-freebsd.cmake | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
target_compile_definitions(nall PUBLIC PLATFORM_BSD) | ||
|
||
target_sources( | ||
nall | ||
PRIVATE # cmake-format: sortable | ||
xorg/clipboard.hpp | ||
xorg/guard.hpp | ||
xorg/xorg.hpp | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.