-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ci' into transformer_replace_tailjmp_with_callout
- Loading branch information
Showing
16 changed files
with
251 additions
and
70 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "releng"] | ||
path = releng | ||
url = https://github.com/frida/releng.git |
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,10 @@ | ||
PYTHON ?= $(shell python3 --version >/dev/null 2>&1 && echo python3 || echo python) | ||
|
||
all $(MAKECMDGOALS): | ||
@$(PYTHON) \ | ||
-c "import sys; sys.path.insert(0, sys.argv[1]); from releng.meson_make import main; main()" \ | ||
"$(shell pwd)" \ | ||
./build \ | ||
$(MAKECMDGOALS) | ||
|
||
.PHONY: all $(MAKECMDGOALS) |
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,26 @@ | ||
devkit_outputs = [ | ||
'frida-gumjs.h', | ||
static_lib_prefix + 'frida-gumjs' + static_lib_suffix, | ||
'frida-gumjs-example.c', | ||
] | ||
|
||
if cc.get_argument_syntax() == 'msvc' | ||
devkit_outputs += [ | ||
'frida-gumjs-example.sln', | ||
'frida-gumjs-example.vcxproj', | ||
'frida-gumjs-example.vcxproj.filters', | ||
] | ||
endif | ||
|
||
custom_target('gumjs-devkit', | ||
input: gumjs, | ||
output: devkit_outputs, | ||
command: [ | ||
mkdevkit, | ||
'frida-gumjs', | ||
f'@host_os@-@host_arch@', | ||
meson.current_build_dir(), | ||
] + devkit_options, | ||
install: true, | ||
install_dir: get_option('libdir') / 'frida' / 'devkits' / 'gumjs' | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$PYTHON" ]; then | ||
PYTHON=$(python3 --version >/dev/null 2>&1 && echo python3 || echo python) | ||
fi | ||
|
||
pushd $(dirname $0) >/dev/null | ||
srcroot=$(pwd) | ||
popd >/dev/null | ||
|
||
exec "$PYTHON" \ | ||
-c "import sys; sys.path.insert(0, sys.argv[1]); from releng.meson_configure import main; main()" \ | ||
"$srcroot" \ | ||
"$@" |
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,17 @@ | ||
@setlocal | ||
@echo off | ||
rem:: Based on: https://github.com/microsoft/terminal/issues/217#issuecomment-737594785 | ||
goto :_start_ | ||
|
||
:set_real_dp0 | ||
set dp0=%~dp0 | ||
set "dp0=%dp0:~0,-1%" | ||
goto :eof | ||
|
||
:_start_ | ||
call :set_real_dp0 | ||
|
||
endlocal & goto #_undefined_# 2>nul || title %COMSPEC% & python ^ | ||
-c "import sys; sys.path.insert(0, sys.argv[1]); from releng.meson_configure import main; main()" ^ | ||
"%dp0%" ^ | ||
%* |
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,26 @@ | ||
devkit_outputs = [ | ||
'frida-gum.h', | ||
static_lib_prefix + 'frida-gum' + static_lib_suffix, | ||
'frida-gum-example.c', | ||
] | ||
|
||
if cc.get_argument_syntax() == 'msvc' | ||
devkit_outputs += [ | ||
'frida-gum-example.sln', | ||
'frida-gum-example.vcxproj', | ||
'frida-gum-example.vcxproj.filters', | ||
] | ||
endif | ||
|
||
custom_target('gum-devkit', | ||
input: gum, | ||
output: devkit_outputs, | ||
command: [ | ||
mkdevkit, | ||
'frida-gum', | ||
f'@host_os@-@host_arch@', | ||
meson.current_build_dir(), | ||
] + devkit_options, | ||
install: true, | ||
install_dir: get_option('libdir') / 'frida' / 'devkits' / 'gum' | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
@setlocal | ||
@echo off | ||
rem:: Based on: https://github.com/microsoft/terminal/issues/217#issuecomment-737594785 | ||
goto :_start_ | ||
|
||
:set_real_dp0 | ||
set dp0=%~dp0 | ||
set "dp0=%dp0:~0,-1%" | ||
goto :eof | ||
|
||
:_start_ | ||
call :set_real_dp0 | ||
|
||
endlocal & goto #_undefined_# 2>nul || title %COMSPEC% & python ^ | ||
-c "import sys; sys.path.insert(0, sys.argv[1]); from releng.meson_make import main; main()" ^ | ||
"%dp0%" ^ | ||
.\build ^ | ||
%* |
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
Oops, something went wrong.