mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
cmake: remove creating cmake configfiles here (moved to setup_toolchain() )
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
aca0869cf4
commit
4e7c8d7e7c
@ -42,54 +42,3 @@ configure_host() {
|
||||
-DCMAKE_USE_OPENSSL=ON \
|
||||
-DBUILD_CursesDialog=0
|
||||
}
|
||||
|
||||
post_makeinstall_host() {
|
||||
mkdir -p $ROOT/$TOOLCHAIN/etc
|
||||
|
||||
cat >$ROOT/$TOOLCHAIN/etc/cmake-$TARGET_NAME.conf <<EOF
|
||||
# this one is important
|
||||
SET(CMAKE_SYSTEM_NAME Linux)
|
||||
#this one not so much
|
||||
SET(CMAKE_SYSTEM_VERSION 1)
|
||||
|
||||
# processor (or hardware) of the target system
|
||||
SET(CMAKE_SYSTEM_PROCESSOR $TARGET_ARCH)
|
||||
|
||||
# specify the cross compiler
|
||||
SET(CMAKE_C_COMPILER $TARGET_CC)
|
||||
SET(CMAKE_CXX_COMPILER $TARGET_CXX)
|
||||
|
||||
# where is the target environment
|
||||
SET(CMAKE_FIND_ROOT_PATH $SYSROOT_PREFIX)
|
||||
|
||||
# search for programs in the build host directories
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
||||
|
||||
# for libraries and headers in the target directories
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
||||
|
||||
EOF
|
||||
|
||||
cat >$ROOT/$TOOLCHAIN/etc/cmake-$HOST_NAME.conf <<EOF
|
||||
# this one is important
|
||||
SET(CMAKE_SYSTEM_NAME Linux)
|
||||
#this one not so much
|
||||
SET(CMAKE_SYSTEM_VERSION 1)
|
||||
|
||||
# specify the host compiler
|
||||
SET(CMAKE_C_COMPILER $HOST_CC)
|
||||
SET(CMAKE_CXX_COMPILER $HOST_CXX)
|
||||
|
||||
# where is the target environment
|
||||
SET(CMAKE_FIND_ROOT_PATH $ROOT/$TOOLCHAIN)
|
||||
|
||||
# search for programs in the build host directories
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM BOTH)
|
||||
|
||||
# for libraries and headers in the target directories
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH)
|
||||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH)
|
||||
|
||||
EOF
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user