34 Commits

Author SHA1 Message Date
stephena
2cc674a0f7 Removed more unused cruft from the UNIX build scripts, and reorganized
things a little (I hope I didn't break the recent GP2X changes).

Removed more PSP stuff, since that port is no longer maintained in this
codebase, but by someone else externally.

Building the 'win32dist' target is now tailored to a Linux environment,
and now properly converts text files and zips up the result
automatically.  So automated building just became that much closer ...


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1422 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2008-03-09 15:30:27 +00:00
stephena
8e76c31e4c Added cross-compile support for Win32 from Linux using MinGW. This is
accessed using a new 'host' type in configure (mingw32-cross).  For
my system, the command would be as follows:

configure --host=mingw32-cross
          --with-sdl-prefix=/home/stephena/.mingw/usr/i386-mingw32msvc

This allows you to compile the Windows version in Linux, which is my
main development platform.  It will also allow me to get the automated
build page working again :)

Removed all NASM checking from the config scripts, since we're never
going to use it (it goes against the philosophy of Stella compiling
everywhere).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1421 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2008-03-09 14:17:03 +00:00
stephena
16de3d6b3c Fixed bug where switching from fullscreen to windowed mode while in the
debugger would reset the UI zoom level.

Fixed issue with 'make install' not completing.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1349 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2007-08-16 16:42:46 +00:00
stephena
c399392dfe Added PNG file, which is the standard icon format defined by
freedesktop.org.  The XPM is still present, and is used for compiling
directly into the application.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1331 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2007-07-25 13:07:15 +00:00
stephena
94e6bd66a9 Some last minute fixes for building in Win32.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1228 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-12-20 20:36:26 +00:00
stephena
14e7818fdf Completely removed the PNG library dependency from Stella. I'm amazed
at how easy it was to just write the PNG directly; it takes roughly the
same amount of code as when interfacing with the PNG library!  One
less dependency is always a good thing, since some systems might not
have it installed by default.

For now, the Linux side of things is complete (configure script, etc).
Still TODO is check the Win32 project file, and rework the OSX stuff
(OSX had the full libpng sources embedded in src/macosx).  I suspect
this will fix the bugs recently reported when compiling Stella on
Intel-based Macs.

Added a freedesktop.org compliant stella.desktop menu entry, which is
now installed as part of 'make install'.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1143 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-11-09 03:06:42 +00:00
stephena
6205ff2b69 Updated some UNIX/Linux build related items.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1128 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-09-08 14:35:21 +00:00
stephena
8a740e1605 Some updates for Win32 compilation. There are still some warnings being
generated by VC++ that I have to look into.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1127 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-09-08 00:44:19 +00:00
stephena
758a4ed3ff Some massive pruning of the rsynth codebase. Hopefully I haven't removed
anything that was necessary.

Changed AtariVox code to be a compile-time option, and integrated rsynth
code into the 'Stella build' style, with a module.mk file.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1112 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-06-11 21:49:10 +00:00
urchlay
815a111b25 Forgive the gigantic commit; I'm importing "rsynth". It's not really such
a big library, and it's not commonly installed anywhere, and it's GPL.

