obexftp: first steps to fixing cross

This commit is contained in:
maxice8 2019-01-26 08:56:27 -02:00
parent b2a911d82d
commit 691f4e7a85
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 31 additions and 2 deletions

View file

@ -0,0 +1,29 @@
diff --git a/bfb/CMakeLists.txt b/bfb/CMakeLists.txt
index 008241d..be233aa 100644
--- bfb/CMakeLists.txt
+++ bfb/CMakeLists.txt
@@ -16,14 +16,17 @@ set ( bfb_HEADERS
${bfb_PUBLIC_HEADERS}
)
-add_executable (crctable
- crcmodel.h
- crcmodel.c
- crctable.c
+add_custom_command(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/crctable
+ COMMAND cc
+ ARGS -o ${CMAKE_CURRENT_BINARY_DIR}/crctable ${CMAKE_SOURCE_DIR}/bfb/crcmodel.h ${CMAKE_SOURCE_DIR}/bfb/crcmodel.c ${CMAKE_SOURCE_DIR}/bfb/crctable.c
+ DEPENDS crcmodel.h crcmodel.c crctable.c
)
-add_custom_command ( OUTPUT irda_fcs_table.c
- COMMAND crctable
+add_custom_command (
+ OUTPUT irda_fcs_table.c
+ DEPENDS crctable
+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/crctable
)
add_library ( bfb

View file

@ -2,7 +2,7 @@
pkgname=obexftp
version=0.24.2
revision=2
wrksrc=${pkgname}-${version}-Source
wrksrc="${pkgname}-${version}-Source"
build_style=cmake
hostmakedepends="pkg-config"
makedepends="openobex-devel fuse-devel libbluetooth-devel expat-devel"
@ -13,7 +13,7 @@ homepage="http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp"
distfiles="${SOURCEFORGE_SITE}/openobex/${pkgname}-${version}-Source.tar.gz"
checksum=d40fb48e0a0eea997b3e582774b29f793919a625d54b87182e31a3f3d1c989a3
nocross="crctable needs to be built for the host"
nocross="undefined reference to 'cobex_ctrans'"
post_install() {
# Do not require 'bluetooth', does not exist.