Commit graph

226 commits

Author SHA1 Message Date
lioncash
41b5db98d6 Replace tabs with spaces 2013-01-12 10:59:31 +01:00
Sven Eckelmann
78f004d2e0 Introduce WARNFLAGS for default (removable) compiler warning flags 2013-01-02 16:13:46 +01:00
Sven Eckelmann
08d0b7469d Use long long for pointers instead of long to avoid truncation on 64-bit Windows 2013-01-01 01:10:43 +01:00
Sven Eckelmann
436a1c4098 Disable PIC on MinGW to reduce warnings 2013-01-01 00:30:34 +01:00
n pepinpe
e1cd4fd937 Fix path to OSX SDK with XCode >=4.3 2012-12-31 10:43:00 +01:00
veganaize
1f66504005 Don't try to find OpenGL libraries on MacOSX and MinGW using pkg-config
MacOSX and MinGW don't provide gl.pc or glu.pc to find the cflags or libs using
pkg-config. Removing this search and replacing it with an hardcoded value is
easier on these platforms.
2012-12-19 21:57:46 +01:00
Sven Eckelmann
a8b5adec72 Use $(OBJDIR) in clean target instead of hardcoded path 2012-12-13 14:53:05 +01:00
Sven Eckelmann
c06750ed20 Allow to add a postfix for each build
The POSTFIX make option is useful for distributions to compile different
versions of the plugin in parallel. The object files will be stored in a
directory with the postfix appended and the linker result will also have this
postfix appended.
2012-12-13 14:47:25 +01:00
Sven Eckelmann
8cb19be53e Don't add lipng libs twice on MinGW 2012-12-13 12:30:44 +01:00
Sven Eckelmann
9973c9aa91 Add CROSS_COMPILE make option
The CROSS_COMPILE make option can be used to automatically prepend the prefix
to all build relevant tools to seamlessly allow cross compilation without
setting each tool name separately.

