File tree Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -181,14 +181,14 @@ linux64: CFLAGS += -fPIC
181
181
linux64 : build/linux_x86_64/liblua_pluginscript.so
182
182
183
183
windows32 : build/windows_x86/lua_pluginscript.dll
184
- cross -windows32 : CROSS = i686-w64-mingw32-
185
- cross -windows32 : MAKE_LUAJIT_ARGS += HOST_CC="$(CC ) -m32" CROSS="i686-w64-mingw32- " LDFLAGS=-static-libgcc
186
- cross -windows32 : windows32
184
+ mingw -windows32 : CROSS = i686-w64-mingw32-
185
+ mingw -windows32 : MAKE_LUAJIT_ARGS += HOST_CC="$(CC ) -m32" CROSS="$( CROSS ) " LDFLAGS=-static-libgcc
186
+ mingw -windows32 : windows32
187
187
188
188
windows64 : build/windows_x86_64/lua_pluginscript.dll
189
- cross -windows64 : CROSS = x86_64-w64-mingw32-
190
- cross -windows64 : MAKE_LUAJIT_ARGS += HOST_CC="$(CC ) " CROSS="x86_64-w64-mingw32- " LDFLAGS=-static-libgcc
191
- cross -windows64 : windows64
189
+ mingw -windows64 : CROSS = x86_64-w64-mingw32-
190
+ mingw -windows64 : MAKE_LUAJIT_ARGS += HOST_CC="$(CC ) " CROSS="$( CROSS ) " LDFLAGS=-static-libgcc
191
+ mingw -windows64 : windows64
192
192
193
193
osx-x86_64 : build/osx_x86_64/lua_pluginscript.dylib
194
194
osx-arm64 : build/osx_arm64/lua_pluginscript.dylib
Original file line number Diff line number Diff line change @@ -238,6 +238,12 @@ make linux64 # x86_64
238
238
make linux32 # x86
239
239
make osx64 \ # "universal" multiarch x86_64 + amd64 dylib
240
240
MACOSX_DEPLOYMENT_TARGET=XX.YY
241
+
242
+ # Cross-compiling for Windows using MinGW
243
+ make mingw-windows64 # x86_64
244
+ make mingw-windows32 # x86
245
+
246
+ # Cross-compiling for Android using NDK
241
247
make android-armv7a \ # Android ARMv7
242
248
NDK_TOOLCHAIN_BIN=/path/to/ndk/toolchains/llvm/prebuild/host_os-arch/bin
243
249
make android-aarch64 \ # Android ARM64
@@ -246,12 +252,20 @@ make android-x86 \ # Android x86
246
252
NDK_TOOLCHAIN_BIN=/path/to/ndk/toolchains/llvm/prebuild/host_os-arch/bin
247
253
make android-x86_64 \ # Android x86_64
248
254
NDK_TOOLCHAIN_BIN=/path/to/ndk/toolchains/llvm/prebuild/host_os-arch/bin
255
+
256
+ # If you plan in using the export plugin, this is also required
257
+ make plugin
249
258
```
250
259
251
260
The GDNativeLibrary file ` lua_pluginscript.gdnlib ` is already configured to use
252
261
the built files stored in the ` build ` folder, so that one can use this
253
- repository directly inside a Godot project under the folder
254
- ` addons/godot-lua-pluginscript ` .
262
+ repository directly inside a Godot project under the folder ` addons/godot-lua-pluginscript ` .
263
+
264
+ After building the desired libraries, a distribution zip can be built with:
265
+
266
+ ``` sh
267
+ make dist
268
+ ```
255
269
256
270
257
271
## Third-party software
You can’t perform that action at this time.
0 commit comments