Commit Graph

643 Commits

Author SHA1 Message Date
Yotam Barnoy
193a0c6ca1 PSP: disabling the ability to build Broken Sword 2.5. Revert once fixed.
Lua is very problematic for the PSP build because it wants a) libpng built with the plugins which is not great, but not that bad. b) It calls several PSP functions directly, and it turns out PSP functions can only be called from the main executable -- they're in flash and must be fixed up using custom PSP utils. Until this mechanism is changed so that for example lua calls functions in the main executable, the PSP cannot be built.

The following functions need to be removed/moved to the main executable:
All socket functions (should be disabled anyway)
Clock()
Rename()
Additionally, png functions should ideally also be called only from the main executable.

svn-id: r53615
2010-10-19 16:17:45 +00:00
Eugene Sandulenko
56b1f8ddee Revert "CONFIGURE: Added va_copy detection for Last Express engine"
svn-id: r53584
2010-10-18 20:19:44 +00:00
Eugene Sandulenko
a33d473535 CONFIGURE: Added va_copy detection for Last Express engine
svn-id: r53583
2010-10-18 20:02:27 +00:00
Eugene Sandulenko
937cf6cd7a CONFIGURE: Plug in Last Express engine
svn-id: r53580
2010-10-18 19:18:06 +00:00
Eugene Sandulenko
5d08ad157d CONFIGURE: formatting fix (and kick the buildbot full rebuild)
svn-id: r53570
2010-10-18 17:42:24 +00:00
Matthew Hoops
dad3f32278 MACOSX: Fix make bundle when compiling with libpng
svn-id: r53463
2010-10-15 03:33:54 +00:00
Max Horn
fa8275f27b SWORD25: Don't even compile theora related code when that lib is not present
svn-id: r53428
2010-10-13 15:00:51 +00:00
Filippos Karapetis
3b49939eab CONFIGURE: Fixed typo
svn-id: r53420
2010-10-13 13:43:13 +00:00
Filippos Karapetis
69e3e55aca CONFIGURE: Fixed a bug with --disable-theoradec and made libtheoradec optional for
building sword25 

If libtheoradec is missing then the engine still builds if requested, but the
videos will be disabled (note that running the game with videos disabled is
still untested)

svn-id: r53419
2010-10-13 13:36:55 +00:00
Joost Peters
fddc2ab3b9 CONFIGURE: Use static libgcc on IRIX cross-compile builds (makes them work on vanilla IRIX systems).
svn-id: r53414
2010-10-13 12:45:14 +00:00
Willem Jan Palenstijn
b3c352d1fe CONFIGURE: Don't execute a binary just to check libpng version
This fixes detection of libpng when cross-compiling.

svn-id: r53404
2010-10-13 10:50:45 +00:00
Johannes Schickel
3b81a9489e SOUND: Allow TiMidity support to be disabled via configure.
svn-id: r53395
2010-10-13 00:48:40 +00:00
Eugene Sandulenko
dbde2e46e3 SWORD25: Added detection of libtheora, png an dplugged in the engine
svn-id: r53169
2010-10-12 21:12:50 +00:00
Jordi Vilalta Prat
8388e0dfea JANITORAL: Clean trailing whitespaces.
svn-id: r53160
2010-10-12 02:18:11 +00:00
Jordi Vilalta Prat
a524209edc CONFIGURE: Update backends and special host lists.
- Update the documentation of available backends and special hosts based on
  the available ones.
- Sort backend/host/case lists alphabetically.

svn-id: r53158
2010-10-11 23:26:26 +00:00
Jordi Vilalta Prat
8b144960f8 CONFIGURE: Fix for bug #3085292 (--docdir not accepted)
- Handle the --docdir option which was documented but not accepted.
- Reorder the directory variables and their handling to have the same order
  everywhere. This will hopefully make bugs like this harder to happen.

svn-id: r53149
2010-10-11 19:50:17 +00:00
Eugene Sandulenko
cf82bef02e TOON: Merged Toon engine to ScummVM trunk
svn-id: r53087
2010-10-08 22:30:39 +00:00
Fabio Battaglia
9ec1985a09 CONFIGURE: add REDUCE_MEMORY_USAGE to N64 and Dingux ports
svn-id: r53050
2010-10-07 15:45:38 +00:00
John Willis
2e57bcad52 CONFIGURE: Clean up overuse of _exeext for GP2X/Wiz and Caanoo.
svn-id: r52917
2010-09-26 20:23:58 +00:00
John Willis
e9058c57a5 CONFIGURE: Rework GP2X/Wiz/Caanoo and OpenPandora builds.
Just some small cleanup to make the building of debug and
release builds follow the convention expected from the 
configure flags.

