forked from spheras/desktopfolder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
meson.build
104 lines (93 loc) · 3.3 KB
/
meson.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
project('com.github.spheras.desktopfolder', ['vala', 'c'],
version: '1.0.10'
)
gnome = import('gnome')
i18n = import('i18n')
asresources = gnome.compile_resources(
'as-resources', 'data/css.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
add_project_arguments(['--vapidir', join_paths(meson.current_source_dir(), 'vapi')], language: 'vala')
conf = configuration_data()
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
configure_file(output: 'config.h', configuration: conf)
config_h_dir = include_directories('.')
c_args = [
'-include', 'config.h',
'-DWNCK_I_KNOW_THIS_IS_UNSTABLE'
]
#We need to add the math library if required
cc = meson.get_compiler('c')
m_dep = cc.find_library('m', required : false)
#Source files
src = [
'src/LanguageText.vala',
'src/Resources.vala',
'src/Application.vala',
'src/utils/Util.vala',
'src/utils/shortcut/Shortcut.vala',
'src/utils/shortcut/CustomShortcutSettings.vala',
'src/utils/menu/MenuItemColor.vala',
'src/utils/menu/MenuItemSeparator.vala',
'src/utils/clipboard/ClipboardFile.vala',
'src/utils/clipboard/ClipboardManager.vala',
'src/utils/dragndrop/DragNDrop.vala',
'src/utils/dragndrop/DndHandler.vala',
'src/utils/dragndrop/DndView.vala',
'src/utils/dragndrop/DndBehaviour.vala',
'src/utils/RenameDialog.vala',
'src/utils/animation/GtkAnimation.vala',
'src/utils/animation/Fx.vala',
'src/utils/EditableLabel.vala',
'src/widgets/DesktopWindow.vala',
'src/widgets/FolderWindow.vala',
'src/widgets/NoteWindow.vala',
'src/widgets/ItemView.vala',
'src/widgets/PhotoWindow.vala',
'src/settings/PositionSettings.vala',
'src/settings/FolderSettings.vala',
'src/settings/ItemSettings.vala',
'src/settings/NoteSettings.vala',
'src/settings/PhotoSettings.vala',
'src/logic/DesktopManager.vala',
'src/logic/FolderManager.vala',
'src/logic/ItemManager.vala',
'src/logic/NoteManager.vala',
'src/logic/PhotoManager.vala',
'src/dialogs/ProgressDialog.vala',
'src/dialogs/PanelPropertiesWindow.vala',
'src/logic/folderarrangement/FolderArrangement.vala',
'src/logic/folderarrangement/FolderArrangementFree.vala',
'src/logic/folderarrangement/FolderArrangementGrid.vala',
'src/logic/folderarrangement/FolderArrangementManaged.vala',
'src/logic/folderarrangement/FolderSort.vala',
'src/logic/folderarrangement/FolderSortByName.vala',
'src/logic/folderarrangement/FolderSortBySize.vala',
'src/logic/folderarrangement/FolderSortByType.vala',
'src/logic/folderarrangement/FolderGrid.vala'
]
exename = get_option('exename')
executable(
exename,
src,
asresources,
c_args: c_args,
dependencies: [
dependency('gio-unix-2.0'),
dependency('gee-0.8'),
dependency('glib-2.0'),
dependency('gobject-2.0'),
dependency('gtk+-3.0',version:'>=3.22'),
dependency('cairo'),
dependency('json-glib-1.0'),
dependency('gdk-pixbuf-2.0'),
dependency('libwnck-3.0'),
dependency('gtksourceview-3.0'),
m_dep
],
install : true
)
meson.add_install_script('meson/post_install.py')
subdir('data')
subdir('po')