Link static hxcpp_mbedtls library for ios/tvos

This commit is contained in:
Tobiasz Laskowski
2025-01-22 16:36:50 +00:00
committed by Josh Tynjala
parent 1b5958f6ff
commit 6bfbe12df3
6 changed files with 36 additions and 0 deletions

View File

@@ -396,6 +396,7 @@
"\"$(SRCROOT)/::APP_FILE::/lib/x86_64\"",
);
OTHER_LDFLAGS = (
"-lmbedtls_hxcpp",
::foreach ndlls:: "-l::name::",
::end::
::foreach linkedLibraries:: "-l::__current__::",
@@ -448,6 +449,7 @@
"\"$(SRCROOT)/::APP_FILE::/lib/x86_64\"",
);
OTHER_LDFLAGS = (
"-lmbedtls_hxcpp",
::foreach ndlls:: "-l::name::",
::end::
::foreach linkedLibraries:: "-l::__current__::",

View File

@@ -0,0 +1,12 @@
<xml>
<include name="${HXCPP}/build-tool/BuildCommon.xml" />
<include name="${HXCPP}/src/hx/libs/ssl/Build.xml" />
<target id="default" output="libmbedtls_hxcpp${DBG}" tool="linker" toolid="static_link">
<files id="hxcpp_ssl" />
</target>
</xml>

View File

@@ -24,6 +24,7 @@ endif
CONFIG := $(CONFIG)-$(HAXE_OS)
LIB_DEST := $(DEBUG)/libApplicationMain.a
LIB_MBEDTLS_DEST := $(DEBUG)/libmbedtls_hxcpp.a
SIMULATOR_ARCH = i386 x86_64
@@ -57,6 +58,9 @@ $(HAXE_BUILDS): build-haxe-%:
haxelib run ::CPP_BUILD_LIBRARY:: Build.xml haxe -Ddestination=$(CURDIR)/../lib/$*$(LIB_DEST) \
-options Options.txt $(DEBUG)
touch ../Classes/Main.mm
cd build/$(CONFIG)$(SUFFIX_$*); ::HAXELIB_PATH:: export HXCPP_NO_COLOR=1; \
haxelib run ::CPP_BUILD_LIBRARY:: $(CURDIR)/BuildHxcppMbedtls.xml \
-Ddestination=$(CURDIR)/../lib/$*$(LIB_MBEDTLS_DEST) -options Options.txt $(DEBUG)
clean:
rm -rf build

View File

@@ -335,6 +335,7 @@
"\"$(SRCROOT)/::APP_FILE::/lib/x86_64\"",
);
OTHER_LDFLAGS = (
"-lmbedtls_hxcpp",
::foreach ndlls:: "-l::name::",
::end::
::foreach linkedLibraries:: "-l::__current__::",
@@ -383,6 +384,7 @@
"\"$(SRCROOT)/::APP_FILE::/lib/x86_64\"",
);
OTHER_LDFLAGS = (
"-lmbedtls_hxcpp",
::foreach ndlls:: "-l::name::",
::end::
::foreach linkedLibraries:: "-l::__current__::",

View File

@@ -0,0 +1,12 @@
<xml>
<include name="${HXCPP}/build-tool/BuildCommon.xml" />
<include name="${HXCPP}/src/hx/libs/ssl/Build.xml" />
<target id="default" output="libmbedtls_hxcpp${DBG}" tool="linker" toolid="static_link">
<files id="hxcpp_ssl" />
</target>
</xml>

View File

@@ -24,6 +24,7 @@ endif
CONFIG := $(CONFIG)-$(HAXE_OS)
LIB_DEST := $(DEBUG)/libApplicationMain.a
LIB_MBEDTLS_DEST := $(DEBUG)/libmbedtls_hxcpp.a
SIMULATOR_ARCH = x86_64
@@ -51,6 +52,9 @@ $(HAXE_BUILDS): build-haxe-%:
haxelib run ::CPP_BUILD_LIBRARY:: Build.xml haxe -Ddestination=$(CURDIR)/../lib/$*$(LIB_DEST) \
-options Options.txt $(DEBUG)
touch ../Classes/Main.mm
cd build/$(CONFIG)$(SUFFIX_$*); ::HAXELIB_PATH:: export HXCPP_NO_COLOR=1; \
haxelib run ::CPP_BUILD_LIBRARY:: $(CURDIR)/BuildHxcppMbedtls.xml \
-Ddestination=$(CURDIR)/../lib/$*$(LIB_MBEDTLS_DEST) -options Options.txt $(DEBUG)
clean:
rm -rf build