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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
|
types_headers = [
'bookmarks/ephy-bookmark-properties-grid.h',
'ephy-link.h',
'ephy-session.h',
'ephy-shell.h',
'ephy-window.h'
]
enums = gnome.mkenums_simple('ephy-type-builtins',
sources: types_headers
)
subdir('webextension')
libephymain_sources = [
'bookmarks/ephy-add-bookmark-popover.c',
'bookmarks/ephy-bookmark.c',
'bookmarks/ephy-bookmark-properties-grid.c',
'bookmarks/ephy-bookmark-row.c',
'bookmarks/ephy-bookmarks-export.c',
'bookmarks/ephy-bookmarks-import.c',
'bookmarks/ephy-bookmarks-manager.c',
'bookmarks/ephy-bookmarks-popover.c',
'ephy-action-bar.c',
'ephy-action-bar-end.c',
'ephy-action-bar-start.c',
'ephy-action-helper.c',
'ephy-desktop-utils.c',
'ephy-encoding-dialog.c',
'ephy-encoding-row.c',
'ephy-firefox-sync-dialog.c',
'ephy-fullscreen-box.c',
'ephy-header-bar.c',
'ephy-history-dialog.c',
'ephy-link.c',
'ephy-location-controller.c',
'ephy-lockdown.c',
'ephy-mouse-gesture-controller.c',
'ephy-page-row.c',
'ephy-pages-button.c',
'ephy-pages-popover.c',
'ephy-pages-view.c',
'ephy-session.c',
'ephy-shell.c',
'ephy-suggestion-model.c',
'ephy-tab-view.c',
'ephy-web-extension-dialog.c',
'ephy-window.c',
'popup-commands.c',
'preferences/clear-data-view.c',
'preferences/ephy-data-view.c',
'preferences/ephy-lang-row.c',
'preferences/ephy-prefs-dialog.c',
'preferences/passwords-view.c',
'preferences/ephy-search-engine-listbox.c',
'preferences/ephy-search-engine-row.c',
'preferences/prefs-appearance-page.c',
'preferences/prefs-general-page.c',
'preferences/prefs-privacy-page.c',
'preferences/webapp-additional-urls-dialog.c',
'synced-tabs-dialog.c',
'window-commands.c',
ephywebextension_src,
compile_schemas,
enums
]
libephymain_deps = [
config_h,
ephyembed_dep,
ephymisc_dep,
ephysync_dep,
ephywidgets_dep,
gdk_dep,
gvdb_dep,
libarchive_dep,
libhandy_dep
]
libephymain_includes = include_directories(
'.',
'..',
'bookmarks',
'preferences',
'webextension',
'webextension/api',
)
libephymain = shared_library('ephymain',
libephymain_sources,
dependencies: libephymain_deps,
include_directories: libephymain_includes,
install: true,
install_dir: pkglibdir,
install_rpath: pkglibdir
)
ephymain_dep = declare_dependency(
link_with: libephymain,
include_directories: libephymain_includes,
dependencies: libephymain_deps,
sources: enums
)
executable('ephy-profile-migrator',
'profile-migrator/ephy-profile-migrator.c',
dependencies: ephymain_dep,
install: true,
install_dir: pkglibexecdir,
install_rpath: pkglibdir
)
codegen = gnome.gdbus_codegen('ephy-shell-search-provider-generated',
'search-provider/org.gnome.ShellSearchProvider2.xml',
interface_prefix: 'org.gnome',
namespace: 'Ephy'
)
search_provider_sources = [
'search-provider/ephy-search-provider.c',
'search-provider/ephy-search-provider-main.c',
codegen
]
executable('epiphany-search-provider',
search_provider_sources,
dependencies: ephymain_dep,
install: true,
install_dir: libexecdir,
install_rpath: pkglibdir
)
resource_files = files('resources/epiphany.gresource.xml')
resources = gnome.compile_resources('epiphany-resources',
resource_files,
c_name: 'epiphany',
source_dir: 'resources'
)
epiphany_sources = [
'ephy-main.c',
resources,
pdfjs_resources,
highlightjs_resources,
readability_resources,
]
executable('epiphany',
epiphany_sources,
dependencies: ephymain_dep,
install: true,
install_rpath: pkglibdir
)
|