Chapter 3. Being Cross-platform with haXe
Targeting different platforms with the same code-base.
This chapter is about how to target several platforms from the same haXe code – the thing that haXe is known for.
haXe allows us to target several platforms; so, you may want to take advantage of this feature to be able to use your applications or libraries on several platforms. Unfortunately, there are some drawbacks, but don't worry, we will go through them and see how to work around them.
In this chapter, we will:
See what is cross-platform in the standard library
Talk about platform-specific packages
Learn about their specificities
Learn about conditional compilation
So, not only are we going to talk about being cross-platform, but also about platform-specific things. So, if you're ready, let's get started!