Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Side by Side Diff: third_party/go/src/golang.org/x/mobile/example/libhellojni/make.bat

Issue 1275153002: Remove third_party/golang.org/x/mobile as it is no longer used with Go 1.5. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Remove golang.org/x/mobile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 :: Copyright 2014 The Go Authors. All rights reserved.
2 :: Use of this source code is governed by a BSD-style
3 :: license that can be found in the LICENSE file.
4
5 @echo off
6
7 setlocal
8
9 if not exist make.bat goto error-invalid-path
10
11 set CGO_ENABLED=1
12 set GOOS=android
13 set GOARCH=arm
14 set GOARM=7
15 set ANDROID_APP=%CD%
16
17 if not exist src\main\jniLibs\armeabi mkdir src\main\jniLibs\armeabi
18 if not exist src\main\java\go mkdir src\main\java\go
19 if not exist src\main\java\demo mkdir src\main\java\demo
20
21 xcopy /y ..\..\app\*.java %ANDROID_APP%\src\main\java\go >nul
22 xcopy /y ..\..\bind\java\*.java %ANDROID_APP%\src\main\java\go >nul
23 xcopy /y %CD%\*.java %ANDROID_APP%\src\main\java\demo >nul
24
25 go build -ldflags="-shared" .
26 if errorlevel 1 goto error-go-build
27
28 move /y libhellojni %ANDROID_APP%\src\main\jniLibs\armeabi\libgojni.so >nul
29 goto end
30
31 :error-invalid-path
32 echo make.bat must be run from example\libhellojni
33 goto end
34
35 :error-go-build
36 echo Error building go lib
37 goto end
38
39 :end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698