Cross compiling for MinGW32 would can be done using
$ make -C projects/unix/ CROSS_COMPILE=i686-pc-mingw32- HOST_CPU=i686 UNAME=MINGW
2012-12-13 12:25:44 +01:00
Sven Eckelmann
419d442013 Allow to change names of *-config tools for cross compiles 2012-12-13 11:33:50 +01:00
Sven Eckelmann
069856f10e Synchronize usage of environmental variables for UNAME with HOST_CPU 2012-12-13 10:52:49 +01:00
Sven Eckelmann
56e17c0400 Remove duplicated definition of CC for MinGW 2012-12-13 10:46:17 +01:00
veganaize
acafa1180f Add support for MingW32 2012-12-04 21:17:52 +01:00
Sven Eckelmann
402ba8350f Fix build on x86 with SSE inline assembler 2012-12-03 10:39:26 +01:00
Anthony J. Bentley
98dc5cf7b8 Detect OpenBSD PowerPC platforms macppc and socppc. 2012-11-12 18:04:28 -07:00
Sven Eckelmann
604872c5ba Add configuration for semi-supported architecture armel 2012-11-04 01:28:01 +01:00
Sven Eckelmann
25e2b1003c Enable experimental support for link-time optimization 2012-06-09 01:31:27 +02:00
Richard Goedeken
378dfa38ce force PIC under OSX. otherwise it crashes with weird errors 2012-03-11 14:19:35 -07:00
Richard Goedeken
dca9eed7e6 fix OSX 32-bit NO_PIC build 2012-03-11 12:27:05 -07:00
Richard Goedeken
d92872c4df Added tag 1.99.5 for changeset 93f23d50dc9c 2012-03-10 10:30:59 -08:00
Richard Goedeken
df039405f3 updating RELEASE and version info for v1.99.5 tag 2012-03-10 09:57:13 -08:00
richard42
420266bedf 1. Don't throw warnings if the NVidia opengl extension functions are missing
2. If OpenGLRenderSetting is set to the nvidia combiner, but the extension functions are missing, then set to auto rather than crash
2012-03-06 21:37:10 -08:00
Richard Goedeken
744c3601f9 update Rice Video API version to 2.1.0. The difference in the newer API is that the video render callback function now takes a boolean (int) parameter, which specifies whether the video frame has been re-drawn since the last time the render callback was called. This allows us to take screenshots without the On-Screen-Display text 2012-03-04 15:13:13 -08:00
casualjames
db28ed4aa2 Add libs. 2012-01-15 14:53:20 +01:00
Sven Eckelmann
2b009af558 Remove additional -O3 on MacOSX 2011-10-14 19:58:42 +02:00
Sven Eckelmann
4fd1072c13 Explicitly disable PIC in case of PIC=0 2011-10-13 00:01:04 +02:00
Richard Goedeken
05747e6cb8 merged changes from ecsv's fork 2011-09-08 21:23:53 -07:00
Richard Goedeken
6af85f2e76 dont call CoreVideo_Init() inside of the InitializeGFX() function. Instead, only call this within RomOpen. This will fix some front-end use cases 2011-09-07 21:29:16 -07:00
Sven Eckelmann
e2264fa1c1 Ignore generated files in hg-status 2011-08-29 14:30:48 +02:00
Sven Eckelmann
10a5335845 Scale highres textures by precalculated scaleShift exponent
The highres textures should be created in a buffer with the size calculated
from the desired native size and the size of the highres texture. The size used
here should be 2**scaleShift as calculated by FindScaleFactor. This information
is later used to correctly clamp and mirror textures. Therefore,
(2**scaleShift)*(Width|Height)ToCreate is the size of the final texture and
(2**scaleShift)*(Width|Height)ToLoad is the size of the texture information
which are loaded from the external image. The mirror factor is already part of
the (Width|Height)ToCreate value and it must not be multiplied by it again to
get the texture buffer size.
2011-08-14 16:46:45 +02:00
Sven Eckelmann
44523a6580 Enable ppc(64) as experimental target
nogagplz tested mupen64plus on 32-bit ppc and didn't detect any big show
stoppers with interpreter cores and the mupen64plus example rom. This makes the
PowerPC an interesting target for further tests and may reveal other endianness
problems.
2011-08-05 10:46:18 +02:00
Sven Eckelmann
118864a14a Enable PIC depending on architecture instead of bits only
nogagplz noticed on ppc32 that PIC is necessary to compile everything as shared
object. Therefore, it seems to be a better idea to have architecture specific
PIC default settings instead of checking only whether it is a 32 or 64 bit
architecture.
2011-08-05 10:32:08 +02:00
Sven Eckelmann
fe7b30cf5c Enable big endian mode on ppc and ppc64 2011-08-05 10:19:22 +02:00
Sven Eckelmann
cdbf3ba71d Strip binaries during install 2011-07-23 21:22:53 +02:00
Sven Eckelmann
d66b87a477 Synchronize MipMapping options in Arachnoid and Rice 2011-07-18 09:33:11 +02:00
richard42
c8e779c7ce win32 fixes 2011-07-11 23:04:30 -07:00
Sven Eckelmann
7d8e699ab5 Fix z coordinate in 3d line rendering 2011-07-10 23:45:41 +02:00
Sven Eckelmann
9307c3c1c2 Remove write-only member variables m_bClampS and m_bClampT
Write access to m_bClampS and m_bClampT resulted in memory corruption due to
write access outside of the array bounds. It is never read and thus it can
savely be removed.
2011-07-10 23:33:53 +02:00
Sven Eckelmann
a7ab22c4c3 Fix double infinit loop in GetValidTmemInfoIndex 2011-07-10 23:15:43 +02:00
Sven Eckelmann
58c75b178e Replace movsxl with more portable mnemonic movslq 2011-07-10 23:02:20 +02:00
Sven Eckelmann
b78a44d891 Add header for undefined min/max/memcpy 2011-07-10 22:19:59 +02:00
Sven Eckelmann
b42ff04b15 Allow to force PIC to remove text relocations 2011-07-10 13:37:55 +02:00
Sven Eckelmann
81fae8df01 Fix linker search for libstdc++.so 2011-07-08 08:24:38 +00:00
Sven Eckelmann
13b7ac0506 Inform user about the possibility to make the build verbose 2011-07-03 18:04:48 +02:00
Sven Eckelmann
6a798b46b8 Set changeable default compiler optimization option 2011-07-03 18:03:15 +02:00
Sven Eckelmann
95636b27be Synchronize build rules with standard gnu make rules 2011-06-27 13:00:05 +02:00
Sven Eckelmann
e6701133b2 Test for essential build dependencies before getting their cflags/libs 2011-06-27 11:36:11 +02:00
Sven Eckelmann
3277b4a7bd Add OpenBSD as half-supported OS with FreeBSD userspace tools 2011-06-26 18:37:19 +02:00
Sven Eckelmann
a82015b515 Remove -v parameter of install which is not available everywhere 2011-06-26 18:29:26 +02:00