File: plugin.cxx.in

package info (click to toggle)
f3d 3.2.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 27,668 kB
  • sloc: cpp: 99,109; python: 811; sh: 342; xml: 238; java: 101; javascript: 95; makefile: 25
file content (31 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// /!\ Autogenerated file - do not modify

#cmakedefine01 F3D_PLUGIN_IS_STATIC

#include "plugin.h"
#include "plugin_export.h"

#include <memory>

@F3D_PLUGIN_INCLUDES_CODE@

static std::shared_ptr<f3d::plugin> gPlugin;

#if F3D_PLUGIN_IS_STATIC
f3d::plugin* init_plugin_static_@F3D_PLUGIN_NAME@()
#else
extern "C" F3D_PLUGIN_EXPORT f3d::plugin* init_plugin()
#endif
{
  if (!gPlugin)
  {
    gPlugin = std::make_shared<f3d::plugin>(
      "@F3D_PLUGIN_NAME@",
      "@F3D_PLUGIN_DESCRIPTION@",
      "@F3D_PLUGIN_VERSION@",
      std::vector<std::shared_ptr<f3d::reader>>{ @F3D_PLUGIN_REGISTER_CODE@ }
    );
  }

  return gPlugin.get();
}