Skip to content

Commit 567c6e3

Browse files
author
Raphael Dumusc
committed
Merge pull request #58 from rdumusc/master
Release Deflect 0.8.0
2 parents 762bd59 + 1ab3f29 commit 567c6e3

File tree

6 files changed

+37
-42
lines changed

6 files changed

+37
-42
lines changed

.gitexternals

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# -*- mode: cmake -*-
2-
# CMake/common https://github.com/Eyescale/CMake.git 77c8475
2+
# CMake/common https://github.com/Eyescale/CMake.git 9a0223f

CMake/Deflect.cmake

+3-19
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
1-
set(DEFLECT_PACKAGE_VERSION 0.5)
2-
set(DEFLECT_REPO_URL https://github.com/BlueBrain/Deflect.git)
3-
4-
set(QT5CONCURRENT_CMAKE_INCLUDE "BEFORE SYSTEM")
5-
set(DEFLECT_DEPENDS REQUIRED Boost LibJpegTurbo Qt5Concurrent Qt5Core Qt5Network
6-
Qt5Widgets
7-
OPTIONAL GLUT Servus OpenGL)
8-
set(DEFLECT_BOOST_COMPONENTS "date_time program_options unit_test_framework serialization system thread")
91
set(DEFLECT_DEB_DEPENDS libjpeg-turbo8-dev libturbojpeg freeglut3-dev
102
libboost-test-dev libboost-date-time-dev libboost-program-options-dev
11-
libboost-serialization-dev libboost-system-dev libboost-thread-dev)
12-
set(DEFLECT_PORT_DEPENDS boost freeglut)
13-
set(DEFLECT_SUBPROJECT ON)
14-
15-
if(CI_BUILD_COMMIT)
16-
set(DEFLECT_REPO_TAG ${CI_BUILD_COMMIT})
17-
else()
18-
set(DEFLECT_REPO_TAG master)
19-
endif()
20-
set(DEFLECT_FORCE_BUILD ON)
21-
set(DEFLECT_SOURCE ${CMAKE_SOURCE_DIR})
3+
libboost-serialization-dev libboost-system-dev libboost-thread-dev
4+
qtbase5-dev)
5+
set(DEFLECT_PORT_DEPENDS boost freeglut qt5-mac)

CMake/GitExternal.cmake

+16-10
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
# * Provides function
1111
# git_external(<directory> <giturl> <gittag> [VERBOSE,SHALLOW]
1212
# [RESET <files>])
13-
# which will check out directory in CMAKE_SOURCE_DIR (if relative)
13+
# which will check out directory in COMMON_SOURCE_DIR if relative,
1414
# or in the given absolute path using the given repository and tag
15-
# (commit-ish).
15+
# if commit-ish.
1616
#
1717
# Options which can be supplied to the function:
1818
# VERBOSE, when present, this option tells the function to output
@@ -43,6 +43,9 @@
4343
# If set, a remote called 'user' is set up for github repositories, pointing
4444
# to [email protected]:<user>/<project>. Also, this remote is used by default
4545
# for 'git push'.
46+
# COMMON_SOURCE_DIR
47+
# Download location of the source code of subprojects and externals.
48+
# Defaults to CMAKE_SOURCE_DIR.
4649

4750

4851
if(NOT GIT_FOUND)
@@ -53,8 +56,15 @@ if(NOT GIT_EXECUTABLE)
5356
endif()
5457

5558
include(CMakeParseArguments)
59+
5660
option(GIT_EXTERNAL_VERBOSE "Print git commands as they are executed" OFF)
5761

62+
set(COMMON_SOURCE_DIR "${CMAKE_SOURCE_DIR}" CACHE PATH
63+
"Location of common directory of all sources")
64+
set(__common_source_dir ${COMMON_SOURCE_DIR})
65+
get_filename_component(__common_source_dir ${__common_source_dir} ABSOLUTE)
66+
file(MAKE_DIRECTORY ${__common_source_dir})
67+
5868
if(NOT GITHUB_USER AND DEFINED ENV{GITHUB_USER})
5969
set(GITHUB_USER $ENV{GITHUB_USER} CACHE STRING
6070
"Github user name used to setup remote for 'user' forks")
@@ -95,7 +105,7 @@ function(GIT_EXTERNAL DIR REPO tag)
95105
endif()
96106

97107
if(NOT IS_ABSOLUTE "${DIR}")
98-
set(DIR "${CMAKE_SOURCE_DIR}/${DIR}")
108+
set(DIR "${COMMON_SOURCE_DIR}/${DIR}")
99109
endif()
100110
get_filename_component(NAME "${DIR}" NAME)
101111
get_filename_component(GIT_EXTERNAL_DIR "${DIR}/.." ABSOLUTE)
@@ -151,11 +161,7 @@ function(GIT_EXTERNAL DIR REPO tag)
151161
OUTPUT_QUIET ERROR_QUIET WORKING_DIRECTORY "${DIR}")
152162
endif()
153163

