# What is the proper way to build target-specific libraries using HXML?

**URL:** https://community.haxe.org/t/what-is-the-proper-way-to-build-target-specific-libraries-using-hxml/4704
**Category:** Haxe
**Created:** [November 7, 2025, 11:35am UTC](https://community.haxe.org/t/what-is-the-proper-way-to-build-target-specific-libraries-using-hxml/4704 "2025-11-07T11:35:53Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![tokiop](https://avatars.discourse-cdn.com/v2/letter/t/bc8723/32.png) [@tokiop](https://community.haxe.org/u/tokiop)
#### Post date: [November 7, 2025, 7:41pm UTC](https://community.haxe.org/t/what-is-the-proper-way-to-build-target-specific-libraries-using-hxml/4704/4 "2025-11-07T19:41:46Z")

</div>

Hi and welcome! 🙂 Maybe you can find some more infos in this thread :

> [@Publishing libraries in target languages](https://community.haxe.org/t/publishing-libraries-in-target-languages/2490):
>
> I write some caving software in JS/Java and a friend of mine writes his own in C++. We’re looking to combine forces and I’m hoping to use Haxe to do that. For example I want to write some file parsers in Haxe and then publish the output JS as npm packages, output Java as Maven packages that I can use in my projects, and output C++ that he can use in his projects. However I get the vague impression that people mostly put the bulk of their application code in Haxe and e.g. call Java code via Ha…

---

_[View the full topic](https://community.haxe.org/t/what-is-the-proper-way-to-build-target-specific-libraries-using-hxml/4704)._
