Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 10 additions & 16 deletions CMake/GitExternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# * Provides function
# git_external(<directory> <giturl> <gittag> [VERBOSE,SHALLOW]
# [RESET <files>])
# which will check out directory in COMMON_SOURCE_DIR if relative,
# which will check out directory in CMAKE_SOURCE_DIR (if relative)
# or in the given absolute path using the given repository and tag
# if commit-ish.
# (commit-ish).
#
# Options which can be supplied to the function:
# VERBOSE, when present, this option tells the function to output
Expand Down Expand Up @@ -43,9 +43,6 @@
# If set, a remote called 'user' is set up for github repositories, pointing
# to git@github.com:<user>/<project>. Also, this remote is used by default
# for 'git push'.
# COMMON_SOURCE_DIR
# Download location of the source code of subprojects and externals.
# Defaults to CMAKE_SOURCE_DIR.


if(NOT GIT_FOUND)
Expand All @@ -56,15 +53,8 @@ if(NOT GIT_EXECUTABLE)
endif()

include(CMakeParseArguments)

option(GIT_EXTERNAL_VERBOSE "Print git commands as they are executed" OFF)

set(COMMON_SOURCE_DIR "${CMAKE_SOURCE_DIR}" CACHE PATH
"Location of common directory of all sources")
set(__common_source_dir ${COMMON_SOURCE_DIR})
get_filename_component(__common_source_dir ${__common_source_dir} ABSOLUTE)
file(MAKE_DIRECTORY ${__common_source_dir})

if(NOT GITHUB_USER AND DEFINED ENV{GITHUB_USER})
set(GITHUB_USER $ENV{GITHUB_USER} CACHE STRING
"Github user name used to setup remote for 'user' forks")
Expand Down Expand Up @@ -105,7 +95,7 @@ function(GIT_EXTERNAL DIR REPO tag)
endif()

if(NOT IS_ABSOLUTE "${DIR}")
set(DIR "${COMMON_SOURCE_DIR}/${DIR}")
set(DIR "${CMAKE_SOURCE_DIR}/${DIR}")
endif()
get_filename_component(NAME "${DIR}" NAME)
get_filename_component(GIT_EXTERNAL_DIR "${DIR}/.." ABSOLUTE)
Expand Down Expand Up @@ -161,7 +151,11 @@ function(GIT_EXTERNAL DIR REPO tag)
OUTPUT_QUIET ERROR_QUIET WORKING_DIRECTORY "${DIR}")
endif()

file(RELATIVE_PATH __dir ${COMMON_SOURCE_DIR} ${DIR})
if(COMMON_SOURCE_DIR)
file(RELATIVE_PATH __dir ${COMMON_SOURCE_DIR} ${DIR})
else()
file(RELATIVE_PATH __dir ${CMAKE_SOURCE_DIR} ${DIR})
endif()
string(REGEX REPLACE "[:/\\.]" "-" __target "${__dir}")
if(TARGET ${__target}-rebase)
return()
Expand Down Expand Up @@ -307,11 +301,11 @@ if(EXISTS ${GIT_EXTERNALS} AND NOT GIT_EXTERNAL_SCRIPT_MODE)
file(WRITE "${GIT_EXTERNAL_SCRIPT}" "
include(\"${CMAKE_CURRENT_LIST_DIR}/GitExternal.cmake\")
execute_process(COMMAND \"${GIT_EXECUTABLE}\" fetch origin -q
WORKING_DIRECTORY \"${COMMON_SOURCE_DIR}/${DIR}\")
WORKING_DIRECTORY \"${CMAKE_SOURCE_DIR}/${DIR}\")
execute_process(
COMMAND \"${GIT_EXECUTABLE}\" show-ref --hash=7 refs/remotes/origin/master
OUTPUT_VARIABLE newref OUTPUT_STRIP_TRAILING_WHITESPACE
WORKING_DIRECTORY \"${COMMON_SOURCE_DIR}/${DIR}\")
WORKING_DIRECTORY \"${CMAKE_SOURCE_DIR}/${DIR}\")
if(newref)
file(APPEND ${GIT_EXTERNALS} \"# ${DIR} ${REPO} \${newref}\\n\")
git_external(${DIR} ${REPO} \${newref})
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake
include(GitExternal)

set(VERSION_MAJOR "0")
set(VERSION_MINOR "8")
set(VERSION_MINOR "9")
set(VERSION_PATCH "0")
set(VERSION_ABI 2)

Expand Down
9 changes: 4 additions & 5 deletions apps/DesktopStreamer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
# Raphael Dumusc <raphael.dumusc@epfl.ch>

set(DESKTOPSTREAMER_MOC_HEADERS
DesktopSelectionWindow.h
DesktopSelectionRectangle.h
MainWindow.h
)

set(DESKTOPSTREAMER_SOURCES
DesktopSelectionRectangle.cpp
DesktopSelectionWindow.cpp
DesktopSelectionView.cpp
MainWindow.cpp
main.cpp
)

set(DESKTOPSTREAMER_UI_FORMS
MainWindow.ui
)

set(DESKTOPSTREAMER_LINK_LIBRARIES
Deflect
Qt5::Core
Expand Down
126 changes: 0 additions & 126 deletions apps/DesktopStreamer/DesktopSelectionRectangle.cpp

This file was deleted.

72 changes: 0 additions & 72 deletions apps/DesktopStreamer/DesktopSelectionRectangle.h

This file was deleted.

74 changes: 0 additions & 74 deletions apps/DesktopStreamer/DesktopSelectionView.cpp

This file was deleted.

Loading