forked from opentoonz/opentoonz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added package_sdk.sh to export the sdk. and toonz_plugin_helper*.h ar…
…e moved to utils dir to plublic developers
- Loading branch information
Showing
9 changed files
with
77 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 5 additions & 4 deletions
9
...rces/toonzqt/toonz_plugin_helper_affine.h → plugins/utils/affine.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ources/toonzqt/toonz_plugin_helper_rect.h → plugins/utils/rect.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
while getopts t:d:h OPT | ||
do | ||
case $OPT in | ||
t) TOONZREPO=$OPTARG | ||
;; | ||
d) DIST=$OPTARG | ||
;; | ||
h) echo "-t opentoonz_repository_dir -d dist_dir" | ||
exit 1; | ||
;; | ||
\?) exit 1 | ||
;; | ||
esac | ||
done | ||
|
||
mkdir -p $DIST | ||
pushd $DIST | ||
|
||
mkdir core | ||
mkdir utils | ||
mkdir doc | ||
|
||
cp $TOONZREPO/LICENSE.txt ./ | ||
cp $TOONZREPO/toonz/sources/toonzqt/toonz_plugin.h core/ | ||
cp $TOONZREPO/toonz/sources/toonzqt/toonz_hostif.h core/ | ||
cp $TOONZREPO/toonz/sources/toonzqt/toonz_params.h core/ | ||
|
||
cp $TOONZREPO/plugins/utils/affine.hpp utils/ | ||
cp $TOONZREPO/plugins/utils/rect.hpp utils/ | ||
cp $TOONZREPO/plugins/utils/interf_holder.hpp utils/ | ||
cp $TOONZREPO/plugins/utils/param_traits.hpp utils/ | ||
|
||
# copy samples | ||
|
||
mkdir -p samples/blur | ||
mkdir -p samples/geom | ||
mkdir -p samples/multiplugin | ||
|
||
cp $TOONZREPO/plugins/blur/* samples/blur/ | ||
cp $TOONZREPO/plugins/geom/* samples/geom/ | ||
cp $TOONZREPO/plugins/multiplugin/* samples/multiplugin/ | ||
|
||
find ./samples -iname CMakeLists.txt -exec sed -e 's/set(PLUGINSDK_ROOT.*)/set(PLUGINSDK_ROOT \.\.\/\.\.\/core)/' -i "" {} \; | ||
find ./samples -iname CMakeLists.txt -exec sed -e 's/set(PLUGINSDK_UTILS_PATH.*)/set(PLUGINSDK_UTILS_PATH \.\.\/\.\.\/)/' -i "" {} \; | ||
|
||
popd |