mirror of
https://github.com/radareorg/radare2.git
synced 2024-10-07 02:23:58 +00:00
meson: copy most of the stuff out of sdb dir (#10961)
we need to handle sdb meson.build file with subprojects. For now I'm extracting most of its current content here, so that it will be easier to update sdb later.
This commit is contained in:
parent
5c476a1b5b
commit
201c360b10
@ -323,8 +323,6 @@ subdir('libr/fs')
|
||||
subdir('libr/debug')
|
||||
subdir('libr/core')
|
||||
|
||||
subdir('shlr/sdb')
|
||||
|
||||
subdir('libr/anal/d')
|
||||
subdir('libr/asm/d')
|
||||
subdir('libr/bin/d')
|
||||
|
@ -139,6 +139,8 @@ endif
|
||||
|
||||
|
||||
# handle sdb dependency
|
||||
# NOTE: copying most of the stuff from sdb to here for the moment, since we
|
||||
# should use subpackages to handle this well
|
||||
sdb_files = [
|
||||
'sdb/src/array.c',
|
||||
'sdb/src/base64.c',
|
||||
@ -175,6 +177,32 @@ sdb_dep = declare_dependency(
|
||||
include_directories: sdb_inc
|
||||
)
|
||||
|
||||
sdb_platform_inc = []
|
||||
if host_machine.system() == 'windows'
|
||||
sdb_platform_inc = include_directories('sdb/msvc')
|
||||
endif
|
||||
|
||||
# Create sdb_version.h
|
||||
sdb_version = '1.2.0'
|
||||
run_command(py3_exe, '-c', 'with open("sdb/src/sdb_version.h", "w") as f: f.write("#define SDB_VERSION \"' + sdb_version + '\"")')
|
||||
|
||||
sdb_exe = executable('sdb', 'sdb/src/main.c',
|
||||
include_directories: [
|
||||
sdb_platform_inc,
|
||||
include_directories(['sdb/src'])
|
||||
],
|
||||
link_with: [libr2sdb],
|
||||
implicit_include_directories: false
|
||||
)
|
||||
|
||||
sdb_gen_cmd = [
|
||||
py3_exe,
|
||||
'-c',
|
||||
'from sys import argv; __import__("os").system("@0@ %s = <%s" % (argv[1], argv[2]))'.format(sdb_exe.full_path()),
|
||||
'@OUTPUT@',
|
||||
'@INPUT@'
|
||||
]
|
||||
|
||||
|
||||
# handle bochs dependency
|
||||
bochs_files = [
|
||||
|
Loading…
Reference in New Issue
Block a user