realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.45k stars 1.75k forks source link

Add dependencies between native build tasks and Java header generation #7729

Closed rorbech closed 2 years ago

rorbech commented 2 years ago

The native build task has a dependency for each abi, so we need to add a dependency to the Java header generating task for each of the native build tasks.

rorbech commented 2 years ago

Just to shed some light on what this changes means ... this is the dump of the pairs of externalNativeBuildDependency and compile${variant.name.capitalize()}JavaWithJavac for the various variants.

buildCMakeDebug[armeabi-v7a][realm-jni] compileBaseDebugJavaWithJavac
buildCMakeDebug[arm64-v8a][realm-jni] compileBaseDebugJavaWithJavac
buildCMakeDebug[x86_64][realm-jni] compileBaseDebugJavaWithJavac
buildCMakeDebug[x86][realm-jni] compileBaseDebugJavaWithJavac
buildCMakeDebug[armeabi-v7a][realm-jni]-2 compileObjectServerDebugJavaWithJavac
buildCMakeDebug[x86][realm-jni]-2 compileObjectServerDebugJavaWithJavac
buildCMakeDebug[arm64-v8a][realm-jni]-2 compileObjectServerDebugJavaWithJavac
buildCMakeDebug[x86_64][realm-jni]-2 compileObjectServerDebugJavaWithJavac
buildCMakeRelWithDebInfo[x86][realm-jni] compileBaseReleaseJavaWithJavac
buildCMakeRelWithDebInfo[x86_64][realm-jni] compileBaseReleaseJavaWithJavac
buildCMakeRelWithDebInfo[arm64-v8a][realm-jni] compileBaseReleaseJavaWithJavac
buildCMakeRelWithDebInfo[armeabi-v7a][realm-jni] compileBaseReleaseJavaWithJavac
buildCMakeRelWithDebInfo[x86][realm-jni]-2 compileObjectServerReleaseJavaWithJavac
buildCMakeRelWithDebInfo[x86_64][realm-jni]-2 compileObjectServerReleaseJavaWithJavac
buildCMakeRelWithDebInfo[arm64-v8a][realm-jni]-2 compileObjectServerReleaseJavaWithJavac
buildCMakeRelWithDebInfo[armeabi-v7a][realm-jni]-2 compileObjectServerReleaseJavaWithJavac