diff options
author | Elliott Hughes <enh@google.com> | 2018-10-25 21:07:41 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-10-25 21:07:41 +0000 |
commit | 18d21f17ca12370e7958f492281813a6c55ff91e (patch) | |
tree | 3979a3040bc9a61e3983f34581b54eb7d7a5939a /checkbuild.py | |
parent | 8492c71e589175ba46fc83faf8faf1bae2eb8f7a (diff) | |
parent | ce5e58368200ebd0f5c27105104feffeb145bcff (diff) | |
download | ndk-18d21f17ca12370e7958f492281813a6c55ff91e.tar.gz |
Merge "ndk-stack: switch to python."
Diffstat (limited to 'checkbuild.py')
-rwxr-xr-x | checkbuild.py | 39 |
1 files changed, 26 insertions, 13 deletions
diff --git a/checkbuild.py b/checkbuild.py index 2df8fc9e1..2ebdc4fdf 100755 --- a/checkbuild.py +++ b/checkbuild.py @@ -747,18 +747,6 @@ class NdkDepends(ndk.builds.InvokeExternalBuildModule): install_exe(src, install_dir, self.name, self.host) -class NdkStack(ndk.builds.InvokeExternalBuildModule): - name = 'ndk-stack' - path = 'prebuilt/{host}/bin' - script = 'ndk/sources/host-tools/ndk-stack/build.py' - notice = ndk.paths.ndk_path('sources/host-tools/ndk-stack/NOTICE') - - def install(self): - src = os.path.join(self.out_dir, self.host, self.name) - install_dir = self.get_install_path() - install_exe(src, install_dir, self.name, self.host) - - class GdbServer(ndk.builds.InvokeBuildModule): name = 'gdbserver' path = 'prebuilt/android-{arch}/gdbserver' @@ -1982,6 +1970,31 @@ class NdkGdbShortcut(ndk.builds.ScriptShortcutModule): windows_ext = '.cmd' +class NdkStack(ndk.builds.MultiFileModule): + name = 'ndk-stack' + path = 'prebuilt/{host}/bin' + notice = ndk.paths.ndk_path('NOTICE') + + @property + def files(self): + files = [ + ndk.paths.ndk_path('ndk-stack'), + ndk.paths.ndk_path('ndk-stack.py'), + ] + + if self.host.startswith('windows'): + files.append(ndk.paths.ndk_path('ndk-stack.cmd')) + + return files + + +class NdkStackShortcut(ndk.builds.ScriptShortcutModule): + name = 'ndk-stack-shortcut' + path = 'ndk-stack' + script = 'prebuilt/{host}/bin/ndk-stack' + windows_ext = '.cmd' + + class NdkWhichShortcut(ndk.builds.ScriptShortcutModule): name = 'ndk-which-shortcut' path = 'ndk-which' @@ -2000,7 +2013,7 @@ class NdkStackShortcut(ndk.builds.ScriptShortcutModule): name = 'ndk-stack-shortcut' path = 'ndk-stack' script = 'prebuilt/{host}/bin/ndk-stack' - windows_ext = '.exe' + windows_ext = '.cmd' class NdkBuildShortcut(ndk.builds.ScriptShortcutModule): |