-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove suffix from framework names #466
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Treata11 <[email protected]>
Replaced `TBB_USE_APPLE_FRAMEWORKS` with `IMATH_BUILD_APPLE_FRAMEWORKS`. Signed-off-by: Treata <[email protected]>
Signed-off-by: Treata11 <[email protected]>
Signed-off-by: Treata11 <[email protected]>
Signed-off-by: Treata11 <[email protected]>
Signed-off-by: Treata11 <[email protected]>
Signed-off-by: Treata11 <[email protected]>
I may have explained it poorly, but for the regular non-iOS build, we want the version suffixes to be present. I would expect symlinks like this: libImath-3_2.30.3.2.0.dylib - the shared library I tried building your branch, and I'm getting The CMake lines that construct these links are [here] in LibraryDefine.cmake. (https://github.com/Treata11/Imath/blob/a837d089dfb7010e09c51bb3a403a6f1415bbfcb/config/LibraryDefine.cmake#L117) I'm not familiar enough with the cmake framework stuff to be much help there, unfortunately. Again, it's not entirely clear to me that the soname-versioned .dylib libraries are a useful feature on iOS, but I we shouldn't make the iOS build inconsistent unless that's clearly the right thing to do. |
@cary-ilm, You're explanation was good, I misunderstood it
By omitting all of the The Frameworks include an We can either make the suffixes conditional for all builds except for Apple frameworks or Leave it as is in every build, as initially intended. In the previous PR, I mistakenly had the names overwritten: https://github.com/AcademySoftwareFoundation/Imath/pull/461/files#r1923205724 |
If the naming convention isn't common practice in this context, I'm fine not supporting it. I tried building your branch again just now, and I'm getting lib/libImath.dylib as a broken symlink to libImath-3_2.dylib. Are you getting the same thing? |
I'll adjust the code.
Yes, when I build it with |
Signed-off-by: Treata11 <[email protected]>
Signed-off-by: Treata11 <[email protected]>
I made the version-suffixes conditional for Apple platforms and removed the Also set |
Thanks I built again and the broken symlink is gone. I guessing about other requirements here since I have no experience with iOS, but is pkgconfig relevant? Should it be disabled (via IMATH_INSTALL_PKG_CONFIG=OFF)? Also, I notice that
Should that go in |
The generated frameworks should be sufficient for iOS builds.
I don't think that it will interfere with anything... But if it's absolutely necessary, I can exclude |
I have updated the output name of the generated frameworks to remove the version-number suffixes, as discussed here