<p></p>
<p>I realize this is a more-or-less direct port from the Autotools build system, but is it in the scope of this WIP PR to re-organize it to be more Meson-like, or rather to get rid of Autotools-style/cruft?</p>
<p>A few things that stick out:</p>
<ul>
<li>Compiling all the things into helper static libs (Scintilla, Ctags, etc) which are not distributed and only used to build the shared libgeany. These could all be built into a single <code>shared_library</code> and delimit the source file (directories) in the arguments list with newlines and/or comments.</li>
<li>Checking for C headers which are guaranteed to exist (ex. C99 headers)</li>
<li>Using the built-in Pkgconfig module to generate .pc file</li>
<li>Different <code>extra_data</code> filenames for Windows (could be done in the <code>geany.nsi</code> script probably)</li>
<li>If we're going to use subdir(), why not subdir() into the <code>src</code> dir as well to move the libgeany/geany into a smaller file? Otherwise, maybe all of the things could be done in the same huge source of truth <code>meson.build</code> file in the source root directory?</li>
<li>Use the <code>/</code> path operator instead of <code>join_paths()</code> as well as for other paths where now they're just regular strings. Not sure what's idiomatic.</li>
<li>Is any explicit <code>rpath</code> stuff really needed? I only use Meson for small Vala projects, but in my uses it easily handles installing executables linked to shared libraries using correct paths for the distro.</li>
</ul>
<p>Maybe we could do like?</p>
<ol>
<li>Merge this sort of direct-port PR once ready</li>
<li>Do stuff like listed above to Mesonify in a separate PR(s) afterwards</li>
<li>Once Meson build is nice and clean and maintainable, rip out Autotools</li>
</ol>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/2761#issuecomment-896427102">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4TDDSFPSNRLH435WDT4HHD3ANCNFSM4ZDZAFLA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/AAIOWJ32KZ2BVGROD44ZYJLT4HHD3A5CNFSM4ZDZAFLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGVXGIXQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/2761#issuecomment-896427102",
"url": "https://github.com/geany/geany/pull/2761#issuecomment-896427102",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>