36 lines
1.2 KiB
Batchfile
36 lines
1.2 KiB
Batchfile
cd thirdparty
|
|
|
|
copy /Y tiff-4.0.3\libtiff\tif_config.vc.h tiff-4.0.3\libtiff\tif_config.h
|
|
copy /Y tiff-4.0.3\libtiff\tiffconf.vc.h tiff-4.0.3\libtiff\tiffconf.h
|
|
copy /Y libpng-1.6.21\scripts\pnglibconf.h.prebuilt libpng-1.6.21\pnglibconf.h
|
|
|
|
cd ../toonz
|
|
|
|
IF NOT EXIST build mkdir build
|
|
cd build
|
|
|
|
REM Setup for local builds
|
|
set MSVCVERSION="Visual Studio 14 2015"
|
|
set BOOST_ROOT=C:\boost\boost_1_61_0
|
|
set OPENCV_DIR=C:\opencv\451\build
|
|
set QT_PATH=C:\Qt\5.9.7\msvc2015_64
|
|
|
|
REM These are effective when running from Actions
|
|
IF EXIST C:\local\boost_1_74_0 set BOOST_ROOT=C:\local\boost_1_74_0
|
|
IF EXIST C:\tools\opencv set OPENCV_DIR=C:\tools\opencv\build
|
|
IF EXIST D:\a\tahoma2d\tahoma2d\thirdparty\qt\5.9\msvc2017_64 (
|
|
set MSVCVERSION="Visual Studio 15 2017"
|
|
set QT_PATH=D:\a\tahoma2d\tahoma2d\thirdparty\qt\5.9\msvc2017_64
|
|
)
|
|
|
|
set WITH_CANON=N
|
|
IF EXIST ..\..\thirdparty\canon\Header set WITH_CANON=Y
|
|
|
|
set WITH_CRASHRPT=N
|
|
IF EXIST ..\..\thirdparty\crashrpt\include set WITH_CRASHRPT=Y
|
|
|
|
cmake ..\sources -G %MSVCVERSION% -Ax64 -DQT_PATH=%QT_PATH% -DBOOST_ROOT=%BOOST_ROOT% -DOpenCV_DIR=%OPENCV_DIR% -DWITH_CANON=%WITH_CANON% -DWITH_CRASHRPT=%WITH_CRASHRPT%
|
|
|
|
msbuild /property:Configuration=RelWithDebInfo /m /verbosity:minimal ALL_BUILD.vcxproj
|
|
|
|
cd ../..
|