diff options
author | 2023-11-15 10:34:47 +0100 | |
---|---|---|
committer | 2023-11-16 16:52:54 +0100 | |
commit | 54c5c9ebbf701f9dcd9f78da9f13ae967f922243 (patch) | |
tree | a7a3c43a8302ed18eccc909fcbd3de7093723be5 /config | |
parent | update deprecated test methods for python-3.12 compatibility (diff) | |
download | java-config-54c5c9ebbf701f9dcd9f78da9f13ae967f922243.tar.gz java-config-54c5c9ebbf701f9dcd9f78da9f13ae967f922243.tar.bz2 java-config-54c5c9ebbf701f9dcd9f78da9f13ae967f922243.zip |
Use Meson as build system
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'config')
-rw-r--r-- | config/jdk-defaults.conf | 1 | ||||
-rw-r--r-- | config/meson.build | 26 |
2 files changed, 27 insertions, 0 deletions
diff --git a/config/jdk-defaults.conf b/config/jdk-defaults.conf new file mode 100644 index 0000000..d15644d --- /dev/null +++ b/config/jdk-defaults.conf @@ -0,0 +1 @@ +@JDK_DEFAULTS@ 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 +) |