Skip to content

Commit

Permalink
Some fixes for localtoolkit on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugh Sanderson committed Oct 10, 2024
1 parent 7d62983 commit 37709a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions project/toolkit/jpeg/files.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<set name="NME_JPEG" value="${this_dir}/libjpeg-turbo/" />
<echo value="${INCLUDE}/" />

<!-- nasm on mac x64 generate a whole lot of warning messages. Nice just to skip it? -->
<set name="JPEG_SUPPRESS_SIMD" value="1" if="macos HXCPP_M64 NME_STATIC_LINK" unless="NME_NOISY_SIMD" />


<files id="native-toolkit-jpeg-depends" >
<depend name="${NME_JPEG}/jpeglib.h"/>
Expand All @@ -27,7 +30,7 @@
<depend files="native-toolkit-jpeg-depends-int"/>
<compilerflag value="-I${NME_JPEG}" />
<compilerflag value="-I${NME_JPEG}/.." />
<compilerflag value="-DWITH_SIMD=1" if="NME_SIMD_D16" />
<compilerflag value="-DWITH_SIMD=1" if="NME_SIMD_D16" unless="JPEG_SUPPRESS_SIMD" />
<objprefix value="s16_" />
<file name="${NME_JPEG}jcapistd.c" />
<file name="${NME_JPEG}jccolor.c" />
Expand All @@ -50,7 +53,7 @@
<files id="native-toolkit-jpeg-12" tags="">
<tag value="${NATIVE_TOOLKIT_OPTIM_TAG}" if="NATIVE_TOOLKIT_OPTIM_TAG" />

<compilerflag value="-DWITH_SIMD=1" if="NME_SIMD_D_12" />
<compilerflag value="-DWITH_SIMD=1" if="NME_SIMD_D_12" unless="JPEG_SUPPRESS_SIMD" />
<compilerflag value="-DBITS_IN_JSAMPLE=12" />
<depend files="native-toolkit-jpeg-depends-int"/>
<compilerflag value="-I${NME_JPEG}" />
Expand Down Expand Up @@ -91,11 +94,9 @@


<files id="native-toolkit-jpeg-8" tags="">
<cache value="1" />

<tag value="${NATIVE_TOOLKIT_OPTIM_TAG}" if="NATIVE_TOOLKIT_OPTIM_TAG" />

<compilerflag value="-DWITH_SIMD=1" if="NME_SIMD_D" />
<compilerflag value="-DWITH_SIMD=1" if="NME_SIMD_D" unless="JPEG_SUPPRESS_SIMD" />
<depend files="native-toolkit-jpeg-depends-int"/>
<compilerflag value="-I${NME_JPEG}" />
<compilerflag value="-I${NME_JPEG}/.." />
Expand Down Expand Up @@ -200,13 +201,13 @@
<file name="${NME_JPEG}/simd/arm/aarch32/jchuff-neon.c" />
</section>
</section>
<section if="NME_SIMD_X86_64" >
<section if="NME_SIMD_X86_64" unless="JPEG_SUPPRESS_SIMD" >
<file name="${NME_JPEG}/simd/x86_64/jsimd.c" />
</section>
</files>

<files id="native-toolkit-jpeg-asm" >
<section if="NME_SIMD_X86_64" >
<section if="NME_SIMD_X86_64" unless="JPEG_SUPPRESS_SIMD" >
<assembler name="nasm" />
<compilerflag value="-D__x86_64__" />
<section if="windows" >
Expand Down
2 changes: 1 addition & 1 deletion project/toolkit/sdl/files.xml
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@
<file name="${NME_LIBSDL}src/audio/coreaudio/SDL_coreaudio.m" />
<file name="${NME_LIBSDL}src/haptic/darwin/SDL_syshaptic.c" />
<file name="${NME_LIBSDL}src/joystick/darwin/SDL_iokitjoystick.c" />
<file name="${NME_LIBSDL}src/hidapi/mac/hid.c" />
<file name="${NME_LIBSDL}src/filesystem/cocoa/SDL_sysfilesystem.m" />
<file name="${NME_LIBSDL}src/video/cocoa/SDL_cocoaclipboard.m" />
<file name="${NME_LIBSDL}src/video/cocoa/SDL_cocoaevents.m" />
Expand All @@ -565,6 +564,7 @@
<file name="${NME_LIBSDL}src/misc/macos/SDL_sysurl.m" />
<file name="${NME_LIBSDL}src/power/macos/SDL_syspower.c" />
<file name="${NME_LIBSDL}src/camera/coremedia/SDL_camera_coremedia.m" />

</section>

<section if="ios || tvos">
Expand Down

0 comments on commit 37709a6

Please sign in to comment.