1
0
Fork 0
Commit graph

4342 commits

Author SHA1 Message Date
krcroft
d2333979cf Tailor SDL_Sound for interal use by DOSBox
- Removes extraneous (and unused) includes

 - Cleans up many compiler warnings

 - Fixes SDL include statements (using proper `#include <file.h>` directives
   given the prior `#include "file.h"` directives should only be used when
   including a projects' own header files instead of -Ipath-provided system
   headers)

 - Eliminates extraneous codecs

Many of these were made after building SDL_Sound under various compilers
and operating systems and hitting various issues. It currently builds
clean without errors or warnings on all our workflow compilers and
versions.
2019-10-28 22:43:23 +01:00
krcroft
86aabad5da
Expand CI coverage and move actions into scripts
This change makes a couple changes to the CI workflow:
 - Adds more compiler coverage:
     - gcc to MacOS (see note below)
     - 32 and 64bit gcc and clang to Windows

 - With more builds, this separates them into per-OS workflow YAMLs
   (laying the foundation for more build environments: BSD? DOS? ... )

 - Moves all functional commands from GitHub-syntax-YAML into scripts,
   which (besides eliminating repeated code), now serve a dual-purpose
   of being runnable outside of GitHub.
     - One script takes care of listing dependent packages for the given
       runtime environment
     - Another script takes care of configuring and building

These scripts can be leveraged by a nightly build & asset generator in
the future.

Note: adding GCC to MacOS is now "correct" from a build perspective,
however to keep this PR focussed on the CI workflow I have not included
the coreMIDI / AppleBlocks code-fixes here (so for now, the gcc macOS
builds will fail; we will merge the coreMIDI / AppleBlocks later
depending on how upstream wants to handle it).
2019-10-28 00:32:16 -07:00
Patryk Obara
b87966cd11 Merge branch 'svn/trunk' r4276 2019-10-28 05:37:16 +01:00
ripsaw8080
b79f76ad4d Remove defunct code related to the initial display mode of the system BIOS during video mode changes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4276
2019-10-27 19:08:57 +00:00
Ryan C. Gordon
0420181d59 Add built-in SDL_sound r599
This commit contains several files imported from SDL_sound Mercurial
repo: https://hg.icculus.org/icculus/SDL_sound/ r599 (also tagged as
"final-lgpl-revision").
2019-10-26 06:55:13 +02:00
Patryk Obara
52a958270f Log environment on CI machines
log-env.sh is cross-platform (works on Linux, MacOS and Windows)

