diff --git a/src/hx/libs/ssl/mbedtls_config.h b/project/thirdparty/config/mbedtls/include/mbedtls_config.h
similarity index 100%
rename from src/hx/libs/ssl/mbedtls_config.h
rename to project/thirdparty/config/mbedtls/include/mbedtls_config.h
diff --git a/src/hx/libs/ssl/threading_alt.h b/project/thirdparty/config/mbedtls/include/threading_alt.h
similarity index 100%
rename from src/hx/libs/ssl/threading_alt.h
rename to project/thirdparty/config/mbedtls/include/threading_alt.h
diff --git a/project/thirdparty/mbedtls-files.xml b/project/thirdparty/mbedtls-files.xml
new file mode 100644
index 000000000..2c092ed5b
--- /dev/null
+++ b/project/thirdparty/mbedtls-files.xml
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/project/thirdparty/mbedtls-flags.xml b/project/thirdparty/mbedtls-flags.xml
new file mode 100644
index 000000000..aa2905c22
--- /dev/null
+++ b/project/thirdparty/mbedtls-flags.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/hx/libs/ssl/Build.xml b/src/hx/libs/ssl/Build.xml
index ae7977d10..2240f564a 100644
--- a/src/hx/libs/ssl/Build.xml
+++ b/src/hx/libs/ssl/Build.xml
@@ -2,124 +2,14 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
+
+