154-
if(COMMON_SOURCE_DIR)
155-
file(RELATIVE_PATH __dir ${COMMON_SOURCE_DIR} ${DIR})
156-
else()
157-
file(RELATIVE_PATH __dir ${CMAKE_SOURCE_DIR} ${DIR})
158-
endif()
164+
file(RELATIVE_PATH __dir ${COMMON_SOURCE_DIR} ${DIR})
159165
string(REGEX REPLACE "[:/\\.]" "-" __target "${__dir}")
160166
if(TARGET ${__target}-rebase)
161167
return()
@@ -301,11 +307,11 @@ if(EXISTS ${GIT_EXTERNALS} AND NOT GIT_EXTERNAL_SCRIPT_MODE)
301307
file(WRITE "${GIT_EXTERNAL_SCRIPT}" "
302308
include(\"${CMAKE_CURRENT_LIST_DIR}/GitExternal.cmake\")
303309
execute_process(COMMAND \"${GIT_EXECUTABLE}\" fetch origin -q
304-
WORKING_DIRECTORY \"${DIR}\")
310+
WORKING_DIRECTORY \"${COMMON_SOURCE_DIR}/${DIR}\")
305311
execute_process(
306312
COMMAND \"${GIT_EXECUTABLE}\" show-ref --hash=7 refs/remotes/origin/master
307313
OUTPUT_VARIABLE newref OUTPUT_STRIP_TRAILING_WHITESPACE
308-
WORKING_DIRECTORY \"${DIR}\")
314+
WORKING_DIRECTORY \"${COMMON_SOURCE_DIR}/${DIR}\")
309315
if(newref)
310316
file(APPEND ${GIT_EXTERNALS} \"# ${DIR} ${REPO} \${newref}\\n\")
311317
git_external(${DIR} ${REPO} \${newref})

README.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ Deflect provides the following functionality:
1414
* Compressed or uncompressed streaming
1515
* Fast multi-threaded JPEG compression (using libjpeg-turbo)
1616

17+
DeflectQt (optional) provides the following additional functionality:
18+
19+
* Create QML applications which render offscreen and stream and receive events
20+
via Deflect
21+
1722
The following applications are provided which make use of the streaming API:
1823

1924
* DesktopStreamer: A small utility that lets you stream your desktop.
2025
* SimpleStreamer: A simple example to demonstrate streaming of an OpenGL
2126
application.
27+
* QmlStreamer (optional): An offscreen application to stream any given qml file.
2228

2329
## Building from source
2430

@@ -32,8 +38,7 @@ The following applications are provided which make use of the streaming API:
3238

3339
## ChangeLog
3440

35-
To keep track of the changes between releases check the
36-
[changelog](doc/Changelog.md).
41+
To keep track of the changes between releases check the @ref Changelog.
3742

3843
## About
3944

apps/QmlStreamer/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
set(QMLSTREAMER_SOURCES main.cpp)
66
set(QMLSTREAMER_RESOURCES resources.qrc)
77
set(QMLSTREAMER_LINK_LIBRARIES DeflectQt)
8-
common_application(QmlStreamer)
8+
common_application(qmlstreamer)

doc/Changelog.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Changelog {#Changelog}
33

44
## Deflect 0.8
55

6-
### 0.8.0 (git master)
7-
* Fix: ZeroConf record for server announces hostname instead of (wrong) port
8-
* Fix: send compressed JPEG images from correct thread, might fix crashes/hangs
9-
* Fix [#45](https://github.com/BlueBrain/Deflect/issues/45): Mouse position for
10-
DesktopStreamer is rendered correctly on Retina displays
11-
* Fix interaction with DesktopStreamer on OSX where one click resulted in two
12-
clicks
13-
* Added MTQueue class, moved from DisplayCluster
6+
### 0.8.0 (04-11-2015)
147
* Added DeflectQt library to create QML applications which render offscreen and
158
stream and receive events via Deflect
169
* Added deflect::Stream::sendSizeHints()
10+
* Added MTQueue class, moved from DisplayCluster
1711
* Fix [54](https://github.com/BlueBrain/Deflect/issues/54): ZeroConf discovery
18-
in DesktopStreamer uses hostname instead of instance name.
12+
in DesktopStreamer uses hostname instead of instance name
13+
* Fix interaction with DesktopStreamer on OSX where one click resulted in two
14+
clicks
15+
* Fix [45](https://github.com/BlueBrain/Deflect/issues/45): Mouse position for
16+
DesktopStreamer is rendered correctly on Retina displays
17+
* Fix: send compressed JPEG images from correct thread, might fix crashes/hangs
18+
* Fix: ZeroConf record for server announces hostname instead of (wrong) port
1919

2020
## Deflect 0.7
2121

0 commit comments

Comments
 (0)