diff options
Diffstat (limited to 'ndk/checkbuild.py')
-rwxr-xr-x | ndk/checkbuild.py | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/ndk/checkbuild.py b/ndk/checkbuild.py index 55ceb90e1..19d535d7b 100755 --- a/ndk/checkbuild.py +++ b/ndk/checkbuild.py @@ -1726,18 +1726,18 @@ class Changelog(ndk.builds.FileModule): @register -class NdkGdb(ndk.builds.MultiFileModule): +class NdkGdb(ndk.builds.PythonApplication): name = "ndk-gdb" - install_path = Path("prebuilt/{host}/bin") + install_path = Path("prebuilt/{host}/bin/ndkgdb.pyz") notice = NDK_DIR / "NOTICE" - - @property - def files(self) -> Iterator[Path]: - yield NDK_DIR / "ndk-gdb" - yield NDK_DIR / "ndk-gdb.py" - - if self.host.is_windows: - yield NDK_DIR / "ndk-gdb.cmd" + package = NDK_DIR / "ndkgdb.py" + main = "ndkgdb:main" + pip_dependencies = [ + ANDROID_DIR / "development/python-packages/adb", + ] + copy_to_python_path = [ + ANDROID_DIR / "development/python-packages/gdbrunner", + ] @register @@ -1757,18 +1757,12 @@ class NdkLldbShortcut(ndk.builds.ScriptShortcutModule): @register -class NdkStack(ndk.builds.MultiFileModule): +class NdkStack(ndk.builds.PythonApplication): name = "ndk-stack" - install_path = Path("prebuilt/{host}/bin") + install_path = Path("prebuilt/{host}/bin/ndkstack.pyz") notice = NDK_DIR / "NOTICE" - - @property - def files(self) -> Iterator[Path]: - yield NDK_DIR / "ndk-stack" - yield NDK_DIR / "ndk-stack.py" - - if self.host.is_windows: - yield NDK_DIR / "ndk-stack.cmd" + package = NDK_DIR / "ndkstack.py" + main = "ndkstack:main" @register |