Skip to content

Commit

Permalink
Update osx build
Browse files Browse the repository at this point in the history
  • Loading branch information
raub committed Jun 1, 2024
1 parent e58a46d commit c143108
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions src/darwin-arm64.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
(
cd src
(
cd FreeImage

export DYLIB_INSTALL_NAME_BASE=@rpath
make -f Makefile.osx \
CPP_X86_64='g++ -w' \
CC_X86_64='gcc -w' \
COMPILERFLAGS_X86_64='-arch arm64 -D__ANSI__ -DDISABLE_PERF_MEASUREMENT' \
LIBRARIES_X86_64='-flat_namespace -install_name "@rpath/freeimage.dylib" -Wl,-syslibroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk' \
INCLUDE_X86_64='-isysroot /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk' \
libfreeimage-3.18.0.dylib-arm \
>/dev/null
)

mv FreeImage/libfreeimage-3.18.0.dylib-arm build/freeimage.dylib
)
4 changes: 2 additions & 2 deletions src/osx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
CPP_X86_64='g++ -w' \
CC_X86_64='gcc -w' \
COMPILERFLAGS_X86_64='-arch x86_64 -D__ANSI__ -DDISABLE_PERF_MEASUREMENT' \
LIBRARIES_X86_64='-flat_namespace -install_name "@rpath/freeimage.dylib" -Wl,-syslibroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' \
INCLUDE_X86_64='-isysroot /Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk' \
LIBRARIES_X86_64='-flat_namespace -install_name "@rpath/freeimage.dylib" -Wl,-syslibroot /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk' \
INCLUDE_X86_64='-isysroot /Applications/Xcode_14.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk' \
libfreeimage-3.18.0.dylib-x86_64 \
>/dev/null

Expand Down

0 comments on commit c143108

Please sign in to comment.