Skip to content

Commit

Permalink
add katago engine project and module
Browse files Browse the repository at this point in the history
  • Loading branch information
bqv committed Oct 17, 2023
1 parent 5b316f6 commit fb87c6e
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
/.idea
.DS_Store
/build
.cxx
CMakeCache.txt
CMakeFiles
CMakeLists.txt
ThirdPartyTlsLibrary
/app/app.iml
/app/.externalNativeBuild
/app/.cxx
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "katago"]
path = engine/katago/src
url = https://github.com/lightvector/KataGo
50 changes: 50 additions & 0 deletions engine/katago/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
}

android {
namespace = "io.zenandroid.onlinego.engine.katago"
compileSdk = 34

defaultConfig {
minSdk = 21

externalNativeBuild {
cmake {
arguments(
"-DUSE_BACKEND=EIGEN",
"-DANDROID_ARM_NEON=TRUE",
"-DEigen3_DIR=/usr/share/eigen3/cmake/",
)
cFlags("-fexceptions", "-frtti")
cppFlags(
"-D__STDC_FORMAT_MACROS",
"-DBYTE_ORDER=LITTLE_ENDIAN")
}
}
}

buildTypes {
release {
isMinifyEnabled = false
}
}
externalNativeBuild {
cmake {
path("src/cpp/CMakeLists.txt")
version = "3.22.1"
buildStagingDirectory = file("${buildDir}/bin")
}
}
}

dependencies {
//implementation("androidx.core:core-ktx:1.9.0")
//implementation(platform("org.jetbrains.kotlin:kotlin-bom:1.8.0"))
//implementation("androidx.appcompat:appcompat:1.6.1")
//implementation("com.google.android.material:material:1.10.0")
//testImplementation("junit:junit:4.13.2")
//androidTestImplementation("androidx.test.ext:junit:1.1.5")
//androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
}
1 change: 1 addition & 0 deletions engine/katago/src
Submodule src added at de465b
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include ':app'
include ':engine:katago'

0 comments on commit fb87c6e

Please sign in to comment.