google / flatbuffers

FlatBuffers: Memory Efficient Serialization Library
https://flatbuffers.dev/
Apache License 2.0
23.16k stars 3.23k forks source link

Add `prefix` in pkg-config file #8395

Open diamant3 opened 3 weeks ago

diamant3 commented 3 weeks ago

I'm trying to port flatbuffers library to a library compatible for PSP and we specifically use pkg-config to find and use the library but i noticed this error:

Variable 'prefix' not defined in '/usr/local/pspdev/psp/lib/pkgconfig/flatbuffers.pc'

EDIT:

~This PR hopefully solve this error.~ Tested, this is the fix, here's my output:

diamant3@MSI:~/flatbuffers/build$ psp-pkg-config --libs --cflags flatbuffers
-I/usr/local/pspdev/psp/include -L/usr/local/pspdev/psp/lib -lflatbuffers
google-cla[bot] commented 3 weeks ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

diamant3 commented 3 weeks ago

Already signed the CLA. thanks.