Commit f4b01232 authored by David Boddie's avatar David Boddie

Use macros to refer to specific resources

parent d4ad50e6
.. _App_Resources_tutorial_building: .. _App_Resources_tutorial_building:
.. |executable| replace:: ``app-resources``
.. |desktop-entry-ref| replace:: :ref:`desktop entry file <App_Resources_tutorial_desktop_file>`
Building the Application Building the Application
======================== ========================
...@@ -37,9 +41,8 @@ files are processed when the build occurs: ...@@ -37,9 +41,8 @@ files are processed when the build occurs:
.. literalinclude:: app/src/meson.build .. literalinclude:: app/src/meson.build
In this case, we instruct Meson to take the ``main.py`` file in the ``src`` 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`` -- directory and copy it into the build directory as |executable| --
this is the name given as the executable in the :ref:`desktop entry file this is the name given as the executable in the |desktop-entry-ref|.
<App_Resources_tutorial_desktop_file>`.
We also declare that the file should be installed, and that its installation We also declare that the file should be installed, and that its installation
directory is the system location for executables (``bindir``). directory is the system location for executables (``bindir``).
......
.. _First_Application_building: .. _First_Application_building:
.. |executable| replace:: ``your-first-application``
.. |desktop-entry-ref| replace:: :ref:`desktop entry file <First_Application_desktop_file>`
Building the Application Building the Application
======================== ========================
...@@ -37,9 +41,8 @@ files are processed when the build occurs: ...@@ -37,9 +41,8 @@ files are processed when the build occurs:
.. literalinclude:: app/src/meson.build .. literalinclude:: app/src/meson.build
In this case, we instruct Meson to take the ``main.py`` file in the ``src`` 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`` -- directory and copy it into the build directory as |executable| --
this is the name given as the executable in the :ref:`desktop entry file this is the name given as the executable in the |desktop-entry-ref|.
<First_Application_desktop_file>`.
We also declare that the file should be installed, and that its installation We also declare that the file should be installed, and that its installation
directory is the system location for executables (``bindir``). 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