Skip to content

Commit 92ceaa4

Browse files
committed
Merge remote-tracking branch 'develop' into 8.4.0-dev
2 parents f82872a + 6d66a82 commit 92ceaa4

File tree

14 files changed

+61
-47
lines changed

14 files changed

+61
-47
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,19 @@ jobs:
274274
lime create SimpleAudio -verbose -nocolor
275275
lime build SimpleAudio windows -release -verbose -nocolor
276276
277+
- name: Rebuild Lime (Windows, Mingw)
278+
run: |
279+
rm ndll/Windows64/*
280+
lime rebuild windows -Dmingw -D MINGW_ROOT=C:\mingw64 -64 -clean -release -nocolor -verbose -nocffi
281+
282+
- uses: actions/upload-artifact@v4
283+
with:
284+
name: Windows64-MinGW-NDLL
285+
path: |
286+
ndll/Windows64/
287+
!**/.gitignore
288+
if-no-files-found: error
289+
277290
android:
278291
runs-on: ubuntu-22.04
279292
strategy:

project/Build.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,11 +447,14 @@
447447
<lib name="comdlg32.lib" />
448448
<lib name="setupapi.lib" />
449449

450+
<lib name="bcrypt.lib" if="LIME_CURL" />
451+
450452
<lib name="usp10.lib" if="LIME_HARFBUZZ" />
451453
<lib name="rpcrt4.lib" if="LIME_HARFBUZZ" />
452454
<lib name="dwrite.lib" if="LIME_HARFBUZZ" />
453455

454-
<lib name="comsuppw.lib" unless="winrt" />
456+
<lib name="comsuppw.lib" unless="winrt || mingw" />
457+
<lib name="wbemuuid.lib" />
455458

456459
<lib name="D3D11.lib" if="winrt" />
457460
<lib name="RuntimeObject.lib" if="winrt" />

project/include/system/System.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ namespace lime {
9090
}
9191

9292

93-
#ifndef HX_WINDOWS
93+
#if !defined(HX_WINDOWS) || defined(__MINGW32__)
9494
#include <stdint.h>
9595
#else
9696

project/lib/custom/cairo/configs/windows/config.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@
4444
// #define CAIRO_HAS_DLSYM 1
4545

4646

47+
#ifdef __MINGW32__
4748
// #define HAVE_BYTESWAP_H 1
4849
// #define HAVE_INTTYPES_H 1
49-
// #define HAVE_STDINT_H 1
50+
#define HAVE_STDINT_H 1
5051
// #define HAVE_SYS_INT_TYPES_H 1
5152
// #define HAVE_UNISTD_H 1
5253
// #define HAVE_UINT128_T 1
53-
// #define HAVE_UINT64_T 1
54+
#define HAVE_UINT64_T 1
55+
#endif
5456

5557

5658
// #define HAVE_INTEL_ATOMIC_PRIMITIVES 1

project/lib/custom/openal/include/config-windows-x86.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212

1313
#include <math.h>
1414

15-
#ifndef isfinite
16-
#include <float.h>
17-
#define isfinite _finite
18-
#endif
19-
2015
/* Define a restrict macro for non-aliased pointers */
2116
#define RESTRICT __restrict
2217

project/lib/harfbuzz-files.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
<compilerflag value="-DHAVE_UNISCRIBE" if="windows" />
1717
<compilerflag value="-DHAVE_DIRECTWRITE" if="windows HXCPP_M64" /> <!-- Windows 7+ -->
18-
<compilerflag value="-wd4244" if="windows" />
19-
<compilerflag value="-wd4267" if="windows" />
20-
<compilerflag value="-D_CRT_SECURE_NO_WARNINGS" if="windows" />
21-
<compilerflag value="-D_CRT_NONSTDC_NO_WARNINGS" if="windows" />
18+
<compilerflag value="-wd4244" if="isMsvc" />
19+
<compilerflag value="-wd4267" if="isMsvc" />
20+
<compilerflag value="-D_CRT_SECURE_NO_WARNINGS" if="isMsvc" />
21+
<compilerflag value="-D_CRT_NONSTDC_NO_WARNINGS" if="isMsvc" />
2222

2323
<compilerflag value="-DHAVE_CORETEXT" if="mac || ios" />
2424
<compilerflag value="-Wno-undefined-bool-conversion" if="mac" />

project/lib/openal-files.xml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@
8181
<file name="${NATIVE_TOOLKIT_PATH}/openal/common/strutils.cpp" />
8282
<file name="${NATIVE_TOOLKIT_PATH}/openal/common/threads.cpp" />
8383

84+
<compilerflag value="-mmmx" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
85+
<compilerflag value="-msse" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
86+
<compilerflag value="-msse2" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
87+
<compilerflag value="-msse3" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
88+
<compilerflag value="-mssse3" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
89+
8490
<section if="NATIVE_TOOLKIT_HAVE_SDL">
8591

8692
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/custom/sdl/include/" />
@@ -100,11 +106,6 @@
100106

101107
<compilerflag value="-D_POSIX_C_SOURCE=200112L" />
102108
<compilerflag value="-D_XOPEN_SOURCE=500" />
103-
<compilerflag value="-mmmx" unless="rpi" />
104-
<compilerflag value="-msse" unless="rpi" />
105-
<compilerflag value="-msse2" unless="rpi" />
106-
<compilerflag value="-msse3" unless="rpi" />
107-
<compilerflag value="-mssse3" unless="rpi" />
108109
<compilerflag value="-mfpu=neon" if="rpi" unless="HXCPP_ARM64" />
109110
<compilerflag value="-fcommon" />
110111

@@ -118,12 +119,6 @@
118119

119120
<file name="${NATIVE_TOOLKIT_PATH}/openal/alc/backends/coreaudio.cpp" />
120121

121-
<compilerflag value="-mmmx" unless="HXCPP_ARM64" />
122-
<compilerflag value="-msse" unless="HXCPP_ARM64" />
123-
<compilerflag value="-msse2" unless="HXCPP_ARM64" />
124-
<compilerflag value="-msse3" unless="HXCPP_ARM64" />
125-
<compilerflag value="-mssse3" unless="HXCPP_ARM64" />
126-
127122
</section>
128123

129124
<section if="windows">
@@ -138,9 +133,9 @@
138133
<compilerflag value="-D_WIN32" />
139134
<compilerflag value="-D_WIN32_WINNT=0x0502" />
140135
<compilerflag value="-Drestrict=" />
141-
<compilerflag value="-D_CRT_SECURE_NO_WARNINGS" />
142-
<compilerflag value="-D_CRT_NONSTDC_NO_DEPRECATE" />
143-
<compilerflag value="/wd4098" />
136+
<compilerflag value="-D_CRT_SECURE_NO_WARNINGS" if="isMsvc" />
137+
<compilerflag value="-D_CRT_NONSTDC_NO_DEPRECATE" if="isMsvc" />
138+
<compilerflag value="-wd4098" if="isMsvc" />
144139
<compilerflag value="-Dstrcasecmp=_stricmp" />
145140
<compilerflag value="-Dstrncasecmp=_strnicmp" />
146141

project/lib/pixman-files.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77

88
<files id="native-toolkit-pixman">
99

10-
<compilerflag value="-fno-integrated-as" if="HXCPP_CLANG || NDKV20+" unless="mac || ios || NDKV22+" />
10+
<section if="PIXMAN_ARM_NEON HXCPP_CLANG || PIXMAN_ARM_NEON NDKV20+">
11+
<compilerflag value="-fno-integrated-as" />
12+
<compilerflag value="-march=armv7-a" if="HXCPP_ARMV7" />
13+
</section>
1114

1215
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/custom/pixman" />
1316
<compilerflag value="-I${NATIVE_TOOLKIT_PATH}/custom/pixman/pixman" />
@@ -23,11 +26,11 @@
2326

2427
<compilerflag value="-I${ANDROID_NDK_ROOT}/sources/android/cpufeatures" if="android" />
2528

26-
<compilerflag value="-mmmx" if="linux || mac" unless="rpi || HXCPP_ARM64" />
27-
<compilerflag value="-msse" if="linux || mac" unless="rpi || HXCPP_ARM64" />
28-
<compilerflag value="-msse2" if="linux || mac" unless="rpi || HXCPP_ARM64" />
29-
<compilerflag value="-msse3" if="linux || mac" unless="rpi || HXCPP_ARM64" />
30-
<compilerflag value="-mssse3" if="linux || mac" unless="rpi || HXCPP_ARM64" />
29+
<compilerflag value="-mmmx" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
30+
<compilerflag value="-msse" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
31+
<compilerflag value="-msse2" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
32+
<compilerflag value="-msse3" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
33+
<compilerflag value="-mssse3" if="linux || mac || mingw" unless="rpi || HXCPP_ARM64" />
3134

3235
<compilerflag value="-Wno-attributes" if="android" />
3336
<compilerflag value="-Wno-tautological-constant-out-of-range-compare" if="mac || ios || tvos" />

project/src/backend/sdl/SDLWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
#ifdef HX_WINDOWS
88
#include <SDL_syswm.h>
9-
#include <Windows.h>
9+
#include <windows.h>
1010
#undef CreateWindow
1111
#endif
1212

project/src/graphics/opengl/OpenGL.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
//#define LIME_GLES3_API
7777
#include <windows.h>
7878
#ifndef NATIVE_TOOLKIT_SDL_ANGLE
79-
#include <gl/GL.h>
79+
#include <GL/gl.h>
8080
#endif
8181

8282
// typedef ptrdiff_t GLsizeiptrARB;

0 commit comments

Comments
 (0)