log-env.ps1 is Windows-only and requirs specifying pwsh shell, but
provides some Windows-specific information, that might be useful e.g.
for MSVC builds.
2019-10-26 00:52:03 +02:00
Patryk Obara
e4d18f16ce Merge branch 'svn/trunk' r4275 2019-10-25 00:55:53 +02:00
Arthur Ouellet
db67ff2e3b Add built-in C++ object serializer [snapshot as of 2019-10-23] 2019-10-25 00:47:43 +02:00
Yann Collet
28cf402cae Add built-in Extremely Fast Hash algorithm: xxHash [snapshot as of 2019-10-23] 2019-10-25 00:47:43 +02:00
Sean Barrett
fd5aeab8b5 Add built-in Vorbis codec: stb_vorbis v1.17 2019-10-25 00:47:43 +02:00
David Reid
d66317a08e Add built-in WAV codec: dr_wav v0.11.1 2019-10-25 00:47:43 +02:00
David Reid
a5f1e3473f Add built-in MP3 codec: dr_mp3 v0.5.1 2019-10-25 00:47:43 +02:00
David Reid
a5d87fa8ce Add built-in FLAC codec: dr_flac v0.12.2 2019-10-25 00:47:43 +02:00
krcroft
2909ca1550
Simplify distclean target with recursive find 2019-10-24 15:26:17 -07:00
krcroft
0b22111874
Remove one duplicate and arange directories after files 2019-10-24 13:19:13 -07:00
krcroft
2799500352
Augment the generate distclean target (fixes #14) 2019-10-24 13:12:51 -07:00
Peter Veenstra
2bf589f54f Make it easier to compile 64 builds with visual studio, (see comment for drawback).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4275
2019-10-20 20:26:10 +00:00
Patryk Obara
9099f0620e Merge branch 'svn/trunk' 2019-10-20 07:15:43 +02:00
Peter Veenstra
5b690f936a fix externals.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4274
2019-10-19 20:08:46 +00:00
Peter Veenstra
276b187181 Make frameskip an integer.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4273
2019-10-19 19:52:24 +00:00
Patryk Obara
acbef2169d Merge branch 'svn/trunk' 2019-10-17 18:36:45 +02:00
Peter Veenstra
6ac1bcf9e7 Fix boundary checks for word/dword memory access. Speeds up dynamic 32 bit core a bit (thanks jmarsh).
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4272
2019-10-16 14:20:00 +00:00
Patryk Obara
e4044f7d8d Merge branch 'svn/trunk' 2019-10-10 18:43:08 +02:00
Peter Veenstra
26a9f75b50 A little cleanup and small speed up (jmarsh)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4271
2019-10-10 15:54:19 +00:00
Patryk Obara
79fe83ede6 Merge branch 'svn/trunk' 2019-10-10 00:16:04 +02:00
Peter Veenstra
195484d5e9 Change OpenGL drawing routine to draw one big oversized TRIANGLE instead of a QUAD in order to work around an Nvidia specific scaling bug. Fixes bug #515.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4270
2019-10-09 20:53:35 +00:00
Peter Veenstra
e1d8eb67a4 Use fabsf when return value is a float. Small warning fix.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4269
2019-10-09 20:49:21 +00:00
Peter Veenstra
19478d45f5 Fix several logic errors with regards to deleted directories.
Should fix that directories with the same length as a deleted directory had some small issues.
Also blocks the creation of files in directories marked as deleted.
Small speed up to MakeDir, so it doesn't rely on mkdir when a directory is created inside a deleted directory.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4268
2019-10-09 20:46:40 +00:00
Patryk Obara
1857980f90 Replace an authorsfile with a script
DOSBox maintainer expressed a concern about mail being stored verbatim
in the source code. SourceForge does not forward messages to the
real mailing addresses by default, therefore it's rather pointless to
target them for spamming nowadays, but git-svn can easily take input
from as script, so let's just replace the static file.
2019-10-08 10:56:16 +02:00
Patryk Obara
d4b74d9686 Add alternative for git-log for SVN users
This format makes it easier to correlate SVN revisions with Git commits
for users who depend on such behaviour.

Usual caveats around working with SVN revision numbers apply: they do
not identify patch/commit, they identify a change in the state of whole
SVN repository (i.e. single revision might span multiple paths,
including multiple "branches" or "tags" or "projects").

Do not depend on SVN revisions to uniquely identify a commit created by
an SVN user (especially for scripting) - you need a tuple <SVN path,
SVN revision> for that. It's easier to identify a commit by git hash
(this script displays shortened hash in a first column).
2019-10-08 10:56:16 +02:00
Patryk Obara
f7a5080c22 Update allowed warnings limit 2019-10-04 00:04:13 +02:00
Patryk Obara
a323e173c2 Merge branch 'svn/trunk' 2019-10-03 23:44:48 +02:00
Peter Veenstra
60204619d0 - Fix url to forum.
- Fix Bit8u instead of char weirdness for imageDisk (dreamer_)
- Give device_t a virtual empty destructor so some warning program
  doesn't go crazy.
- Give the code that moves the Z drive its own function for readability.
- Give sizes arrays default values again for warning program.
- Rewrite IMGMOUNT in order to exit early for clarity and attempt
  to group things together.



Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4267
2019-10-03 20:03:43 +00:00
ripsaw8080
7f979234f8 Bit 2 of video status register always set. Satisfies a strange test in Blues Brothers, thus preventing slow animations.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4266
2019-10-03 16:35:44 +00:00
Patryk Obara
0a9f80f1b5 Transform zmbv into a project inside dosbox solution
This way it's possible to build them together in VS and it's easier to
develop both.
2019-10-02 12:03:03 +02:00
Patryk Obara
a57d081f24 Upgrade zmbv solution and project to VS2019
Previous solution format does not work any more in modern Visual Studio.
Includes some project adjustments needed to cleanly build the project in
MSVC without any warnings.
2019-10-02 12:03:03 +02:00
Patryk Obara
145b83ea74 Upgrade dosbox solution and project to VS2019
Clean up project settings to prevent most MSVC linker warnings.
This commit also adds MSVC builds to CI.
2019-10-02 12:03:03 +02:00
Patryk Obara
d08d988be6 Simplify build workflow
Rename it from "Compilation" to "Build", as it's shorter and takes less
space in GitHub UI.

Remove GCC8 build configuration, as it does not add value: GCC9
build provides compilation on new compiler, while other Ubuntu builds
cover compilation on default compilers.
2019-10-02 12:03:03 +02:00
Patryk Obara
a4a6bed5c1 Merge branch 'svn/trunk' 2019-10-01 18:11:50 +02:00
Peter Veenstra
6243fa9711 Some more cleanups and memleak fixes.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4265
2019-10-01 13:05:08 +00:00
Peter Veenstra
a919e33aec Pick some lowhanging fruit. (some memory leaks and unused variables)
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4264
2019-10-01 12:11:09 +00:00
Peter Veenstra
ca20ca3a3e use delete instead of free, although this code is never really used, as the running process should have been replaced at that point.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4263
2019-10-01 11:11:57 +00:00
Patryk Obara
34e72e8e3c Merge branch 'svn/trunk' 2019-10-01 10:01:44 +02:00
Peter Veenstra
5803ea448c missed one
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4262
2019-10-01 06:14:42 +00:00
Patryk Obara
f749fe54fa Increase allowed warnings limit
Upstream svn/trunk just introduced a bunch of new warnings.

Piggy-back change to interpret "From:" lines in SVN to be imported as
proper authorship information.
2019-09-30 22:42:47 +02:00
Patryk Obara
08925b24a4 Merge branch 'svn/trunk' 2019-09-30 22:21:21 +02:00
Peter Veenstra
4046dd8229 These actually use float as input.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4261
2019-09-30 18:43:28 +00:00
Peter Veenstra
fe177b4136 Add 64-bit support to dynamic_x86 core from vogons topic 67673. Thanks jmarsh!
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4260
2019-09-30 18:30:11 +00:00
Patryk Obara
f31f2c6909 Update package repositories before build
Without updating of package repos, build can fail due to circumstances
unrelated to the code.  This fixes e.g. experimental SDL2 builds.
2019-09-28 07:46:41 +02:00
krcroft
57aaed6399
Merge pull request #5 from dreamer/po/ci-improvements-1
Enforce limit on issues found in static analysis
2019-09-26 13:30:30 -07:00