Actually, a good chunk of rsynth can be removed (all the stuff related
to perl modules and text-to-speech, which we won't need for Stella). I'll
prune it when I figure out exactly what I can keep...


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1111 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-06-11 07:13:29 +00:00
urchlay
21ebade382 Added call to "ctags" to Makefile. Shouldn't cause any problems for
people who don't have ctags installed.

WIP debugger equate restructuring.

WIP AtariVox emulation. Not very far along yet, but at the moment,
we're able to read the speech data output by vox_test.bin and spit out
the phoneme values on stderr.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1109 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-06-09 02:45:11 +00:00
stephena
893644c703 Removed all references to stella.pro locations from configure and Makefile
scripts, since the properties are now built in, and will never need a
global storage directory.

Reworked the ROM launcher again, by moving the 'Reload' button to the
Launcher options dialog (by popular request from the GP2X forums).  The
'Go Up' button is now always present on the main launcher interface, but
is disabled when not in 'rom browse' mode.

Added a button to VideoDialog for the recently added 'tiadefaults'
functionality.  It defaults to off, which is the current behaviour in
Stella.  (De)selecting this item will require a ROM reload.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1058 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-19 20:57:55 +00:00
stephena
c7863e1f56 Cleaned up some text formatting, and removed references to stella.pro
for installation (it should no longer be included with release packages).


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1039 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-11 21:34:37 +00:00
stephena
6209912e4a Fix for the 'twitch' in the GP2X port when navigating the menus. It was
actually a deficiency in the GUI core, whereby joystick button events
were being translated to axis events, but the actual button events were
still being processed as well.  Now, if a button has been translated by
pollEvent(), it is removed from further processing in the main event
loop.

Also cleaned up the DialogContainer event logic a little.  Basically,
the code at that level should never do button to axis translation,
since that's port-specific and will be handled in the OSystemXXX class.

Fixed some errors in Makefile, where spaces were used instead of tabs.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1014 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-02 13:10:53 +00:00
azaballa
e1995ea8b3 Added document gathering to gp2x-organize. Updated readme.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1013 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-03-02 04:55:55 +00:00
azaballa
c8d00c9810 Added handling of gp2x png path to INCLUDES to save the user a step during compilation. Added gp2x-organize to Makefile to aid in installation/packaging after compilation. Updated gp2x documentation to reflect changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1006 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-02-15 03:12:12 +00:00
stephena
a30149355a Added profile support to configure/Makefile (--enable-profile). If you
know what this is, you'll know how to use it :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@996 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-02-01 13:53:25 +00:00
stephena
e75b50cab8 Fixed install/uninstall for configurable DATADIR support.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@965 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-15 21:02:22 +00:00
stephena
0ffc5863a7 Fixed long-standing GUI drawing bug whereby items were being redrawn
before a certain state was entered.  For example, launching a game
and bypassing the ROM launcher would attempt to draw elements from
the debugger, with coordinates that were usually larger than the
current screen.

Made system-wide location of stella.pro/stellarc files configurable
at build-time.  They're now stored in DATADIR/stella, where DATADIR
can be changed with "--datadir=..." during configure.  This is only
enabled for UNIX for now.

Added missing 'cheat' and 'break' to commandline description.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@964 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-15 20:46:20 +00:00
stephena
07f320e1f1 Added GP2X port, thanks to Alex Zaballa. This is the first commit,
so I may have broken something.

Improved 'joystick is mouse' code in the GUI.  Also account for devices
where the D-pad sends button events instead of the normal axis events.

Treat joystick events as other types of controllers based on the
virtual port entry in stella.pro.  This means that mappings for a
joystick will emulate other devices when necessary, and should
help on 'small' devices with few inputs.

Added 'sp' developer commandline argument, which sets the
"Console.SwapPorts" property and swaps the arrangement of the
virtual ports.  Useful for games like "Raiders of the Lost Ark",
where the joysticks are normally swapped.  Updated stella.pro
for Raiders to use this property.

Moved ugly #ifdef code for screen dimensions out of FrameBuffer and
directly into the respective OSystemXXX classes.

Added 'freq', 'tiafreq' and 'clipvol' commandline arguments, which
affect the sound subsystem.  Note that none of these add new
functionality; they merely expose what were previously constants
in the code:
 - freq: sets sound sample output frequency
 - tiafreq: sets sound sample generation frequency
 - clipvol: clips volume to eliminate huge cracks when pausing sound


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@940 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2006-01-08 02:28:04 +00:00
stephena
0f90b07e1a Now that the 'reinterpret_cast' operator has been removed from Stella,
we can also remove RTTI support.  This may result in a slightly smaller
binary.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@912 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-12-17 01:26:58 +00:00
stephena
6785b1fdd3 Oops, reverted compiler optimization flags, since don't exist on all
compilers and don't apply to non-x86 machines.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@866 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-10-25 21:21:15 +00:00
stephena
d1ce577cda Updated Makefile with default compile flags if none are provided.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@865 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-10-25 20:30:59 +00:00
stephena
2b8cf12774 Added icon file for the Win32 build. This means that an icon will be
compiled into Stella, and Stella will be shown with an icon in Windows
Explorer, etc.

Modified Makefile to create a Win32 binary package from the commandline.
You can do 'make win32dist DISTNAME=stella-release', and a package
named 'stella-release' will be created.  Still todo is get zip support
working, so it can be zipped directly from the Makefile.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@854 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-10-22 20:33:57 +00:00
stephena
a726556b41 More fixes for 'make install'. The stella.xpm icon is now installed,
although it isn't strictly needed for Stella itself (it's already
compiled in).

