diff options
-rw-r--r-- | recipes-qt/qt5/qttools/0002-linguist-tools-cmake-allow-overriding-the-location-f.patch | 61 |
1 files changed, 21 insertions, 40 deletions
diff --git a/recipes-qt/qt5/qttools/0002-linguist-tools-cmake-allow-overriding-the-location-f.patch b/recipes-qt/qt5/qttools/0002-linguist-tools-cmake-allow-overriding-the-location-f.patch index c1f14d4a..6f8e7f91 100644 --- a/recipes-qt/qt5/qttools/0002-linguist-tools-cmake-allow-overriding-the-location-f.patch +++ b/recipes-qt/qt5/qttools/0002-linguist-tools-cmake-allow-overriding-the-location-f.patch | |||
@@ -1,60 +1,41 @@ | |||
1 | From cc5d0bc4434805fc78e9e7045810c1e0c323ad61 Mon Sep 17 00:00:00 2001 | 1 | From 3f7d07226745370dd6dfc3ffddec5f00ea9b75e1 Mon Sep 17 00:00:00 2001 |
2 | From: Cody P Schafer <dev@codyps.com> | 2 | From: Samuli Piippo <samuli.piippo@qt.io> |
3 | Date: Thu, 9 Jul 2015 11:28:19 -0400 | 3 | Date: Mon, 18 Feb 2019 10:45:03 +0200 |
4 | Subject: [PATCH] linguist-tools cmake: allow overriding the location for | 4 | Subject: [PATCH] linguist-tools cmake: allow overriding the location for |
5 | lupdate and lrelease | 5 | lupdate and lrelease |
6 | 6 | ||
7 | --- | 7 | --- |
8 | src/linguist/Qt5LinguistToolsConfig.cmake.in | 15 +++------------ | 8 | src/linguist/Qt5LinguistToolsConfig.cmake.in | 6 +++--- |
9 | 1 file changed, 3 insertions(+), 12 deletions(-) | 9 | 1 file changed, 3 insertions(+), 3 deletions(-) |
10 | 10 | ||
11 | diff --git a/src/linguist/Qt5LinguistToolsConfig.cmake.in b/src/linguist/Qt5LinguistToolsConfig.cmake.in | 11 | diff --git a/src/linguist/Qt5LinguistToolsConfig.cmake.in b/src/linguist/Qt5LinguistToolsConfig.cmake.in |
12 | index 4318b16f..2e3b70fa 100644 | 12 | index 4318b16f..f957a384 100644 |
13 | --- a/src/linguist/Qt5LinguistToolsConfig.cmake.in | 13 | --- a/src/linguist/Qt5LinguistToolsConfig.cmake.in |
14 | +++ b/src/linguist/Qt5LinguistToolsConfig.cmake.in | 14 | +++ b/src/linguist/Qt5LinguistToolsConfig.cmake.in |
15 | @@ -26,6 +26,9 @@ get_filename_component(_qt5_linguisttools_install_prefix \"${CMAKE_CURRENT_LIST_ | 15 | @@ -47,7 +47,7 @@ if (NOT TARGET Qt5::lrelease) |
16 | !!ELSE | 16 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) |
17 | set(_qt5_linguisttools_install_prefix \"$$[QT_INSTALL_PREFIX]\") | ||
18 | !!ENDIF | ||
19 | +if (OE_QMAKE_PATH_HOST_PREFIX) | ||
20 | + set(_qt5_linguisttools_install_prefix \"${OE_QMAKE_PATH_HOST_PREFIX}\") | ||
21 | +endif() | ||
22 | |||
23 | macro(_qt5_LinguistTools_check_file_exists file) | ||
24 | if(NOT EXISTS \"${file}\" ) | ||
25 | @@ -44,11 +47,7 @@ endmacro() | ||
26 | if (NOT TARGET Qt5::lrelease) | ||
27 | add_executable(Qt5::lrelease IMPORTED) | ||
28 | |||
29 | -!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
30 | set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\") | 17 | set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\") |
31 | -!!ELSE | 18 | !!ELSE |
32 | - set(imported_location \"$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\") | 19 | - set(imported_location \"$${CMAKE_BIN_DIR}lrelease$$CMAKE_BIN_SUFFIX\") |
33 | -!!ENDIF | 20 | + set(imported_location \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lrelease${OE_QMAKE_BIN_SUFFIX}\") |
21 | !!ENDIF | ||
34 | _qt5_LinguistTools_check_file_exists(${imported_location}) | 22 | _qt5_LinguistTools_check_file_exists(${imported_location}) |
35 | 23 | ||
36 | set_target_properties(Qt5::lrelease PROPERTIES | 24 | @@ -62,7 +62,7 @@ if (NOT TARGET Qt5::lupdate) |
37 | @@ -59,11 +58,7 @@ endif() | 25 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) |
38 | if (NOT TARGET Qt5::lupdate) | ||
39 | add_executable(Qt5::lupdate IMPORTED) | ||
40 | |||
41 | -!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
42 | set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\") | 26 | set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\") |
43 | -!!ELSE | 27 | !!ELSE |
44 | - set(imported_location \"$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\") | 28 | - set(imported_location \"$${CMAKE_BIN_DIR}lupdate$$CMAKE_BIN_SUFFIX\") |
45 | -!!ENDIF | 29 | + set(imported_location \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lupdate${OE_QMAKE_BIN_SUFFIX}\") |
30 | !!ENDIF | ||
46 | _qt5_LinguistTools_check_file_exists(${imported_location}) | 31 | _qt5_LinguistTools_check_file_exists(${imported_location}) |
47 | 32 | ||
48 | set_target_properties(Qt5::lupdate PROPERTIES | 33 | @@ -77,7 +77,7 @@ if (NOT TARGET Qt5::lconvert) |
49 | @@ -74,11 +69,7 @@ endif() | 34 | !!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) |
50 | if (NOT TARGET Qt5::lconvert) | ||
51 | add_executable(Qt5::lconvert IMPORTED) | ||
52 | |||
53 | -!!IF isEmpty(CMAKE_BIN_DIR_IS_ABSOLUTE) | ||
54 | set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\") | 35 | set(imported_location \"${_qt5_linguisttools_install_prefix}/$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\") |
55 | -!!ELSE | 36 | !!ELSE |
56 | - set(imported_location \"$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\") | 37 | - set(imported_location \"$${CMAKE_BIN_DIR}lconvert$$CMAKE_BIN_SUFFIX\") |
57 | -!!ENDIF | 38 | + set(imported_location \"${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lconvert${OE_QMAKE_BIN_SUFFIX}\") |
39 | !!ENDIF | ||
58 | _qt5_LinguistTools_check_file_exists(${imported_location}) | 40 | _qt5_LinguistTools_check_file_exists(${imported_location}) |
59 | 41 | ||
60 | set_target_properties(Qt5::lconvert PROPERTIES | ||