-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4f1672f
commit fd0ebe1
Showing
23 changed files
with
377 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
install_data( | ||
'wingpanel.desktop', | ||
install_dir: join_paths(get_option('datadir'), 'applications') | ||
) | ||
|
||
install_data( | ||
'wingpanel.svg', | ||
install_dir: join_paths(get_option('datadir'), 'icons', 'hicolor', 'scalable', 'apps') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
[CCode (cprefix = "", lower_case_cprefix = "", cheader_filename = "config.h")] | ||
namespace Build { | ||
public const string INDICATORS_DIR; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
config_vapi = meson.get_compiler('vala').find_library('config', dirs: meson.current_source_dir()) | ||
|
||
config_data = configuration_data() | ||
config_data.set_quoted('INDICATORS_DIR', indicators_dir) | ||
|
||
config_header = configure_file( | ||
configuration: config_data, | ||
output: 'config.h' | ||
) | ||
|
||
libwingpanel_deps = [ | ||
glib_dep, | ||
gio_dep, | ||
gio_unix_dep, | ||
gmodule_dep, | ||
gee_dep, | ||
gtk_dep, | ||
] | ||
|
||
libwingpanel_lib = shared_library('wingpanel-2.0', | ||
'Indicator.vala', | ||
'IndicatorManager.vala', | ||
'Widgets/AutomaticScrollBox.vala', | ||
'Widgets/Button.vala', | ||
'Widgets/Container.vala', | ||
'Widgets/OverlayIcon.vala', | ||
'Widgets/Separator.vala', | ||
'Widgets/Switch.vala', | ||
config_header, | ||
dependencies: [libwingpanel_deps, config_vapi], | ||
vala_header: 'wingpanel.h', | ||
soversion: '0', | ||
version: lib_version, | ||
install: true, | ||
install_dir: [true, join_paths(get_option('includedir'), 'wingpanel-2.0'), true] | ||
) | ||
|
||
pkg.generate( | ||
filebase: 'wingpanel-2.0', | ||
name: 'Wingpanel', | ||
description: 'Wingpanel Indicators API', | ||
version: meson.project_version(), | ||
subdirs: 'wingpanel-2.0', | ||
variables: ['indicators_dir=${libdir}/wingpanel'], | ||
libraries: libwingpanel_lib, | ||
requires: libwingpanel_deps | ||
) | ||
|
||
install_data( | ||
'wingpanel-2.0.deps', | ||
install_dir: join_paths(get_option('datadir'), 'vala', 'vapi') | ||
) | ||
|
||
libwingpanel_dir = include_directories('.') | ||
libwingpanel_dep = declare_dependency( | ||
link_with: libwingpanel_lib, | ||
dependencies: [libwingpanel_deps, config_vapi], | ||
include_directories: libwingpanel_dir | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
project( | ||
'wingpanel', | ||
'c', 'vala', | ||
version: '2.2.0', | ||
) | ||
|
||
lib_version = '0.2.0' | ||
|
||
add_project_arguments([ | ||
'--vapidir=' + join_paths(meson.source_root(), 'vapi'), | ||
], | ||
language: 'vala', | ||
) | ||
|
||
add_project_arguments([ | ||
'-DGETTEXT_PACKAGE="wingpanel"', | ||
'-DG_LOG_DOMAIN="wingpanel"' | ||
], | ||
language: 'c' | ||
) | ||
|
||
indicators_dir = join_paths(get_option('prefix'), get_option('libdir'), 'wingpanel') | ||
|
||
i18n = import('i18n') | ||
pkg = import('pkgconfig') | ||
|
||
glib_dep = dependency('glib-2.0', version: '>=2.32') | ||
gio_dep = dependency('gio-2.0') | ||
gio_unix_dep = dependency('gio-unix-2.0') | ||
gmodule_dep = dependency('gmodule-2.0') | ||
gtk_dep = dependency('gtk+-3.0', version: '>=3.10') | ||
gee_dep = dependency('gee-0.8') | ||
granite_dep = dependency('granite') | ||
|
||
subdir('data') | ||
subdir('lib') | ||
subdir('schemas') | ||
subdir('src') | ||
subdir('wingpanel-interface') | ||
if get_option('example') | ||
subdir('sample') | ||
endif | ||
subdir('po') | ||
|
||
meson.add_install_script('meson/post_install.py') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import os | ||
import subprocess | ||
|
||
schemadir = os.path.join(os.environ['MESON_INSTALL_PREFIX'], 'share', 'glib-2.0', 'schemas') | ||
|
||
if not os.environ.get('DESTDIR'): | ||
print('Compiling gsettings schemas...') | ||
subprocess.call(['glib-compile-schemas', schemadir]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
option('example', type: 'boolean', value: false, description: 'Build an example that shows how it works') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# please keep this list sorted alphabetically | ||
# | ||
af | ||
ak | ||
am | ||
ar | ||
az | ||
be | ||
bg | ||
bs | ||
ca | ||
ckb | ||
cs | ||
da | ||
de | ||
el | ||
en_CA | ||
en_GB | ||
eo | ||
es | ||
et | ||
eu | ||
fa | ||
fi | ||
fr | ||
fr_CA | ||
gl | ||
he | ||
hi | ||
hr | ||
hu | ||
hy | ||
id | ||
it | ||
ja | ||
ka | ||
ko | ||
ku | ||
ky | ||
lb | ||
lt | ||
lv | ||
ms | ||
nb | ||
nl | ||
nn | ||
pl | ||
pt | ||
pt_BR | ||
ro | ||
ru | ||
si | ||
sk | ||
sl | ||
sma | ||
sq | ||
sr | ||
sr@latin | ||
sv | ||
ta | ||
th | ||
tr | ||
ug | ||
uk | ||
ur | ||
vi | ||
zh_CN | ||
zh_HK | ||
zh_TW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
lib/Indicator.vala | ||
lib/IndicatorManager.vala | ||
lib/Widgets/AutomaticScrollBox.vala | ||
lib/Widgets/Button.vala | ||
lib/Widgets/Container.vala | ||
lib/Widgets/OverlayIcon.vala | ||
lib/Widgets/Separator.vala | ||
lib/Widgets/Switch.vala | ||
src/Wingpanelvala | ||
src/PanelWindow.vala | ||
src/Services/BackgroundManager.vala | ||
src/Services/IndicatorSorter.vala | ||
src/Services/PopoverManager.vala | ||
src/Services/Settings.vala | ||
src/Widgets/IndicatorEntry.vala | ||
src/Widgets/IndicatorMenuBar.vala | ||
src/Widgets/IndicatorPopover.vala | ||
src/Widgets/MenuBar.vala | ||
src/Widgets/Panel.vala | ||
src/Widgets/StyleClass.vala |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
i18n.gettext(meson.project_name(), | ||
args: ['--directory='+meson.source_root()], | ||
preset: 'glib', | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
shared_module('indicator-sample', | ||
'SampleIndicator.vala', | ||
dependencies: libwingpanel_dep, | ||
install: true, | ||
install_dir: indicators_dir | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
install_data( | ||
'io.elementary.desktop.wingpanel.gschema.xml', | ||
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
wingpanel_files = files( | ||
'Wingpanel.vala', | ||
'PanelWindow.vala', | ||
'Services/BackgroundManager.vala', | ||
'Services/IndicatorSorter.vala', | ||
'Services/PopoverManager.vala', | ||
'Services/Settings.vala', | ||
'Widgets/IndicatorEntry.vala', | ||
'Widgets/IndicatorMenuBar.vala', | ||
'Widgets/IndicatorPopover.vala', | ||
'Widgets/MenuBar.vala', | ||
'Widgets/Panel.vala', | ||
'Widgets/StyleClass.vala', | ||
) | ||
|
||
wingpanel_deps = [ | ||
libwingpanel_dep, | ||
granite_dep, | ||
] | ||
|
||
executable(meson.project_name(), | ||
wingpanel_files, | ||
dependencies: wingpanel_deps, | ||
install: true | ||
) |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Oops, something went wrong.