Commit f4b01232 authored by David Boddie's avatar David Boddie

Use macros to refer to specific resources

parent d4ad50e6
.. _App_Resources_tutorial_building:
.. |executable| replace:: ``app-resources``
.. |desktop-entry-ref| replace:: :ref:`desktop entry file <App_Resources_tutorial_desktop_file>`
Building the Application
========================
......@@ -37,9 +41,8 @@ files are processed when the build occurs:
.. literalinclude:: app/src/meson.build
In this case, we instruct Meson to take the ``main.py`` file in the ``src``
directory and copy it into the build directory as ``app-resources`` --
this is the name given as the executable in the :ref:`desktop entry file
<App_Resources_tutorial_desktop_file>`.
directory and copy it into the build directory as |executable| --
this is the name given as the executable in the |desktop-entry-ref|.
We also declare that the file should be installed, and that its installation
directory is the system location for executables (``bindir``).
......
.. _First_Application_building:
.. |executable| replace:: ``your-first-application``
.. |desktop-entry-ref| replace:: :ref:`desktop entry file <First_Application_desktop_file>`
Building the Application
========================
......@@ -37,9 +41,8 @@ files are processed when the build occurs:
.. literalinclude:: app/src/meson.build
In this case, we instruct Meson to take the ``main.py`` file in the ``src``
directory and copy it into the build directory as ``your-first-application`` --
this is the name given as the executable in the :ref:`desktop entry file
<First_Application_desktop_file>`.
directory and copy it into the build directory as |executable| --
this is the name given as the executable in the |desktop-entry-ref|.
We also declare that the file should be installed, and that its installation
directory is the system location for executables (``bindir``).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment