Skip to content

Steps to configure built artifacts #135

@Ottunger

Description

@Ottunger

Hello,

I'm trying to understand if there's a way to configure what is being built by sw, in order to miniize size of generated artifacts.
From https://software-network.org/client/sw.pdf , I can see that you have taken at CPPAN the zero-conf and "all or nothing" route, so maybe it's just not designed for this.

I tried in my sw.cpp to undefined some variables that would typically be configured by a configure script, but it doesn't seem to make any difference:

    auto &ocr = s.addLibrary("xxx");
    {
        auto &t = ocr;
        t += cppstd;
        t += "OCR_API"_api;
        t +=
           //
            ;
        t += "org.sw.demo.intel.opencv.imgcodecs-4.11.0"_dep;
        t += "org.sw.demo.intel.opencv.imgproc-4.11.0"_dep;
        t += "org.sw.demo.google.tesseract.libtesseract-5.4.0"_dep;
        t.CompileOptions.erase("-DHAVE_CURL");
        t.CompileOptions.erase("-DHAVE_LIBCURL");
        t.CompileOptions.erase("-DFRMT_derived");
        t.CompileOptions.erase("-DFRMT_gtiff");
        t.CompileOptions.erase("-DFRMT_hfa");
        t.CompileOptions.erase("-DFRMT_libgeotiff");
        t.CompileOptions.erase("-DFRMT_vrt");
        t.CompileOptions.erase("-DUSE_NGHTTP2");
        t.CompileOptions.push_back("-fdeclspec");
        t.CompileOptions.push_back("-O2");
    }

Do you know how I can replicate for instance the result of applying --with-curl=no of a configure script to a sw build?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions