mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-07 05:41:43 +00:00
119 lines
3.4 KiB
Plaintext
119 lines
3.4 KiB
Plaintext
#ifndef R2_CONFIGURE_H
|
|
#define R2_CONFIGURE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "r_version.h"
|
|
|
|
#define R_CHECKS_LEVEL @R_CHECKS_LEVEL@
|
|
#define R_CRITICAL_ENABLED @R_CRITICAL_ENABLED@
|
|
#define DEBUGGER @DEBUGGER@
|
|
#define HAVE_DECL_ADDR_NO_RANDOMIZE @HAVE_DECL_ADDR_NO_RANDOMIZE@
|
|
#define HAVE_ARC4RANDOM_UNIFORM @HAVE_ARC4RANDOM_UNIFORM@
|
|
#define HAVE_EXPLICIT_BZERO @HAVE_EXPLICIT_BZERO@
|
|
#define HAVE_EXPLICIT_MEMSET @HAVE_EXPLICIT_MEMSET@
|
|
#define HAVE_CLOCK_NANOSLEEP @HAVE_CLOCK_NANOSLEEP@
|
|
#define HAVE_SIGACTION @HAVE_SIGACTION@
|
|
#define WANT_THREADS @WANT_THREADS@
|
|
#define WANT_CAPSTONE @WANT_CAPSTONE@
|
|
|
|
#define WITH_STATIC_THEMES @WITH_STATIC_THEMES@
|
|
|
|
#define HAVE_GPERF @HAVE_GPERF@
|
|
#if (HAVE_GPERF) == 1
|
|
#define HAVE_GPERF @HAVE_GPERF@
|
|
#else
|
|
#define HAVE_GPERF 0
|
|
#endif
|
|
|
|
#ifdef R_MESON_VERSION
|
|
#define R2_PREFIX "@PREFIX@"
|
|
#define R2_ETCDIR "@ETCDIR@"
|
|
#define R2_LIBDIR "@LIBDIR@"
|
|
#define R2_INCDIR "@INCLUDEDIR@"
|
|
#define R2_DATDIR "@DATADIR@"
|
|
#define R2_WWWROOT "@WWWROOT@"
|
|
#define R2_PLUGINS "@PLUGINS@"
|
|
#define R2_EXTRAS "@EXTRAS@"
|
|
#define R2_BINDINGS "@BINDINGS@"
|
|
#define R2_DATDIR_R2 "@DATADIR_R2@"
|
|
#define R2_SDB "@SDB@"
|
|
#define R2_ZIGNS "@ZIGNS@"
|
|
#define R2_THEMES "@THEMES@"
|
|
#define R2_FORTUNES R_JOIN_3_PATHS ("@DATADIR@", "doc", "radare2")
|
|
#define R2_FLAGS "@FLAGS@"
|
|
#define R2_HUD "@HUD@"
|
|
#else
|
|
#if __WINDOWS__ || _MSC_VER
|
|
#define R2_PREFIX "."
|
|
#define R2_ETCDIR "etc"
|
|
#define R2_LIBDIR "lib"
|
|
#define R2_INCDIR "include\\libr"
|
|
#define R2_DATDIR "share"
|
|
#define R2_WWWROOT "www"
|
|
#define R2_PLUGINS "lib\\plugins"
|
|
#define R2_EXTRAS "lib\\extras"
|
|
#define R2_BINDINGS "lib\\bindings"
|
|
#else
|
|
#define R2_PREFIX "@PREFIX@"
|
|
#define R2_ETCDIR "@ETCDIR@"
|
|
#define R2_LIBDIR "@LIBDIR@"
|
|
#define R2_INCDIR "@INCLUDEDIR@/libr"
|
|
#define R2_DATDIR "@DATADIR@"
|
|
#define R2_WWWROOT R2_DATDIR "/radare2/" R2_VERSION "/www"
|
|
#define R2_PLUGINS "lib/radare2/" R2_VERSION
|
|
#define R2_EXTRAS "lib/radare2-extras/" R2_VERSION
|
|
#define R2_BINDINGS "lib/radare2-bindings/" R2_VERSION
|
|
#endif
|
|
#define R2_DATDIR_R2 R_JOIN_2_PATHS ("share", "radare2")
|
|
#define R2_SDB R_JOIN_3_PATHS ("share", "radare2", R2_VERSION)
|
|
#define R2_ZIGNS R_JOIN_4_PATHS ("share", "radare2", R2_VERSION, "zigns")
|
|
#define R2_THEMES R_JOIN_4_PATHS ("share", "radare2", R2_VERSION, "cons")
|
|
#define R2_FLAGS R_JOIN_4_PATHS ("share", "radare2", R2_VERSION, "flag")
|
|
#define R2_FORTUNES R_JOIN_3_PATHS ("share", "doc", "radare2")
|
|
#define R2_HUD R_JOIN_4_PATHS ("share", "radare2", R2_VERSION, "hud")
|
|
#endif
|
|
|
|
#define R2_SDB_FCNSIGN R_JOIN_2_PATHS (R2_SDB, "fcnsign")
|
|
#define R2_SDB_OPCODES R_JOIN_2_PATHS (R2_SDB, "opcodes")
|
|
#define R2_SDB_MAGIC R_JOIN_2_PATHS (R2_SDB, "magic")
|
|
#define R2_SDB_FORMAT R_JOIN_2_PATHS (R2_SDB, "format")
|
|
|
|
#define R2_GLOBAL_RC R_JOIN_2_PATHS (R2_DATDIR_R2, "radare2rc")
|
|
|
|
#define HAVE_LIB_MAGIC @HAVE_LIB_MAGIC@
|
|
#define USE_LIB_MAGIC @USE_LIB_MAGIC@
|
|
#define HAVE_LIB_XXHASH @HAVE_LIB_XXHASH@
|
|
#define USE_LIB_XXHASH @USE_LIB_XXHASH@
|
|
|
|
#ifndef HAVE_LIB_SSL
|
|
#define HAVE_LIB_SSL @HAVE_OPENSSL@
|
|
#endif
|
|
|
|
#define HAVE_LIBUV @HAVE_LIBUV@
|
|
|
|
#if __MINGW32__
|
|
#define HAVE_PTRACE 0
|
|
#else
|
|
#define HAVE_PTRACE @HAVE_PTRACE@
|
|
#endif
|
|
|
|
#define USE_PTRACE_WRAP @USE_PTRACE_WRAP@
|
|
#define HAVE_FORK @HAVE_FORK@
|
|
#define WANT_DYLINK @WANT_DYLINK@
|
|
#define WITH_GPL @WITH_GPL@
|
|
|
|
#if __APPLE__ && __POWERPC__
|
|
#define HAVE_JEMALLOC 0
|
|
#else
|
|
#define HAVE_JEMALLOC @HAVE_JEMALLOC@
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|