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

Side by Side Diff: third_party/go/src/golang.org/x/mobile/example/libhello/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 :go-build
12 if not exist libs\armeabi-v7a mkdir libs\armeabi-v7a
13 if not exist src\go\hi mkdir src\go\hi
14 if not exist jni\armeabi mkdir jni\armeabi
15
16 set CGO_ENABLED=1
17 set GOOS=android
18 set GOARCH=arm
19 set GOARM=7
20 set ANDROID_APP=%CD%
21
22 xcopy /y ..\..\app\*.java %ANDROID_APP%\src\go >nul
23 copy /y ..\..\bind\java\Seq.java %ANDROID_APP%\src\go\Seq.java >nul
24
25 go build -ldflags="-shared" .
26 if errorlevel 1 goto error-go-build
27
28 move /y libhello libs\armeabi-v7a\libgojni.so >nul
29
30 if defined ANT_HOME goto ant-build
31 echo ANT_HOME path not defined
32 goto end
33
34 :ant-build
35 call %ANT_HOME%\bin\ant.bat debug >nul
36 goto end
37
38 :error-invalid-path
39 echo make.bat must be run from example\libhello
40 goto end
41
42 :error-go-build
43 echo Error building go lib
44 goto end
45
46 :end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698