svn-id: r52821
2010-09-20 19:33:58 +00:00
Yotam Barnoy
f7f743ac31 PSP: switch from wrapping memcpy to defining our own memcpy
The advantage is that we get to do inlining and even use lwl and lwr instructions where appropriate. We have to do it ourselves because the PSP doesn't tolerate built-in instructions, but also we have a more efficient memcpy than the lib's.

svn-id: r52817
2010-09-20 14:10:44 +00:00
Andre Heider
251151eb1d CONFIGURE: Add missing -fuse-cxa-atexit for GameCube.
svn-id: r52731
2010-09-15 07:44:24 +00:00
Andre Heider
2596143e2b PLUGINS: Additional plugin check for the ELF loader.
The ELF loader does not have access to the symbols of the main
executable, it just relocates symbols to it via fixed offsets. We need
to make sure that loaded plugins are from the same link process to
prevent crashes. An embedded build date is used for that.

svn-id: r52730
2010-09-15 07:44:08 +00:00
Andre Heider
41834499ed PLUGINS: Cleanup.
- Unify ELF loader handling in configure
- Rename ELF_LOADER_TARGET to USE_ELF_LOADER

svn-id: r52728
2010-09-15 07:43:16 +00:00
Eugene Sandulenko
74118a7087 TESTBED: Merge gsoc2010-testbed branch
svn-id: r52681
2010-09-12 08:08:37 +00:00
Willem Jan Palenstijn
2ba62328d2 BUILD: Create configure temp files in build dir
This fixes detection issues with a noexec /tmp (bug #3009167),
and matches what autoconf does. There should be no need to
randomize temp file names in the build dir.

svn-id: r52659
2010-09-09 14:01:48 +00:00
Willem Jan Palenstijn
43f05c3361 BUILD: Fix compiler test result logging
svn-id: r52658
2010-09-09 14:01:33 +00:00
John Willis
47711e4c59 CONFIGURE: Move GP2XWIZ and CAANOO to use the GPH backend.
svn-id: r52649
2010-09-09 09:55:07 +00:00
Fabio Battaglia
0288f60f19 CONFIGURE and N64: add n64.mk with nintendo64 specific dist targets
svn-id: r52641
2010-09-08 18:04:38 +00:00
Fabio Battaglia
690fea2933 DINGUX: Add dingux.mk with specific 'dist' targets
svn-id: r52632
2010-09-08 08:26:20 +00:00
Andre Heider
ae408db07f PLUGINS: Use the C++ ABI to call dtors when unloading a plugin.
Avoid linking all plugins against libstdc++ to free up some memory
(about ~40kb on Wii per plugin). Enable it on GameCube, Wii, DS and PSP
(PS2 doesn't have __cxa_atexit support in its libc).

svn-id: r52607
2010-09-06 20:34:00 +00:00
Eugene Sandulenko
6c980b3593 CONFIGURE: Wrap usage help around 80 columns
svn-id: r52602
2010-09-06 18:13:39 +00:00
John Willis
871aa65a83 CONFIGURE: Remove 16Bit graphics support from the GP2X backend.
This should not have been committed with r52600, 
the GP2X backend refactor it needs is not yet ready to commit.

svn-id: r52601
2010-09-06 18:06:47 +00:00
John Willis
fdb2a58bc2 CONFIGURE: Add support for the OpenPandora backend.
svn-id: r52600
2010-09-06 17:35:27 +00:00
Andre Heider
09834b8bec MERGE: Merge trunk to branch.
svn-id: r52564
2010-09-05 15:26:00 +00:00
Andre Heider
86f4dbd956 PLUGINS: Move all ELF loader related files to its own directory.
svn-id: r52555
2010-09-05 12:51:25 +00:00
Andre Heider
13770ce9cd PLUGINS: Plugin support for the GameCube/Wii backend.
svn-id: r52553
2010-09-05 12:49:29 +00:00
Andre Heider
9c495a23b2 DS: Merge r52533 from trunk.
svn-id: r52534
2010-09-04 22:26:12 +00:00
Andre Heider
7248efb178 DS: Enable stdout/err via nocash when DISABLE_COMMAND_LINE in not set.
svn-id: r52533
2010-09-04 22:19:20 +00:00
Yotam Barnoy
43bbfa5ca8 PSP: removed strict-aliasing
It's no longer needed after adding __may_alias__ flag in endian.h.

svn-id: r52481
2010-09-01 12:56:34 +00:00
Yotam Barnoy
b5a17ca628 PSP: fix BS2 crash by disabling strict aliasing
The problem that caused the crash in BS2 had to do with GCC making improper assumptions about our code. Specifically, the alignment trick we use for READ_UINT32/16 allows some targets(e.g. MIPS) to generate better code, but it also goes against ANSI C aliasing rules, which prohibit the sharing of addresses between a struct and another variable value. Using -fno-strict-aliasing tells GCC not to assume strict ANSI C aliasing and also unfortunately prevents it from making some good optimizations.

This change is probably needed for other platforms as well -- the crash on the PSP was simply a very rare coincidence.

svn-id: r52473
2010-08-31 15:24:08 +00:00
Andre Heider
80b9e8371b WII: svn merge Wii port commits from trunk
svn-id: r52425
2010-08-28 12:51:12 +00:00
John Willis
c36ba08424 CONFIGURE: Add support for building for the GPH Caanoo.
The Caanoo is based on the GP2XWIZ backend but needs to be a seperate
target as it uses a different toolchain/libs etc. 

svn-id: r52401
2010-08-26 11:28:30 +00:00
Andre Heider
922510df7e SOUND: New global define AUDIO_REVERSE_STEREO.
This reverses the stereo channels for all sfx streams, meant for
hardware devices which expect an inverse order. Use it for the Wii
and Gamecube port since it's reversed since day one :P

svn-id: r52357
2010-08-24 18:44:14 +00:00
Fabio Battaglia
f2ed796ba3 CONFIGURE: don't force vkeybd for n64 port
svn-id: r52355
2010-08-24 17:56:33 +00:00
Fabio Battaglia
4625defaa4 CONFIGURE: force disable seq midi for dingux port
svn-id: r52219
2010-08-20 05:06:07 +00:00
Fabio Battaglia
c427ecb7cc DINGUX: disable check for vorbis, because of terrible performance compared to tremor
svn-id: r52212
2010-08-19 15:13:03 +00:00
Eugene Sandulenko
26dc4c2425 DINGOO: new port. Patch #3039277
svn-id: r52210
2010-08-19 12:43:37 +00:00
Yotam Barnoy
e2121bbc61 configure: removed spaces from PS2 and PSP cases
svn-id: r52203
2010-08-19 10:11:52 +00:00
Eugene Sandulenko
bec56837eb CONFIGURE: Properly detect -Wglobal-constructors
svn-id: r52157
2010-08-17 13:51:36 +00:00
Eugene Sandulenko
c6d56f2c02 CONFIGURE: Add -Wglobal-constructors to Darwin builds.
svn-id: r52156
2010-08-17 13:00:48 +00:00
John Willis
56ec4fc353 CONFIGURE: Add plugin support for the GP2X backend.
I'll switch the GP2X to use plugins by default for new releases after some additional testing.

svn-id: r52153
2010-08-17 11:40:48 +00:00
Eugene Sandulenko
981abdd08b CONFIGURE: Remove trailing space (and kick buildbot)
svn-id: r52152
2010-08-17 11:19:34 +00:00
Eugene Sandulenko
06960d33e1 HUGO: Adding engine to the main tree
svn-id: r52137
2010-08-17 09:28:20 +00:00
Tony Puccinelli
b7c63fce28 Changed PLUGIN_LD_FLAGS for psp to point to correct directories for plugin.syms and plugin.ld
svn-id: r52110
2010-08-16 00:36:37 +00:00
Tony Puccinelli
779927e126 added ds build script that makes a static build with all usable engines, dumps the symbols used, and then makes a dynamic build that's selectively stripped accordingly
svn-id: r52096
2010-08-15 08:15:28 +00:00
Tony Puccinelli
af81ed98c5 added dynamic plugins stuff for PS2 into Makefile (and added couple of defines for abstracted ELF-LOADER for psp
svn-id: r52083
2010-08-14 09:03:35 +00:00
Andre Heider
c58e2707ff WII: Update port for the current versions of the base libraries. Enable DVD access for the GameCube port.
svn-id: r52074
2010-08-14 00:56:12 +00:00
Tony Puccinelli
1e33b20650 added back --gc-sections for the ds when dynamic modules aren't enabled
svn-id: r52069
2010-08-13 19:55:22 +00:00
Tony Puccinelli
ac1f6f0eb9 moved some dynamic-modules specific defines into the appropriate area for ds in configure
svn-id: r52061
2010-08-13 08:34:19 +00:00
Tony Puccinelli
9b295186db added dynamic plugins stuff for ds into configure
svn-id: r52060
2010-08-13 07:25:21 +00:00
Neeraj Kumar
7e126ed299 TESTBED: Merged changes from trunk to my branch
svn-id: r51798
2010-08-06 20:13:41 +00:00
Fabio Battaglia
6665bf4a01 CONFIGURE: removed two useless definitions in N64 sections
svn-id: r51700
2010-08-03 15:34:28 +00:00
Joost Peters
bcd6dd2627 PSP: Enable "CPU-hungry sound chips" again, the PSP is fast enough.
svn-id: r51684
2010-08-03 12:03:36 +00:00
Eugene Sandulenko
3932ebfaf0 PSP: Disable CPU-hungry sound chips
svn-id: r51683
2010-08-03 11:26:32 +00:00
Eugene Sandulenko
ed9c3093b5 PS2: Disable CPU-hungry sound chips
svn-id: r51682
2010-08-03 11:26:10 +00:00
Eugene Sandulenko
1ec8a75ef6 N64: Disable CPU-hungry sound chips
svn-id: r51681
2010-08-03 11:25:52 +00:00
Eugene Sandulenko
5d212755ce NDS: Disable NES APU for the platform
svn-id: r51680
2010-08-03 11:25:37 +00:00
Max Horn
0437ffa75c N64: Error out in configure if N64SDK is not set
svn-id: r51672
2010-08-03 00:03:04 +00:00
Fabio Battaglia
e521287063 CONFIGURE: drop hardcoded endianess and hq scalers from n64 section
svn-id: r51659
2010-08-02 20:45:17 +00:00
Fabio Battaglia
a46f69570f CONFIGURE: cleanup of N64 port sections
svn-id: r51657
2010-08-02 20:38:06 +00:00
Max Horn
8aae4aaaee BUILD: Unify how we set vars to yes/no
svn-id: r51639
2010-08-02 17:12:34 +00:00
Max Horn
8a3a41bc2b DS: More closely immitate CXXFLAGS of custom DS build system
svn-id: r51637
2010-08-02 17:12:03 +00:00
Max Horn
5fb1bfd5a6 BUILD: Order host names (in particular ds and android) alphabetically
svn-id: r51635
2010-08-02 17:11:25 +00:00
Max Horn
d82e106d81 DS: Disable scalers and SID
svn-id: r51634
2010-08-02 17:11:12 +00:00
Fabio Battaglia
2e94391d98 CONFIGURE: add support for N64 port to configure
svn-id: r51581
2010-08-01 17:16:39 +00:00
Eugene Sandulenko
b90493bba0 AMIGAOS4: Patch #3033938: "Configure change"
AmigaOS4 core devs tell that the special directory "SObjs" (that holds
the shared object files) should only be used by the end user (games,
apps, etc.) but not by projects that are to be build.

This patch fixes it.

svn-id: r51269
2010-07-24 23:11:24 +00:00
Willem Jan Palenstijn
35e2c78626 BUILD: Fix fallback readline detection
svn-id: r51057
2010-07-20 10:00:18 +00:00
Max Horn
37aa8a7499 BUILD: Unify adding -DUNIX to DEFINES; complete SEQ MIDI detection
* Added a yes/no variable _unix to configure, which controls when
  -DUNIX is added to DEFINES
* Enable SEQ MIDI via _seq_midi by default on UNIX type systems,
  except for those which override that.
* Switch SEQ MIDI code to check #define USE_SEQ_MIDI
  (alternatively, we could compile it only conditionally...)

svn-id: r51055
2010-07-20 08:25:13 +00:00
Max Horn
e527ad162f BUILD: Enhance configure code, add (unfinished) USE_SEQ_MIDI support
* Remove unused add_to_config_mk_if_no()
* Add two new functions: define_in_config_h_if_yes() and
  define_in_config_if_yes(). These make it much more convenient
  to #define something in config.h, or in both config.h and config.mk
  simultaneously.
* Convert configure code to use the two new functions, were appropriate.
* Add preliminary USE_SEQ_MIDI support, as discussed on scummvm-devel.
  This is incomplete as it does not actually detect anything, it just
  allows turning off _seq support.

svn-id: r51054
2010-07-20 08:24:48 +00:00
Yotam Barnoy
30d7517343 PSP: switched to using my memcpy
svn-id: r50982
2010-07-18 07:03:14 +00:00
Angus Lees
330e94feed Drop direct use of (private) libEGL.so and call EGL functions via Java.
This removes the final private library - we should be completely above
board now.

svn-id: r50677
2010-07-05 13:06:58 +00:00
Max Horn
a9af532448 DS: Can now build binaries via our "configure/make" build system.
Conversion of the old build system is incomplete. Binaries created
using this new build system support most likely will not run!
More work is needed, but the work done so far should be enough
to get basic NDS support on our buildbot working.

svn-id: r50672
2010-07-05 10:07:33 +00:00
Max Horn
179a2b4e88 NDS: Rename backend 'nds' to 'ds' in configure
svn-id: r50670
2010-07-05 10:06:38 +00:00
Angus Lees
b8778fc7c3 Switch Android toolchain prefix from arm-android-eabi to
arm-*-linux-androideabi, since this is what the upcoming gcc-4.6
change uses.
Work around Android 2.0 and newer dynamic linker bug by explicitly
linking plugins against the core libscummvm.so.
Mark Android packages as preferring to be on external storage.
Move -lm from LDFLAGS to LIBS.

svn-id: r50665
2010-07-05 01:00:59 +00:00
Max Horn
762ff57e0d NDS: Some tweaks for compiling via std build system
svn-id: r50582
2010-07-01 23:12:28 +00:00
Max Horn
78b6e246df Fix configure output (missing newline)
svn-id: r50556
2010-07-01 16:26:00 +00:00
Johannes Schickel
58fcda82f3 Remove support for translation of console messages.
In recent discussions on -devel it turned out, that this
feature is rather superfluous and instead we should rather
implement a proper error reporting in our GUI.

I also removed the dependency on iconv along with this.

svn-id: r50335
2010-06-26 18:07:41 +00:00
Johannes Schickel
d783ca972a Disable addition of "SCUMMVM_SVN_REVISION" to the version string, in case --enable-release was specified on configure run.
svn-id: r50246
2010-06-24 22:33:49 +00:00
Thierry Crozat
690203de74 Fix possible link error for scummvm-static (for MacOS X bundle) when USE_TRANSLATION is set but USE_TERMCONV is not.
svn-id: r49941
2010-06-17 18:54:37 +00:00
Yotam Barnoy
e7e8808aff PSP: got rid of SDL
svn-id: r49903
2010-06-16 09:04:27 +00:00
John Willis
2e9a7155e6 GP2X: Move port distribution rules into a makefile for use with buildbot.
This removes them from the old scripts in /backends/platform/gp2x/build/ and puts them in the right place.

svn-id: r49892
2010-06-15 20:45:13 +00:00
Johannes Schickel
49463c2bf9 Use USE_TRANSLATION, USE_DETECTLANG and USE_TERMCONV instead of (ENABLE_)TRANSLATION, DETECTLANG and TERMCONV.
svn-id: r49885
2010-06-15 19:20:58 +00:00
Andre Heider
7360bea1ee Fix linking of the cc_tests (gamecube too)
svn-id: r49884
2010-06-15 18:42:08 +00:00
Andre Heider
6210b44eba Fix linking of the cc_tests
svn-id: r49882
2010-06-15 18:30:30 +00:00
John Willis
ee419aad9c GP2XWiz: Add port distribution rules into a makefile so they can be used with buildbot.
This removes them from the old scripts in /backends/platform/gp2xwiz/build/ and puts them in the right place as make targets.

svn-id: r49877
2010-06-15 17:49:40 +00:00
Johannes Schickel
0d7c8071cc Fix iconv signature on BSD systems. (Based on what we do in tools/)
svn-id: r49868
2010-06-15 17:13:42 +00:00
Eugene Sandulenko
859212df25 Implement translation support for ScummVM GUI.
Based on patch #2903830: "Updated Translation Prototype" by alexbevi
which in turn is based on patch #1739965 by jvprat.

Currently it builds all translations right into ScummVM. Once the
feature will be accepted more widely, i.e. more translations will
pop up, it will be trivial to move translation strings to external
file.

Finished translation: Russian
Unfinished translation: Hungarian

Things which are nice to do:
 - Language code -> language mapping for more user friendness
 - Specifying fonts to be used with language
 - Updating of interface language without restart. It will require
   moving of much code to reflowLayout() methods for each dialog

The .po files must be in single byte encodings. I.e. no support
for Unicode.

svn-id: r49759
2010-06-15 10:44:51 +00:00
Neeraj Kumar
207a5e0779 updated my outdate copy of trunk, added couple of more tests in gfxtests
svn-id: r49510
2010-06-08 17:24:29 +00:00
Angus Lees
33c2e03ccc Remove unnecessary explicit _endian=little for Android
svn-id: r49504
2010-06-08 13:18:25 +00:00