diff options
author | Siva Velusamy <vsiva@google.com> | 2014-06-16 21:55:56 -0700 |
---|---|---|
committer | Siva Velusamy <vsiva@google.com> | 2014-06-17 16:17:45 -0700 |
commit | 27b7d42508b377d23d0c3bf1a24d8067de2fa160 (patch) | |
tree | 2ca05f4234c63d7c83b40338403939e73edceae9 /monitor | |
parent | 2e98ad0166e279fdeba2668930da3ab0f85de559 (diff) | |
download | sdk-27b7d42508b377d23d0c3bf1a24d8067de2fa160.zip sdk-27b7d42508b377d23d0c3bf1a24d8067de2fa160.tar.gz sdk-27b7d42508b377d23d0c3bf1a24d8067de2fa160.tar.bz2 |
Add monitor to sdk build
Change-Id: I8ecbf06e6f52997be19d48a1c2063204c34096d6
Diffstat (limited to 'monitor')
-rw-r--r-- | monitor/build.gradle | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/monitor/build.gradle b/monitor/build.gradle new file mode 100644 index 0000000..c203c2b --- /dev/null +++ b/monitor/build.gradle @@ -0,0 +1,80 @@ +apply plugin: 'sdk-files' + +// See $ANDROID_SRC/tools/buildSrc/base/version.gradle for definition of baseVersion +// However, if Eclipse bundles don't get the same version as tools baseVersion, then this +// will have to be hard coded and fixed by sdk/eclipse/scripts/update_version.sh +def basePath = "../../out/host/maven/bundles-${rootProject.ext.baseVersion}-SNAPSHOT/products/" + +sdk { + linux { + item('monitor') { + notice null + executable true + } + item(basePath + 'lin64/monitor') { + into 'lib/monitor-x86_64' + notice null + builtBy 'unzipLinux64' + } + item(basePath + 'lin/monitor') { + into 'lib/monitor-x86' + notice null + builtBy 'unzipLinux' + } + } + + mac { + item('monitor') { + notice null + executable true + } + item(basePath + 'mac64/monitor') { + into 'lib/monitor-x86_64' + notice null + builtBy 'unzipMac64' + } + } + + + windows { + item('monitor.bat') { + notice null + executable true + } + item(basePath + 'win64/monitor') { + into 'lib/monitor-x86_64' + notice null + builtBy 'unzipWin64' + } + item(basePath + 'win/monitor') { + into 'lib/monitor-x86' + notice null + builtBy 'unzipWin' + } + } +} + +task unzipLinux64(type: Copy) { + from zipTree(file(basePath + 'monitorproduct-linux.gtk.x86_64.zip')) + into file(basePath + 'lin64/') +} + +task unzipLinux(type: Copy) { + from zipTree(file(basePath + 'monitorproduct-linux.gtk.x86.zip')) + into file(basePath + 'lin/') +} + +task unzipMac64(type: Copy) { + from zipTree(file(basePath + 'monitorproduct-macosx.cocoa.x86_64.zip')) + into file(basePath + 'mac64/') +} + +task unzipWin64(type: Copy) { + from zipTree(file(basePath + 'monitorproduct-win32.win32.x86_64.zip')) + into file(basePath + 'win64/') +} + +task unzipWin(type: Copy) { + from zipTree(file(basePath + 'monitorproduct-win32.win32.x86.zip')) + into file(basePath + 'win/') +} |