mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Merge pull request #5946
Emery Hemingway (1): feat(build): add nix-shell support
This commit is contained in:
commit
9765cf5c72
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -16,6 +16,7 @@ qtox
|
||||||
build-*-Release
|
build-*-Release
|
||||||
build-*-Profile
|
build-*-Profile
|
||||||
build-*-Debug
|
build-*-Debug
|
||||||
|
.qtox-wrapped
|
||||||
|
|
||||||
# Folders
|
# Folders
|
||||||
_[Bb]uild*/
|
_[Bb]uild*/
|
||||||
|
|
|
@ -714,3 +714,12 @@ target_link_libraries(${PROJECT_NAME}
|
||||||
|
|
||||||
include(Testing)
|
include(Testing)
|
||||||
include(Installation)
|
include(Installation)
|
||||||
|
|
||||||
|
if (DEFINED ENV{IN_NIX_SHELL})
|
||||||
|
# the qtox binary must be "wrapped" to find the Qt platform plugin
|
||||||
|
# and other dependencies at runtime
|
||||||
|
add_custom_command(
|
||||||
|
TARGET ${PROJECT_NAME}
|
||||||
|
POST_BUILD
|
||||||
|
COMMAND nix-shell --run "wrapQtApp ${PROJECT_NAME}")
|
||||||
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user