-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e5f9302
commit 4fe36a0
Showing
27 changed files
with
521 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# JetBrains IDE | ||
.idea/ | ||
*.iml | ||
|
||
# Applications | ||
*.app | ||
*.exe | ||
*.war | ||
*.syso | ||
*.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# | ||
# https://help.github.com/articles/dealing-with-line-endings/ | ||
# | ||
# These are explicitly windows files and should use crlf | ||
*.bat text eol=crlf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Ignore Gradle project-specific cache directory | ||
.gradle | ||
|
||
# Ignore Gradle build output directory | ||
build | ||
build-native | ||
local.properties |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
# Mention the cmake version name. | ||
cmake_minimum_required(VERSION 3.4.1) | ||
|
||
project( VulkanInfo ) | ||
|
||
# Application | ||
add_library(vulkaninfo SHARED IMPORTED) | ||
|
||
set_target_properties( vulkaninfo | ||
PROPERTIES IMPORTED_LOCATION | ||
${CMAKE_SOURCE_DIR}/src/main/jniLibs/${ANDROID_ABI}/libvulkaninfo.so | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
plugins { | ||
id 'com.android.application' | ||
} | ||
|
||
android { | ||
namespace 'org.golang.android.vulkan.info' | ||
compileSdk 26 | ||
buildToolsVersion '33.0.0' | ||
ndkVersion '25.1.8937393' | ||
|
||
defaultConfig { | ||
applicationId "org.golang.android.vulkan.info" | ||
minSdk 26 | ||
targetSdk 26 | ||
versionCode 1 | ||
versionName "1.0" | ||
|
||
externalNativeBuild { | ||
cmake { | ||
abiFilters.addAll('armeabi-v7a', 'arm64-v8a', 'x86_64') | ||
} | ||
} | ||
} | ||
|
||
buildTypes { | ||
debug { | ||
debuggable true | ||
jniDebuggable true | ||
minifyEnabled false | ||
} | ||
|
||
release { | ||
debuggable false | ||
jniDebuggable false | ||
minifyEnabled false | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
|
||
sourceSets { | ||
main.assets.srcDirs = ['assets'] | ||
main { | ||
res.srcDirs += [ '../../../app/android/res' ] | ||
} | ||
} | ||
externalNativeBuild { | ||
cmake { | ||
path 'CMakeLists.txt' | ||
buildStagingDirectory 'build-native' | ||
} | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
vulkaninfo/vulkaninfo_android/android/app/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:versionCode="1" | ||
android:versionName="1.0"> | ||
|
||
<!-- Require Vulkan 1.0 --> | ||
<uses-feature android:name="android.hardware.vulkan.version" android:version="0x400003" android:required="true" /> | ||
<uses-feature android:name="android.hardware.vulkan.level" android:version="0" android:required="true" /> | ||
|
||
<application android:label="@string/app_name" | ||
android:icon="@drawable/icon" | ||
android:hasCode="false"> | ||
<activity android:name="android.app.NativeActivity" | ||
android:launchMode="singleTask" | ||
android:screenOrientation="portrait" | ||
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" | ||
android:configChanges="orientation|keyboardHidden" | ||
android:exported="true"> | ||
<meta-data android:name="android.app.lib_name" android:value="vulkaninfo" /> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
</manifest> |
Binary file added
BIN
+14.2 KB
vulkaninfo/vulkaninfo_android/android/app/src/main/res/drawable-hdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.17 KB
vulkaninfo/vulkaninfo_android/android/app/src/main/res/drawable-mdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.5 KB
vulkaninfo/vulkaninfo_android/android/app/src/main/res/drawable-xhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20 KB
vulkaninfo/vulkaninfo_android/android/app/src/main/res/drawable-xxhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
vulkaninfo/vulkaninfo_android/android/app/src/main/res/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="app_name">Vulkan Info</string> <!-- User visible app name on home screen --> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
id 'com.android.application' version '7.3.1' apply false | ||
id 'com.android.library' version '7.3.1' apply false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
android.useAndroidX=true | ||
android.enableJetifier=true | ||
org.gradle.parallel=true | ||
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8 |
Binary file added
BIN
+58.4 KB
vulkaninfo/vulkaninfo_android/android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
vulkaninfo/vulkaninfo_android/android/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.