2021-04-18 13:45:55 +12:00
|
|
|
cd thirdparty
|
|
|
|
|
2022-08-27 18:33:55 +12:00
|
|
|
copy /Y tiff-4.2.0\libtiff\tif_config.vc.h tiff-4.2.0\libtiff\tif_config.h
|
|
|
|
copy /Y tiff-4.2.0\libtiff\tiffconf.vc.h tiff-4.2.0\libtiff\tiffconf.h
|
2021-04-18 13:45:55 +12:00
|
|
|
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
|
2022-02-20 08:10:57 +13:00
|
|
|
set MSVCVERSION="Visual Studio 16 2019"
|
2021-09-06 05:34:18 +12:00
|
|
|
set BOOST_ROOT=C:\boost\boost_1_74_0
|
2021-04-18 13:45:55 +12:00
|
|
|
set OPENCV_DIR=C:\opencv\451\build
|
2022-02-20 08:10:57 +13:00
|
|
|
set QT_PATH=C:\Qt\5.9.7\msvc2019_64
|
2021-04-18 13:45:55 +12:00
|
|
|
|
|
|
|
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
|
2022-02-20 08:10:57 +13:00
|
|
|
IF EXIST D:\a\tahoma2d\tahoma2d\thirdparty\qt\5.9\msvc2019_64 (
|
|
|
|
set QT_PATH=D:\a\tahoma2d\tahoma2d\thirdparty\qt\5.9\msvc2019_64
|
2021-04-18 13:45:55 +12:00
|
|
|
)
|
|
|
|
|
|
|
|
set WITH_CANON=N
|
|
|
|
IF EXIST ..\..\thirdparty\canon\Header set WITH_CANON=Y
|
|
|
|
|
2022-08-14 08:13:21 +12:00
|
|
|
set WITH_GPHOTO2=N
|
|
|
|
IF EXIST ..\..\thirdparty\libgphoto2\include set WITH_GPHOTO2=Y
|
|
|
|
|
2021-04-18 13:45:55 +12:00
|
|
|
set WITH_CRASHRPT=N
|
|
|
|
IF EXIST ..\..\thirdparty\crashrpt\include set WITH_CRASHRPT=Y
|
|
|
|
|
2022-08-14 08:13:21 +12:00
|
|
|
cmake ..\sources -G %MSVCVERSION% -Ax64 -DQT_PATH=%QT_PATH% -DBOOST_ROOT=%BOOST_ROOT% -DOpenCV_DIR=%OPENCV_DIR% -DWITH_CANON=%WITH_CANON% -DWITH_GPHOTO2=%WITH_GPHOTO2% -DWITH_CRASHRPT=%WITH_CRASHRPT%
|
2021-04-18 13:45:55 +12:00
|
|
|
|
2022-12-13 15:01:34 +13:00
|
|
|
|
|
|
|
IF EXIST C:\ProgramData\chocolatey\bin\cl.exe (
|
|
|
|
msbuild /p:CLToolPath=C:\ProgramData\chocolatey\bin /p:UseMultiToolTask=true /p:Configuration=RelWithDebInfo /m /verbosity:minimal ALL_BUILD.vcxproj
|
|
|
|
) ELSE (
|
|
|
|
msbuild /p:Configuration=RelWithDebInfo /m /verbosity:minimal ALL_BUILD.vcxproj
|
|
|
|
)
|
2021-04-18 13:45:55 +12:00
|
|
|
|
|
|
|
cd ../..
|