Skip to content
Permalink
Browse files
add build infrastructure
  • Loading branch information
ammen99 committed Apr 1, 2020
1 parent 2f8fda6 commit 4894fe7c1e323eeb0c4f31b29686974b35198f40
Showing 5 changed files with 49 additions and 0 deletions.
@@ -0,0 +1,34 @@
project(
'wayfire-plugins-ammen99',
'c',
'cpp',
version: '0.1',
license: 'MIT',
meson_version: '>=0.51.0',
default_options: [
'cpp_std=c++17',
'c_std=c11',
'warning_level=2',
'werror=false',
],
)

wayfire = dependency('wayfire')
wlroots = dependency('wlroots')
wfconfig = dependency('wf-config')

add_project_arguments(['-DWLR_USE_UNSTABLE'], language: ['cpp', 'c'])
add_project_arguments(['-DWAYFIRE_PLUGIN'], language: ['cpp', 'c'])
add_project_link_arguments(['-rdynamic'], language:'cpp')

subdir('src')
subdir('metadata')

summary = [
'',
'----------------',
'wayfire-plugins-ammen99 @0@'.format(meson.project_version()),
'----------------',
''
]
message('\n'.join(summary))
@@ -0,0 +1 @@
install_data('primary-monitor-switch.xml', install_dir: wayfire.get_variable(pkgconfig: 'metadatadir'))
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<wayfire>
<plugin name="primary-monitor-switch">
<_short>Primary Monitor Switch</_short>
<category>Desktop</category>
<option name="transient_output" type="string">
<_short>Transient output</_short>
<default>HDMI-A-2</default>
</option>
</plugin>
</wayfire>
@@ -0,0 +1,3 @@
pms = shared_module('primary-monitor-switch', 'primary-monitor-switch.cpp',
dependencies: [wayfire, wlroots],
install: true, install_dir: join_paths(get_option('libdir'), 'wayfire'))
Empty file.

0 comments on commit 4894fe7

Please sign in to comment.