From xcode list

Ruslan Zasukhin sunshine at public.kherson.ua
Wed May 17 15:23:40 CDT 2006


On 5/17/06 2:12 PM, "Jochen Peters" <j.peters at valentina-db.de> wrote:

>> In Xcode it was a real pain to setup copying all the vcomponents and
>> resources into the app's package(even getting the vcomponents into
>> the project I can see being a hassle for some folks especially with
>> them in the hidden /usr/local/lib folder) and running the
>> install_name script, do you have any tips on making that fast and
>> easy for everyone(faster than dragging the /V4CC.Framework into xcode?)
> 
> Well - yes - it is not very comfortable - i agree. But it would be possible
> to ship a example project with V4CC with a copy build pahse setup
> correctly, so that it can be reused...

Yes of course we ned provide EXAMPLE of such script
That users can simply COPY PASTE

Below is our script from Vstudio xcode project.

Again I wonder guys. May be we can be able write some BASH script to be as
command line tool? And use it everywhere?

May be not BASH, may be RB-made or Revolution-made ...


----------------------------------------
if [ ! -d "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/MacOS/Plugins" ] ; then
    mkdir "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/MacOS/Plugins"
fi
cp "$BUILT_PRODUCTS_DIR/$PRODUCT_NAME.bundle/Contents/MacOS/$PRODUCT_NAME"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/MacOS/Plugins/$PRODUCT_NAME.bundle"

if [ ! -d "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents" ] ; then
    mkdir "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents"
fi
if [ ! -d "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/VSDK.framework" ] ; then
    cp -R "../../kernel/xcode/v1/VSDK.framework"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents"

    # change id VSDK
    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/VSD
K"

fi

cp "/usr/local/lib/vcomponents/$KernelLibName"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents"
cp "/usr/local/lib/vcomponents/$SharedLibName"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents"

# change id of VSHARED
install_name_tool -id "@executable_path/../VComponents/$SharedLibName"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/$SharedLibName"

# change id of VKERNEL
install_name_tool -id "@executable_path/../VComponents/$KernelLibName"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/$KernelLibName"
install_name_tool -change "/usr/local/lib/vcomponents/$SharedLibName"
"@executable_path/../VComponents/$SharedLibName"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/$KernelLibName"
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"
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"
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"
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"
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"

cp /usr/local/lib/vcomponents/libicudata.dylib
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/libicudata.dylib"
cp /usr/local/lib/vcomponents/libicui18n.dylib
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/libicui18n.dylib"
cp /usr/local/lib/vcomponents/libicuio.dylib "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/libicuio.dylib"
cp /usr/local/lib/vcomponents/libicuuc.dylib "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/libicuuc.dylib"

# change id of data library
install_name_tool -id "@executable_path/../VComponents/libicudata.dylib"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/libicudata.dylib"

# change id and dependencies in common library
install_name_tool -id "@executable_path/../VComponents/libicuuc.dylib"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/libicuuc.dylib"
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"

# change id and dependencies in i18n library
install_name_tool -id "@executable_path/../VComponents/libicui18n.dylib"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/libicui18n.dylib"
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"
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"

# change id and dependencies in io library
install_name_tool -id "@executable_path/../VComponents/libicuio.dylib"
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/libicuio.dylib"
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"
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"
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"

if [ ! -d "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/VResources" ] ; then
    mkdir "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/VResources"
    mkdir "$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/VResources/English"
fi
cp -f ../../sources/VKernel/FBL/prot/Errors/kernel_errors.xml
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/VResources/English"
cp -f ../../sources/VKernel/VSQL/Errors/xml/sql_errors.xml
"$BUILT_PRODUCTS_DIR/Valentina
Studio$ProductNameExt.app/Contents/VComponents/VResources/English"

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"
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"
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"
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"
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"
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"
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"






-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macserve.net/pipermail/valentina-beta/attachments/20060517/bb700c53/attachment.html


More information about the Valentina-beta mailing list