build: Merge ilmbase and openexr build features.

Also only declare dependencies on OpenEXR libraries,
and let the ilmbase ones (which are now in the same package anyway)
get pulled in implicitly.
This commit is contained in:
Augustin Cavalier
2020-04-19 17:59:57 -04:00
parent b8aadcd2df
commit 14af814156
9 changed files with 10 additions and 71 deletions
+3 -21
View File
@@ -551,8 +551,7 @@ if [ IsPackageAvailable tiff4_devel ] {
# openexr
if [ IsPackageAvailable openexr_devel ]
&& [ IsPackageAvailable ilmbase_devel ] {
if [ IsPackageAvailable openexr_devel ] {
ExtractBuildFeatureArchives openexr :
file: base openexr
runtime: lib
@@ -561,23 +560,6 @@ if [ IsPackageAvailable openexr_devel ]
libraries:
$(developLibDir)/libIlmImf.so
$(developLibDir)/libIlmImfUtil.so
headers: $(developHeadersDir) $(developHeadersDir)/OpenEXR
;
EnableBuildFeatures openexr ;
} else {
unavailableBuildFeatures += openexr ;
}
# ilmbase
if [ IsPackageAvailable ilmbase_devel ] {
ExtractBuildFeatureArchives ilmbase :
file: base ilmbase
runtime: lib
file: devel ilmbase_devel
depends: base
libraries:
$(developLibDir)/libHalf.so
$(developLibDir)/libIex.so
$(developLibDir)/libIexMath.so
@@ -586,9 +568,9 @@ if [ IsPackageAvailable ilmbase_devel ] {
headers: $(developHeadersDir) $(developHeadersDir)/OpenEXR
;
EnableBuildFeatures ilmbase ;
EnableBuildFeatures openexr ;
} else {
unavailableBuildFeatures += ilmbase ;
unavailableBuildFeatures += openexr ;
}
+1 -1
View File
@@ -124,7 +124,7 @@ SYSTEM_ADD_ONS_ACCELERANTS += [ FFilterByBuildFeatures
SYSTEM_ADD_ONS_TRANSLATORS += [ FFilterByBuildFeatures
BMPTranslator
EXRTranslator@ilmbase,openexr
EXRTranslator@openexr
GIFTranslator
HVIFTranslator
ICOTranslator ICNSTranslator@libicns