mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 15:41:38 +00:00
532c58ca9e
https://github.com/termux/termux-packages/blob/master/packages/radare2/libr-include-r_magic.h.patch
114 lines
4.2 KiB
Plaintext
114 lines
4.2 KiB
Plaintext
#ifndef R2_CONFIGURE_H
|
|
#define R2_CONFIGURE_H
|
|
|
|
#include "r_version.h"
|
|
|
|
#define R_CHECKS_LEVEL @R_CHECKS_LEVEL@
|
|
#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@
|
|
|
|
#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 "@FORTUNES@"
|
|
#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_HOME_CONFIGDIR R_JOIN_2_PATHS (".config", "radare2")
|
|
#define R2_HOME_DATADIR R_JOIN_3_PATHS (".local", "share", "radare2")
|
|
#define R2_HOME_CACHEDIR R_JOIN_2_PATHS (".cache", "radare2")
|
|
|
|
#define R2_HOME_THEMES R_JOIN_2_PATHS (R2_HOME_DATADIR, "cons")
|
|
#define R2_HOME_PLUGINS R_JOIN_2_PATHS (R2_HOME_DATADIR, "plugins")
|
|
#define R2_HOME_ZIGNS R_JOIN_2_PATHS (R2_HOME_DATADIR, "zigns")
|
|
#define R2_HOME_PDB R_JOIN_2_PATHS (R2_HOME_DATADIR, "pdb")
|
|
#define R2_HOME_PROJECTS R_JOIN_2_PATHS (R2_HOME_DATADIR, "projects")
|
|
#define R2_HOME_WWWROOT R_JOIN_2_PATHS (R2_HOME_DATADIR, "www")
|
|
#define R2_HOME_SDB_FCNSIGN R_JOIN_2_PATHS (R2_HOME_DATADIR, "fcnsign")
|
|
#define R2_HOME_SDB_FORMAT R_JOIN_2_PATHS (R2_HOME_DATADIR, "format")
|
|
#define R2_HOME_HUD R_JOIN_2_PATHS (R2_HOME_DATADIR, "hud")
|
|
#define R2_HOME_BINRC R_JOIN_2_PATHS (R2_HOME_DATADIR, "rc.d")
|
|
#define R2_HOME_BIN R_JOIN_3_PATHS (R2_HOME_DATADIR, "prefix", "bin")
|
|
|
|
#define R2_HOME_HISTORY R_JOIN_2_PATHS (R2_HOME_CACHEDIR, "history")
|
|
|
|
#define R2_HOME_RC R_JOIN_2_PATHS (R2_HOME_CONFIGDIR, "radare2rc")
|
|
#define R2_HOME_RC_DIR R_JOIN_2_PATHS (R2_HOME_CONFIGDIR, "radare2rc.d")
|
|
#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@
|
|
|
|
#define HAVE_PTRACE @HAVE_PTRACE@
|
|
#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
|
|
|
|
#endif
|