Commit Graph

20 Commits

Author SHA1 Message Date
Tobiasz Laskowski
00edf47529 Add support for linking mbedtls on latest hxcpp
The latest hxcpp makes it easier to link against the internal mbedtls,
however we still need backwards compatibility.

https://github.com/HaxeFoundation/hxcpp/pull/1133
2025-02-10 09:24:47 -08:00
Tobiasz Laskowski
22fb016d95 Link against hxcpp's mbedtls in static builds
This avoids lime's mbedtls overwriting hxcpp's, which has caused issues
in the past.
2025-02-10 09:24:47 -08:00
Tobiasz Laskowski
d1db9e88af Fix static debug windows build 2025-02-10 08:59:02 -08:00
Tobiasz Laskowski
f5ccc3d2aa Add missing crypt32.lib for static windows build 2025-02-10 08:59:02 -08:00
Tobiasz Laskowski
a5844a42df Fix curl static linking on mac
This was overlooked in #1682
2024-07-12 12:28:59 +01:00
arm32x
162b5da2c3 Stop linking with liblinuxcompat.a
This library used to be provided by HXCPP, but it was removed in version
3.4.185. Fortunately, it doesn't seem to be necessary, so this commit
stops Lime from attempting to link with it.
2022-11-30 11:37:04 -05:00
arm32x
3c4ddbab17 Fix Main.cpp template for -static -debug builds
When building a Lime application in debug mode on Windows, the console
subsystem is used and Windows looks for a 'main' function. However, the
Main.cpp file used when linking statically always defines a 'WinMain'
function regardless of whether the application is being built in debug
mode.

This commit adds an additional check in the Main.cpp that defines a
'main' function instead of 'WinMain' when building in debug mode.
2022-05-04 13:10:13 -04:00
Joshua Granick
4bd853dfb1 Static build fix (resolve #1278) 2019-01-11 20:41:12 -08:00
Joshua Granick
81c633a64b Fix Windows static builds (resolve #1228) 2018-09-03 16:03:27 -07:00
Joshua Granick
e3aad88399 Static build fixes (resolve #1156) 2018-02-19 10:50:13 -08:00
Valentin Lemière
9fe3750653 Separate build types, use context variable in templates instead of hardcoding. Fix #353 2016-07-06 09:41:56 +02:00
Joshua Granick
3fdb423717 Fix Mac -static build 2015-07-06 13:25:45 -07:00
Joshua Granick
4deb21be8c Fix static build (thanks JeriX) 2015-05-07 13:16:36 -07:00
Joshua Granick
6a6d37f734 Use safe name for registering statics, use 'lime_legacy_' for legacy prims to avoid conflicting names 2015-04-07 12:03:16 -07:00
Joshua Granick
abc07eeff8 Fix static link order 2014-09-20 18:44:10 -07:00
Joshua Granick
c4ea28e044 Add support for -static flag, initially on Windows 2014-08-15 13:16:19 -07:00
Joshua Granick
1675043dd1 Add HXML files for 'final' build config 2014-05-22 15:38:04 -07:00
Joshua Granick
e175cfe154 Merge openfl-native templates 2014-02-13 09:41:09 -08:00
underscorediscovery
9099d89a67 Provisionally cleaning up older --macro calls from the build files.
It seems keep is a macro in newer versions of haxe, and is the preferred
way anyway. I can't manage to get the compiler to remove the Main file
no matter what, so removing it provisionally. It causes FD and probably
more to choke on the code complete step when it throws errors from the
--macro option.

This can be readded if keep is really needed, but it doesn't appear to
be (or if it's using the incorrect keep syntax then that could be
corrected).
2014-02-01 05:45:51 -03:30
underscorediscovery
ba35d41715 Updating templates path 2013-11-28 01:23:25 -03:30