mirror of
https://github.com/pygos/build.git
synced 2024-11-05 19:47:09 +01:00
David Oberhollenzer
c8d01f966a
Been working on this for too long, don't remember the specifics, will add documentation. Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
34 lines
No EOL
673 B
Text
Executable file
34 lines
No EOL
673 B
Text
Executable file
DEPENDS="crt-dev tc-pkg-config tc-file tc-pkgtool"
|
|
|
|
build() {
|
|
return
|
|
}
|
|
|
|
deploy() {
|
|
cat > "$CMAKETCFILE" << _EOF
|
|
set(CMAKE_SYSTEM_NAME Linux)
|
|
|
|
set(CMAKE_SYSROOT ${TCDIR}/${TARGET})
|
|
|
|
set(CMAKE_C_COMPILER ${TCDIR}/bin/${TARGET}-gcc)
|
|
set(CMAKE_C_COMPILER_TARGET ${TARGET})
|
|
|
|
set(CMAKE_CXX_COMPILER ${TCDIR}/bin/${TARGET}-g++)
|
|
set(CMAKE_CXX_COMPILER_TARGET ${TARGET})
|
|
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)
|
|
_EOF
|
|
|
|
touch "$2/$PKGNAME.files"
|
|
cat > "$2/$PKGNAME.desc" <<_EOF
|
|
name $PKGNAME
|
|
requires $DEPENDS
|
|
_EOF
|
|
}
|
|
|
|
check_update() {
|
|
return
|
|
} |