Include header files in Android Artifacts (#896)

This commit is contained in:
Tom M 2021-05-26 18:26:40 +02:00 committed by GitHub
parent 148cec6c03
commit 17fb48def5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -601,11 +601,16 @@ jobs:
- script: | - script: |
set -ex set -ex
mkdir -p $(Build.ArtifactStagingDirectory)/$(ARCH) # use ANDROID_ABI_CMAKE so libs can be simply copied to the archive contents in src/main/jniLibs
cd $(Build.ArtifactStagingDirectory)/$(ARCH) mkdir -p $(Build.ArtifactStagingDirectory)/lib/$(ANDROID_ABI_CMAKE)
cp -a $(PREFIX)/lib/* . cd $(Build.ArtifactStagingDirectory)/lib/$(ANDROID_ABI_CMAKE)
cp -LR $(PREFIX)/lib/* .
ls -Rg . ls -Rg .
rm -rf *.dll *.alias gettext/ libtextstyle.* *.a *.la rm -rf *.dll *.alias gettext/ libtextstyle.* *.a *.la
rm -f *.so.*
mkdir -p $(Build.ArtifactStagingDirectory)/include
cd $(Build.ArtifactStagingDirectory)/include
cp -a $(PREFIX)/include/fluidsynth* .
displayName: 'Collecting artifacts' displayName: 'Collecting artifacts'
- script: | - script: |
@ -634,7 +639,7 @@ jobs:
workingDirectory: '$(PREFIX)/lib' workingDirectory: '$(PREFIX)/lib'
- task: PublishBuildArtifacts@1 - task: PublishBuildArtifacts@1
displayName: 'Publishing Artefacts for Android API$(ANDROID_API) $(ARCH)' displayName: 'Publishing Artefacts for Android API$(ANDROID_API) $(ANDROID_ABI_CMAKE)'
inputs: inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)' PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: '$(ARTIFACT_NAME)' ArtifactName: '$(ARTIFACT_NAME)'