Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
211
Issues
211
List
Boards
Labels
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
e7c502d0
Commit
e7c502d0
authored
Apr 19, 2018
by
Antoine Regimbeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SuperBuild: add font for QT5
parent
f80564de
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
2 deletions
+48
-2
Modules/Wrappers/QtWidget/src/otbQtApplication.cxx
Modules/Wrappers/QtWidget/src/otbQtApplication.cxx
+1
-1
SuperBuild/CMake/External_qt5.cmake
SuperBuild/CMake/External_qt5.cmake
+9
-1
SuperBuild/CMake/font_qt.cmake
SuperBuild/CMake/font_qt.cmake
+38
-0
No files found.
Modules/Wrappers/QtWidget/src/otbQtApplication.cxx
View file @
e7c502d0
...
...
@@ -28,7 +28,7 @@ namespace Wrapper
QtApplication
::
QtApplication
(
int
&
argcc
,
char
**
argvv
)
:
QApplication
(
argcc
,
argvv
)
{
std
::
cout
<<
QApplication
::
font
().
defaultFamily
().
toStdString
()
<<
std
::
endl
;
}
bool
...
...
SuperBuild/CMake/External_qt5.cmake
View file @
e7c502d0
...
...
@@ -57,7 +57,7 @@ set(QT5_SB_CONFIG
"-prefix
${
QT5_INSTALL_PREFIX_NATIVE
}
-L
${
QT5_LIB_PREFIX_NATIVE
}
\
-I
${
QT5_INCLUDE_PREFIX_NATIVE
}
-I
${
QT5_INCLUDE_FREETYPE_NATIVE
}
\
-opensource -confirm-license -release -shared \
-nomake examples -
no
make tools -no-openssl \
-nomake examples -make tools -no-openssl \
-skip qtgamepad \
-skip qt3d \
-skip qtactiveqt \
...
...
@@ -194,3 +194,11 @@ configure_file( ${QT5_CONFIGURE_COMMAND_IN} ${QT5_CONFIGURE_COMMAND} @ONLY )
SUPERBUILD_PATCH_SOURCE
(
QT5
)
set
(
_SB_QT_QMAKE_EXECUTABLE
${
SB_INSTALL_PREFIX
}
/bin/qmake
)
if
(
UNIX AND NOT APPLE
)
ExternalProject_Add_Step
(
QT5 adding_font
COMMAND
${
CMAKE_COMMAND
}
-D BUILD_DIR=
${
QT5_SB_BUILD_DIR
}
-D INSTALL_DIR=
${
SB_INSTALL_PREFIX
}
-D DOWNLOAD_LOCATION=
${
DOWNLOAD_LOCATION
}
-P /home/antoine/dev/off_otbL/otb/SuperBuild/CMake/font_qt.cmake
DEPENDEES install
WORKING_DIRECTORY
${
SB_INSTALL_PREFIX
}
)
endif
()
SuperBuild/CMake/font_qt.cmake
0 → 100644
View file @
e7c502d0
#
# Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES)
#
# This file is part of Orfeo Toolbox
#
# https://www.orfeo-toolbox.org/
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
get_filename_component
(
BUILD_DIR
${
BUILD_DIR
}
DIRECTORY
)
if
(
NOT DOWNLOAD_LOCATION
)
set
(
DOWNLOAD_LOCATION
${
BUILD_DIR
}
/src/
)
endif
()
file
(
MAKE_DIRECTORY
${
INSTALL_DIR
}
/lib/fonts/
)
file
(
DOWNLOAD
http://sourceforge.net/projects/dejavu/files/dejavu/2.37/dejavu-fonts-ttf-2.37.tar.bz2
${
DOWNLOAD_LOCATION
}
/dejavu-fonts-ttf-2.37.tar.bz2
EXPECTED_MD5 d0efec10b9f110a32e9b8f796e21782c
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E tar -xf
${
DOWNLOAD_LOCATION
}
/dejavu-fonts-ttf-2.37.tar.bz2
WORKING_DIRECTORY
${
BUILD_DIR
}
)
file
(
COPY
${
BUILD_DIR
}
/dejavu-fonts-ttf-2.37/ttf/.
DESTINATION
${
INSTALL_DIR
}
/lib/fonts/.
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment