Commit graph

105 commits

Author SHA1 Message Date
Richard Goedeken
c63ffc37f8 fix makefile conflict 2014-11-04 21:37:33 -08:00
Frajo Haider
ee42abc424 add (optional) GLES 2.0 support in glide64mk2, code taken from mupen64plus-ae 2014-10-30 16:48:30 +01:00
Franz-Josef Haider
c59c1a3168 add an option to build glide64mk2 without SSE support (for platforms which don't have SSE) 2014-10-28 17:02:50 +01:00
Anthony J. Bentley
479551441d Detect OpenBSD's PowerPC platforms, macppc and socppc. 2014-05-09 22:00:48 -06:00
Richard Goedeken
e1bebb35f7 SDL 1.2 is not deprecated for us, and we shouldnt frighten the user with 6 lines of exclamation points 2014-05-04 11:37:40 -07:00
Ursula Abendroth
1c06f02291 Switch by default to SDL2 for Mupen64Plus 2.1
The current version of SDL is 2.0.3. All new releases of distributions contain
this library already. Current Linux distributions and OpenBSD even backporting
patches from Mupen64Plus 2.1 repo to use SDL 2. Android and other mobile
platform don't have support for legacy SDL 1.2.

People like Anthony J. Bentley and Riley Labrecque already requested
a new release of Mupen64Plus 2.1 with SDL2
2014-04-23 19:33:14 +02:00
Sven Eckelmann
9d821ce213 Reduce optimization to avoid problems with old C++ compilers 2013-12-20 12:10:18 +01:00
Sven Eckelmann
6bf363d38b Force line ending type for specific files
Different operation systems (Unix vs. Windows) use different line ending types.
It can easily happen that users from different systems edit files and replace
all line endings of a file with the system specific version. This screws up
diffs and makes merges harder.

Git can normalize line endings for specific files and avoid this problem.
Binary files should be marked to avoid accidentally normalization.
2013-12-19 14:19:08 +01:00
Sven Eckelmann
7a8f1e8029 Don't fail rebuild when header is removed
The *.d depends files for make just list the files used when building an
object file. Removing a file listed in such a dependency file causes make to
search for a way to recreate it. This usually cannot work because these files
aren't autogenerated.

The gcc option -MP can be used to generate empty rule for these files. Removing
a file in a dependency list will then execute this empty rule and continue with
the execution of the creation of the object file. This compilation process will
then automatically correct the dependency file.
2013-09-20 10:31:54 +02:00
Sven Eckelmann
b29bc90c92 Enable the dump_cache to allow loading of dat files 2013-08-23 22:56:23 +02:00
Sven Eckelmann
9701fde95b Replace patented S3TC algorithm with S2TC 57881ec6 2013-07-16 23:48:27 +02:00
Sven Eckelmann
ef4f026b50 Allow to replace patented S3TC algorithm with compatible txc_dxtn
The S3TC is patented in some countries which makes it hard for distribution.
Mesa is using an external library which is using a compatible algorithm called
S2TC. But also S3TC implementations of this library are available.

Distributions can use this option to be on the safe side regarding the provided
functionality.
2013-07-10 23:18:54 +02:00
Sven Eckelmann
e7c156e47c Enable RGB and YUV input for hires quantization filter 2013-07-08 22:52:10 +02:00
richard42
cc19d820a5 simplify OSX platform detection in makefile using xcode-select. based on patch from John Pender 2013-07-08 07:43:09 -07:00
Richard42
21a0acb5e2 OSX build fixes 2013-06-12 09:23:47 -07:00
Richard Goedeken
df69329d51 fixed warnings due to changes for win32 build. update makefile to reflect main.cpp file renamed to glitchmain.cpp 2013-06-01 09:27:33 -07:00
richard42
3fdf973e14 renamed msvc10 project folder to msvc11 2013-06-01 08:18:52 -07:00
richard42
56f2b7ef85 1. Update msvc11 project file to visual studio 2012 (msvc11)
2. fixed warnings and errors in vs2012
2013-06-01 08:07:39 -07:00
Richard Goedeken
0ea8713434 changed -std=gnu++11 compiler flag to the older gnu++0x so that this will compile on gcc 4.6 2013-05-13 10:05:55 -07:00
Sven Eckelmann
ba2a5dbe9a Don't use pkg-config on OSX to detect zlib 2013-05-12 12:03:33 +02:00
Sven Eckelmann
409e289580 Allow to disable filter threading for systems without std::thread support 2013-05-12 10:50:26 +02:00
Sven Eckelmann
ca4ceb3c76 Disable (not working) texture dumping to reduce the conversion effort 2013-05-11 16:14:30 +02:00
Sven Eckelmann
fda53261bb Replace Boost::Thread dependency with standard C++ functionality 2013-05-11 15:34:49 +02:00
Sven Eckelmann
1e807cc2e5 Replace Boost::Format dependency with standard C++ functionality 2013-05-11 15:28:10 +02:00
Sven Eckelmann
36f85b5153 Allow to statically set *_(CFLAGS|LIBS) without pkg-config
n.pepinpe requested in #540 to allow overwriting the automatically searched
CFLAGS and LIBS for used libraries. This should allow distributors to set the
build configuration without patching the makefile. This is important for
systems were pkg-config or sdl-config aren't normally used.
2013-05-11 15:00:06 +02:00
Sven Eckelmann
baae1a0fe1 Allow to statically set SDL_(CFLAGS|LIBS) without sdl-config
n.pepinpe requested in #540 to allow overwriting the automatically searched
CFLAGS and LIBS for used libraries. This should allow distributors to set the
build configuration without patching the makefile. This is important for
systems were pkg-config or sdl-config aren't normally used.
2013-05-11 12:26:25 +02:00
Sven Eckelmann
89eff2535f Enable Link-time optimization by default
The GCC introduced Link-time optimization in GCC 4.5 (2010-04-14). This should
be long enough available that interested users have upgraded to a compiler
supporting it.

The MSVC project already enabled WholeProgramOptimization since a long time.
Enabling it by default in GCC seems to be equally valid.
2013-05-11 11:26:00 +02:00
Sven Eckelmann
620263ca12 Add CXXFLAGS to the linker step
The GCC manual states for different parameters that the options for compilation
must also be used when linking. The options for compilation are stored in
CXXFLAGS and added to LINK.o to fix the behavior.

Option which need this are for example -fPIC/-fPIE or -flto.
2013-05-11 10:43:29 +02:00
Sven Eckelmann
636e6d425b Allow to build without GlideHQ support
Some systems don't have the required boost support and would not be able to
compile glide64 without adding a lot of new dependencies to their build
environment.
2013-03-28 10:59:10 +01:00
Sven Eckelmann
76be373875 Prefer -mt-less boost libraries by default
The newest boost version (1.5x) completely stripped the -mt suffix from the
libraries. This seems to be the default now and was already supported in
earlier versions (1.4x). Users requiring the suffix can still add them using
BOOST_SUFFIX and BOOST_THREAD_SUFFIX.
2013-03-26 11:05:14 +01:00
Sven Eckelmann
88759c440e Revert "Enable link time garbage collection when link time optimization is enabled"
Some linker on different platforms don't handle the garbage collection
correctly and create extreme bloated binaries. Therefore, leave it to the user
to enable this feature or not.
2013-03-14 08:06:37 +01:00
Sven Eckelmann
5b6e3a06ae Rename all visible Glide64 strings to Glide64mk2
The glide64 plugin for mupen64plus is available at the same time as the
glide64mk2 video plugin. Both support different features and use different
configuration options. A clear distinction is necessary to avoid confusion by
the users.
2013-02-09 01:22:34 +01:00
Sven Eckelmann
90cea5f84c Remove switchable asm implementations used during the port to C 2013-02-09 01:22:34 +01:00
Sven Eckelmann
1c1d3c89b7 Reenable link time optimization for the m64p related c files 2013-01-30 12:37:51 +01:00
Sven Eckelmann
47b3c9fc24 Enable link time garbage collection when link time optimization is enabled 2013-01-29 18:42:44 +01:00
Riley Labrecque
c548a237da Added support for MSVC10 2013-01-25 10:37:44 +01:00
Sven Eckelmann
165a934f5f Fix boost::filesystem usage for MinGW 2013-01-23 21:10:43 +01:00
Sven Eckelmann
ebb3a477a1 Don't search for zlib on OSX using pkg-config 2013-01-21 19:55:37 +01:00
Sven Eckelmann
5688f54526 Readd SoftLocker which was dropped during the initial port
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
 projects/unix/Makefile |    8 ++++++++
 src/Glide64/Gfx #1.3.h |    2 ++
 src/Glide64/Main.cpp   |    2 ++
 src/Glide64/rdp.cpp    |   25 +++++++++++--------------
 4 files changed, 23 insertions(+), 14 deletions(-)
2013-01-20 23:13:10 +01:00
Sven Eckelmann
debcb5b25d Allow to compile GlideHQ as part of mupen64plus-video-glide64mk2 2013-01-20 21:01:54 +01:00
Sven Eckelmann
3b8d826964 Fix build under MinGW 2013-01-20 13:00:00 +01:00
Sven Eckelmann
c62cb314b6 Move TexLoad32b functions back to TexLoad32b.h 2013-01-19 23:00:35 +01:00
Sven Eckelmann
9622177fc7 Add C conversion of TexConv assembler functions 2013-01-19 23:00:35 +01:00
Sven Eckelmann
d16e24d633 Add C conversion of MiClWr32b assembler functions 2013-01-19 23:00:35 +01:00
Sven Eckelmann
577ab74dd8 Add C conversion of MiClWr16b assembler functions 2013-01-19 23:00:35 +01:00
Sven Eckelmann
f2fdf65fa8 Add C conversion of MiClWr8b assembler functions 2013-01-19 23:00:35 +01:00
Sven Eckelmann
f723a0f229 Add C conversion of TexLoad8b assembler functions 2013-01-19 23:00:35 +01:00
Sven Eckelmann
e3ef7bf50f Add C conversion of TexLoad16b assembler functions
load16bRGBA needs more attention because the conversion caused graphical issues
in Mario64 and Zelda
2013-01-19 23:00:35 +01:00
Sven Eckelmann
5f63f8ee41 Add C conversion of TexLoad4b assembler functions 2013-01-19 23:00:35 +01:00
Sven Eckelmann
1a83cd3b50 Fix major texture problems in Zelda
The current ASM conversion hack was improved to fix the major texture problems
in Zelda. It is still not finished and additional work has to be done to make
the code accurate.

The remaining work blocks were left in place.
2013-01-19 23:00:35 +01:00