Skip to content

Why is JerryScript's structure so deep? #2857

@IngwiePhoenix

Description

@IngwiePhoenix

Hey!

For a project that I am working on, I need a scripting language that is familiar to developers - so I decided to go and try out JerryScript. But good lord, I had no idea... ^^;

image

I generated this command quickly by using the fish shell:

echo gcc (find jerry-core jerry-ext jerry-main jerry-port/default/include -type d -exec echo -n "-I{} " \;) (find jerry-core jerry-ext jerry-port -name "*.c" -exec echo -n "{} " \;) jerry-main/cli.c jerry-main/main-unix.c -o jerry | pbcopy

and manually appending the -D definition.

This command is big and I wonder: Why is JerryScript's structure so huge, and is there some kind of explanation on how to integrate JerryScript on one's own build system, what -D's it accepts and such?

I will need to add JerryScript into my own build tool, hence I tried to reproduce a full compilation "by hand" to learn how it is being built. And well, I learned that - and I am surprised I did not exceed the maximum number of arguments... ;)

Kind regards,
Ingwie

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions