Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
f7947140
Commit
f7947140
authored
Mar 22, 2018
by
forDream
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix building with Windows. #1684
Signed-off-by:
forDream
<
gam2046@users.noreply.github.com
>
parent
ec803d98
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
core/build.gradle
core/build.gradle
+2
-2
core/src/overture/make.bat
core/src/overture/make.bat
+17
-3
No files found.
core/build.gradle
View file @
f7947140
...
...
@@ -38,7 +38,7 @@ android {
task
goBuild
(
type:
Exec
)
{
if
(
Os
.
isFamily
(
Os
.
FAMILY_WINDOWS
))
{
executable
"cmd.exe"
args
"/c"
,
"src\\overture\\make.bat "
+
minSdkVersion
args
"/c"
,
file
(
"src/overture/make.bat"
).
absolutePath
,
minSdkVersion
}
else
{
executable
"sh"
args
"-c"
,
"src/overture/make.bash "
+
minSdkVersion
...
...
@@ -48,7 +48,7 @@ task goBuild(type: Exec) {
task
goClean
(
type:
Exec
)
{
if
(
Os
.
isFamily
(
Os
.
FAMILY_WINDOWS
))
{
executable
"cmd.exe"
args
"/c"
,
"src\\overture\\clean.bat"
args
"/c"
,
file
(
"src/overture/clean.bat"
).
absolutePath
}
else
{
executable
"sh"
args
"-c"
,
"src/overture/clean.bash"
...
...
core/src/overture/make.bat
View file @
f7947140
...
...
@@ -28,21 +28,35 @@ MKDIR %TARGET%\armeabi-v7a>nul 2>nul
MKDIR
%TARGET%
\x86>nul
2
>
nul
MKDIR
%TARGET%
\arm64
-v
8
a
>
nul
2
>
nul
SET
CC
=
%ANDROID_NDK_HOME%
\toolchains\arm
-linux-androideabi
-
4
.9\prebuilt\windows
-x
86
_64\bin\arm
-linux-androideabi-gcc
.exe
REM Check environment availability
IF
NOT
EXIST
%CC%
(
ECHO
"gcc not found"
EXIT
1
)
WHERE
python
.exe
IF
"
%ERRORLEVEL%
"
==
1
(
ECHO
"python not found"
EXIT
1
)
IF
NOT
EXIST
%ANDROID_ARM_CC%
(
ECHO
"Make standalone toolchain for ARM arch"
%ANDROID_NDK_HOME%
\build\tools\make_standalone_toolchain.py
-
-arch
arm
^
python
.exe
%ANDROID_NDK_HOME%
\build\tools\make_standalone_toolchain.py
-
-arch
arm
^
-
-api
%MIN_API%
-
-install-dir
%ANDROID_ARM_TOOLCHAIN%
)
IF
NOT
EXIST
%ANDROID
_ARM64_CC
%
(
ECHO
"Make standalone toolchain for ARM64 arch"
%ANDROID_NDK_HOME%
\build\tools\make_standalone_toolchain.py
-
-arch
arm64
^
python
.exe
%ANDROID_NDK_HOME%
\build\tools\make_standalone_toolchain.py
-
-arch
arm64
^
-
-api
%MIN_API%
-
-install-dir
%ANDROID
_ARM64_TOOLCHAIN
%
)
IF
NOT
EXIST
%ANDROID
_X86_CC
%
(
ECHO
"Make standalone toolchain for X86 arch"
%ANDROID_NDK_HOME%
\build\tools\make_standalone_toolchain.py
-
-arch
x86
^
python
.exe
%ANDROID_NDK_HOME%
\build\tools\make_standalone_toolchain.py
-
-arch
x86
^
-
-api
%MIN_API%
-
-install-dir
%ANDROID
_X86_TOOLCHAIN
%
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment