Modified the linux build pipeline script to use standard installation prefix in cmake command and then used make install DESTDIR= to install to target packaging directory. This is to allow for cmake to pass the installation path directly to the compile environment as it will be seen on the target computer.
This commit is contained in:
parent
040c7abaef
commit
ebffe467d5
|
@ -89,28 +89,27 @@ echo '**************************'
|
|||
echo '*** Building Project ***'
|
||||
echo '**************************'
|
||||
mkdir -p $INSTALL_PREFIX/usr;
|
||||
#scons --clean
|
||||
#scons GTK3=1 SYSTEM_LUA=1 SYSTEM_MINIZIP=1 CREATE_AVI=1 install --prefix=$INSTALL_PREFIX/usr
|
||||
|
||||
echo "Num CPU: `nproc`";
|
||||
mkdir buildQT; cd buildQT;
|
||||
cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX/usr \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
|
||||
..
|
||||
make -j `nproc`
|
||||
make install
|
||||
make install DESTDIR=$INSTALL_PREFIX
|
||||
|
||||
cd ..;
|
||||
mkdir buildGTK; cd buildGTK;
|
||||
cmake \
|
||||
-DGTK=1 \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX/usr \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
|
||||
..
|
||||
make -j `nproc`
|
||||
make install
|
||||
make install DESTDIR=$INSTALL_PREFIX
|
||||
|
||||
# Install Files
|
||||
#cd .. # cd out of build
|
||||
|
|
Loading…
Reference in New Issue