@@ -107,7 +107,7 @@ task CopyNodeProjectAssetsFolder (type:Sync) {
107
107
task GenerateNodeProjectAssetsLists {
108
108
dependsOn " CopyNodeProjectAssetsFolder"
109
109
description " Generates a list for runtime copying"
110
- inputs. file " ${ rootProject.buildDir} /nodejs-assets/"
110
+ inputs. dir " ${ rootProject.buildDir} /nodejs-assets/"
111
111
outputs. file " ${ rootProject.buildDir} /nodejs-assets/file.list"
112
112
outputs. file " ${ rootProject.buildDir} /nodejs-assets/dir.list"
113
113
doLast{
@@ -342,15 +342,15 @@ if ("1".equals(shouldRebuildNativeModules)) {
342
342
description = " Building a native toolchain to compile nodejs-mobile native modules for ${ abi_name} ."
343
343
executable = " ${ ndk_bundle_path} /build/tools/make-standalone-toolchain.sh"
344
344
args " --toolchain=${ temp_toolchain_name} -${ temp_cc_ver} " , " --arch=${ temp_arch} " , " --install-dir=${ standalone_toolchain} " , " --stl=libc++" , " --force" , " --platform=android-${ _compileNativeModulesSdkVersion} "
345
- outputs. file " ${ standalone_toolchain} "
345
+ outputs. dir " ${ standalone_toolchain} "
346
346
}
347
347
348
348
task " BuildNpmModules${ abi_name} " (type :Exec ) {
349
349
dependsOn " CopyNodeProjectAssets${ abi_name} "
350
350
dependsOn " MakeToolchain${ abi_name} "
351
351
description = " Building native modules for ${ abi_name} ."
352
352
inputs. file " ${ rootProject.buildDir} /nodejs-native-assets-temp-build/nodejs-native-assets-${ abi_name} /copy.timestamp"
353
- outputs. file " ${ rootProject.buildDir} /nodejs-native-assets-temp-build/nodejs-native-assets-${ abi_name} /nodejs-project/"
353
+ outputs. dir " ${ rootProject.buildDir} /nodejs-native-assets-temp-build/nodejs-native-assets-${ abi_name} /nodejs-project/"
354
354
workingDir " ${ rootProject.buildDir} /nodejs-native-assets-temp-build/nodejs-native-assets-${ abi_name} /nodejs-project/"
355
355
commandLine npmCommandName, ' --verbose' , ' rebuild' , ' --build-from-source'
356
356
environment (' npm_config_node_engine' , ' v8' )
@@ -393,7 +393,7 @@ if ("1".equals(shouldRebuildNativeModules)) {
393
393
task " GenerateNodeNativeAssetsLists${ abi_name} " {
394
394
dependsOn " CopyBuiltNpmAssets${ abi_name} "
395
395
description " Generates a list for runtime copying"
396
- inputs. file " ${ rootProject.buildDir} /nodejs-native-assets/nodejs-native-assets-${ abi_name} /"
396
+ inputs. dir " ${ rootProject.buildDir} /nodejs-native-assets/nodejs-native-assets-${ abi_name} /"
397
397
outputs. file " ${ rootProject.buildDir} /nodejs-native-assets/nodejs-native-assets-${ abi_name} /file.list"
398
398
outputs. file " ${ rootProject.buildDir} /nodejs-native-assets/nodejs-native-assets-${ abi_name} /dir.list"
399
399
doLast{
0 commit comments