Flash Builder conditional compilation variables

I am using Flash Builder 4.5 and I would like to use conditional compilation between my debug and release builds.

I understand how to use conditional compilation and how to define compiler constants. I need either:

  • Predefined constant set by the IDE between debug and release assemblies
  • A way to specify different arguments for the compiler between debug and release assemblies

Using ANT is no longer an option (no time!) And changing variables manually is always too risky.

+4
source share
1 answer

ant is not very difficult to use to create as3. I use conditional compilation + different build goals for release and debugging, with different file endings, etc. It also simplifies use with the CI server. You can continue to use ide for all debug builds, but when you really want to release, you simply create a suitable ant target. And never forget to switch.

FB has built-in support for building ant targets, which makes this even easier.

0
source

Source: https://habr.com/ru/post/1395241/


All Articles