-
-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Fix meson-build global_arguments
* Added a CI-task to check if rizin could be used as subproject * Fixed some new global-arguments in meson-build
- Loading branch information
Showing
5 changed files
with
120 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
project('subpoj_tester', 'c') | ||
|
||
rz_deps = [ | ||
dependency('rz_core'), | ||
dependency('rz_reg'), | ||
dependency('rz_flag'), | ||
dependency('rz_hash'), | ||
dependency('rz_bin'), | ||
dependency('rz_bp'), | ||
dependency('rz_io'), | ||
dependency('rz_search'), | ||
dependency('rz_sign'), | ||
dependency('rz_cons'), | ||
dependency('rz_lang'), | ||
dependency('rz_socket'), | ||
dependency('rz_type'), | ||
dependency('rz_debug'), | ||
dependency('rz_il'), | ||
dependency('rz_demangler'), | ||
dependency('rz_util'), | ||
dependency('rz_main'), | ||
dependency('rz_crypto'), | ||
dependency('rz_config'), | ||
dependency('rz_egg'), | ||
dependency('rz_syscall'), | ||
dependency('rz_magic'), | ||
] | ||
|
||
# TODO: extend to perform actually linking test as well! | ||
tester_source = custom_target('main.c', | ||
command: ['echo', ''' | ||
#include <rz_core.h> | ||
int main(void) { | ||
rz_cons_printf("hello world\n"); | ||
return 0; | ||
} | ||
'''], | ||
output: 'main.c', | ||
capture: true, | ||
) | ||
|
||
|
||
subproj_tester = executable('subproj_tester', | ||
tester_source, | ||
dependencies: rz_deps, | ||
pie: true, | ||
) | ||
|
||
test('basic', subproj_tester) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[wrap-git] | ||
|
||
url=${REPOSITORY} | ||
revision=${BRANCH} | ||
|
||
depth = 1 | ||
|
||
[provide] | ||
rz_core = rz_core_dep | ||
rz_reg = rz_reg_dep | ||
rz_flag = rz_flag_dep | ||
rz_hash = rz_hash_dep | ||
rz_bin = rz_bin_dep | ||
rz_bp = rz_bp_dep | ||
rz_io = rz_io_dep | ||
rz_search = rz_search_dep | ||
rz_sign = rz_sign_dep | ||
rz_cons = rz_cons_dep | ||
rz_lang = rz_lang_dep | ||
rz_socket = rz_socket_dep | ||
rz_type = rz_type_dep | ||
rz_debug = rz_debug_dep | ||
#rz_ghidra = rz_ghidra_dep | ||
rz_il = rz_il_dep | ||
rz_demangler = rz_demangler_dep | ||
rz_util = rz_util_dep | ||
rz_main = rz_main_dep | ||
rz_asm = rz_asm_dep | ||
rz_crypto = rz_crypto_dep | ||
rz_config = rz_config_dep | ||
rz_egg = rz_egg_dep | ||
rz_syscall = rz_syscall_dep | ||
rz_magic = rz_magic_dep | ||
rz_parse = rz_parse_dep | ||
rz_analysis = rz_analysis_dep | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters