Skip to content

Commit

Permalink
Deploying to gh-pages from @ 3398f64 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
cgay committed Jun 19, 2024
1 parent 15ca568 commit 10bc790
Show file tree
Hide file tree
Showing 5 changed files with 78 additions and 6 deletions.
8 changes: 5 additions & 3 deletions _sources/getting-started-cli/platform-specific.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,11 @@ For further details of the LID file format, see :doc:`../library-reference/lid`.
4) The ``Platforms`` keyword

Platform-specific LID files should use the ``Platforms`` keyword to indicate
which platforms they apply to. This tells the `deft update
<https://package.opendylan.org/deft/index.html#deft-update>`_ command which
registry files to create.
which platforms they apply to. This helps the `deft update
<https://package.opendylan.org/deft/index.html#deft-update>`_ command decide
which registry files to create. If there is no ``Platforms`` keyword
``deft`` assumes the LID file applies to the current platform and creates a
registry file for its library.

=============== ========================= =========================
Keyword unix-io.lid win32-io.lid
Expand Down
32 changes: 32 additions & 0 deletions _sources/library-reference/lid.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,38 @@ Open Dylan's LID extensions

This section contains extensions to LID that Open Dylan supports.

Tooling Support
---------------

Platforms
^^^^^^^^^

Platform-specific LID files should use the ``Platforms`` keyword to indicate
which platforms they apply to. This helps the `deft update
<https://package.opendylan.org/deft/index.html#deft-update>`_ command decide
which registry files to create. If there is no ``Platforms`` keyword ``deft``
assumes the LID file applies to the current platform and creates a registry
file for its library.

For example, if you have a library with separate LID files for Windows and Unix
platforms add this to the Windows LID file::

Platforms: win32

and add this to the Unix LID file::

Platforms: x86_64-linux
x86_64-darwin
x86_64-freebsd
x86_64-netbsd
x86-freebsd
x86-linux
x86-netbsd

.. note:: We `plan <https://github.com/dylan-lang/deft/issues/3>`_ to add
platform aliases such as "unix" so that it isn't necessary to list
all supported Unix platforms.

Specifying foreign files and resource files
-------------------------------------------

Expand Down
6 changes: 4 additions & 2 deletions getting-started-cli/platform-specific.html
Original file line number Diff line number Diff line change
Expand Up @@ -657,8 +657,10 @@ <h2>LID File<a class="headerlink" href="#lid-file" title="Permalink to this head
</li>
<li><p>The <code class="docutils literal notranslate"><span class="pre">Platforms</span></code> keyword</p>
<p>Platform-specific LID files should use the <code class="docutils literal notranslate"><span class="pre">Platforms</span></code> keyword to indicate
which platforms they apply to. This tells the <a class="reference external" href="https://package.opendylan.org/deft/index.html#deft-update">deft update</a> command which
registry files to create.</p>
which platforms they apply to. This helps the <a class="reference external" href="https://package.opendylan.org/deft/index.html#deft-update">deft update</a> command decide
which registry files to create. If there is no <code class="docutils literal notranslate"><span class="pre">Platforms</span></code> keyword
<code class="docutils literal notranslate"><span class="pre">deft</span></code> assumes the LID file applies to the current platform and creates a
registry file for its library.</p>
<div class="table-wrapper docutils container">
<table class="docutils align-default">
<thead>
Expand Down
36 changes: 36 additions & 0 deletions library-reference/lid.html
Original file line number Diff line number Diff line change
Expand Up @@ -676,6 +676,38 @@ <h3>Comment:<a class="headerlink" href="#comment" title="Permalink to this headi
<section id="open-dylan-s-lid-extensions">
<h2>Open Dylan’s LID extensions<a class="headerlink" href="#open-dylan-s-lid-extensions" title="Permalink to this heading"></a></h2>
<p>This section contains extensions to LID that Open Dylan supports.</p>
<section id="tooling-support">
<h3>Tooling Support<a class="headerlink" href="#tooling-support" title="Permalink to this heading"></a></h3>
<section id="platforms">
<h4>Platforms<a class="headerlink" href="#platforms" title="Permalink to this heading"></a></h4>
<p>Platform-specific LID files should use the <code class="docutils literal notranslate"><span class="pre">Platforms</span></code> keyword to indicate
which platforms they apply to. This helps the <a class="reference external" href="https://package.opendylan.org/deft/index.html#deft-update">deft update</a> command decide
which registry files to create. If there is no <code class="docutils literal notranslate"><span class="pre">Platforms</span></code> keyword <code class="docutils literal notranslate"><span class="pre">deft</span></code>
assumes the LID file applies to the current platform and creates a registry
file for its library.</p>
<p>For example, if you have a library with separate LID files for Windows and Unix
platforms add this to the Windows LID file:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">Platforms</span><span class="p">:</span> <span class="n">win32</span>
</pre></div>
</div>
<p>and add this to the Unix LID file:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">Platforms</span><span class="p">:</span> <span class="n">x86_64</span><span class="o">-</span><span class="n">linux</span>
<span class="n">x86_64</span><span class="o">-</span><span class="n">darwin</span>
<span class="n">x86_64</span><span class="o">-</span><span class="n">freebsd</span>
<span class="n">x86_64</span><span class="o">-</span><span class="n">netbsd</span>
<span class="n">x86</span><span class="o">-</span><span class="n">freebsd</span>
<span class="n">x86</span><span class="o">-</span><span class="n">linux</span>
<span class="n">x86</span><span class="o">-</span><span class="n">netbsd</span>
</pre></div>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>We <a class="reference external" href="https://github.com/dylan-lang/deft/issues/3">plan</a> to add
platform aliases such as “unix” so that it isn’t necessary to list
all supported Unix platforms.</p>
</div>
</section>
</section>
<section id="specifying-foreign-files-and-resource-files">
<h3>Specifying foreign files and resource files<a class="headerlink" href="#specifying-foreign-files-and-resource-files" title="Permalink to this heading"></a></h3>
<p>The following keywords allow you to specify that files of foreign source
Expand Down Expand Up @@ -1077,6 +1109,10 @@ <h2>Application example<a class="headerlink" href="#application-example" title="
</ul>
</li>
<li><a class="reference internal" href="#open-dylan-s-lid-extensions">Open Dylan’s LID extensions</a><ul>
<li><a class="reference internal" href="#tooling-support">Tooling Support</a><ul>
<li><a class="reference internal" href="#platforms">Platforms</a></li>
</ul>
</li>
<li><a class="reference internal" href="#specifying-foreign-files-and-resource-files">Specifying foreign files and resource files</a><ul>
<li><a class="reference internal" href="#c-source-files">C-Source-Files:</a></li>
<li><a class="reference internal" href="#c-header-files">C-Header-Files:</a></li>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

0 comments on commit 10bc790

Please sign in to comment.