convert_vlc_to_cmake.sh 1.04 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh

cmake_dir=extras/buildsystem/cmake

if ! test -e configure.ac
then
   echo "***"
   echo "*** Error: You must run that script from the root vlc source tree"
   echo "***"
   exit -1
fi

echo "Installing CMakeLists.txt"
14
ln -sf $cmake_dir/CMakeLists/root_CMakeLists.txt CMakeLists.txt
15 16

echo "Installing src/CMakeLists.txt"
17
ln -sf ../$cmake_dir/CMakeLists/src_CMakeLists.txt src/CMakeLists.txt
18

19 20 21
echo "Installing modules/CMakeLists.txt"
ln -s ../$cmake_dir/CMakeLists/modules_CMakeLists.txt modules/CMakeLists.txt

22 23 24
echo "Installing po/CMakeLists.txt"
ln -s ../$cmake_dir/CMakeLists/po_CMakeLists.txt po/CMakeLists.txt

25
echo "Installing include/config.h.cmake"
26
ln -sf ../$cmake_dir/config.h.cmake include/config.h.cmake
27

28
echo "Installing cmake/"
29
ln -sf $cmake_dir/include cmake
30 31 32 33

echo "Generating CMakeLists for modules/"
sh $cmake_dir/scripts/convert_modules_to_cmake.sh modules

34 35 36 37
echo "Installing modules/gui/qt4/CMakeLists.txt"
rm -f modules/gui/qt4/CMakeLists.txt
ln -sf ../../../$cmake_dir/CMakeLists/qt4_CMakeLists.txt modules/gui/qt4/CMakeLists.txt