-
Notifications
You must be signed in to change notification settings - Fork 686
Add pkg-config metadata files for libraries #2680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Some background: Readworthy links:
JerryScript built with jerry-libm $ tools/build.py --clean --install=build/install --jerry-libm=on
$ export PKG_CONFIG_PATH=<<JERRYSCRIPT_ROOT>>/build/install/lib/pkgconfig
$ pkg-config libjerry-core --cflags
-I<<JERRYSCRIPT_ROOT>>/build/install/include -I<<JERRYSCRIPT_ROOT>>/build/install/include/jerry-libm
$ pkg-config libjerry-core --libs
-L<<JERRYSCRIPT_ROOT>>/build/install/lib -ljerry-core
$ pkg-config libjerry-core --libs --static
-L<<JERRYSCRIPT_ROOT>>/build/install/lib -ljerry-core -ljerry-libm
$ pkg-config libjerry-ext --cflags
-I<<JERRYSCRIPT_ROOT>>/build/install/include -I<<JERRYSCRIPT_ROOT>>/build/install/include/jerry-libm
$ pkg-config libjerry-ext --libs
-L<<JERRYSCRIPT_ROOT>>/build/install/lib -ljerry-ext
$ pkg-config libjerry-ext --libs --static
-L<<JERRYSCRIPT_ROOT>>/build/install/lib -ljerry-ext -ljerry-core -ljerry-libmJerryScript built with system libm $ tools/build.py --clean --install=build/install --jerry-libm=off --link-lib=m
$ pkg-config libjerry-core --cflags
-I<<JERRYSCRIPT_ROOT>>/build/install/include
$ pkg-config libjerry-core --libs
-L<<JERRYSCRIPT_ROOT>>/build/install/lib -ljerry-core
$ pkg-config libjerry-core --libs --static
-L<<JERRYSCRIPT_ROOT>>/build/install/lib -ljerry-core -lm
$ pkg-config libjerry-ext --cflags
-I<<JERRYSCRIPT_ROOT>>/build/install/include
$ pkg-config libjerry-ext --libs
-L<<JERRYSCRIPT_ROOT>>/build/install/lib -ljerry-ext
$ pkg-config libjerry-ext --libs --static
-L<<JERRYSCRIPT_ROOT>>/build/install/lib -ljerry-ext -ljerry-core -lmSome extras: $ pkg-config libjerry-core libjerry-port-default --libs --static
-L<<JERRYSCRIPT_ROOT>>/build/install/lib -ljerry-core -lm -ljerry-port-default |
Should core, ext, libm, and/or port libraries be properly installed on some system, help compilation and linking against them by providing standard `.pc` files, which can be picked up by pkg-config. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
365003e to
f50f5be
Compare
|
PR updated (after the landing of #2684 ). |
LaszloLango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
rerobika
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (informal)
robertsipka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Should core, ext, libm, and/or port libraries be properly installed
on some system, help compilation and linking against them by
providing standard
.pcfiles, which can be picked up bypkg-config.
JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu