[android-developers] Preprocess AndroidManifest.xml ?

With all these Markets, apks are starting to get more complicated. I'm
taking the approach of a different APK for different Markets.
There's some permissions I need in some cases and not in others. Like:
com.android.vending.CHECK_LICENSE

It doesn't hurt anything to have it on the Amazon store (And they
haven't rejected for it), but it's unnecessary.
I also have a direct-purchase option and I want to use,
READ_PHONE_STATE. I don't want to include this permission when it's
unnecessary for the Google Market or Amazon Appstore.

The idea in my head is having an AndroidManifest.xml like:

<!--
#ifdef USE_GOOGLE_MARKET
-->
<uses-permission android:name="com.android.vending.CHECK_LICENSE" /
>
<!--