think it's an Eclipse IDE (ant
) project ...
you'd need to import it to Android Studio (gradle
), first.
managed to build the Android.mk
with ndkBuild
, after importing the project.
the build.gradle
looks alike:
apply plugin: 'com.android.application'
android {
defaultConfig {
applicationId "org.jfedor.frozenbubble"
minSdkVersion 22
targetSdkVersion 26
compileSdkVersion 26
ndk {
moduleName "modplug-1.0"
}
}
externalNativeBuild {
ndkBuild {
path "src/main/cpp/Android.mk"
}
}
sourceSets {
main {
jni.srcDirs = ["src/main/cpp"]
}
}
buildTypes {
debug {
minifyEnabled false
}
release {
minifyEnabled false
}
}
}
that andmodplug_PlayerThread.h
needs to be dropped into the libmodplug
directory, where the other headers reside (the import does not copy it, because it's in a completely unexpected location). also renamed directory jni
to cpp
and assigned that path to the main sourceSet
.