Using a preprocessor is not a way to do A SINGLE BUILDdifferent versions of BB OS (no matter what tool you use to prepare the assembly).
/ / .
, - .
.
/ ... . /.cod/... ...
T H E S E ; C-, .
, :
// START OF CODE
//
// this is the second line of the code
//...
//
import net.rim.device.api.ui.component.AutoCompleteField;
//
//don't import AutoCompleteField and import something else if needed
//#endif
//...
//... // some more codes
//...
//#ifdef OS_5
//...
//...
// Codes for using AutoCompleteField
//...
//...
//#else
//...
//...
// Codes for implementing AutoCompleteField another way by yourself
//...
//...
//...
//... // some more codes
//...
// END OF CODE
, (JDE, Eclipse Ant), 'OS_5', ( ), :
// START OF CODE
// this is the second line of the code
//...
import net.rim.device.api.ui.component.AutoCompleteField;
//...
//... // some more codes
//...
//...
//...
// Codes for using AutoCompleteField
//...
//...
//...
//... // some more codes
//...
// END OF CODE
.cod . .cod BB OS 5,0, AutoCompleteField OS 5.
'OS_5'
:
// START OF CODE
// this is the second line of the code
//...
//don't import AutoCompleteField and import something else if needed
//...
//... // some more codes
//...
//...
//...
// Codes for implementing AutoCompleteField another way by yourself
//...
//...
//...
//... // some more codes
//...
// END OF CODE
.cod , .cod, .
, A SINGLE BUILD BB OS, remove dependencies , API-, (4.6, 5.0... , ). , , , .
--- , , .
, , .