heliclei/cocos2d-x — pull request #148 by cocosQA (2014-04-25 20:53:28+00:00)
Title: use ${PARENT-1-PROJECT_LOC}  to setup android proj Linked Resources relative to the .project file;

setup android proj Linked Resources relative to the .project file;

${PARENT-1-PROJECT_LOC} means the parent directory above PROJECT_LOC.
the 1 means the 1 times above :
PROJECT_LOC => C:\projects\workspace\project1
PARENT-1-PROJECT_LOC => C:\projects\workspace
PARENT-2-PROJECT_LOC => C:\projects\
PARENT-1-PROJECT_LOC\project2 => C:\projects\workspace\project2

原来link 是通过appname变量替换和COCOS2DX环境变量来定位的; 但是COCOS2DX这个变量不是还需要手动设置;
使用PARENT-1-PROJECT_LOC则可以使用"相对目录", 指定相对于当前proj的路劲;
无需手动设置其他东西;

android需要java的org.cocos2dx.lib包中的class, 而原来使用android.library.reference来设置, 这样的方法需要手动导入"cocos2d\cocos\2d\platform\android\java" 这个proj;
还是使用相对路径的link res ,然后映射到classpath 即可