tupi-0.2-git08/ 0000775 0001750 0001750 00000000000 12750243034 013563 5 ustar xtingray xtingray tupi-0.2-git08/configure.tests/ 0000775 0001750 0001750 00000000000 12750232053 016704 5 ustar xtingray xtingray tupi-0.2-git08/configure.tests/libav/ 0000775 0001750 0001750 00000000000 12750242750 020006 5 ustar xtingray xtingray tupi-0.2-git08/configure.tests/libav/libav.qonf 0000775 0001750 0001750 00000002232 12750232052 021764 0 ustar xtingray xtingray
tupi-0.2-git08/configure.tests/libav/libav.pro 0000775 0001750 0001750 00000000354 12750232052 021624 0 ustar xtingray xtingray TEMPLATE = app
CONFIG -= moc
TARGET = libav
macx {
CONFIG -= app_bundle
CONFIG += warn_on static console
}
INCLUDEPATH += .
DEFINES += __STDC_CONSTANT_MACROS
LIBS += -lavformat -lavcodec -lavutil
# Input
SOURCES += main.cpp
tupi-0.2-git08/configure.tests/libav/main.cpp 0000664 0001750 0001750 00000006377 12750232052 021445 0 ustar xtingray xtingray /***************************************************************************
* Project TUPI: Magia 2D *
* Project Contact: info@maefloresta.com *
* Project Website: http://www.maefloresta.com *
* Project Leader: Gustav Gonzalez *
* *
* Developers: *
* 2010: *
* Gustavo Gonzalez / xtingray *
* *
* KTooN's versions: *
* *
* 2006: *
* David Cuadrado *
* Jorge Cuadrado *
* 2003: *
* Fernado Roldan *
* Simena Dinas *
* *
* Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com *
* License: *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see . *
***************************************************************************/
#ifdef __cplusplus
extern "C" {
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
}
#endif
#include
int main()
{
av_register_all();
#if defined(K_LUCID)
AVOutputFormat *fmt = guess_format("mpeg", NULL, NULL);
#else
AVOutputFormat *fmt = av_guess_format("mpeg", NULL, NULL);
#endif
AVFormatContext *oc = avformat_alloc_context();
oc->oformat = fmt;
AVCodecContext *c;
AVStream *st;
// st = av_new_stream(oc, 0);
st = avformat_new_stream(oc, 0);
c = st->codec;
c->time_base.den = 24;
c->time_base.num = 1;
c->gop_size = 12;
c->pix_fmt = PIX_FMT_YUV420P;
av_free(oc);
return 0;
}
tupi-0.2-git08/configure.tests/quazip/ 0000775 0001750 0001750 00000000000 12750242750 020222 5 ustar xtingray xtingray tupi-0.2-git08/configure.tests/quazip/main.cpp 0000664 0001750 0001750 00000006275 12750232053 021657 0 ustar xtingray xtingray /***************************************************************************
* Project TUPI: Magia 2D *
* Project Contact: info@maefloresta.com *
* Project Website: http://www.maefloresta.com *
* Project Leader: Gustav Gonzalez *
* *
* Developers: *
* 2010: *
* Gustavo Gonzalez / xtingray *
* *
* KTooN's versions: *
* *
* 2006: *
* David Cuadrado *
* Jorge Cuadrado *
* 2003: *
* Fernado Roldan *
* Simena Dinas *
* *
* Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com *
* License: *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see . *
***************************************************************************/
#include "quazip/quazip.h"
#include "quazip/quazipfile.h"
#include
int main()
{
QString zipName("test.zip");
char c;
QFile file("quazip.pro");
QuaZip zip(zipName);
if (!zip.open(QuaZip::mdCreate))
return false;
QuaZipFile outFile(&zip);
if (!outFile.open(QIODevice::WriteOnly, QuaZipNewInfo(file.fileName())))
return false;
if (!file.open(QIODevice::ReadOnly))
return false;
while (file.getChar(&c) && outFile.putChar(c)) {};
outFile.close();
file.close();
zip.close();
if (zip.getZipError() != 0) {
return false;
}
return 0;
}
tupi-0.2-git08/configure.tests/quazip/quazip.qonf 0000775 0001750 0001750 00000001506 12750232053 022420 0 ustar xtingray xtingray
tupi-0.2-git08/configure.tests/quazip/quazip.pro 0000775 0001750 0001750 00000000413 12750232053 022251 0 ustar xtingray xtingray TEMPLATE = app
CONFIG -= moc
TARGET = quazip
DEPENDPATH += .
macx {
INCLUDEPATH += /usr/local/include
CONFIG -= app_bundle
CONFIG += warn_on static console
}
unix:!macx {
INCLUDEPATH += /usr/include/quazip
}
LIBS += -lz
# Input
SOURCES += main.cpp
tupi-0.2-git08/configure.tests/zlib/ 0000775 0001750 0001750 00000000000 12750242750 017651 5 ustar xtingray xtingray tupi-0.2-git08/configure.tests/zlib/zlib.qonf 0000775 0001750 0001750 00000001231 12750232053 021471 0 ustar xtingray xtingray
tupi-0.2-git08/configure.tests/zlib/zlib.pro 0000775 0001750 0001750 00000000276 12750232053 021336 0 ustar xtingray xtingray TEMPLATE = app
CONFIG -= moc
TARGET = zlib
macx {
CONFIG -= app_bundle
CONFIG += warn_on static console
}
DEPENDPATH += .
INCLUDEPATH += .
LIBS += -lz
# Input
SOURCES += main.cpp
tupi-0.2-git08/configure.tests/zlib/main.cpp 0000664 0001750 0001750 00000007307 12750232053 021303 0 ustar xtingray xtingray /***************************************************************************
* Project TUPI: Magia 2D *
* Project Contact: info@maefloresta.com *
* Project Website: http://www.maefloresta.com *
* Project Leader: Gustav Gonzalez *
* *
* Developers: *
* 2010: *
* Gustavo Gonzalez / xtingray *
* *
* KTooN's versions: *
* *
* 2006: *
* David Cuadrado *
* Jorge Cuadrado *
* 2003: *
* Fernado Roldan *
* Simena Dinas *
* *
* Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com *
* License: *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see . *
***************************************************************************/
#include
#include
#include "zlib.h"
int main()
{
char sentence[50] = "Tupi: Open Magic!";
char compressedSentence[50];
char uncompressedSentence[50];
z_stream compression;
compression.zalloc = Z_NULL;
compression.zfree = Z_NULL;
compression.opaque = Z_NULL;
compression.avail_in = (uInt)strlen(sentence) + 1;
compression.next_in = (Bytef *)sentence;
compression.avail_out = (uInt)sizeof(compressedSentence);
compression.next_out = (Bytef *)compressedSentence;
deflateInit(&compression, Z_DEFAULT_COMPRESSION);
deflate(&compression, Z_FINISH);
deflateEnd(&compression);
z_stream uncompression;
uncompression.zalloc = Z_NULL;
uncompression.zfree = Z_NULL;
uncompression.opaque = Z_NULL;
uncompression.avail_in = (uInt)((char*)compression.next_out - compressedSentence);
uncompression.next_in = (Bytef *) compressedSentence;
uncompression.avail_out = (uInt)sizeof(uncompressedSentence);
uncompression.next_out = (Bytef *)uncompressedSentence;
inflateInit(&uncompression);
inflate(&uncompression, Z_NO_FLUSH);
inflateEnd(&uncompression);
}
tupi-0.2-git08/configure.tests/opengl/ 0000775 0001750 0001750 00000000000 12750242750 020175 5 ustar xtingray xtingray tupi-0.2-git08/configure.tests/opengl/main.cpp 0000664 0001750 0001750 00000005367 12750232052 021632 0 ustar xtingray xtingray /***************************************************************************
* Project TUPI: Magia 2D *
* Project Contact: info@maefloresta.com *
* Project Website: http://www.maefloresta.com *
* Project Leader: Gustav Gonzalez *
* *
* Developers: *
* 2010: *
* Gustavo Gonzalez / xtingray *
* *
* KTooN's versions: *
* *
* 2006: *
* David Cuadrado *
* Jorge Cuadrado *
* 2003: *
* Fernado Roldan *
* Simena Dinas *
* *
* Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com *
* License: *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see . *
***************************************************************************/
#include
#include
#include
int main(int argc, char **argv)
{
QApplication app(argc, argv);
QGLWidget w;
return app.exec();
}
tupi-0.2-git08/configure.tests/opengl/opengl.qonf 0000775 0001750 0001750 00000001317 12750232052 022345 0 ustar xtingray xtingray
tupi-0.2-git08/configure.tests/opengl/opengl.pro 0000775 0001750 0001750 00000000302 12750232052 022173 0 ustar xtingray xtingray TEMPLATE = app
CONFIG -= moc
TARGET = opengl
macx {
CONFIG -= app_bundle
CONFIG += warn_on static console
}
QT += opengl
DEPENDPATH += .
INCLUDEPATH += .
# Input
SOURCES += main.cpp
tupi-0.2-git08/configure.tests/multimedia/ 0000775 0001750 0001750 00000000000 12750242750 021043 5 ustar xtingray xtingray tupi-0.2-git08/configure.tests/multimedia/multimedia.qonf 0000775 0001750 0001750 00000001356 12750232052 024064 0 ustar xtingray xtingray
tupi-0.2-git08/configure.tests/multimedia/multimedia.pro 0000775 0001750 0001750 00000000434 12750232052 023715 0 ustar xtingray xtingray TEMPLATE = app
CONFIG -= moc
TARGET = multimedia
macx {
CONFIG -= app_bundle
CONFIG += warn_on static console
}
QT += multimedia multimediawidgets
DEPENDPATH += .
INCLUDEPATH += /usr/include/qt5/QtMultimedia /usr/include/qt5/QtMultimediaWidgets
# Input
SOURCES += main.cpp
tupi-0.2-git08/configure.tests/multimedia/main.cpp 0000664 0001750 0001750 00000006156 12750232052 022475 0 ustar xtingray xtingray /***************************************************************************
* Project TUPI: Magia 2D *
* Project Contact: info@maefloresta.com *
* Project Website: http://www.maefloresta.com *
* Project Leader: Gustav Gonzalez *
* *
* Developers: *
* 2010: *
* Gustavo Gonzalez / xtingray *
* *
* KTooN's versions: *
* *
* 2006: *
* David Cuadrado *
* Jorge Cuadrado *
* 2003: *
* Fernado Roldan *
* Simena Dinas *
* *
* Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com *
* License: *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see . *
***************************************************************************/
/*
#include
#include
#include "zlib.h"
*/
#include
#include
#include
int main()
{
QByteArray cameraDevice = QCamera::availableDevices()[0];
QCamera *camera = new QCamera(cameraDevice);
QCameraViewfinder *viewFinder = new QCameraViewfinder();
camera->setViewfinder(viewFinder);
camera->setCaptureMode(QCamera::CaptureStillImage);
new QCameraImageCapture(camera);
if (camera->state() == QCamera::ActiveState)
camera->stop();
camera->start();
}
tupi-0.2-git08/configure.tests/theora/ 0000775 0001750 0001750 00000000000 12750242750 020173 5 ustar xtingray xtingray tupi-0.2-git08/configure.tests/theora/theora.qonf 0000775 0001750 0001750 00000001720 12750232053 022340 0 ustar xtingray xtingray
tupi-0.2-git08/configure.tests/theora/theora.pro 0000775 0001750 0001750 00000000405 12750232053 022174 0 ustar xtingray xtingray TEMPLATE = app
CONFIG -= moc
TARGET = theora
macx {
CONFIG -= app_bundle
CONFIG += warn_on static console
INCLUDEPATH += /usr/local/include
LIBS += -L/usr/local/lib
}
LIBS += -ltheora -ltheoraenc -ltheoradec -logg
# Input
SOURCES += main.cpp
tupi-0.2-git08/configure.tests/theora/main.cpp 0000664 0001750 0001750 00000015164 12750232053 021625 0 ustar xtingray xtingray /***************************************************************************
* Project TUPI: Magia 2D *
* Project Contact: info@maefloresta.com *
* Project Website: http://www.maefloresta.com *
* Project Leader: Gustav Gonzalez *
* *
* Developers: *
* 2010: *
* Gustavo Gonzalez / xtingray *
* *
* KTooN's versions: *
* *
* 2006: *
* David Cuadrado *
* Jorge Cuadrado *
* 2003: *
* Fernado Roldan *
* Simena Dinas *
* *
* Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com *
* License: *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see . *
***************************************************************************/
#ifdef __cplusplus
extern "C" {
#include
#include
#include
#include
#include
#include
}
#endif
int main()
{
static FILE *ogg_fp = NULL;
static ogg_stream_state ogg_os;
static ogg_packet op;
static ogg_page og;
static th_enc_ctx *td;
static th_info ti;
th_comment tc;
int buf_delay=-1;
static int video_fps_numerator = 24;
static int video_fps_denominator = 1;
ogg_uint32_t keyframe_frequency = 64;
unsigned int w = 520;
unsigned int h = 380;
// Starting process
ogg_fp = fopen("test.ogv", "wb");
if (!ogg_fp) {
fprintf(stderr, "error creating ogv file\n");
return 1;
}
srand(time(NULL));
if (ogg_stream_init(&ogg_os, rand())) {
fprintf(stderr, "error: couldn't create ogg stream state\n");
return 1;
}
th_info_init(&ti);
ti.frame_width = 528;
ti.frame_height = 384;
ti.pic_width = w;
ti.pic_height = h;
ti.pic_x = 0;
ti.pic_y = 0;
ti.fps_numerator = 24;
ti.fps_denominator = 1;
ti.aspect_numerator = 0;
ti.aspect_denominator = 0;
ti.colorspace = TH_CS_UNSPECIFIED;
ti.pixel_fmt = TH_PF_444;
ti.target_bitrate = 6000000;
ti.quality = 0;
ti.keyframe_granule_shift = 6;
td = th_encode_alloc(&ti);
th_info_clear(&ti);
int ret = th_encode_ctl(td, TH_ENCCTL_SET_KEYFRAME_FREQUENCY_FORCE, &keyframe_frequency, sizeof(keyframe_frequency-1));
if (ret < 0) {
fprintf(stderr, "Could not set keyframe interval to %d.\n", (int)keyframe_frequency);
}
int arg = TH_RATECTL_CAP_UNDERFLOW;
ret = th_encode_ctl(td, TH_ENCCTL_SET_RATE_FLAGS, &arg, sizeof(arg));
if (ret < 0)
fprintf(stderr,"Could not set encoder flags for --soft-target\n");
if (buf_delay < 0) {
int var1 = keyframe_frequency*7>>1;
int var2 = 5*video_fps_numerator/video_fps_denominator;
if (var1 > var2)
arg = keyframe_frequency*7>>1;
else
arg = 5*video_fps_numerator/video_fps_denominator;
ret = th_encode_ctl(td, TH_ENCCTL_SET_RATE_BUFFER, &arg, sizeof(arg));
if (ret < 0)
fprintf(stderr,"Could not set rate control buffer for --soft-target\n");
}
if (buf_delay >= 0) {
ret = th_encode_ctl(td, TH_ENCCTL_SET_RATE_BUFFER, &buf_delay, sizeof(buf_delay));
if (ret < 0) {
fprintf(stderr,"Warning: could not set desired buffer delay.\n");
}
}
/* write the bitstream header packets with proper page interleave */
th_comment_init(&tc);
/* first packet will get its own page automatically */
if (th_encode_flushheader(td, &tc, &op) <= 0){
fprintf(stderr,"Internal Theora library error.\n");
exit(1);
}
ogg_stream_packetin(&ogg_os,&op);
if (ogg_stream_pageout(&ogg_os, &og) != 1) {
fprintf(stderr,"Internal Ogg library error.\n");
exit(1);
}
fwrite(og.header, 1, og.header_len, ogg_fp);
fwrite(og.body, 1, og.body_len, ogg_fp);
/* create the remaining theora headers */
for(;;) {
ret = th_encode_flushheader(td, &tc, &op);
if (ret < 0) {
fprintf(stderr,"Internal Theora library error.\n");
exit(1);
} else if (!ret)
break;
ogg_stream_packetin(&ogg_os, &op);
}
for(;;) {
int result = ogg_stream_flush(&ogg_os, &og);
if (result < 0) {
/* can't get here */
fprintf(stderr,"Internal Ogg library error.\n");
exit(1);
}
if (result == 0)
break;
fwrite(og.header, 1, og.header_len, ogg_fp);
fwrite(og.body, 1, og.body_len, ogg_fp);
}
// Ending process
th_encode_free(td);
if (ogg_stream_flush(&ogg_os, &og)) {
fwrite(og.header, og.header_len, 1, ogg_fp);
fwrite(og.body, og.body_len, 1, ogg_fp);
}
if (ogg_fp) {
fflush(ogg_fp);
if (ogg_fp != stdout)
fclose(ogg_fp);
}
ogg_stream_clear(&ogg_os);
return 0;
}
tupi-0.2-git08/INSTALL 0000664 0001750 0001750 00000005327 12750232052 014621 0 ustar xtingray xtingray Note: Just for now, the Tupi project is only available for Unix systems.
We hope to port it to many other platforms in the future. Meanwhile, the
best way to try it is from any GNU/Linux distro (and FreeBSD or Unix-alike
systems).
1. Dependencies
The compilation process of any software usually requires a set of specific
tools previously installed in your system. Those additional components are
called "dependencies".
In this case, before you start to compile Tupi, you must ensure to get
installed the next list of dependencies in your computer:
* build-essential: All the C/C++ free compilers, libraries and utilities
required to create a binary from any Unix-alike C/C++ source code (gcc,
g++, cpp, make, etc)
* Qt: The full development toolkit used to create Tupi
* ruby: A script language used to do the configuration process previous
to the compilation
* libavcodec-dev: A subcomponent of the project libav, to deal with
video manipulation
* libavformat-dev: A subcomponent of the project libav, to deal with
video manipulation
* zlib-dev: A file-compression library
* quazip: A very handy API to deal with zip files
For Ubuntu users (version 10.10) with some experience using the console,
these are the commands they should run to install Tupi dependencies:
- Open a terminal (from Aplications -> Accesories) and type:
% sudo apt-get install build-essential [Press enter]
% sudo apt-get install ruby [Press enter]
% sudo apt-get install libavcodec-dev libavformat-dev [Press enter]
% sudo apt-get install libqt5-gui qt5-qmake qt5-dev-tools [Press enter]
% sudo apt-get install zlib1g-dev [Press enter]
% sudo apt-get install libquazip0-dev [Press enter]
Note: If you are not using Ubuntu, check for the equivalent packages for your
Linux distro
2. Get the source code and compile it
- Get the Tupi source code from our Download section
(http://www.maefloresta.com/portal/downloads). Then,
run these commands:
% tar xvfz tupi-XXX.tar.gz [Press enter]
% cd tupi-XXX [Press enter]
% ./configure --prefix=/usr/local/tupi [Press enter]
% make [Press enter]
% sudo make install [Press enter]
Note: Only for advanced users, the configure script provides many options
useful to set specific installation paths. Try "./configure --help" to get
more information about it.
3. Animation time!
- Execute:
% /usr/local/tupi/bin/tupi & [Press enter]
Or look for the launcher from Applications -> Graphics -> Tupi
And enjoy Tupi!
Note: Whether you find any error in this how-to or you want to share your own
installation notes with us, feel free to send us your documents.
Additional info: http://www.maefloresta.com
tupi-0.2-git08/win.pri 0000664 0001750 0001750 00000000350 12750232064 015073 0 ustar xtingray xtingray CONFIG += release
# DEFINES += K_DEBUG HAVE_LIBAV
DEFINES += HAVE_LIBAV
DEFINES += VERSION=\\\"0.2\\\" CODE_NAME=\\\"Beraba\\\" REVISION=\\\"git08\\\" CONFIG_VERSION=\\\"2\\\"
contains(DEFINES, K_DEBUG) {
CONFIG += console
}
tupi-0.2-git08/INSTALL.osx 0000664 0001750 0001750 00000003557 12750232052 015434 0 ustar xtingray xtingray * Warning: Guide pending for update!
Tupi basic installation guide for Mac OSX
Note: Currently, to build and install Tupi on Mac OSX the Terminal application
is required. This tool can be located at /Applications/Utilities/Terminal using
the Finder application.
The Terminal is just a command console, so if you have no experience using it,
we recommend you to take a look at this little guide:
http://www.hacktheday.com/beginners-guide-to-apple-terminal-part-1/
Now, to compile/install Tupi from source code, please follow the instructions
below:
1. Install the XCode Developer Tools available at:
https://developer.apple.com/downloads/index.action
If your OSX version is Lion, try version 4.1 or later and include the
package called "Command Line Tools for Xcode"
If your OSX version is Snow Leopard, try version 3.2 or later
Note: an Apple ID account is required to download XCode
2. Install the Macports (package manager) available at:
http://www.macports.org/
Read the installation instructions at:
http://www.macports.org/install.php
3. Install required ports:
$ sudo port install zlib
$ sudo port install ffmpeg +nonfree
$ sudo port install aspell
$ sudo port install git-core
$ sudo port install qt4-mac
4. Download Tupi source code from Gitorious:
$ git clone -b experimental https://git.gitorious.org/tupi/tupi.git
5. Move into project's directory:
$ cd tupi
6. Run the configure script:
$ ./configure --prefix=/opt/local --bindir=/opt/local/bin/ --libdir=/opt/local/lib
--sharedir=/opt/local/share --with-debug
7. Compile the project:
$ make
8. Install binaries and resources:
$ sudo make install
9. Run Tupi:
/opt/local/bin/tupi
TODO:
1. To make Tupi port file for Macports
2. To build App Bundle for easy install (.dmg)
tupi-0.2-git08/tools/ 0000775 0001750 0001750 00000000000 12750232064 014724 5 ustar xtingray xtingray tupi-0.2-git08/tools/tupi_deb_maker.sh 0000664 0001750 0001750 00000007427 12750232064 020244 0 ustar xtingray xtingray #!/bin/bash
###########################################################################
# Project TUPI: Magia 2D #
# Project Contact: info@maefloresta.com #
# Project Website: http://www.maefloresta.com #
# Project Leader: Gustav Gonzalez #
# #
# Developers: #
# 2010: #
# Gustavo Gonzalez / xtingray #
# #
# KTooN's versions: #
# #
# 2006: #
# David Cuadrado #
# Jorge Cuadrado #
# 2003: #
# Fernado Roldan #
# Simena Dinas #
# #
# Copyright (C) 2010 Gustav Gonzalez - http://www.maefloresta.com #
# License: #
# This program is free software; you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #
# the Free Software Foundation; either version 2 of the License, or #
# (at your option) any later version. #
# #
# This program is distributed in the hope that it will be useful, #
# but WITHOUT ANY WARRANTY; without even the implied warranty of #
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
# GNU General Public License for more details. #
# #
# You should have received a copy of the GNU General Public License #
# along with this program. If not, see . #
###########################################################################
# Description: This bash script gets the source code of
# Tupi from its GIT repository and builds the
# Debian/Ubuntu packages
#
# Dependencies:
#
# * You need to have a valid OpenPGP key installed
# in your account. More info at:
# https://help.ubuntu.com/community/GnuPrivacyGuardHowto
#
# * You need to install all the Tupi dependencies in
# your system. More info at:
# http://www.maefloresta.com/portal/howCompileTupi
VERSION="5"
SOURCE="/home/username"
echo ""
echo "Setting a cool environment in a temp directory..."
echo ""
cd $SOURCE/tmp
if [ -d "debian" ]; then
rm -rf debian
fi
mkdir debian
cd debian
echo "Getting the source code from Gitorious or a local place..."
echo ""
cp -r $SOURCE/tupi/sources/tupi .
cd tupi
make distclean
\rm -rf .git
cd ..
echo ""
echo "Making the tarballs required..."
echo ""
mv tupi tupi-0.1
tar cfz tupi_0.1.orig.tar.gz tupi-0.1
echo ""
echo "Building Tupi package..."
echo ""
cd tupi-0.1
./configure
debuild
echo ""
echo "Building Tupi source package..."
echo ""
rm -rf debian/tupi
make distclean
./configure
debuild -S
cd ..
ls -al
echo ""
echo "Debian packaging process: successful! :)"
echo ""
echo "Debian/Ubuntu package of Tupi available from: packages/tupi"
md5sum tupi_0.1-0ubuntu${VERSION}_i386.deb
tupi-0.2-git08/tools/windows/ 0000775 0001750 0001750 00000000000 12750232064 016416 5 ustar xtingray xtingray tupi-0.2-git08/tools/windows/tupi.iss 0000664 0001750 0001750 00000014327 12750232064 020126 0 ustar xtingray xtingray [Setup]
AppName=Tupi
AppVersion=0.2-8
DefaultDirName={pf}\Tupi
DefaultGroupName=Tupi 2D Magic
OutputDir=c:\devel\installer
ChangesEnvironment=yes
ChangesAssociations=yes
; Uncomment this line for 64bit installer
; ArchitecturesInstallIn64BitMode=x64
[Dirs]
Name: "{app}\bin"
Name: "{app}\bin\platforms"
Name: "{app}\bin\imageformats"
Name: "{app}\bin\mediaservice"
Name: "{app}\bin\audio"
Name: "{app}\data"
Name: "{app}\data\help"
Name: "{app}\data\help\css"
Name: "{app}\data\help\en"
Name: "{app}\data\help\es"
Name: "{app}\data\help\examples"
Name: "{app}\data\help\gl"
Name: "{app}\data\help\images"
Name: "{app}\data\help\ru"
Name: "{app}\data\palettes"
Name: "{app}\data\storyboard"
Name: "{app}\data\themes"
Name: "{app}\data\themes\default"
Name: "{app}\data\themes\defaul\config"
Name: "{app}\data\themes\default\cursors"
Name: "{app}\data\themes\default\icons"
Name: "{app}\data\themes\default\images"
Name: "{app}\data\themes\dark"
Name: "{app}\data\themes\dark\config"
Name: "{app}\data\themes\dark\cursors"
Name: "{app}\data\themes\dark\icons"
Name: "{app}\data\themes\dark\images"
Name: "{app}\data\translations"
Name: "{app}\data\xml"
Name: "{app}\data\xml\ca"
Name: "{app}\data\xml\cs"
Name: "{app}\data\xml\da"
Name: "{app}\data\xml\de"
Name: "{app}\data\xml\en"
Name: "{app}\data\xml\es"
Name: "{app}\data\xml\fr"
Name: "{app}\data\xml\gl"
Name: "{app}\data\xml\pt"
Name: "{app}\data\xml\ru"
Name: "{app}\data\xml\uk"
Name: "{app}\plugins"
Name: "{app}\lib"
Name: "{app}\lib\qt5"
Name: "{app}\lib\libav"
[Files]
Source: "bin\*"; DestDir: "{app}\bin"
Source: "bin\platforms\*"; DestDir: "{app}\bin\platforms"
Source: "bin\imageformats\*"; DestDir: "{app}\bin\imageformats"
Source: "bin\mediaservice\*"; DestDir: "{app}\bin\mediaservice"
Source: "bin\audio\*"; DestDir: "{app}\bin\audio"
Source: "data\help\css\*"; DestDir: "{app}\data\help\css"
Source: "data\help\en\*"; DestDir: "{app}\data\help\en"
Source: "data\help\es\*"; DestDir: "{app}\data\help\es"
Source: "data\help\examples\*"; DestDir: "{app}\data\help\examples"
Source: "data\help\gl\*"; DestDir: "{app}\data\help\gl"
Source: "data\help\images\*"; DestDir: "{app}\data\help\images"
Source: "data\help\ru\*"; DestDir: "{app}\data\help\ru"
Source: "data\palettes\*"; DestDir: "{app}\data\palettes"
Source: "data\storyboard\*"; DestDir: "{app}\data\storyboard"
Source: "data\themes\default\config\*"; DestDir: "{app}\data\themes\default\config"
Source: "data\themes\default\cursors\*"; DestDir: "{app}\data\themes\default\cursors"
Source: "data\themes\default\icons\*"; DestDir: "{app}\data\themes\default\icons"
Source: "data\themes\default\images\*"; DestDir: "{app}\data\themes\default\images"
Source: "data\themes\dark\config\*"; DestDir: "{app}\data\themes\dark\config"
Source: "data\themes\dark\cursors\*"; DestDir: "{app}\data\themes\dark\cursors"
Source: "data\themes\dark\icons\*"; DestDir: "{app}\data\themes\dark\icons"
Source: "data\themes\dark\images\*"; DestDir: "{app}\data\themes\dark\images"
Source: "data\translations\*"; DestDir: "{app}\data\translations"
Source: "data\xml\ca\*"; DestDir: "{app}\data\xml\ca"
Source: "data\xml\cs\*"; DestDir: "{app}\data\xml\cs"
Source: "data\xml\da\*"; DestDir: "{app}\data\xml\da"
Source: "data\xml\de\*"; DestDir: "{app}\data\xml\de"
Source: "data\xml\en\*"; DestDir: "{app}\data\xml\en"
Source: "data\xml\es\*"; DestDir: "{app}\data\xml\es"
Source: "data\xml\fr\*"; DestDir: "{app}\data\xml\fr"
Source: "data\xml\gl\*"; DestDir: "{app}\data\xml\gl"
Source: "data\xml\pt\*"; DestDir: "{app}\data\xml\pt"
Source: "data\xml\ru\*"; DestDir: "{app}\data\xml\ru"
Source: "data\xml\uk\*"; DestDir: "{app}\data\xml\uk"
Source: "plugins\*"; DestDir: "{app}\plugins"
Source: "lib\*"; DestDir: "{app}\lib"
Source: "lib\qt5\*"; DestDir: "{app}\lib\qt5"
Source: "lib\libav\*"; DestDir: "{app}\lib\libav"
[Registry]
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; ValueName: "TUPI_HOME"; ValueData: "{app}"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\lib;{app}\lib\qt5;{app}\lib\libav";
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; ValueName: "TUPI_SHARE"; ValueData: "{app}\data"; Flags: uninsdeletevalue
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; ValueName: "TUPI_PLUGIN"; ValueData: "{app}\plugins"; Flags: uninsdeletevalue
Root: HKCR; Subkey: ".tup"; ValueType: string; ValueName: ""; ValueData: "Tupi2DMagic"; Flags: uninsdeletevalue
Root: HKCR; Subkey: "Tupi2DMagic"; ValueType: string; ValueName: ""; ValueData: "Tupi 2D Magic"; Flags: uninsdeletekey
Root: HKCR; Subkey: "Tupi2DMagic\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\bin\tupi.ico,0"; Flags: uninsdeletekey
Root: HKCR; Subkey: "Tupi2DMagic\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\bin\tupi.exe"" ""%1"""; Flags: uninsdeletekey
[Icons]
Name: "{group}\Tupi"; Filename: "{app}\bin\tupi.exe"; IconFilename: "{app}\bin\tupi.ico"
[Code]
const
EnvironmentKey = 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment';
procedure RemovePath(Path: string);
var
Paths: string;
P: Integer;
begin
if not RegQueryStringValue(HKEY_LOCAL_MACHINE, EnvironmentKey, 'Path', Paths) then
begin
Log('PATH not found');
end
else
begin
Log(Format('PATH is [%s]', [Paths]));
P := Pos(';' + Uppercase(Path) + ';', ';' + Uppercase(Paths) + ';');
if P = 0 then
begin
Log(Format('Path [%s] not found in PATH', [Path]));
end
else
begin
Delete(Paths, P - 1, Length(Path) + 1);
Log(Format('Path [%s] removed from PATH => [%s]', [Path, Paths]));
if RegWriteStringValue(HKEY_LOCAL_MACHINE, EnvironmentKey, 'Path', Paths) then
begin
Log('PATH written');
end
else
begin
Log('Error writing PATH');
end;
end;
end;
end;
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if CurUninstallStep = usUninstall then
begin
RemovePath(ExpandConstant('{app}\lib'));
RemovePath(ExpandConstant('{app}\lib\qt5'));
RemovePath(ExpandConstant('{app}\lib\libav'));
end;
end;
tupi-0.2-git08/tools/windows/tupi.vbs 0000664 0001750 0001750 00000000124 12750232064 020110 0 ustar xtingray xtingray Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run "tupi.bat", False
tupi-0.2-git08/tools/windows/qt5_x64.bat 0000664 0001750 0001750 00000003374 12750232064 020327 0 ustar xtingray xtingray copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\icudt55.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\icuin55.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\icuuc55.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\libgcc_s_sjlj-1.dll C:\devel\sources\qt5\
copy "C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\libstdc++-6.dll" C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\libwinpthread-1.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5Core.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5Gui.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5Multimedia.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5MultimediaWidgets.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5Network.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5OpenGL.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\libGLESv2.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5PrintSupport.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5Svg.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5Widgets.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\bin\Qt5Xml.dll C:\devel\sources\qt5\
copy C:\devel\qt-5.5.0\qt-5.5.0-x64-mingw510r0-sjlj-rev0\plugins\platforms\qwindows.dll C:\devel\sources\platforms\
tupi-0.2-git08/tools/windows/tupi.bat 0000664 0001750 0001750 00000000406 12750232064 020067 0 ustar xtingray xtingray @echo OFF
set TUPI_HOME=c:\tupi
set PATH=c:\tupi\lib;c:\tupi\lib\qt5;c:\tupi\lib\libav
set TUPI_SHARE=c:\tupi\data
set TUPI_PLUGIN=c:\tupi\plugins
REM C:\devel\Qt\Tools\mingw492_32\bin\gdb.exe tupi.exe
REM C:\devel\qt-5.5.0\mingw64\bin\gdb.exe tupi.exe
tupi.exe
tupi-0.2-git08/tools/windows/libav32.bat 0000664 0001750 0001750 00000001547 12750232064 020357 0 ustar xtingray xtingray copy C:\libav\bin\avcodec-56.dll C:\devel\sources\libav\
copy C:\libav\bin\avdevice-55.dll C:\devel\sources\libav\
copy C:\libav\bin\avfilter-5.dll C:\devel\sources\libav\
copy C:\libav\bin\avformat-56.dll C:\devel\sources\libav\
copy C:\libav\bin\avresample-2.dll C:\devel\sources\libav\
copy C:\libav\bin\avutil-54.dll C:\devel\sources\libav\
copy C:\libav\bin\libmp3lame-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libogg-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libopus-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libvo-aacenc-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libvorbis-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libvorbisenc-2.dll C:\devel\sources\libav\
copy C:\libav\bin\libvorbisfile-3.dll C:\devel\sources\libav\
copy C:\libav\bin\libx264-142.dll C:\devel\sources\libav\
copy C:\libav\bin\swscale-3.dll C:\devel\sources\libav\
tupi-0.2-git08/tools/windows/libav64.bat 0000664 0001750 0001750 00000001633 12750232064 020360 0 ustar xtingray xtingray copy C:\libav\bin\avcodec-56.dll C:\devel\sources\libav\
copy C:\libav\bin\avdevice-55.dll C:\devel\sources\libav\
copy C:\libav\bin\avfilter-5.dll C:\devel\sources\libav\
copy C:\libav\bin\avformat-56.dll C:\devel\sources\libav\
copy C:\libav\bin\avresample-2.dll C:\devel\sources\libav\
copy C:\libav\bin\avutil-54.dll C:\devel\sources\libav\
copy C:\libav\bin\libmp3lame-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libogg-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libopus-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libvo-aacenc-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libvorbis-0.dll C:\devel\sources\libav\
copy C:\libav\bin\libvorbisenc-2.dll C:\devel\sources\libav\
copy C:\libav\bin\libvorbisfile-3.dll C:\devel\sources\libav\
copy C:\libav\bin\libx264-142.dll C:\devel\sources\libav\
copy C:\libav\bin\swscale-3.dll C:\devel\sources\libav\
copy C:\libav\bin\zlib1.dll C:\devel\sources\libav\
tupi-0.2-git08/tools/windows/qt5_32.bat 0000664 0001750 0001750 00000002462 12750232064 020127 0 ustar xtingray xtingray REM copy C:\devel\Qt\5.7\mingw53_32\bin\icudt54.dll C:\devel\sources\qt5
REM copy C:\devel\Qt\5.7\mingw53_32\bin\icuin54.dll C:\devel\sources\qt5
REM copy C:\devel\Qt\5.7\mingw53_32\bin\icuuc54.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\libgcc_s_dw2-1.dll C:\devel\sources\qt5
copy "C:\devel\Qt\5.7\mingw53_32\bin\libstdc++-6.dll" C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\libwinpthread-1.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5Core.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5Gui.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5Multimedia.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5MultimediaWidgets.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5Network.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5OpenGL.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\libGLESv2.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5PrintSupport.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5Svg.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5Widgets.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\bin\Qt5Xml.dll C:\devel\sources\qt5
copy C:\devel\Qt\5.7\mingw53_32\plugins\platforms\qwindows.dll C:\devel\sources\platforms\ tupi-0.2-git08/tools/windows/copy32.vbs 0000664 0001750 0001750 00000014522 12750232064 020255 0 ustar xtingray xtingray Set fileSystem = CreateObject("Scripting.FileSystemObject")
zlibDir = "c:\GnuWin32\bin"
quazipDir = "c:\Quazip\lib"
sourceDir = "c:\devel\sources\tupi\src"
tupiDir = "c:\tupi"
If fileSystem.FolderExists(tupiDir) Then
fileSystem.DeleteFolder tupiDir
End If
fileSystem.CreateFolder tupiDir
fileSystem.CreateFolder tupiDir & "\bin"
fileSystem.CreateFolder tupiDir & "\bin\platforms"
fileSystem.CreateFolder tupiDir & "\bin\imageformats"
fileSystem.CreateFolder tupiDir & "\bin\mediaservice"
fileSystem.CreateFolder tupiDir & "\bin\audio"
fileSystem.CreateFolder tupiDir & "\data"
fileSystem.CreateFolder tupiDir & "\plugins"
fileSystem.CreateFolder tupiDir & "\lib"
fileSystem.CreateFolder tupiDir & "\lib\qt5"
fileSystem.CreateFolder tupiDir & "\lib\libav"
fileSystem.CopyFile "c:\GnuWin32\bin\zlib1.dll", tupiDir & "\lib\libav\"
fileSystem.CopyFile "c:\devel\sources\platforms\qwindows.dll", tupiDir & "\bin\platforms\qwindows.dll"
fileSystem.CopyFile quazipDir & "\quazip.dll", tupiDir & "\lib\quazip.dll"
fileSystem.CopyFile "c:\devel\sources\tupi\tools\windows\tupi.iss", tupiDir & "\tupi.iss"
fileSystem.CopyFile "c:\devel\sources\tupi\tools\windows\tupi.ico", tupiDir & "\bin\tupi.ico"
fileSystem.CopyFile "c:\devel\sources\tupi\tools\windows\tupi.bat", tupiDir & "\bin\tupi.bat"
fileSystem.CopyFile "c:\devel\sources\tupi\tools\windows\tupi.vbs", tupiDir & "\bin\tupi.vbs"
fileSystem.CopyFile sourceDir & "\shell\release\tupi.exe", tupiDir & "\bin\tupi.exe"
fileSystem.CopyFile sourceDir & "\framework\tcore\release\tupifwcore.dll", tupiDir & "\lib\tupifwcore.dll"
fileSystem.CopyFile sourceDir & "\framework\tgui\release\tupifwgui.dll", tupiDir & "\lib\tupifwgui.dll"
fileSystem.CopyFile sourceDir & "\store\release\tupistore.dll", tupiDir & "\lib\tupistore.dll"
fileSystem.CopyFile sourceDir & "\libbase\release\tupibase.dll", tupiDir & "\lib\tupibase.dll"
fileSystem.CopyFile sourceDir & "\libtupi\release\tupi.dll", tupiDir & "\lib\tupi.dll"
fileSystem.CopyFile sourceDir & "\libui\release\tupigui.dll", tupiDir & "\lib\tupigui.dll"
fileSystem.CopyFile sourceDir & "\net\release\tupinet.dll", tupiDir & "\lib\tupinet.dll"
fileSystem.CopyFile sourceDir & "\components\animation\release\tupianimation.dll", tupiDir & "\lib\tupianimation.dll"
fileSystem.CopyFile sourceDir & "\components\colorpalette\release\tupicolorpalette.dll", tupiDir & "\lib\tupicolorpalette.dll"
fileSystem.CopyFile sourceDir & "\components\export\release\tupiexport.dll", tupiDir & "\lib\tupiexport.dll"
fileSystem.CopyFile sourceDir & "\components\exposure\release\tupiexposure.dll", tupiDir & "\lib\tupiexposure.dll"
fileSystem.CopyFile sourceDir & "\components\help\release\tupihelp.dll", tupiDir & "\lib\tupihelp.dll"
fileSystem.CopyFile sourceDir & "\components\import\release\tupimport.dll", tupiDir & "\lib\tupimport.dll"
fileSystem.CopyFile sourceDir & "\components\library\release\tupilibrary.dll", tupiDir & "\lib\tupilibrary.dll"
fileSystem.CopyFile sourceDir & "\components\paintarea\release\tupipaintarea.dll", tupiDir & "\lib\tupipaintarea.dll"
fileSystem.CopyFile sourceDir & "\components\pen\release\tupipen.dll", tupiDir & "\lib\tupipen.dll"
fileSystem.CopyFile sourceDir & "\components\scenes\release\tupiscenes.dll", tupiDir & "\lib\tupiscenes.dll"
fileSystem.CopyFile sourceDir & "\components\timeline\release\tupitimeline.dll", tupiDir & "\lib\tupitimeline.dll"
fileSystem.CopyFile sourceDir & "\components\twitter\release\tupitwitter.dll", tupiDir & "\lib\tupitwitter.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\common\release\tupiplugincommon.dll", tupiDir & "\lib\tupiplugincommon.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\color\release\tupicoloringtool.dll", tupiDir & "\plugins\tupicoloringtool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\composed\release\tupicomposedtool.dll", tupiDir & "\plugins\tupicomposedtool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\fill\release\tupifilltool.dll", tupiDir & "\plugins\tupifilltool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\geometric\release\tupigeometrictool.dll", tupiDir & "\plugins\tupigeometrictool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\ink\release\tupiinktool.dll", tupiDir & "\plugins\tupiinktool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\nodes\release\tupinodestool.dll", tupiDir & "\plugins\tupinodestool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\opacity\release\tupiopacitytool.dll", tupiDir & "\plugins\tupiopacitytool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\papagayo\release\tupipapagayotool.dll", tupiDir & "\plugins\tupipapagayotool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\pencil\release\tupipenciltool.dll", tupiDir & "\plugins\tupipenciltool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\polyline\release\tupipolylinetool.dll", tupiDir & "\plugins\tupipolylinetool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\position\release\tupipositiontool.dll", tupiDir & "\plugins\tupipositiontool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\rotation\release\tupirotationtool.dll", tupiDir & "\plugins\tupirotationtool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\scale\release\tupiscaletool.dll", tupiDir & "\plugins\tupiscaletool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\selection\release\tupiselectiontool.dll", tupiDir & "\plugins\tupiselectiontool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\shear\release\tupisheartool.dll", tupiDir & "\plugins\tupisheartool.dll"
fileSystem.CopyFile sourceDir & "\plugins\export\imageplugin\release\tupiimageplugin.dll", tupiDir & "\plugins\tupiimageplugin.dll"
fileSystem.CopyFile sourceDir & "\plugins\export\libavplugin\release\tupilibavplugin.dll", tupiDir & "\plugins\tupilibavplugin.dll"
fileSystem.CopyFolder sourceDir & "\shell\data", tupiDir & "\data"
fileSystem.CopyFolder sourceDir & "\components\help\help", tupiDir & "\data\help"
fileSystem.CopyFolder sourceDir & "\components\colorpalette\palettes", tupiDir & "\data\palettes"
fileSystem.CopyFolder sourceDir & "\themes", tupiDir & "\data\themes"
fileSystem.CopyFolder "c:\devel\sources\qt5", tupiDir & "\lib\qt5"
fileSystem.CopyFolder "c:\devel\sources\imageformats", tupiDir & "\bin\imageformats"
fileSystem.CopyFolder "c:\devel\sources\mediaservice", tupiDir & "\bin\mediaservice"
fileSystem.CopyFolder "c:\devel\sources\audio", tupiDir & "\bin\audio"
fileSystem.CopyFolder "c:\devel\sources\libav", tupiDir & "\lib\libav"
MsgBox "Copy is done! :D"
tupi-0.2-git08/tools/windows/copy64.vbs 0000664 0001750 0001750 00000014355 12750232064 020266 0 ustar xtingray xtingray Set fileSystem = CreateObject("Scripting.FileSystemObject")
quazipDir = "c:\Quazip\lib"
sourceDir = "c:\devel\sources\tupi\src"
tupiDir = "c:\tupi"
If fileSystem.FolderExists(tupiDir) Then
fileSystem.DeleteFolder tupiDir
End If
fileSystem.CreateFolder tupiDir
fileSystem.CreateFolder tupiDir & "\bin"
fileSystem.CreateFolder tupiDir & "\bin\platforms"
fileSystem.CreateFolder tupiDir & "\bin\imageformats"
fileSystem.CreateFolder tupiDir & "\bin\mediaservice"
fileSystem.CreateFolder tupiDir & "\bin\audio"
fileSystem.CreateFolder tupiDir & "\data"
fileSystem.CreateFolder tupiDir & "\plugins"
fileSystem.CreateFolder tupiDir & "\lib"
fileSystem.CreateFolder tupiDir & "\lib\qt5"
fileSystem.CreateFolder tupiDir & "\lib\libav"
fileSystem.CopyFile "c:\devel\sources\platforms\qwindows.dll", tupiDir & "\bin\platforms\qwindows.dll"
fileSystem.CopyFile quazipDir & "\quazip.dll", tupiDir & "\lib\quazip.dll"
fileSystem.CopyFile "c:\devel\sources\tupi\tools\windows\tupi.iss", tupiDir & "\tupi.iss"
fileSystem.CopyFile "c:\devel\sources\tupi\tools\windows\tupi.ico", tupiDir & "\bin\tupi.ico"
fileSystem.CopyFile "c:\devel\sources\tupi\tools\windows\tupi.bat", tupiDir & "\bin\tupi.bat"
fileSystem.CopyFile "c:\devel\sources\tupi\tools\windows\tupi.vbs", tupiDir & "\bin\tupi.vbs"
fileSystem.CopyFile sourceDir & "\shell\release\tupi.exe", tupiDir & "\bin\tupi.exe"
fileSystem.CopyFile sourceDir & "\framework\tcore\release\tupifwcore.dll", tupiDir & "\lib\tupifwcore.dll"
fileSystem.CopyFile sourceDir & "\framework\tgui\release\tupifwgui.dll", tupiDir & "\lib\tupifwgui.dll"
fileSystem.CopyFile sourceDir & "\store\release\tupistore.dll", tupiDir & "\lib\tupistore.dll"
fileSystem.CopyFile sourceDir & "\libbase\release\tupibase.dll", tupiDir & "\lib\tupibase.dll"
fileSystem.CopyFile sourceDir & "\libtupi\release\tupi.dll", tupiDir & "\lib\tupi.dll"
fileSystem.CopyFile sourceDir & "\libui\release\tupigui.dll", tupiDir & "\lib\tupigui.dll"
fileSystem.CopyFile sourceDir & "\net\release\tupinet.dll", tupiDir & "\lib\tupinet.dll"
fileSystem.CopyFile sourceDir & "\components\animation\release\tupianimation.dll", tupiDir & "\lib\tupianimation.dll"
fileSystem.CopyFile sourceDir & "\components\colorpalette\release\tupicolorpalette.dll", tupiDir & "\lib\tupicolorpalette.dll"
fileSystem.CopyFile sourceDir & "\components\export\release\tupiexport.dll", tupiDir & "\lib\tupiexport.dll"
fileSystem.CopyFile sourceDir & "\components\exposure\release\tupiexposure.dll", tupiDir & "\lib\tupiexposure.dll"
fileSystem.CopyFile sourceDir & "\components\help\release\tupihelp.dll", tupiDir & "\lib\tupihelp.dll"
fileSystem.CopyFile sourceDir & "\components\import\release\tupimport.dll", tupiDir & "\lib\tupimport.dll"
fileSystem.CopyFile sourceDir & "\components\library\release\tupilibrary.dll", tupiDir & "\lib\tupilibrary.dll"
fileSystem.CopyFile sourceDir & "\components\paintarea\release\tupipaintarea.dll", tupiDir & "\lib\tupipaintarea.dll"
fileSystem.CopyFile sourceDir & "\components\pen\release\tupipen.dll", tupiDir & "\lib\tupipen.dll"
fileSystem.CopyFile sourceDir & "\components\scenes\release\tupiscenes.dll", tupiDir & "\lib\tupiscenes.dll"
fileSystem.CopyFile sourceDir & "\components\timeline\release\tupitimeline.dll", tupiDir & "\lib\tupitimeline.dll"
fileSystem.CopyFile sourceDir & "\components\twitter\release\tupitwitter.dll", tupiDir & "\lib\tupitwitter.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\common\release\tupiplugincommon.dll", tupiDir & "\lib\tupiplugincommon.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\color\release\tupicoloringtool.dll", tupiDir & "\plugins\tupicoloringtool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\composed\release\tupicomposedtool.dll", tupiDir & "\plugins\tupicomposedtool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\fill\release\tupifilltool.dll", tupiDir & "\plugins\tupifilltool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\geometric\release\tupigeometrictool.dll", tupiDir & "\plugins\tupigeometrictool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\ink\release\tupiinktool.dll", tupiDir & "\plugins\tupiinktool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\nodes\release\tupinodestool.dll", tupiDir & "\plugins\tupinodestool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\opacity\release\tupiopacitytool.dll", tupiDir & "\plugins\tupiopacitytool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\papagayo\release\tupipapagayotool.dll", tupiDir & "\plugins\tupipapagayotool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\pencil\release\tupipenciltool.dll", tupiDir & "\plugins\tupipenciltool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\polyline\release\tupipolylinetool.dll", tupiDir & "\plugins\tupipolylinetool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\position\release\tupipositiontool.dll", tupiDir & "\plugins\tupipositiontool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\rotation\release\tupirotationtool.dll", tupiDir & "\plugins\tupirotationtool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\scale\release\tupiscaletool.dll", tupiDir & "\plugins\tupiscaletool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\selection\release\tupiselectiontool.dll", tupiDir & "\plugins\tupiselectiontool.dll"
fileSystem.CopyFile sourceDir & "\plugins\tools\shear\release\tupisheartool.dll", tupiDir & "\plugins\tupisheartool.dll"
fileSystem.CopyFile sourceDir & "\plugins\export\imageplugin\release\tupiimageplugin.dll", tupiDir & "\plugins\tupiimageplugin.dll"
fileSystem.CopyFile sourceDir & "\plugins\export\libavplugin\release\tupilibavplugin.dll", tupiDir & "\plugins\tupilibavplugin.dll"
fileSystem.CopyFolder sourceDir & "\shell\data", tupiDir & "\data"
fileSystem.CopyFolder sourceDir & "\components\help\help", tupiDir & "\data\help"
fileSystem.CopyFolder sourceDir & "\components\colorpalette\palettes", tupiDir & "\data\palettes"
fileSystem.CopyFolder sourceDir & "\themes", tupiDir & "\data\themes"
fileSystem.CopyFolder "c:\devel\sources\qt5", tupiDir & "\lib\qt5"
fileSystem.CopyFolder "c:\devel\sources\imageformats", tupiDir & "\bin\imageformats"
fileSystem.CopyFolder "c:\devel\sources\mediaservice", tupiDir & "\bin\mediaservice"
fileSystem.CopyFolder "c:\devel\sources\audio", tupiDir & "\bin\audio"
fileSystem.CopyFolder "c:\devel\sources\libav", tupiDir & "\lib\libav"
MsgBox "Copy is done! :D"
tupi-0.2-git08/tools/windows/tupi.ico 0000664 0001750 0001750 00000141204 12750232064 020075 0 ustar xtingray xtingray è – ( ~ 00 ¨ ¦ ¨ N h ö nf ^! 00 ¨% ̇ ¨ t h ¾ ( @ € ¾e Ér È{% Û éŒ Ï…1 õš% ý¢* Ð’M û«C Öžb Ú©t ÿ ÿ ÿÿ ÿÿÿ 2 Æ" ’A0 bE&