<HTML>
<HEAD>
<TITLE>Re: From xcode list</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>On 5/17/06 2:12 PM, "Jochen Peters" <j.peters@valentina-db.de> wrote:<BR>
<BR>
<FONT COLOR="#008000">>> In Xcode it was a real pain to setup copying all the vcomponents and<BR>
>> resources into the app's package(even getting the vcomponents into<BR>
>> the project I can see being a hassle for some folks especially with<BR>
>> them in the hidden /usr/local/lib folder) and running the<BR>
>> install_name script, do you have any tips on making that fast and<BR>
>> easy for everyone(faster than dragging the /V4CC.Framework into xcode?)<BR>
</FONT><FONT COLOR="#0000FF">> <BR>
> Well - yes - it is not very comfortable - i agree. But it would be possible<BR>
> to ship a example project with V4CC with a copy build pahse setup<BR>
> correctly, so that it can be reused...<BR>
</FONT><BR>
Yes of course we ned provide EXAMPLE of such script<BR>
That users can simply COPY PASTE<BR>
<BR>
Below is our script from Vstudio xcode project.<BR>
<BR>
Again I wonder guys. May be we can be able write some BASH script to be as <BR>
command line tool? And use it everywhere? <BR>
<BR>
May be not BASH, may be RB-made or Revolution-made ...<BR>
<BR>
<BR>
----------------------------------------<BR>
if [ ! -d "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins" ] ; then<BR>
mkdir "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins"<BR>
fi<BR>
cp "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.bundle/Contents/MacOS/$PRODUCT_NAME" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins/$PRODUCT_NAME.bundle"<BR>
<BR>
if [ ! -d "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents" ] ; then<BR>
mkdir "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents"<BR>
fi<BR>
if [ ! -d "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/VSDK.framework" ] ; then<BR>
cp -R "../../kernel/xcode/v1/VSDK.framework" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents"<BR>
<BR>
# change id VSDK<BR>
install_name_tool -id "@executable_path/../VComponents/VSDK.framework/Versions/A/VSDK" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/VSDK.framework/Versions/A/VSDK"<BR>
<BR>
fi<BR>
<BR>
cp "/usr/local/lib/vcomponents/$KernelLibName" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents"<BR>
cp "/usr/local/lib/vcomponents/$SharedLibName" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents"<BR>
<BR>
# change id of VSHARED<BR>
install_name_tool -id "@executable_path/../VComponents/$SharedLibName" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/$SharedLibName"<BR>
<BR>
# change id of VKERNEL<BR>
install_name_tool -id "@executable_path/../VComponents/$KernelLibName" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/$KernelLibName"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/$SharedLibName" "@executable_path/../VComponents/$SharedLibName" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/$KernelLibName"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/VSDK.framework/Versions/A/VSDK" "@executable_path/../VComponents/VSDK.framework/Versions/A/VSDK" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/$KernelLibName"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicudata.dylib" "@executable_path/../VComponents/libicudata.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/$KernelLibName"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicuuc.dylib" "@executable_path/../VComponents/libicuuc.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/$KernelLibName"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicui18n.dylib" "@executable_path/../VComponents/libicui18n.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/$KernelLibName"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicuio.dylib" "@executable_path/../VComponents/libicuio.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/$KernelLibName"<BR>
<BR>
cp /usr/local/lib/vcomponents/libicudata.dylib "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicudata.dylib"<BR>
cp /usr/local/lib/vcomponents/libicui18n.dylib "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicui18n.dylib"<BR>
cp /usr/local/lib/vcomponents/libicuio.dylib "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicuio.dylib"<BR>
cp /usr/local/lib/vcomponents/libicuuc.dylib "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicuuc.dylib"<BR>
<BR>
# change id of data library<BR>
install_name_tool -id "@executable_path/../VComponents/libicudata.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicudata.dylib"<BR>
<BR>
# change id and dependencies in common library<BR>
install_name_tool -id "@executable_path/../VComponents/libicuuc.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicuuc.dylib"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicudata.dylib" "@executable_path/../VComponents/libicudata.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicuuc.dylib"<BR>
<BR>
# change id and dependencies in i18n library<BR>
install_name_tool -id "@executable_path/../VComponents/libicui18n.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicui18n.dylib"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicudata.dylib" "@executable_path/../VComponents/libicudata.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicui18n.dylib"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicuuc.dylib" "@executable_path/../VComponents/libicuuc.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicui18n.dylib"<BR>
<BR>
# change id and dependencies in io library<BR>
install_name_tool -id "@executable_path/../VComponents/libicuio.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicuio.dylib"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicuuc.dylib" "@executable_path/../VComponents/libicuuc.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicuio.dylib"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicudata.dylib" "@executable_path/../VComponents/libicudata.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicuio.dylib"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicui18n.dylib" "@executable_path/../VComponents/libicui18n.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/libicuio.dylib"<BR>
<BR>
if [ ! -d "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/VResources" ] ; then<BR>
mkdir "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/VResources"<BR>
mkdir "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/VResources/English"<BR>
fi<BR>
cp -f ../../sources/VKernel/FBL/prot/Errors/kernel_errors.xml "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/VResources/English"<BR>
cp -f ../../sources/VKernel/VSQL/Errors/xml/sql_errors.xml "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/VComponents/VResources/English"<BR>
<BR>
install_name_tool -change "/usr/local/lib/vcomponents/VSDK.framework/Versions/A/VSDK" "@executable_path/../VComponents/VSDK.framework/Versions/A/VSDK" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins/$PRODUCT_NAME.bundle"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicudata.dylib" "@executable_path/../VComponents/libicudata.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins/$PRODUCT_NAME.bundle"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicuuc.dylib" "@executable_path/../VComponents/libicuuc.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins/$PRODUCT_NAME.bundle"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicui18n.dylib" "@executable_path/../VComponents/libicui18n.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins/$PRODUCT_NAME.bundle"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/libicuio.dylib" "@executable_path/../VComponents/libicuio.dylib" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins/$PRODUCT_NAME.bundle"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/$SharedLibName" "@executable_path/../VComponents/$SharedLibName" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins/$PRODUCT_NAME.bundle"<BR>
install_name_tool -change "/usr/local/lib/vcomponents/$KernelLibName" "@executable_path/../VComponents/$KernelLibName" "$BUILT_PRODUCTS_DIR/Valentina Studio$ProductNameExt.app/Contents/MacOS/Plugins/$PRODUCT_NAME.bundle"<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
<BR>
-- <BR>
Best regards,<BR>
<BR>
Ruslan Zasukhin<BR>
VP Engineering and New Technology<BR>
Paradigma Software, Inc<BR>
<BR>
Valentina - Joining Worlds of Information <BR>
<a href="http://www.paradigmasoft.com">http://www.paradigmasoft.com</a><BR>
<BR>
[I feel the need: the need for speed]<BR>
</SPAN></FONT>
</BODY>
</HTML>