10 Commits

Author SHA1 Message Date
RainRat
902ce67fad fix typos 2024-02-28 19:08:20 -08:00
Robert de Rooy
bbfa0e7c34 Fix macos build script 2023-04-17 19:36:40 +02:00
Robert de Rooy
694cc766a4 Cleanup Bash scripts.
This makes them pass shellcheck. Except for a few unused
export warnings.

I also wonder if the majority of these files should be
in the root of the project, or should be moved to "build-scripts"
(or should still even exist).

a few minor changes

one more minor changes
2023-04-15 15:53:08 +02:00
Dani Llewellyn
da6ce37153
Attempt fix for macOS CI fail following PR#4054
PR #4054 broke the macOS CI for pull requests and the nightly builds.
As a follow-up requested in the PR this is an attempt to fix it.

* Add a parameter to `configure.am` to define a build-time variable for
  use in `Makefile.am` to specify the executables we will be depending
  upon for the `dosbox-x.app` rule.
* Fix an issue in the first library scan section of the `dosbox-x.app`
  rule in the `Makefile` causing a failure to build on an Apple Silicon
  mac when there is no `x86_64` binary present.
* Fix failure to build SDL1 variant after a previous SDL2 build attempt
  by deleting `vs/sdl2/linux-host` before attempting the SDL1 build.
* Use `make clean` instead of `make distclean` in the build scripts'
  `do_cleanup` function to not clean absolutely everything.
* Make sure we remove the achitecture-specific copies we create of the
  `dosbox-x` executable before building, as these are meant to be
  used for the universal binary creation with `lipo` and the presence
  of an old copy will cause the `dosbox-x.app` bundle to potentially
  contain mismatched copies for each architecture, or contain an
  architecture that is not intended to be included.
* Add a `distclean-local` rule to `src/Makefile.am` to remove the
  architecture-specific temporary copies of the `dosbox-x` executable
  when running `distclean` as these shouldn't remain in the tree.

Signed-off-by: Dani Llewellyn <dani@bowlhat.net>
2023-03-14 00:31:56 +00:00
Dani Llewellyn
4acef38293
Update the build-macos and build-macos-sdl2 scripts to build both arm64 and x86_64
Universal App Bundles require we build the executables twice. Update the build scripts to support building both arm64 and x86_64 architectures. By default the scripts should behave like they always did, despite the major overhaul, and only build for your host's architecture. To build *both* architectures, you *must* run the build on an Apple Silicon Mac *and* run the script with the word `universal` as the first parameter - any parameters thereafter are used as-is for the `configure` script of DosBox-X like the build script did before it supported the extra parameter.

Signed-off-by: Dani Llewellyn <dani@bowlhat.net>
2023-03-06 00:07:27 +00:00
Mario Zechner
9e0d313431 Fix internal sdlnet build on macOS, enables nullmodem/modem support on macOS 2022-12-21 03:16:02 +01:00
Jookia
b3fa848f0f Replace '/bin/bash' with '/usr/bin/env bash' in shebangs
This should hopefully help portability with BSDs.
2022-12-12 17:52:27 +08:00
Jonathan Campbell
ab8f4a21dc SDL2 build issues on Mac OS X appear to be related to Brew include paths coming before our own internal SDL2 library, causing confusion 2022-10-02 16:39:45 -07:00
Jookia
b9ff9943ef build: Don't use --(dis|en)able-core-inline 2022-09-16 13:12:02 +10:00
Wengier
087bff5aaf update scripts 2022-06-30 17:46:32 -04:00