812 Commits

Author SHA1 Message Date
David Turner
ccc3830b49 SWORD25: Update configure Script to set LUA platform configuration for linux*
This changes removes the tmpnam warning when building the Sword 2.5 engine.
This fix sets the top level define which is used by engines/sword25/util/lua/luaconf.h to configure the LUA interpreter build, but only for linux* targets. 
Other targets may need a similar fix.
Note : LUA_USE_POSIX is used in preference to LUA_USE_LINUX as this causes another warning associated with the dlopen usage.

svn-id: r55130
2011-01-06 00:43:36 +00:00
Yotam Barnoy
7558331550 PLUGINS: rename ONE_PLUGIN_AT_A_TIME define to UNCACHED_PLUGINS
ONE_PLUGIN_AT_A_TIME is too long.

svn-id: r55064
2010-12-30 08:01:58 +00:00
Yotam Barnoy
6817d4b300 PLUGINS: add ELF memory manager to solve fragmentation
Following lordhoto's suggestion, I implemented a simple allocator that grabs the size of the biggest available plugin in memory. This is an elegant solution to the fragmentation problem, with the caveat that memory is wasted. As such, it's not suited for the DS, so I added a #define to disable it there.

svn-id: r55009
2010-12-22 14:48:51 +00:00
Jordi Vilalta Prat
f1d8fc49f4 CONFIGURE: Add detection for OpenGL ES 1.1
svn-id: r54733
2010-12-02 12:44:36 +00:00
Johannes Schickel
4fe7e1b3e9 CONFIGURE: Fix OpenGL library detection on OS X in case MESA is installed.
svn-id: r54722
2010-12-01 20:50:12 +00:00
Jordi Vilalta Prat
75cf4a225d CONFIGURE: Remove the duplicated --disable-opengl description.
svn-id: r54721
2010-12-01 20:40:12 +00:00
Johannes Schickel
abe06f098c CONFIGURE: Improve OpenGL header + library detection.
svn-id: r54591
2010-11-29 20:07:09 +00:00
Max Horn
ce119b9540 OPENGL: Fix OpenGL on Mac OS X
svn-id: r54545
2010-11-28 18:57:36 +00:00
Max Horn
627db0d764 BUILD: Set 'UNIX=1' in config.mk on unix systems
svn-id: r54537
2010-11-28 17:42:25 +00:00
Max Horn
7870bed92f BUILD: Add OpenGL support to configure (from branch)
svn-id: r54536
2010-11-28 17:42:05 +00:00
Max Horn
aa33b22d63 BUILD: Compilation fixes for Win32 and Amiga
svn-id: r54535
2010-11-28 17:41:33 +00:00
Matthew Hoops
4a5b01e3bb CONFIGURE: Define SDL_BACKEND for GP2X/GPH/WINCE backends
This should fix compilation on those systems.

svn-id: r54149
2010-11-09 05:21:07 +00:00
Fabio Battaglia
f452fe82ad CONFIGURE: disable libmad for N64 Port
libmad uses more cpu than tremor, and audio stutters more,
also this will save some memory

svn-id: r54114
2010-11-07 12:09:53 +00:00
Yotam Barnoy
f5bfae598c PSP: cleaning up some stuff from plugin merge
svn-id: r54060
2010-11-04 06:28:34 +00:00
Yotam Barnoy
13b904d282 Merge from gsoc2010-plugins
This merge was extremely difficult to carry out. It wasn't entirely SVN's fault -- there were several merges to the branch that were done by hand. Please check for any issues and regressions. Also note that the DS makefile was not copied over since the "one at a time" plugin mode currently has too much fragmentation ie. it doesn't work.

svn-id: r54051
2010-11-03 22:01:01 +00:00
Yotam Barnoy
27182f266f PSP: removed CXA_AT_EXIT. It didn't work well because __dso_object already exists in the main executable, causing it not to be built in the plugins.
svn-id: r53996
2010-11-01 06:31:09 +00:00
Yotam Barnoy
94c8d0a14d Updated with latest from trunk
svn-id: r53976
2010-10-31 11:08:43 +00:00
John Willis
f835d49e2a CONFIGURE: Add -DGPH_DEVICE to all the GPH device targets.
Also add wrapper around the plugin dir. for the OpenPandora from 1.2.0 branch.

svn-id: r53640
2010-10-20 13:03:19 +00:00
Yotam Barnoy
9d12ee2125 PSP: building BS2.5 again. Reverting 53615.
svn-id: r53636
2010-10-20 09:50:39 +00:00
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