Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dosbox-staging/dosbox-staging.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatryk Obara <dreamer.tan@gmail.com>2021-02-21 01:08:19 +0300
committerPatryk Obara <patryk.obara@gmail.com>2021-02-21 17:39:56 +0300
commita1b637abc679ab89e8aefbcadf0e5de65ae52b02 (patch)
tree7c0cb4e85160baa917794f915ac77eb244ba751a /meson_options.txt
parentb472d97e1beae0ec1c6f7e0cd300d13f476b5d06 (diff)
Link SDL2_net statically in macOS release CI job
Convert option try_sdl2_static into a new one, where user can select several libraries that will be marked for static linking. Provide short explanation in meson_options.txt file.
Diffstat (limited to 'meson_options.txt')
-rw-r--r--meson_options.txt18
1 files changed, 13 insertions, 5 deletions
diff --git a/meson_options.txt b/meson_options.txt
index 4b6bd0cb1..03e9f2aaf 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -51,9 +51,17 @@ option('dynamic_core',
value : 'auto',
description : 'Select the dynamic core implementation.')
-# This is NOT guaranteed to work. Use it only as a last resort.
+# Use this option for selectively switching dependencies to look for static
+# libraries first. This behaves differently than passing
+# -Ddefault_library=static (which will turn on static linking for dependencies
+# built from wraps, but still attempt dynamic linking for system-installed
+# libraries).
#
-option('try_sdl2_static',
- type : 'boolean',
- value : false,
- description : 'Hint Meson to try linking SDL2 statically.')
+# This is NOT guaranteed to work - the end results will vary depending on your
+# OS, installed libraries, and dependencies of those libraries.
+#
+option('try_static_libs',
+ type : 'array',
+ choices : ['sdl2', 'sdl2_net'],
+ value : [],
+ description : 'Attempt to statically link selected libraries.')