mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Don't build kirigami in the source tree
Instead build it in its own build tree, where it belongs. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
24718adfc3
commit
af282a6061
2 changed files with 4 additions and 7 deletions
|
@ -240,7 +240,7 @@ if(${SUBSURFACE_TARGET_EXECUTABLE} MATCHES "MobileExecutable")
|
|||
endif()
|
||||
ADD_LIBRARY(kirigami_static_library STATIC IMPORTED)
|
||||
SET_TARGET_PROPERTIES(kirigami_static_library PROPERTIES
|
||||
IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/mobile-widgets/qml/kirigami/build/src/libkirigamiplugin.a)
|
||||
IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/../kirigami-build/src/libkirigamiplugin.a)
|
||||
target_link_libraries(
|
||||
${SUBSURFACE_TARGET}
|
||||
subsurface_profile
|
||||
|
|
|
@ -232,13 +232,10 @@ for (( i=0 ; i < ${#BUILDS[@]} ; i++ )) ; do
|
|||
if [ "$SUBSURFACE_EXECUTABLE" = "MobileExecutable" ] ; then
|
||||
cd $SRC/subsurface
|
||||
bash ./scripts/mobilecomponents.sh
|
||||
|
||||
cd $SRC/subsurface/mobile-widgets/qml/kirigami/
|
||||
mkdir -p build
|
||||
cd build
|
||||
cmake .. -DSTATIC_LIBRARY=ON
|
||||
mkdir -p $SRC/kirigami-build
|
||||
cd $SRC/kirigami-build
|
||||
cmake $SRC/subsurface/mobile-widgets/qml/kirigami/ -DSTATIC_LIBRARY=ON
|
||||
make -j4
|
||||
make install
|
||||
fi
|
||||
|
||||
mkdir -p $SRC/subsurface/$BUILDDIR
|
||||
|
|
Loading…
Reference in a new issue