Added stella.spec file, which is used to generate a source RPM for
both PLF (Mandriva) and hopefully for all RPM distros as well.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@809 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-10-03 00:53:20 +00:00
stephena
667590c0a8 Changed keystroke for switching between tabs from 'Ctrl-(shift)-tab'
to 'Shift left/right cursor', since Ctrl-Tab is usually an OS
reserved keystroke.

Fixed 'make install' command so it actually installs Stella.  Further
testing is still required.

Fixed graphical glitch whereby focus rectangles weren't being
properly drawn around widgets with an attached scrollbar
(PromptWidget and ListWidget).

I only have 5 or 6 outstanding bugs left.  After that, once the
TiaOutputWidget is complete, we'll be ready for a new release.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@804 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-09-30 22:12:18 +00:00
optixx
d5b741362a o added 'psp-fixup-imports' to psp build chain, to get psp build working with lastest pspsdk ans psptoolchain
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@781 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-09-18 14:28:17 +00:00
stephena
fb749d3325 Added PSP Stella port by David Voswinkel. Hope I didn't break
anything.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@745 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-08-25 15:19:17 +00:00
stephena
6eafefb3a5 Made Yacc stuff be part of DEVELOPER_SUPPORT, so it's only compiled
when we want the debugger.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@587 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-07-01 13:59:40 +00:00
urchlay
073ae410ad Added initial Yacc parser. This will replace DebuggerParser::decipher_args()
and become the "mini-language" for conditional breaks/traps.

The current lexer/parser combo benchmarks at 1/2 million parses/sec
on my Athlon 2100. By comparison, Pitfall runs approx. 360,000
instructions/sec. We need to be able to check for a conditional break
once per instruction, so on my box, I'll probably be able to run the
emulator at full speed with one breakcond set, using all the CPU.

Am still working on a way to speed things up: there's no reason we
should have to fully lex and parse an expression every time we want to
evaluate it.

For now, the only place the new parser hooks into Stella is with an
undocumented "expr" command. Try "expr 2+2" at the prompt.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@585 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-07-01 04:22:37 +00:00
stephena
113f32b7e1 Moved initialization of TIADebug from Console to Debugger, since the Console
doesn't really need to know about it, and it belongs to the debugger anyway.

Fixed some makefile issues:
Pure C programs were being compiled with 'cc', when 'g++' (or equivalent)
should have been used.

Only pre-define the compiler flags to include '-O2' if the user doesn't
have a CXXFLAGS env variable set.  Sometimes I want to use '-g', and in
that case I want to override the internal '-O2'.

Fixed TIASound code to not use its own type definitions, and instead use
the ones from bspf.hxx.  Eliminates requirement of specifying -DWIN32,
even when the host system wasn't Win32.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@583 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-06-29 13:11:03 +00:00
urchlay
b2903a36ca Moved frying support from the Debugger to the Console. Also, frying now
occurs once per frame, as long as the backspace key is held down
(previously it happened once per keypress only). Haven't decided
whether this is an improvement or not, need more testing

Also, added missing -O2 to new Makefile.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@580 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-06-29 00:31:49 +00:00
stephena
77f4c8e007 Second pass at configure support; it actually seems to work this time.
I've only tested it in 32bit Linux, but I don't forsee any problems.
Dependencies seem to work correctly, recompiling parts of the codebase
as necessary.

New files added to the codebase must be listed in the 'module.mk' file
in the same directory where the new file is placed.  Other then that,
no configuration is required.

All configurable options are by default enabled.  They can be manually
disabled by an appropriate command to the configure script, but the
script is smart enough to test for the required libraries and disable
support when one isn't found.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@579 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-06-28 23:18:16 +00:00
stephena
d12f199847 First pass at configure support (no more editing makefiles). This is
adapted from the ScummVM build process, and isn't as big and nasty as
full autoconf support.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@578 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-06-28 18:56:49 +00:00