blob: 67023df2cbcff4709a417568993c177ba22e1cb4 [file] [log] [blame]
Brad Bishop0f291cc2019-09-01 15:16:57 -04001From 30bd4ae3badb152c9f81c6d34014c586fa0cc825 Mon Sep 17 00:00:00 2001
2From: Piotr Tworek <tworaz@tworaz.net>
3Date: Mon, 12 Aug 2019 14:13:52 +0200
4Subject: [PATCH 4/7] Add native suffix to exacutables produced and run during
5 build process.
6
7CMake can't build tools for the host system when cross compiling. As
8result eds currently fails to build in OE due to some programs being
9cross compiled for the target and run on the host. To work around this
10limitation modify existing targets using build time generated binaries
11to invoke binaries suffixed with -native. We can inject such binaries
12into expected locations prior to invoking ninja in do_compile.
13
14Upstream-Status: Inappropriate [OE specific]
15
16Signed-off-by: Piotr Tworek <tworaz@tworaz.net>
17---
18 src/addressbook/libebook-contacts/CMakeLists.txt | 2 +-
19 src/camel/CMakeLists.txt | 2 +-
20 2 files changed, 2 insertions(+), 2 deletions(-)
21
22diff --git a/src/addressbook/libebook-contacts/CMakeLists.txt b/src/addressbook/libebook-contacts/CMakeLists.txt
23index e9e3259..2ae72a8 100644
24--- a/src/addressbook/libebook-contacts/CMakeLists.txt
25+++ b/src/addressbook/libebook-contacts/CMakeLists.txt
26@@ -25,7 +25,7 @@ target_link_libraries(gen-western-table
27
28 add_custom_command(
29 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/e-name-western-tables.h
30- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/gen-western-table "${CMAKE_CURRENT_SOURCE_DIR}/e-name-western-tables.h.in" >${CMAKE_CURRENT_BINARY_DIR}/e-name-western-tables.h
31+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/gen-western-table-native "${CMAKE_CURRENT_SOURCE_DIR}/e-name-western-tables.h.in" >${CMAKE_CURRENT_BINARY_DIR}/e-name-western-tables.h
32 DEPENDS gen-western-table e-name-western-tables.h.in
33 )
34
35diff --git a/src/camel/CMakeLists.txt b/src/camel/CMakeLists.txt
36index be626a8..9226b2b 100644
37--- a/src/camel/CMakeLists.txt
38+++ b/src/camel/CMakeLists.txt
39@@ -10,7 +10,7 @@ target_include_directories(camel-gen-tables PUBLIC
40
41 add_custom_command(
42 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/camel-mime-tables.c
43- COMMAND ${CMAKE_CURRENT_BINARY_DIR}/camel-gen-tables >${CMAKE_CURRENT_BINARY_DIR}/camel-mime-tables.c
44+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/camel-gen-tables-native >${CMAKE_CURRENT_BINARY_DIR}/camel-mime-tables.c
45 DEPENDS camel-gen-tables
46 )
47
48--
492.21.0
50