diff options
Diffstat (limited to 'plugins/arm/core.c')
| -rw-r--r-- | plugins/arm/core.c | 16 | 
1 files changed, 14 insertions, 2 deletions
diff --git a/plugins/arm/core.c b/plugins/arm/core.c index 07b9b24..3e7aa9a 100644 --- a/plugins/arm/core.c +++ b/plugins/arm/core.c @@ -24,16 +24,26 @@  #include "core.h" +#include <config.h>  #include <plugins/plugin-def.h> -#include "python/module.h" +#ifdef HAVE_PYTHON3_BINDINGS +#   include "python/module.h" +#endif  #include "v7/core.h" +#ifdef HAVE_PYTHON3_BINDINGS +#   define PG_REQ RL("PyChrysalide") +#else +#   define PG_REQ NO_REQ +#endif + +  DEFINE_CHRYSALIDE_PLUGIN("GArmPlugin", "arm", "Add support for the ARM architecture", "0.1.0", -                         RL("PyChrysalide"), AL(PGA_PLUGIN_INIT, PGA_PLUGIN_EXIT)); +                         PG_REQ, AL(PGA_PLUGIN_INIT, PGA_PLUGIN_EXIT)); @@ -55,8 +65,10 @@ G_MODULE_EXPORT bool chrysalide_plugin_init(GPluginModule *plugin)      result = init_armv7_core(); +#ifdef HAVE_PYTHON3_BINDINGS      if (result)          result = add_arch_arm_module_to_python_module(); +#endif      return result;  | 
