aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2021-01-15 00:07:52 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2021-01-15 00:07:52 +0100
commit8b0457480d13c95092a4691326a16fbf0a17bbbc (patch)
tree00d330ac684b740eedef7d21c731afcb5f8916f8
parent07d9e3fae5af09b69e588e182453048a88cf03b7 (diff)
downloadd2tk.lv2-8b0457480d13c95092a4691326a16fbf0a17bbbc.tar.xz
Squashed 'subprojects/d2tk/' changes from 9df04584f..fd3dce64d
fd3dce64d pugl: make API static. ab8e707ce Merge commit '3c5e6a74a3e7c45ea82611627516365560b76439' 3c5e6a74a Squashed 'pugl/' changes from 7fc8d9e49..9a38c7629 git-subtree-dir: subprojects/d2tk git-subtree-split: fd3dce64ded7a744945762b9285523cdd6daa7a2
-rw-r--r--VERSION2
-rw-r--r--meson.build3
-rw-r--r--pugl/include/pugl/pugl.h2
3 files changed, 4 insertions, 3 deletions
diff --git a/VERSION b/VERSION
index 64acfd0..d9c32ba 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.1179
+0.1.1185
diff --git a/meson.build b/meson.build
index 1f65199..8050fd5 100644
--- a/meson.build
+++ b/meson.build
@@ -293,7 +293,7 @@ endif
if use_backend_cairo.enabled()
if use_frontend_pugl.enabled()
d2tk_cairo = declare_dependency(
- compile_args : '-DPUGL_HAVE_CAIRO',
+ compile_args : ['-DPUGL_HAVE_CAIRO', '-DPUGL_STATIC'],
include_directories : inc_dir,
dependencies : [deps, cairo_deps, cairo_xlib_dep],
link_args : links,
@@ -328,6 +328,7 @@ endif
if use_backend_nanovg.enabled()
if use_frontend_pugl.enabled()
d2tk_nanovg = declare_dependency(
+ compile_args : ['-DPUGL_STATIC'],
include_directories : inc_dir,
dependencies : [deps, glu_dep, glew_dep],
link_args : links,
diff --git a/pugl/include/pugl/pugl.h b/pugl/include/pugl/pugl.h
index 41afc25..8a261c7 100644
--- a/pugl/include/pugl/pugl.h
+++ b/pugl/include/pugl/pugl.h
@@ -25,7 +25,7 @@
# define PUGL_API __declspec(dllexport)
#elif defined(_WIN32) && !defined(PUGL_STATIC)
# define PUGL_API __declspec(dllimport)
-#elif defined(__GNUC__)
+#elif defined(__GNUC__) && !defined(PUGL_STATIC)
# define PUGL_API __attribute__((visibility("default")))
#else
# define PUGL_API