Add the nogpl meson option ##build

This commit is contained in:
pancake 2021-03-19 15:58:19 +01:00 committed by pancake
parent 2ab0934784
commit 3bfa6b10cf
2 changed files with 47 additions and 20 deletions

View File

@ -1,3 +1,4 @@
use_gpl = not get_option('nogpl')
user_plugins = get_option('plugins').split(',')
no_user_plugins = get_option('plugins') == ''
@ -17,6 +18,10 @@ debug_plugins = [ 'null', 'io' ]
lang_plugins = [ 'lib', 'pipe' ]
parse_plugins = [ 'att2intel' ]
if get_option('nogpl')
user_plugins += ['nogrub']
endif
# This must be splitted in meson.builds for each module
# meson split is results in 1 empty element when splitting an empty string :facepalm:
if not no_user_plugins
@ -61,7 +66,10 @@ if not no_user_plugins
parse_plugins += [ 'arm_pseudo' ]
endif
if user_plugins.contains('v850')
asm_plugins += [ 'v850', 'v810', 'v850_gnu' ]
asm_plugins += [ 'v850', 'v810' ]
if use_gpl
asm_plugins += [ 'v850_gnu' ]
endif
anal_plugins += [ 'v850', 'v810' ]
parse_plugins += [ 'v850_pseudo' ]
endif
@ -71,14 +79,22 @@ if not no_user_plugins
parse_plugins += [ 'wasm_pseudo' ]
endif
if user_plugins.contains('sparc')
asm_plugins += [ 'sparc_cs', 'sparc_gnu' ]
anal_plugins += [ 'sparc_cs', 'sparc_gnu' ]
asm_plugins += [ 'sparc_cs' ]
anal_plugins += [ 'sparc_cs' ]
if use_gpl
asm_plugins += [ 'sparc_gnu' ]
anal_plugins += [ 'sparc_gnu' ]
endif
bp_plugins += [ 'sparc' ]
# missing parse_plugins += [ 'sparc_pseudo' ]
endif
if user_plugins.contains('mips')
asm_plugins += [ 'mips_cs', 'mips_gnu' ]
anal_plugins += [ 'mips_cs', 'mips_gnu' ]
asm_plugins += [ 'mips_cs' ]
anal_plugins += [ 'mips_cs' ]
if use_gpl
asm_plugins += [ 'mips_gnu' ]
anal_plugins += [ 'mips_gnu' ]
endif
bp_plugins += [ 'mips' ]
parse_plugins += [ 'mips_pseudo' ]
endif
@ -105,6 +121,7 @@ if not no_user_plugins
'sfs', 'tar', 'udf', 'ufs', 'ufs2', 'xfs' ]
endif
endif
# else
if no_user_plugins
anal_plugins += [
@ -113,7 +130,6 @@ anal_plugins += [
'amd29k',
'arc',
'arm_cs',
'arm_gnu',
'avr',
'bf',
'chip8',
@ -132,20 +148,17 @@ anal_plugins += [
'malbolge',
'mcore',
'mips_cs',
'mips_gnu',
'msp430',
'nios2',
'or1k',
'pic',
'ppc_cs',
'ppc_gnu',
'propeller',
'riscv',
'rsp',
'sh',
'snes',
'sparc_cs',
'sparc_gnu',
'sysz',
'tms320',
#'tms320c64x',
@ -159,7 +172,6 @@ anal_plugins += [
'xap',
'xcore_cs',
'xtensa',
'z80',
]
asm_plugins += [
@ -169,25 +181,20 @@ asm_plugins += [
'arc',
'arm_as',
'arm_cs',
'arm_gnu',
'arm_winedbg',
'avr',
'bf',
'chip8',
'cr16',
'cris_gnu',
'dalvik',
'dcpu16',
'ebc',
'gb',
'h8300',
'hexagon',
#'hexagon_gnu',
'hppa_gnu',
'i4004',
'i8080',
'java',
'lanai_gnu',
'lh5801',
'lm32',
'm68k_cs',
@ -196,28 +203,24 @@ asm_plugins += [
'mcore',
'mcs96',
'mips_cs',
'mips_gnu',
'msp430',
'nios2',
'or1k',
'pic',
'ppc_as',
'ppc_cs',
'ppc_gnu',
'propeller',
'riscv',
'rsp',
'sh',
'snes',
'sparc_cs',
'sparc_gnu',
'sysz',
'tms320',
'tms320c64x',
'tricore',
'v810',
'v850',
'v850_gnu',
'vax',
'wasm',
'ws',
@ -228,9 +231,32 @@ asm_plugins += [
'xap',
'xcore_cs',
'xtensa',
'z80',
]
if no_user_plugins
if use_gpl
asm_plugins += [
'z80',
'arm_gnu',
'cris_gnu',
'hppa_gnu',
'lanai_gnu',
'mips_gnu',
'ppc_gnu',
'sparc_gnu',
'v850_gnu',
]
anal_plugins += [
'z80',
'arm_gnu',
'mips_gnu',
'ppc_gnu',
'sparc_gnu',
]
endif
endif
bin_plugins += [
'art',
'avr',

View File

@ -39,6 +39,7 @@ option('use_libuv', type: 'boolean', value: true)
option('use_fork', type: 'boolean', value: true)
option('use_dylink', type: 'boolean', value: true)
option('debugger', type: 'boolean', value: true)
option('nogpl', type: 'boolean', value: false)
option('use_webui', type: 'boolean', value: false, description: 'install different WebUIs for radare2')