[gegl] operations: build x86-64-v2 and x86-64-v3 variants of operations
- From: Øyvind "pippin" Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl] operations: build x86-64-v2 and x86-64-v3 variants of operations
- Date: Sun, 16 Jan 2022 07:01:59 +0000 (UTC)
commit b832dd8739d880ea1888b5348862f0c0e9f21559
Author: Øyvind Kolås <pippin gimp org>
Date: Sun Jan 16 04:26:04 2022 +0100
operations: build x86-64-v2 and x86-64-v3 variants of operations
operations/common-cxx/meson.build | 44 +++++++++++++++++++++++++++++++++++++
operations/common-gpl3+/meson.build | 44 +++++++++++++++++++++++++++++++++++++
operations/common/meson.build | 28 +++++++++++++++++++++++
operations/generated/meson.build | 28 +++++++++++++++++++++++
operations/transform/meson.build | 28 +++++++++++++++++++++++
5 files changed, 172 insertions(+)
---
diff --git a/operations/common-cxx/meson.build b/operations/common-cxx/meson.build
index 4340c8a13..ebced92c2 100644
--- a/operations/common-cxx/meson.build
+++ b/operations/common-cxx/meson.build
@@ -38,3 +38,47 @@ gegl_common_cxx = shared_library('gegl-common-cxx',
)
gegl_operations += gegl_common_cxx
+
+if host_cpu_family == 'x86_64'
+
+ gegl_common_cxx_x86_64_v2 = shared_library('gegl-common-cxx-x86_64-v2',
+ gegl_common_cxx_sources, opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [
+ babl,
+ glib,
+ json_glib,
+ math,
+ ],
+ link_with: [
+ gegl_lib,
+ ],
+ c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v2_flags,
+ cpp_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v2_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+ gegl_operations += gegl_common_cxx_x86_64_v2
+
+ gegl_common_cxx_x86_64_v3 = shared_library('gegl-common-cxx-x86_64-v3',
+ gegl_common_cxx_sources, opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [
+ babl,
+ glib,
+ json_glib,
+ math,
+ ],
+ link_with: [
+ gegl_lib,
+ ],
+ c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v3_flags,
+ cpp_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v3_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+ gegl_operations += gegl_common_cxx_x86_64_v3
+
+endif
diff --git a/operations/common-gpl3+/meson.build b/operations/common-gpl3+/meson.build
index 7e11ac42b..3607b6e51 100644
--- a/operations/common-gpl3+/meson.build
+++ b/operations/common-gpl3+/meson.build
@@ -82,3 +82,47 @@ gegl_common_gpl3 = shared_library('gegl-common-gpl3',
)
gegl_operations += gegl_common_gpl3
+
+if host_cpu_family == 'x86_64'
+
+ gegl_common_gpl3_x86_64_v2 = shared_library('gegl-common-gpl3-x86_64-v2',
+ gegl_common_gpl3_sources,
+ opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [
+ babl,
+ glib,
+ json_glib,
+ math,
+ ],
+ link_with: [
+ gegl_lib,
+ ],
+ c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v2_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+ gegl_operations += gegl_common_gpl3_x86_64_v2
+
+ gegl_common_gpl3_x86_64_v3 = shared_library('gegl-common-gpl3-x86_64-v3',
+ gegl_common_gpl3_sources,
+ opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [
+ babl,
+ glib,
+ json_glib,
+ math,
+ ],
+ link_with: [
+ gegl_lib,
+ ],
+ c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v3_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+ gegl_operations += gegl_common_gpl3_x86_64_v3
+
+endif
diff --git a/operations/common/meson.build b/operations/common/meson.build
index 4cbe6b072..bc594a96d 100644
--- a/operations/common/meson.build
+++ b/operations/common/meson.build
@@ -153,3 +153,31 @@ gegl_common = shared_library('gegl-common',
)
gegl_operations += gegl_common
+
+if host_cpu_family == 'x86_64'
+
+ gegl_common_x86_64_v2 = shared_library('gegl-common-x86_64-v2',
+ gegl_common_sources, opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [ babl, glib, json_glib, math, ],
+ link_with: [ gegl_lib, ],
+ c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v2_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+ gegl_operations += gegl_common_x86_64_v2
+
+ gegl_common_x86_64_v3 = shared_library('gegl-common-x86_64-v3',
+ gegl_common_sources, opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [ babl, glib, json_glib, math, ],
+ link_with: [ gegl_lib, ],
+ c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v3_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+
+ gegl_operations += gegl_common_x86_64_v3
+endif
diff --git a/operations/generated/meson.build b/operations/generated/meson.build
index f53924f58..a7a400339 100644
--- a/operations/generated/meson.build
+++ b/operations/generated/meson.build
@@ -56,3 +56,31 @@ gegl_generated = shared_library('gegl-generated',
)
gegl_operations += gegl_generated
+
+if host_cpu_family == 'x86_64'
+
+ gegl_generated_x86_64_v2 = shared_library('gegl-generated-x86_64-v2',
+ gegl_generated_sources, opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [ babl, glib, json_glib, math, ],
+ link_with: [ gegl_lib, ],
+ c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v2_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+ gegl_operations += gegl_generated_x86_64_v2
+
+ gegl_generated_x86_64_v3 = shared_library('gegl-generated-x86_64-v3',
+ gegl_generated_sources, opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [ babl, glib, json_glib, math, ],
+ link_with: [ gegl_lib, ],
+ c_args: [ '-DGEGL_OP_BUNDLE' ] + x86_64_v3_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+ gegl_operations += gegl_generated_x86_64_v3
+
+endif
diff --git a/operations/transform/meson.build b/operations/transform/meson.build
index 3969c6c4d..352ce6564 100644
--- a/operations/transform/meson.build
+++ b/operations/transform/meson.build
@@ -33,3 +33,31 @@ gegl_transformops = shared_library('transformops',
)
gegl_operations += gegl_transformops
+
+if host_cpu_family == 'x86_64'
+
+ gegl_transformops_x86_64_v2 = shared_library('gegl-transformops-x86_64-v2',
+ gegl_transformops_sources, opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [ babl, glib, json_glib, math, ],
+ link_with: [ gegl_lib, ],
+ c_args: x86_64_v2_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+ gegl_operations += gegl_transformops_x86_64_v2
+
+ gegl_transformops_x86_64_v3 = shared_library('gegl-transformops-x86_64-v3',
+ gegl_transformops_sources, opencl_headers,
+ include_directories: [ rootInclude, geglInclude, ],
+ dependencies: [ babl, glib, json_glib, math, ],
+ link_with: [ gegl_lib, ],
+ c_args: x86_64_v3_flags,
+ name_prefix: '',
+ install: true,
+ install_dir: get_option('libdir') / api_name,
+ )
+ gegl_operations += gegl_transformops_x86_64_v3
+
+endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]