2019-01-10 20:15:50 +07:00
|
|
|
r_egg_sources = [
|
2018-02-20 11:33:19 +03:00
|
|
|
'egg.c',
|
2018-03-15 11:48:21 +01:00
|
|
|
'egg_Cfile.c',
|
2018-02-20 11:33:19 +03:00
|
|
|
'egg_lang.c',
|
|
|
|
'emit_arm.c',
|
|
|
|
'emit_trace.c',
|
|
|
|
'emit_x64.c',
|
|
|
|
'emit_x86.c',
|
|
|
|
#'p/egg_bind.c',
|
|
|
|
#'p/egg_cb.c',
|
|
|
|
'p/egg_exec.c',
|
|
|
|
#'p/egg_reverse.c',
|
|
|
|
#'p/egg_shya.c',
|
|
|
|
'p/egg_xor.c'
|
2017-05-02 05:05:36 +02:00
|
|
|
]
|
2018-02-20 11:33:19 +03:00
|
|
|
|
2019-01-10 20:15:50 +07:00
|
|
|
r_egg = library('r_egg', r_egg_sources,
|
2017-05-31 13:38:47 +02:00
|
|
|
include_directories: [platform_inc],
|
2020-02-16 23:14:20 +08:00
|
|
|
c_args: library_cflags,
|
2018-07-09 16:58:38 +02:00
|
|
|
dependencies: [
|
|
|
|
r_util_dep,
|
|
|
|
r_asm_dep,
|
|
|
|
r_syscall_dep,
|
2019-07-20 12:50:27 +02:00
|
|
|
mpc_dep
|
2018-05-16 11:24:35 +03:00
|
|
|
],
|
2018-02-20 11:33:19 +03:00
|
|
|
install: true,
|
2018-03-24 20:18:32 +03:00
|
|
|
implicit_include_directories: false,
|
2020-09-15 15:16:14 +08:00
|
|
|
install_rpath: rpath_lib,
|
2018-04-28 11:02:55 +03:00
|
|
|
soversion: r2_libversion
|
2017-05-02 05:05:36 +02:00
|
|
|
)
|
2018-03-03 13:00:18 +01:00
|
|
|
|
2018-07-09 16:58:38 +02:00
|
|
|
r_egg_dep = declare_dependency(link_with: r_egg,
|
|
|
|
include_directories: [platform_inc])
|
|
|
|
|
2018-12-27 20:17:54 +07:00
|
|
|
pkgconfig_mod.generate(r_egg,
|
2018-03-23 09:47:46 +03:00
|
|
|
subdirs: 'libr',
|
2018-04-28 11:02:55 +03:00
|
|
|
version: r2_version,
|
2018-03-23 09:47:46 +03:00
|
|
|
name: 'r_egg',
|
|
|
|
filebase: 'r_egg',
|
2020-07-16 14:47:30 +02:00
|
|
|
libraries: pkgcfg_sanitize_libs,
|
2018-03-23 09:47:46 +03:00
|
|
|
requires: [
|
2018-05-16 11:24:35 +03:00
|
|
|
'r_util',
|
|
|
|
'r_asm',
|
|
|
|
'r_syscall'
|
2018-03-23 09:47:46 +03:00
|
|
|
],
|
|
|
|
description: 'radare foundation libraries'
|
|
|
|
)
|