From 54c5c9ebbf701f9dcd9f78da9f13ae967f922243 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 15 Nov 2023 10:34:47 +0100 Subject: Use Meson as build system Signed-off-by: Florian Schmaus --- config/meson.build | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 config/meson.build (limited to 'config/meson.build') diff --git a/config/meson.build b/config/meson.build new file mode 100644 index 0000000..ee8f5d5 --- /dev/null +++ b/config/meson.build @@ -0,0 +1,26 @@ +arch = get_option('arch') + +jdk_defaults = '*= icedtea' +if arch in ['amd64', 'x86'] + jdk_defaults = '*= icedtea6 icedtea6-bin icedtea7 icedtea7-bin' +elif arch in ['ppc-macos', 'x64-macos', 'x86-macos'] + jdk_defaults = '*= apple-jdk-bin' +elif arch in ['ppc', 'ppc64', 'ppc-linux', 'ppc-aix'] + jdk_defaults = '*= ibm-jdk-bin' +elif arch in ['arm'] + jdk_defaults = '*= icedtea-7 icedtea-6 icedtea-bin-7 icedtea-bin-6' +endif + +java_config_confdir = sysconfdir / 'java-config-2' + +configure_file( + input: 'jdk-defaults.conf', + output: 'jdk-defaults.conf', + configuration: { 'JDK_DEFAULTS': jdk_defaults }, + install_dir: java_config_confdir, +) + +install_data( + ['virtuals'], + install_dir: java_config_confdir +) -- cgit v1.2.3-65-gdbad