I think I got the libpng android package working.

Note there is a bit of a dependency hack in Gems\Atom\Feature\Common\Code\CMakeLists.txt to work around a mysterious issue; I'll reach out to some experts for investigation.

Signed-off-by: santorac <55155825+santorac@users.noreply.github.com>
monroegm-disable-blank-issue-2
santorac 4 years ago
parent 860571f1e3
commit bcef5e4952

@ -83,6 +83,13 @@ ly_add_target(
Include
BUILD_DEPENDENCIES
PRIVATE
# For some reason zlib and libpng need to be declared here, otherwise libAtom_Feature_Common.so will fail to link
# when building for Android. These libraries are appropriately indicated in Atom/Utils's CCmakeLists.txt and those dependencies are
# supposed to be inherited here through the PUBLIC dependencies chaining ... but something is amiss. libpng and zlib were both
# appearing in the link command so it isn't clear why it was failing. Perhaps it was because libpng appeared before zlib
# in the link command? Somehow repeating them here works around this issue.
3rdParty::libpng
3rdParty::zlib
AZ::AzCore
AZ::AzFramework
Gem::Atom_Feature_Common.Static

@ -24,6 +24,7 @@ ly_add_target(
Gem::Atom_RHI.Public
PUBLIC
Gem::Atom_RHI.Reflect
3rdParty::zlib
3rdParty::libpng
)

@ -24,7 +24,7 @@ ly_associate_package(PACKAGE_NAME PhysX-4.1.2.29882248-rev3-android TARGETS Phy
ly_associate_package(PACKAGE_NAME mikkelsen-1.0.0.4-android TARGETS mikkelsen PACKAGE_HASH 075e8e4940884971063b5a9963014e2e517246fa269c07c7dc55b8cf2cd99705)
ly_associate_package(PACKAGE_NAME googletest-1.8.1-rev4-android TARGETS googletest PACKAGE_HASH 95671be75287a61c9533452835c3647e9c1b30f81b34b43bcb0ec1997cc23894)
ly_associate_package(PACKAGE_NAME googlebenchmark-1.5.0-rev2-android TARGETS GoogleBenchmark PACKAGE_HASH 20b46e572211a69d7d94ddad1c89ec37bb958711d6ad4025368ac89ea83078fb)
ly_associate_package(PACKAGE_NAME libpng-1.6.37-android TARGETS libpng PACKAGE_HASH d6adef1d1a90e0163ae2ab82dcc3f23f38b81438d0d8d4c6d219d600881e807e)
ly_associate_package(PACKAGE_NAME libpng-1.6.37-android TARGETS libpng PACKAGE_HASH 72be3859de38559ed45e4383bc480ad9cc1c080fea2c4d6dd3946c2fb22ad5bb)
ly_associate_package(PACKAGE_NAME libsamplerate-0.2.1-rev2-android TARGETS libsamplerate PACKAGE_HASH bf13662afe65d02bcfa16258a4caa9b875534978227d6f9f36c9cfa92b3fb12b)
ly_associate_package(PACKAGE_NAME OpenSSL-1.1.1b-rev1-android TARGETS OpenSSL PACKAGE_HASH 4036d4019d722f0e1b7a1621bf60b5a17ca6a65c9c78fd8701cee1131eec8480)
ly_associate_package(PACKAGE_NAME zlib-1.2.11-rev2-android TARGETS zlib PACKAGE_HASH 85b730b97176772538cfcacd6b6aaf4655fc2d368d134d6dd55e02f28f183826)

Loading…
Cancel
Save