Skip to content

Commit 88b5b75

Browse files
committed
Merged branch 'master' from opentoonz (w/o Github actions)
2 parents dbc776b + 1e066df commit 88b5b75

File tree

205 files changed

+3095
-4714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

205 files changed

+3095
-4714
lines changed

ci-scripts/osx/travis-install.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,3 @@ brew install clang-format
66
# from Homebrew 1.6.0 the old formula for obtaining Qt5.9.2 becomes invalid.
77
# so we start to use the latest version of Qt. (#1910)
88
brew install qt
9-
# delete older qt versions and make sure to have only the latest
10-
brew cleanup qt
11-
# temp workaround to brew installed glew cmake info overriding glew lib detection
12-
# which causes compiling issues later
13-
if [ -L /usr/local/lib/cmake/glew ]
14-
then
15-
echo "Symbolic link '/usr/local/lib/cmake/glew' detected. Removing to avoid glew lib detection issue!"
16-
ls -l /usr/local/lib/cmake/glew
17-
rm /usr/local/lib/cmake/glew
18-
fi

doc/README_ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
[![](https://ci.appveyor.com/api/projects/status/oa5l5pc964h8fv49/branch/master?svg=true)](https://ci.appveyor.com/project/opentoonz/opentoonz)
66
[![](https://travis-ci.org/opentoonz/opentoonz.svg?branch=master)](https://travis-ci.org/opentoonz/opentoonz)
7+
[![](https://github.com/opentoonz/opentoonz/workflows/Build/badge.svg?branch=master)](https://github.com/opentoonz/opentoonz/actions)
78

89
## これは何?
910

doc/how_to_build_macosx.md

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
- Jpeg-turbo
1414

1515
## Building on macOS
16-
### Download boost from https://boost.org
17-
18-
Download the .bz2 mac (unix if mac not specified) version 1_55_0 or later (last tested with 1_72_0)
19-
20-
Save for later step.
2116

2217
### Download and install Xcode from Apple
2318

@@ -42,7 +37,7 @@ $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/
4237

4338
In a Terminal window, execute the following statements:
4439
```
45-
$ brew install glew lz4 libjpeg libpng lzo pkg-config libusb cmake git-lfs libmypaint qt opencv jpeg-turbo
40+
$ brew install glew lz4 libjpeg libpng lzo pkg-config libusb cmake git-lfs libmypaint qt boost opencv jpeg-turbo
4641
$ git lfs install
4742
```
4843

@@ -65,21 +60,18 @@ $ cd ~/Documents #or where you want to store the repository#
6560
$ git clone https://github.com/opentoonz/opentoonz
6661
$ cd opentoonz
6762
$ git lfs pull
68-
$ cd thirdparty/boost
69-
$ mv ~/Downloads/boost_1_72_0.tar.bz2 . #or whatever the boost filename you downloaded is#
70-
$ tar xvjf boost_1_72_0.tar.bz2
71-
$ cd ../lzo
63+
$ cd thirdparty/lzo
7264
$ cp -r 2.03/include/lzo driver
7365
$ cd ../tiff-4.0.3
7466
$ ./configure --disable-lzma && make
7567
```
7668

77-
### Configure build for QT version
78-
79-
Edit the `/Users/yourlogin/Documents/opentoonz/toonz/sources/CMakeLists.txt` file at line 160 (64-bit OS) or 172 (32-bit OS) and modify the root path for the QT lib directory
80-
81-
If you installed QT using `brew`, you can get the version and path to use with: `$ brew info qt`. The lib path will look something like this: `/usr/local/Cellar/qt/5.12.2/lib`
82-
If you downloaded the QT installer and installed to `/Users/yourlogin/Qt`, your lib path may look something like this: `~/Qt/5.12.2/clang_64/lib` or `~/Qt/5.12.2/clang_32/lib`
69+
If you downloaded and installed boost from https://boost.org instead of homebrew, move the package under `thirdparty/boost` as follows:
70+
```
71+
$ cd thirdparty/boost
72+
$ mv ~/Downloads/boost_1_72_0.tar.bz2 . #or whatever the boost filename you downloaded is#
73+
$ tar xvjf boost_1_72_0.tar.bz2
74+
```
8375

8476
### Configure environment and Build OpenToonz
8577

@@ -95,16 +87,17 @@ $ export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/jpeg-turbo/lib/pkgconf
9587

9688
To build from command line, do the following:
9789
```
98-
$ CMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.12.2 cmake ../sources #replace QT path with your installed QT version#
90+
$ cmake ../sources -DQT_PATH='/usr/local/opt/qt/lib' #replace QT path with your installed QT version#
9991
$ make
10092
```
93+
- If you downloaded the QT installer and installed to `/Users/yourlogin/Qt` instead of by using homebrew, your lib path may look something like this: `~/Qt/5.12.2/clang_64/lib` or `~/Qt/5.12.2/clang_32/lib`
10194

10295
To build using Xcode, do the following:
10396
```
10497
$ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
105-
$ CMAKE_PREFIX_PATH=/usr/local/Cellar/qt/5.12.2 cmake -G Xcode ../sources -B. #replace QT path with your installed QT version#
98+
$ cmake -G Xcode ../sources -B. -DQT_PATH='/usr/local/opt/qt/lib' -DWITH_TRANSLATION=OFF #replace QT path with your installed QT version#
10699
```
107-
100+
- Note that the option `-DWITH_TRANSLATION=OFF` is needed to avoid error when using XCode 12+ which does not allow to add the same source to multiple targets.
108101
- Open Xcode app and open project /Users/yourlogin/Documents/opentoonz/toonz/build/OpenToonz.xcodeproj
109102
- Change `ALL_BUILD` to `OpenToonz`
110103
- Start build with: Product -> Build

doc/how_to_build_macosx_ja.md

Lines changed: 49 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,67 +5,88 @@
55
- git
66
- brew
77
- Xcode
8-
- cmake
9-
- バージョン 3.2.2 で動作確認済みです。
10-
- Qt
11-
- http://download.qt.io/official_releases/qt/5.9/5.9.2/
12-
- qt-opensource-mac-x64-5.9.2.dmg
13-
- boost
14-
- http://www.boost.org/users/history/version_1_55_0.html
8+
- cmake (3.2.2以降)
9+
- Qt (5.9.2以降)
10+
- boost (1.55.0以降)
1511

1612
## ビルド手順
1713

18-
### brew で必要なパッケージをインストール
19-
20-
```
21-
$ brew install glew lz4 libjpeg libpng lzo pkg-config
22-
```
14+
### Xcode をインストール
2315

24-
### リポジトリを clone
16+
### Homebrew をインストール
2517

18+
1. ターミナルウィンドウを起動
19+
2. 下記を実行します:
2620
```
27-
$ git clone https://github.com/opentoonz/opentoonz
21+
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
2822
```
2923

30-
### stuff ディレクトリの設置 (任意)
31-
32-
`/Applications/OpenToonz/OpenToonz_stuff` というディレクトリが存在していない場合は以下のコマンド等でリポジトリのひな形を設置する必要があります。
24+
### brew で必要なパッケージをインストール
3325

3426
```
35-
$ sudo cp -r opentoonz/stuff /Applications/OpenToonz/OpenToonz_stuff
27+
$ brew install glew lz4 libjpeg libpng lzo pkg-config libusb cmake git-lfs libmypaint qt boost
28+
$ git lfs install
3629
```
3730

38-
### thirdparty 下の tiff をビルド
31+
### リポジトリを clone
3932

4033
```
41-
$ cd opentoonz/thirdparty/tiff-4.0.3
34+
$ git clone https://github.com/opentoonz/opentoonz
35+
$ cd opentoonz
36+
$ git lfs pull
37+
$ cd thirdparty/lzo
38+
$ cp -r 2.03/include/lzo driver
39+
$ cd ../tiff-4.0.3
4240
$ ./configure && make
4341
```
4442

45-
### thirdpaty 下に boost を設置
46-
47-
以下のコマンドは `~/Downsloads``boost_1_55_0.tar.bz2` がダウンロードされていることを想定しています。
48-
43+
boost をhomebrewではなく https://boost.org からダウンロードした場合は以下を実行します。以下のコマンドは `~/Downsloads``boost_1_72_0.tar.bz2` がダウンロードされていることを想定しています。
4944
```
5045
$ cd ../boost
51-
$ mv ~/Downloads/boost_1_55_0.tar.bz2 .
52-
$ tar xjvf boost_1_55_0.tar.bz2
46+
$ mv ~/Downloads/boost_1_72_0.tar.bz2 .
47+
$ tar xjvf boost_1_72_0.tar.bz2
5348
```
5449

5550
### 本体のビルド
5651

52+
1. buildディレクトリの作成
5753
```
5854
$ cd ../../toonz
5955
$ mkdir build
6056
$ cd build
61-
$ cmake ../sources
57+
```
58+
59+
2. ビルド
60+
コマンドラインの場合は下記を実行します。
61+
```
62+
$ cmake ../sources -DQT_PATH='/usr/local/opt/qt/lib'
6263
$ make
6364
```
65+
- Qt をHomebrewでなく http://download.qt.io/official_releases/qt/ からダウンロードして `/Users/ユーザ名/Qt` にインストールしている場合、`QT_PATH`の値は `~/Qt/5.12.2/clang_64/lib` または `~/Qt/5.12.2/clang_32/lib` のようになります。
6466

6567
ビルドが長いので気長に待ちます。
6668

67-
### 完成
69+
Xcodeを用いる場合は下記を実行します。
70+
```
71+
$ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
72+
$ cmake -G Xcode ../sources -B. -DQT_PATH='/usr/local/opt/qt/lib' -DWITH_TRANSLATION=OFF
73+
```
74+
- オプション `-DWITH_TRANSLATION=OFF` はXcode12以降で必要です。
75+
- Xcodeでプロジェクト `/opentoonz/toonz/build/OpenToonz.xcodeproj` を開き、ビルドします。
76+
77+
### stuff ディレクトリの設置 (任意)
78+
79+
`/Applications/OpenToonz/OpenToonz_stuff` というディレクトリが存在していない場合は以下のコマンド等でリポジトリのひな形を設置する必要があります。
80+
81+
```
82+
$ sudo cp -r opentoonz/stuff /Applications/OpenToonz/OpenToonz_stuff
83+
$ sudo chmod -R 777 /Applications/OpenToonz
84+
```
85+
86+
### アプリケーションの実行
6887

6988
```
7089
$ open ./toonz/OpenToonz.app
7190
```
91+
92+
- Xcode でビルドしている場合、アプリケーションは `.toonz/build/Debug/OpenToonz.app` にあります。

stuff/config/current.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,9 +1310,16 @@
13101310

13111311
<item>"STD_iwa_GlareFx" "Glare Iwa" </item>
13121312
<item>"STD_iwa_GlareFx.renderMode" "Render Mode" </item>
1313+
<item>"STD_iwa_GlareFx.irisMode" "Iris Shape" </item>
1314+
<item>"STD_iwa_GlareFx.irisScale" "Iris Scale" </item>
1315+
<item>"STD_iwa_GlareFx.irisGearEdgeCount" "Edges" </item>
1316+
<item>"STD_iwa_GlareFx.irisRandomSeed" "Random Seed" </item>
1317+
<item>"STD_iwa_GlareFx.irisSymmetry" "Symmetry" </item>
1318+
<item>"STD_iwa_GlareFx.irisAppearance" "Appearance" </item>
13131319
<item>"STD_iwa_GlareFx.intensity" "Intensity" </item>
13141320
<item>"STD_iwa_GlareFx.size" "Filter Size" </item>
13151321
<item>"STD_iwa_GlareFx.rotation" "Filter Rotation" </item>
1322+
<item>"STD_iwa_GlareFx.aberration" "Chromatic Aberration" </item>
13161323
<item>"STD_iwa_GlareFx.noise_factor" "Noise Factor" </item>
13171324
<item>"STD_iwa_GlareFx.noise_size" "Noise Size" </item>
13181325
<item>"STD_iwa_GlareFx.noise_octave" "Noise Octave" </item>

stuff/doc/LICENSE/LICENSE_tahoma.txt renamed to stuff/doc/LICENSE/LICENSE_tahoma2d.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
License Agreement For Tahoma
2-
[https://github.com/turtletooth/tahoma]
1+
License Agreement For Tahoma2D
2+
[https://github.com/tahoma2d/tahoma2d/]
33

44
- - - - - - - - - - - - - - - -
55

6-
Tahoma
6+
Tahoma2D
77

88
All contributions by Jeremy Bullock:
99
Copyright (c) 2016 - 2020, Jeremy Bullock

stuff/profiles/layouts/fxs/STD_iwa_GlareFx.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
<fxlayout help_command="iexplore" help_file="BokehIwa.html">
22
<page name="Glare Iwa">
33
<control>renderMode</control>
4+
<control>irisMode</control>
5+
<vbox modeSensitive="irisMode" mode="1,2,3,4">
6+
<separator/>
7+
<control>irisScale</control>
8+
<control>irisSymmetry</control>
9+
<control>irisAppearance</control>
10+
</vbox>
11+
<vbox modeSensitive="irisMode" mode="4">
12+
<control>irisGearEdgeCount</control>
13+
<control>irisRandomSeed</control>
14+
</vbox>
15+
<vbox modeSensitive="irisMode" mode="1,2,3,4">
16+
<separator/>
17+
</vbox>
418
<control>intensity</control>
519
<control>size</control>
620
<control>rotation</control>
21+
<control>aberration</control>
722
<control>noise_factor</control>
823
<control>noise_size</control>
924
<control>noise_octave</control>

stuff/profiles/layouts/fxs/STD_iwa_MotionBlurCompFx.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<fxlayout help_file="MotionBlurIwa.html">
22
<page name="Motion Blur Iwa">
33
<vbox>
4-
<hbox>
54
<control>motionObjectType</control>
5+
<vbox modeSensitive="motionObjectType" mode="1,2,4">
66
<control>motionObjectIndex</control>
7-
</hbox>
7+
</vbox>
88
<control>shutterStart</control>
99
<control>startValue</control>
1010
<control>startCurve</control>

stuff/profiles/layouts/rooms/Default/menubar_template.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@
7373
<menu title="Arrange">
7474
<command>MI_BringToFront</command>
7575
<command>MI_BringForward</command>
76-
<command>MI_SendBack</command>
7776
<command>MI_SendBackward</command>
77+
<command>MI_SendBack</command>
7878
</menu>
7979
</menu>
8080
<menu title="Scan &amp;&amp; Cleanup">

toonz/sources/CMakeLists.txt

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 2.8.11)
1+
cmake_minimum_required(VERSION 2.8.11)
22

33
set(CMAKE_BUILD_TYPE_INIT Release)
44

@@ -102,6 +102,7 @@ endif()
102102
option(WITH_SYSTEM_LZO "Use the system LZO library instead of 'thirdpary'" ${_init_SYSTEM_LZO})
103103
option(WITH_SYSTEM_SUPERLU "Use the system SuperLU library instead of 'thirdpary'" ${_init_SYSTEM_SUPERLU})
104104
option(WITH_CANON "Build with Canon DSLR support - Requires Canon SDK" OFF)
105+
option(WITH_TRANSLATION "Generate translation projects as well" ON)
105106

106107
# avoid using again
107108
option_defaults_clear()
@@ -198,6 +199,11 @@ elseif(BUILD_ENV_UNIXLIKE)
198199
endif()
199200
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
200201
add_definitions(-DLINUX)
202+
elseif(CMAKE_SYSTEM_NAME MATCHES "^.*BSD$|DragonFly")
203+
set(BUILD_TARGET_BSD ON)
204+
add_definitions(-D_BSD_SOURCE -DFREEBSD)
205+
include_directories("/usr/local/include/")
206+
message(STATUS "Configuring for BSD system")
201207
elseif(NOT BUILD_TARGET_WIN)
202208
message(WARNING "Support for generic Unix (Not Apple or Linux) isn't yet working!")
203209
endif()
@@ -394,7 +400,11 @@ elseif(BUILD_ENV_APPLE)
394400
if(GLEW-NOTFOUND)
395401
pkg_check_modules(GLEW REQUIRED glew)
396402
endif()
397-
set(GLEW_LIB ${GLEW_LIBRARIES})
403+
if (TARGET GLEW::GLEW)
404+
set(GLEW_LIB GLEW::GLEW)
405+
else()
406+
set(GLEW_LIB ${GLEW_LIBRARIES})
407+
endif()
398408

399409
pkg_check_modules(LZ4_LIB REQUIRED liblz4)
400410

@@ -442,7 +452,9 @@ elseif(BUILD_ENV_UNIXLIKE)
442452
endif()
443453
find_library(Z_LIB z)
444454

445-
find_package(TIFF REQUIRED)
455+
if(NOT BUILD_TARGET_BSD)
456+
find_package(TIFF REQUIRED)
457+
endif()
446458
find_package(PNG REQUIRED)
447459
set(PNG_LIB ${PNG_LIBRARY})
448460
message("******* libpng:" ${PNG_LIB})
@@ -591,26 +603,28 @@ if(BUILD_ENV_MSVC AND MSVC_VERSION EQUAL 1800)
591603
add_compile_options("/wd4819")
592604
endif()
593605

594-
# generate Qt translations and messages
595-
set(LANGUAGES japanese italian french spanish chinese german russian korean czech)
596-
597-
function(add_translation module)
598-
set(translation)
599-
foreach(lang ${LANGUAGES})
600-
set(name "${CMAKE_SOURCE_DIR}/translations/${lang}/${module}.ts")
601-
list(APPEND translation ${name})
602-
set_source_files_properties(${name} PROPERTIES
603-
OUTPUT_LOCATION "${CMAKE_BINARY_DIR}/loc/${lang}"
606+
if(WITH_TRANSLATION)
607+
# generate Qt translations and messages
608+
set(LANGUAGES japanese italian french spanish chinese german russian korean czech)
609+
610+
function(add_translation module)
611+
set(translation)
612+
foreach(lang ${LANGUAGES})
613+
set(name "${CMAKE_SOURCE_DIR}/translations/${lang}/${module}.ts")
614+
list(APPEND translation ${name})
615+
set_source_files_properties(${name} PROPERTIES
616+
OUTPUT_LOCATION "${CMAKE_BINARY_DIR}/loc/${lang}"
617+
)
618+
endforeach()
619+
620+
qt5_create_translation(message ${translation} ${ARGN})
621+
622+
add_custom_target("translation_${module}" DEPENDS ${message})
623+
set_target_properties("translation_${module}" PROPERTIES
624+
EXCLUDE_FROM_DEFAULT_BUILD TRUE
604625
)
605-
endforeach()
606-
607-
qt5_create_translation(message ${translation} ${ARGN})
608-
609-
add_custom_target("translation_${module}" DEPENDS ${message})
610-
set_target_properties("translation_${module}" PROPERTIES
611-
EXCLUDE_FROM_DEFAULT_BUILD TRUE
612-
)
613-
endfunction()
626+
endfunction()
627+
endif()
614628

615629
set(CMAKE_C_FLAGS "${C_WARNINGS} ${CMAKE_C_FLAGS}")
616630
set(CMAKE_CXX_FLAGS "${CXX_WARNINGS} ${CMAKE_CXX_FLAGS}")

0 commit comments

Comments
 (0)