164 lines
4.7 KiB
HTML
164 lines
4.7 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
|
||
<title>How To</title>
|
||
<meta name="description" content="JerryScript is a very lightweight JavaScript engine with capability to run on microcontrollers with less then 8KB of RAM.
|
||
">
|
||
|
||
<link rel="stylesheet" href="/jerryscript/css/main.css">
|
||
<link rel="canonical" href="http://samsung.github.io/jerryscript/how-to/">
|
||
<link rel="alternate" type="application/rss+xml" title="JerryScript Engine" href="http://samsung.github.io/jerryscript/feed.xml" />
|
||
</head>
|
||
|
||
|
||
<body>
|
||
|
||
<header class="site-header">
|
||
|
||
<div class="wrapper">
|
||
|
||
<a class="site-title" href="/jerryscript/">JerryScript Engine</a>
|
||
|
||
<nav class="site-nav">
|
||
<a href="#" class="menu-icon">
|
||
<svg viewBox="0 0 18 15">
|
||
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
|
||
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
|
||
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
|
||
</svg>
|
||
</a>
|
||
|
||
<div class="trigger">
|
||
|
||
|
||
|
||
|
||
<a class="page-link" href="/jerryscript/how-to/">How To</a>
|
||
|
||
|
||
|
||
<a class="page-link" href="/jerryscript/API/">API</a>
|
||
|
||
|
||
|
||
<a class="page-link" href="/jerryscript/internals/">Internals</a>
|
||
|
||
|
||
|
||
<a class="page-link" href="/jerryscript/dev-guide/">Development</a>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</div>
|
||
</nav>
|
||
|
||
</div>
|
||
|
||
</header>
|
||
|
||
|
||
<div class="page-content">
|
||
<div class="wrapper">
|
||
<div class="post">
|
||
|
||
<header class="post-header">
|
||
<h1 class="post-title">How To</h1>
|
||
</header>
|
||
|
||
<article class="post-content">
|
||
<p>This is very simple way of compiling JerryScript. (Please add more so to guide how to build.)</p>
|
||
|
||
<h2 id="get-the-source">Get the source</h2>
|
||
|
||
<p>You may know this.<br />
|
||
<code>
|
||
git clone https://github.com/Samsung/jerryscript.git
|
||
cd jerryscript
|
||
</code></p>
|
||
|
||
<h2 id="building">Building</h2>
|
||
|
||
<p>It’s based on Ubuntu Linux 14.04 LTS. You may need to read https://github.com/Samsung/jerryscript/wiki/Prerequisites before starting.</p>
|
||
|
||
<pre><code>make
|
||
</code></pre>
|
||
<p>For the first time of the make, it’ll prepare prerequisites with next message. It may take some time so go grab some coffee.<br />
|
||
<code>
|
||
Setting up prerequisites... (log file: ./build/prerequisites/prerequisites.log)
|
||
</code></p>
|
||
|
||
<p>After prerequisites are prepared, make will build all supporting platforms and mods. It may also take a while.</p>
|
||
|
||
<p>If only debug version for linux for development, just do as;<br />
|
||
<code>
|
||
make debug.linux
|
||
</code></p>
|
||
|
||
<p>without LTO(Link Time Optimization) and debug for linux<br />
|
||
<code>
|
||
LTO=ff make debug.linux
|
||
</code></p>
|
||
|
||
<p>if something goes wrong, it’ll show<br />
|
||
<code>
|
||
Build failed. See ./build/bin/unittests/make.log for details.
|
||
</code></p>
|
||
|
||
<h2 id="testing">Testing</h2>
|
||
<pre><code>make unittests
|
||
</code></pre>
|
||
<p>It should have no errors if it is ok.</p>
|
||
|
||
<h2 id="check-before-committing">Check before committing</h2>
|
||
<pre><code>make precommit -j
|
||
</code></pre>
|
||
<p>This will check any problems in your modifications. may take some time depending on your machine. This is necessary before pull requests but can omit for local commits.</p>
|
||
|
||
</article>
|
||
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
<footer class="site-footer">
|
||
<div class="wrapper">
|
||
<!--
|
||
<h2 class="footer-heading">JerryScript Engine</h2>
|
||
<div class="footer-col-wrapper">
|
||
<div class="footer-col footer-col-1">
|
||
<ul class="contact-list">
|
||
<li>JerryScript Engine</li>
|
||
<li><a href="mailto:"></a></li>
|
||
</ul>
|
||
</div>
|
||
|
||
<h3 class="footer-heading">JerryScript Engine</h2>
|
||
<div class="footer-col footer-col-5">
|
||
<p class="text">JerryScript is a very lightweight JavaScript engine with capability to run on microcontrollers with less then 8KB of RAM.
|
||
</p>
|
||
</div>
|
||
-->
|
||
<div class="footer-copy">
|
||
<p> © Copyright 2015 Samsung Electronics Co., Ltd., Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>
|
||
</div>
|
||
</div>
|
||
</footer>
|
||
|
||
|
||
</body>
|
||
|
||
</html>
|