Skip to content

Could be nice to generate/install pkg-config fileΒ #63

@Lecrapouille

Description

@Lecrapouille

I'm testing your project right now.

Could be nice to create a pkg-config file like in:
https://github.com/sebastiandev/zipper/blob/master/zipper.pc.cmakein

Or for Makefile:
https://github.com/Lecrapouille/MyMakefile/blob/master/Makefile.macros#L165
sudo make install will install it:
https://github.com/Lecrapouille/MyMakefile/blob/master/Makefile.macros#L181
https://github.com/Lecrapouille/MyMakefile/blob/master/Makefile.macros#L63
(not sure this is working well for Mac)

So in your readme instead of:

g++ -std=c++11 -I/path/to/header -L/path/to/lib -lipfs-http-client myprog.cc -o myprog

Could be replaced by:

g++ -std=c++11 myprog.cc -o myprog `pkg-config --cflags --libs ipfs-http-client`

In addition in your command -lipfs-http-client is misplaced and -lcurl is missing. The pkg-config will contain the -lcurl code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions