Home Help Center

Disable features

mykaelmykael Member
Hi,

I want to know if it is possible to disable before compilation features that are not useful for my project.
I want to disable dependencies with bzip2, ssl, db berkley.

Cheers
Mykael

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    There's no out of the box configuration to disable some of the Ice features/services. However, if you're only interested in building the Slice to C++ translator, the IceUtil and Ice libraries, you can simply run make in the following directories:
    $ cd Ice-3.0.1/src
    $ cd IceUtil; make; cd..
    $ cd icecpp; make; cd..
    $ cd Slice; make; cd..
    $ cd slice2cpp; make; cd ..
    $ cd Ice; make; cd ..
    

    Or you could simply modify Ice-3.0.1/src/Makefile to only include these directories in the build :) (you can do the same for demo/Makefile and test/Makefile if you only want to build the Ice demos and tests).

    You won't need the BerkeleyDB or openssl libraries to build these components. However, the bzip2 library will still be required as it's used by the Ice core for message compression on the wire. Removing this dependency or make it optional would be possible but it's a bit more complicated. If you want us to look into this and would like to sponsor such a feature, please contact us at [email protected].

    Cheers,
    Benoit.
Sign In or Register to comment.