Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
3b5eaf79
Unverified
Commit
3b5eaf79
authored
Mar 09, 2020
by
John Kessenich
Committed by
GitHub
Mar 09, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2102 from sfricke-samsung/sfricke-samsung-android-build
Add Android build instructions to README
parents
6861ea4e
442f561a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
README.md
README.md
+9
-1
No files found.
README.md
View file @
3b5eaf79
...
@@ -104,7 +104,7 @@ branch.
...
@@ -104,7 +104,7 @@ branch.
The following steps assume a Bash shell. On Windows, that could be the Git Bash
The following steps assume a Bash shell. On Windows, that could be the Git Bash
shell or some other shell of your choosing.
shell or some other shell of your choosing.
#### 1) Check-Out this project
#### 1) Check-Out this project
```
bash
```
bash
cd
<parent of where you want glslang to be>
cd
<parent of where you want glslang to be>
...
@@ -152,6 +152,14 @@ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/install" $SOURCE
...
@@ -152,6 +152,14 @@ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$(pwd)/install" $SOURCE
# "Release" (for CMAKE_BUILD_TYPE) could also be "Debug" or "RelWithDebInfo"
# "Release" (for CMAKE_BUILD_TYPE) could also be "Debug" or "RelWithDebInfo"
```
```
For building on Android:
```
bash
cmake
$SOURCE_DIR
-G
"Unix Makefiles"
-DCMAKE_INSTALL_PREFIX
=
"
$(
pwd
)
/install"
-DANDROID_ABI
=
arm64-v8a
-DCMAKE_BUILD_TYPE
=
Release
-DANDROID_STL
=
c++_static
-DANDROID_PLATFORM
=
android-24
-DCMAKE_SYSTEM_NAME
=
Android
-DANDROID_TOOLCHAIN
=
clang
-DANDROID_ARM_MODE
=
arm
-DCMAKE_MAKE_PROGRAM
=
$ANDROID_NDK_ROOT
/prebuilt/linux-x86_64/bin/make
-DCMAKE_TOOLCHAIN_FILE
=
$ANDROID_NDK_ROOT
/build/cmake/android.toolchain.cmake
# If on Windows will be -DCMAKE_MAKE_PROGRAM=%ANDROID_NDK_ROOT%\prebuilt\windows-x86_64\bin\make.exe
# -G is needed for building on Windows
# -DANDROID_ABI can also be armeabi-v7a for 32 bit
```
For building on Windows:
For building on Windows:
```
bash
```
bash
...
...
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