mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
feat(build): add nix-shell support
Add a metadata file and build rules to build and test from a development shell provided by the Nix package manager.
This commit is contained in:
parent
f252816f55
commit
faeb699fd0
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