Blackberry 中的预处理器(通过 bb-ant-tools) [英] Preprocessor in Blackberry (through bb-ant-tools)
问题描述
有一个具有 #preprocess
指令的项目.IE.文件开头有 #preprocess
指令,文件中有类似 #ifdef BlackBerrySDK6.0.0
的指令.
There is a project that has #preprocess
directives. I.e. there is #preprocess
directive in the beginning of a file and something like #ifdef BlackBerrySDK6.0.0
inside the file.
虽然在eclipse中编译得很好,但是使用bb-ant-tools还是有问题.它的行为就像没有预处理一样:在不应包含的字符串上编译错误.
Though it compiles well in eclipse, there are problems using bb-ant-tools. It behaves as though there is no preprocessing: compile errors on strings that should not be included.
我有 build.properties 文件;它通过
AND
包含.我有 BlackBerrySDK5.0.0=true
.
I have build.properties file; it is included through <property file="build.properties">
AND <jdp file="build.properties">
. I have BlackBerrySDK5.0.0=true
in it.
推荐答案
自己实现的.我应该在任务的属性中声明定义="blabla":<rapc output="foo" destdir="bar"define="blabla">
Realized it myself. I should claim defines="blabla" in properties of task: <rapc output="foo" destdir="bar" defines="blabla">
这篇关于Blackberry 中的预处理器(通过 bb-ant-tools)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!