~abreu-alexandre/unity-webapps-qml/backport-oxide-contenthub-fixes-1409

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
TEMPLATE = subdirs
SUBDIRS += api-bindings

OTHER_FILES += \
    $$system(ls */*.qml)

EXAMPLE_DATA_FILES = $$system(find ./data -type f | xargs)
for(file, EXAMPLE_DATA_FILES) {
  OTHER_FILES += $$file
}

DESKTOP_EXAMPLE_FILES = \
    unity-webapps-qml-basic-example.desktop \
    unity-webapps-qml-bbcnews-example.desktop \
    unity-webapps-qml-facebookmessenger-example.desktop \
    unity-webapps-qml-model-example.desktop

OTHER_FILES += $$DESKTOP_EXAMPLE_FILES

desktop_files.path = /usr/share/applications
desktop_files.files = $$DESKTOP_EXAMPLE_FILES

common_data_files.path = /usr/share/unity-webapps-qml/examples/data/userscripts/common
common_data_files.files = $$system(ls data/userscripts/common/*)

html_data_files.path = /usr/share/unity-webapps-qml/examples/data/html
html_data_files.files = $$system(ls data/html/*)

bbcnews_userscript_data_files.path = /usr/share/unity-webapps-qml/examples/data/userscripts/unity-webapps-bbcnews
bbcnews_userscript_data_files.files = $$system(ls data/userscripts/unity-webapps-bbcnews/*)

bbcnews_example_install.path = /usr/share/unity-webapps-qml/examples/unity-webapps-example-bbcnews
bbcnews_example_install.files = $$system(ls unity-webapps-example-bbcnews/*)

facebookmessenger_userscript_data_files.path = /usr/share/unity-webapps-qml/examples/data/userscripts/unity-webapps-facebookmessenger
facebookmessenger_userscript_data_files.files = $$system(ls data/userscripts/unity-webapps-facebookmessenger/*)

facebookmessenger_example_install.path = /usr/share/unity-webapps-qml/examples/unity-webapps-example-facebookmessenger
facebookmessenger_example_install.files = $$system(ls unity-webapps-example-facebookmessenger/*)

basic_webview_install.path = /usr/share/unity-webapps-qml/examples/basic-webview
basic_webview_install.files = $$system(ls basic-webview/*)

webapps_apps_model_install.path = /usr/share/unity-webapps-qml/examples/webapps-apps-model
webapps_apps_model_install.files = $$system(ls webapps-app-model/*)

INSTALLS += desktop_files \
    webapps_apps_model_install \
    basic_webview_install \
    common_data_files \
    bbcnews_example_install \
    bbcnews_userscript_data_files \
    facebookmessenger_example_install \
    facebookmessenger_userscript_data_files \
    html_data_files