diff --git a/src/libsysprof-ui/meson.build b/src/libsysprof-ui/meson.build index 15efb12a..3789dcc4 100644 --- a/src/libsysprof-ui/meson.build +++ b/src/libsysprof-ui/meson.build @@ -63,6 +63,7 @@ libsysprof_ui = shared_library('sysprof-ui-@0@'.format(libsysprof_api_version), dependencies: libsysprof_ui_deps, install_dir: get_option('libdir'), install: true, + c_args: [ '-DSYSPROF_UI_COMPILATION' ], ) libsysprof_ui_dep = declare_dependency( diff --git a/src/libsysprof-ui/sysprof-ui.h b/src/libsysprof-ui/sysprof-ui.h index f8f4830f..bfe93f24 100644 --- a/src/libsysprof-ui/sysprof-ui.h +++ b/src/libsysprof-ui/sysprof-ui.h @@ -25,7 +25,8 @@ G_BEGIN_DECLS -#define SYSPROF_INSIDE +#define SYSPROF_UI_INSIDE + # include "sp-callgraph-view.h" # include "sp-cell-renderer-percent.h" # include "sp-cpu-visualizer-row.h" @@ -42,7 +43,8 @@ G_BEGIN_DECLS # include "sp-visualizer-row.h" # include "sp-visualizer-view.h" # include "sp-zoom-manager.h" -#undef SYSPROF_INSIDE + +#undef SYSPROF_UI_INSIDE G_END_DECLS