Merge lp:~dpm/humpolec/converge-branches into lp:humpolec
- converge-branches
- Merge into UbuntuInstaller
Status: | Needs review |
---|---|
Proposed branch: | lp:~dpm/humpolec/converge-branches |
Merge into: | lp:humpolec |
Diff against target: |
3279 lines (+3057/-0) 36 files modified
.bzrignore (+1/-0) Android/boot-manager/Android.mk (+12/-0) Android/boot-manager/Makefile (+15/-0) Android/boot-manager/bootimg.h (+100/-0) Android/boot-manager/bootmgr.c (+149/-0) Android/loop-mount-agent/Android.mk (+27/-0) Android/loop-mount-agent/aloopmount.cpp (+133/-0) Ubuntu/Makefile (+203/-0) Ubuntu/app/Makefile (+14/-0) Ubuntu/app/tests/autopilot/contactsimporter/__init__.py (+132/-0) Ubuntu/app/tests/autopilot/contactsimporter/main/__init__.py (+1/-0) Ubuntu/app/tests/autopilot/contactsimporter/main/test_main.py (+23/-0) Ubuntu/app/tests/autopilot/run (+11/-0) Ubuntu/app/tests/unit/tst_hellocomponent.qml (+49/-0) Ubuntu/app/ubuntudualboot.desktop (+8/-0) Ubuntu/app/ubuntudualboot.qml (+57/-0) Ubuntu/backend/Makefile (+205/-0) Ubuntu/backend/backend.pro (+8/-0) Ubuntu/backend/modules/ubuntuboot/Makefile (+887/-0) Ubuntu/backend/modules/ubuntuboot/backend.cpp (+17/-0) Ubuntu/backend/modules/ubuntuboot/backend.h (+18/-0) Ubuntu/backend/modules/ubuntuboot/moc_backend.cpp (+155/-0) Ubuntu/backend/modules/ubuntuboot/moc_mytype.cpp (+162/-0) Ubuntu/backend/modules/ubuntuboot/moc_ubuntuboot.cpp (+213/-0) Ubuntu/backend/modules/ubuntuboot/qmldir (+2/-0) Ubuntu/backend/modules/ubuntuboot/ubuntuboot.cpp (+35/-0) Ubuntu/backend/modules/ubuntuboot/ubuntuboot.h (+50/-0) Ubuntu/backend/modules/ubuntuboot/ubuntuboot.pro (+36/-0) Ubuntu/click/manifest.json (+15/-0) Ubuntu/click/plugin/ubuntuboot/qmldir (+2/-0) Ubuntu/click/ubuntudualboot.desktop (+8/-0) Ubuntu/click/ubuntudualboot.json (+8/-0) Ubuntu/click/ubuntudualboot.qml (+57/-0) Ubuntu/click_howto (+9/-0) Ubuntu/ubuntudualboot.pro (+11/-0) install/dualboot.sh (+224/-0) |
To merge this branch: | bzr merge lp:~dpm/humpolec/converge-branches |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
The Humpolec team | Pending | ||
Review via email: mp+205719@code.launchpad.net |
Commit message
Description of the change
Currently the humpolec trunk branch associated with the project only contains the Android app.
Other branches including Android backend bits, the Ubuntu app and the installation script are scattered around under ~humpolec-
This makes it difficult to send merge proposals and to find out which branches are part of the project and which ones are either obsolete or feature branches from other contributors.
This merge proposal seeks to solve this issue with a light reorganization of the source tree to include all the code in one single branch. There are no changes in the code itself, it's simply an addition of the code in separate branches to the project's trunk branch.
David Planella (dpm) wrote : | # |
Thanks Rex for the reply. I still think there is benefit to having the code in one place, rather than using branches not directly connected to the project as if they were separate projects.
Keeping them all under the same project and branch as per this merge proposal is the simplest option. But there is another alternative: creating a separate project for each one of: Android app, Ubuntu app, boot manager, loop mount agent, install script and then creating a project group that includes each subproject. That's the way we did it for the Touch projects [1] and the core apps [2].
What do you think?
[1] https:/
[2] https:/
Rex Tsai (chihchun) wrote : | # |
Yes, I agree to create separate project for each codebase is much clear for end user.
Unmerged revisions
- 65. By David Planella
-
Removed files that don't need to be under version control as they are generated
- 64. By David Planella
-
Merged ubuntudualboot branch
- 63. By David Planella
-
Merged install-script branch
- 62. By David Planella
-
Merged bootmgr branch
- 61. By David Planella
-
Merged android-
loop-mount- agent branch - 60. By David Planella
-
Reorganized the source tree in preparation to adding the different parts of the project to the same branch
Preview Diff
1 | === modified file '.bzrignore' | |||
2 | --- .bzrignore 2013-12-08 16:01:23 +0000 | |||
3 | +++ .bzrignore 2014-02-11 09:12:08 +0000 | |||
4 | @@ -4,3 +4,4 @@ | |||
5 | 4 | gen | 4 | gen |
6 | 5 | android-ubuntu-launcher.apk | 5 | android-ubuntu-launcher.apk |
7 | 6 | 6 | ||
8 | 7 | ubuntudualboot.pro.user | ||
9 | 7 | 8 | ||
10 | === added directory 'Android' | |||
11 | === added directory 'Android/app' | |||
12 | === renamed file 'Android.mk' => 'Android/app/Android.mk' | |||
13 | === renamed file 'AndroidManifest.xml' => 'Android/app/AndroidManifest.xml' | |||
14 | === renamed directory 'art' => 'Android/app/art' | |||
15 | === renamed directory 'assets' => 'Android/app/assets' | |||
16 | === renamed file 'build.xml' => 'Android/app/build.xml' | |||
17 | === renamed directory 'doc' => 'Android/app/doc' | |||
18 | === renamed file 'ic_installer-web.png' => 'Android/app/ic_installer-web.png' | |||
19 | === renamed file 'ic_launcher-web.png' => 'Android/app/ic_launcher-web.png' | |||
20 | === renamed directory 'libs' => 'Android/app/libs' | |||
21 | === renamed file 'make_release.sh' => 'Android/app/make_release.sh' | |||
22 | === renamed file 'proguard-project.txt' => 'Android/app/proguard-project.txt' | |||
23 | === renamed file 'project.properties' => 'Android/app/project.properties' | |||
24 | === renamed directory 'res' => 'Android/app/res' | |||
25 | === renamed directory 'src' => 'Android/app/src' | |||
26 | === added directory 'Android/boot-manager' | |||
27 | === added file 'Android/boot-manager/Android.mk' | |||
28 | --- Android/boot-manager/Android.mk 1970-01-01 00:00:00 +0000 | |||
29 | +++ Android/boot-manager/Android.mk 2014-02-11 09:12:08 +0000 | |||
30 | @@ -0,0 +1,12 @@ | |||
31 | 1 | # Copyright 2013 Canonical Ltd. | ||
32 | 2 | |||
33 | 3 | LOCAL_PATH := $(call my-dir) | ||
34 | 4 | |||
35 | 5 | include $(CLEAR_VARS) | ||
36 | 6 | LOCAL_MODULE := bootmgr | ||
37 | 7 | LOCAL_MODULE_TAGS := optional | ||
38 | 8 | LOCAL_C_INCLUDES := $(LOCAL_PATH) | ||
39 | 9 | LOCAL_SRC_FILES := bootmgr.c | ||
40 | 10 | LOCAL_FORCE_STATIC_EXECUTABLE := true | ||
41 | 11 | LOCAL_STATIC_LIBRARIES := libc | ||
42 | 12 | include $(BUILD_EXECUTABLE) | ||
43 | 0 | 13 | ||
44 | === added file 'Android/boot-manager/Makefile' | |||
45 | --- Android/boot-manager/Makefile 1970-01-01 00:00:00 +0000 | |||
46 | +++ Android/boot-manager/Makefile 2014-02-11 09:12:08 +0000 | |||
47 | @@ -0,0 +1,15 @@ | |||
48 | 1 | # Copyright 2013 Canonical Ltd. | ||
49 | 2 | |||
50 | 3 | CC=gcc | ||
51 | 4 | CFLAGS=-I. -Wall | ||
52 | 5 | LDFLAGS= | ||
53 | 6 | |||
54 | 7 | all: bootmgr | ||
55 | 8 | |||
56 | 9 | bootmgr: bootmgr.c bootimg.h | ||
57 | 10 | $(CC) $(CFLAGS) -o $@ $< $(LDFLAGS) | ||
58 | 11 | |||
59 | 12 | .PHONY: clean | ||
60 | 13 | |||
61 | 14 | clean: | ||
62 | 15 | rm -f $(TARGETS) *.o | ||
63 | 0 | 16 | ||
64 | === added file 'Android/boot-manager/bootimg.h' | |||
65 | --- Android/boot-manager/bootimg.h 1970-01-01 00:00:00 +0000 | |||
66 | +++ Android/boot-manager/bootimg.h 2014-02-11 09:12:08 +0000 | |||
67 | @@ -0,0 +1,100 @@ | |||
68 | 1 | /* tools/mkbootimg/bootimg.h | ||
69 | 2 | ** | ||
70 | 3 | ** Copyright 2007, The Android Open Source Project | ||
71 | 4 | ** | ||
72 | 5 | ** Licensed under the Apache License, Version 2.0 (the "License"); | ||
73 | 6 | ** you may not use this file except in compliance with the License. | ||
74 | 7 | ** You may obtain a copy of the License at | ||
75 | 8 | ** | ||
76 | 9 | ** http://www.apache.org/licenses/LICENSE-2.0 | ||
77 | 10 | ** | ||
78 | 11 | ** Unless required by applicable law or agreed to in writing, software | ||
79 | 12 | ** distributed under the License is distributed on an "AS IS" BASIS, | ||
80 | 13 | ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
81 | 14 | ** See the License for the specific language governing permissions and | ||
82 | 15 | ** limitations under the License. | ||
83 | 16 | */ | ||
84 | 17 | |||
85 | 18 | #ifndef _BOOT_IMAGE_H_ | ||
86 | 19 | #define _BOOT_IMAGE_H_ | ||
87 | 20 | |||
88 | 21 | typedef struct boot_img_hdr boot_img_hdr; | ||
89 | 22 | |||
90 | 23 | #define BOOT_MAGIC "ANDROID!" | ||
91 | 24 | #define BOOT_MAGIC_SIZE 8 | ||
92 | 25 | #define BOOT_NAME_SIZE 16 | ||
93 | 26 | #define BOOT_ARGS_SIZE 512 | ||
94 | 27 | #define RESERVE_LOG_MAGIC 0x474F4C52 //ML,"RLOG" in ascii | ||
95 | 28 | |||
96 | 29 | struct boot_img_hdr | ||
97 | 30 | { | ||
98 | 31 | unsigned char magic[BOOT_MAGIC_SIZE]; | ||
99 | 32 | |||
100 | 33 | unsigned kernel_size; /* size in bytes */ | ||
101 | 34 | unsigned kernel_addr; /* physical load addr */ | ||
102 | 35 | |||
103 | 36 | unsigned ramdisk_size; /* size in bytes */ | ||
104 | 37 | unsigned ramdisk_addr; /* physical load addr */ | ||
105 | 38 | |||
106 | 39 | unsigned second_size; /* size in bytes */ | ||
107 | 40 | unsigned second_addr; /* physical load addr */ | ||
108 | 41 | |||
109 | 42 | unsigned tags_addr; /* physical addr for kernel tags */ | ||
110 | 43 | unsigned page_size; /* flash page size we assume */ | ||
111 | 44 | unsigned unused[2]; /* future expansion: should be 0 */ | ||
112 | 45 | |||
113 | 46 | unsigned char name[BOOT_NAME_SIZE]; /* asciiz product name */ | ||
114 | 47 | |||
115 | 48 | unsigned char cmdline[BOOT_ARGS_SIZE]; | ||
116 | 49 | |||
117 | 50 | unsigned id[8]; /* timestamp / checksum / sha1 / etc */ | ||
118 | 51 | unsigned log_buf_magic; /* physical log buf addr */ | ||
119 | 52 | unsigned log_buf_addr; /* physical log buf addr */ | ||
120 | 53 | }; | ||
121 | 54 | |||
122 | 55 | /* | ||
123 | 56 | ** +-----------------+ | ||
124 | 57 | ** | boot header | 1 page | ||
125 | 58 | ** +-----------------+ | ||
126 | 59 | ** | kernel | n pages | ||
127 | 60 | ** +-----------------+ | ||
128 | 61 | ** | ramdisk | m pages | ||
129 | 62 | ** +-----------------+ | ||
130 | 63 | ** | second stage | o pages | ||
131 | 64 | ** +-----------------+ | ||
132 | 65 | ** | ||
133 | 66 | ** n = (kernel_size + page_size - 1) / page_size | ||
134 | 67 | ** m = (ramdisk_size + page_size - 1) / page_size | ||
135 | 68 | ** o = (second_size + page_size - 1) / page_size | ||
136 | 69 | ** | ||
137 | 70 | ** 0. all entities are page_size aligned in flash | ||
138 | 71 | ** 1. kernel and ramdisk are required (size != 0) | ||
139 | 72 | ** 2. second is optional (second_size == 0 -> no second) | ||
140 | 73 | ** 3. load each element (kernel, ramdisk, second) at | ||
141 | 74 | ** the specified physical address (kernel_addr, etc) | ||
142 | 75 | ** 4. prepare tags at tag_addr. kernel_args[] is | ||
143 | 76 | ** appended to the kernel commandline in the tags. | ||
144 | 77 | ** 5. r0 = 0, r1 = MACHINE_TYPE, r2 = tags_addr | ||
145 | 78 | ** 6. if second_size != 0: jump to second_addr | ||
146 | 79 | ** else: jump to kernel_addr | ||
147 | 80 | */ | ||
148 | 81 | |||
149 | 82 | #if 0 | ||
150 | 83 | typedef struct ptentry ptentry; | ||
151 | 84 | |||
152 | 85 | struct ptentry { | ||
153 | 86 | char name[16]; /* asciiz partition name */ | ||
154 | 87 | unsigned start; /* starting block number */ | ||
155 | 88 | unsigned length; /* length in blocks */ | ||
156 | 89 | unsigned flags; /* set to zero */ | ||
157 | 90 | }; | ||
158 | 91 | |||
159 | 92 | /* MSM Partition Table ATAG | ||
160 | 93 | ** | ||
161 | 94 | ** length: 2 + 7 * n | ||
162 | 95 | ** atag: 0x4d534d70 | ||
163 | 96 | ** <ptentry> x n | ||
164 | 97 | */ | ||
165 | 98 | #endif | ||
166 | 99 | |||
167 | 100 | #endif | ||
168 | 0 | 101 | ||
169 | === added file 'Android/boot-manager/bootmgr.c' | |||
170 | --- Android/boot-manager/bootmgr.c 1970-01-01 00:00:00 +0000 | |||
171 | +++ Android/boot-manager/bootmgr.c 2014-02-11 09:12:08 +0000 | |||
172 | @@ -0,0 +1,149 @@ | |||
173 | 1 | /* | ||
174 | 2 | * Copyright 2013 Canonical Ltd. | ||
175 | 3 | * Authros | ||
176 | 4 | * Rex Tsai <rex.tsai@canonical.com> | ||
177 | 5 | * | ||
178 | 6 | * Copyright 2011 Jens Andersen (@EnJens) | ||
179 | 7 | */ | ||
180 | 8 | |||
181 | 9 | #include <stdio.h> | ||
182 | 10 | #include <stdlib.h> | ||
183 | 11 | #include <string.h> | ||
184 | 12 | #include "bootimg.h" | ||
185 | 13 | |||
186 | 14 | #ifdef __ANDROID__ | ||
187 | 15 | #include <utils/Log.h> | ||
188 | 16 | #endif | ||
189 | 17 | |||
190 | 18 | |||
191 | 19 | #ifndef SHA_DIGEST_SIZE | ||
192 | 20 | #define SHA_DIGEST_SIZE 20 | ||
193 | 21 | #endif | ||
194 | 22 | #define SHA_DIGEST_STR_SIZE 40 | ||
195 | 23 | #define BUFFER_SIZE 2048 | ||
196 | 24 | |||
197 | 25 | #ifdef __ANDROID__ | ||
198 | 26 | #define debug(fmt, ...) do { \ | ||
199 | 27 | printf(fmt, __VA_ARGS__); \ | ||
200 | 28 | ALOGV(fmt,__VA_ARGS__); \ | ||
201 | 29 | } while(0) | ||
202 | 30 | #else | ||
203 | 31 | #define debug(fmt, ...) do { \ | ||
204 | 32 | printf(fmt, __VA_ARGS__); \ | ||
205 | 33 | } while(0) | ||
206 | 34 | #endif | ||
207 | 35 | |||
208 | 36 | |||
209 | 37 | int verify(char* filename, char* sha1sum, int* size, int verbose) | ||
210 | 38 | { | ||
211 | 39 | boot_img_hdr hdr; | ||
212 | 40 | FILE *fh; | ||
213 | 41 | |||
214 | 42 | fh = fopen(filename, "r"); | ||
215 | 43 | if(fh == NULL) | ||
216 | 44 | return -1; | ||
217 | 45 | fread(&hdr, sizeof(boot_img_hdr), 1, fh); | ||
218 | 46 | fclose(fh); | ||
219 | 47 | |||
220 | 48 | // it's not even a boot image. | ||
221 | 49 | if(strncmp((const char*)hdr.magic, BOOT_MAGIC, BOOT_MAGIC_SIZE)) | ||
222 | 50 | return -2; | ||
223 | 51 | if(hdr.kernel_size < 1 || hdr.ramdisk_size < 1) | ||
224 | 52 | return -2; | ||
225 | 53 | |||
226 | 54 | unsigned int header_padding = sizeof(boot_img_hdr) + (-sizeof(boot_img_hdr) & (hdr.page_size -1)); | ||
227 | 55 | unsigned int kernel_padding = hdr.kernel_size + ((-hdr.kernel_size) & (hdr.page_size -1)); | ||
228 | 56 | unsigned int ramdisk_padding = hdr.ramdisk_size + ((-hdr.ramdisk_size) & (hdr.page_size -1)); | ||
229 | 57 | |||
230 | 58 | *size = header_padding + kernel_padding + ramdisk_padding + hdr.second_size; | ||
231 | 59 | |||
232 | 60 | snprintf(sha1sum, SHA_DIGEST_STR_SIZE, "%X%X%X%X%X", hdr.id[0], hdr.id[1], hdr.id[2], hdr.id[3], hdr.id[4]); | ||
233 | 61 | |||
234 | 62 | if(verbose) { | ||
235 | 63 | debug("Magic: %.*s\n", BOOT_MAGIC_SIZE, hdr.magic); | ||
236 | 64 | debug("ID: %s\n", sha1sum); | ||
237 | 65 | debug("Kernel size: 0x%X (%d)\n", hdr.kernel_size, hdr.kernel_size); | ||
238 | 66 | debug("Kernel addr: 0x%X\n", hdr.kernel_addr); | ||
239 | 67 | debug("Ramdisk size: 0x%X (%d)\n", hdr.ramdisk_size, hdr.ramdisk_size); | ||
240 | 68 | debug("Ramdisk addr: 0x%X\n", hdr.ramdisk_addr); | ||
241 | 69 | |||
242 | 70 | debug("Second size: 0x%X (%d)\n", hdr.second_size, hdr.second_size); | ||
243 | 71 | debug("Second addr: 0x%X\n", hdr.second_addr); | ||
244 | 72 | debug("Tags addr: 0x%X\n", hdr.tags_addr); | ||
245 | 73 | debug("Page size: 0x%X (%d)\n", hdr.page_size, hdr.page_size); | ||
246 | 74 | debug("Name: %.*s\n", BOOT_NAME_SIZE, hdr.name); | ||
247 | 75 | debug("Cmdline: %.*s\n", BOOT_ARGS_SIZE, hdr.cmdline); | ||
248 | 76 | } | ||
249 | 77 | return 0; | ||
250 | 78 | } | ||
251 | 79 | |||
252 | 80 | int main(int argc, char **argv) | ||
253 | 81 | { | ||
254 | 82 | char* sha1sum = malloc(SHA_DIGEST_STR_SIZE*sizeof(char)); | ||
255 | 83 | |||
256 | 84 | int filesize; | ||
257 | 85 | int dump = 0; | ||
258 | 86 | |||
259 | 87 | |||
260 | 88 | if(argc < 3) { | ||
261 | 89 | debug("Usage: %s [-d(ump)] [-c](checksum) [-b](backup) <boot.img>\n", argv[0]); | ||
262 | 90 | return -1; | ||
263 | 91 | } | ||
264 | 92 | |||
265 | 93 | // dump the image information. | ||
266 | 94 | if(!strncmp(argv[1], "-d", 2*sizeof(char))) { | ||
267 | 95 | dump = 1; | ||
268 | 96 | } | ||
269 | 97 | |||
270 | 98 | if(verify(argv[2], sha1sum, &filesize, dump) < 0) { | ||
271 | 99 | debug("%s is not a correct image.\n", argv[2]); | ||
272 | 100 | return -1; | ||
273 | 101 | } | ||
274 | 102 | if(dump) | ||
275 | 103 | return 0; | ||
276 | 104 | |||
277 | 105 | // dump the image checksum | ||
278 | 106 | if(!strncmp(argv[1], "-c", 2*sizeof(char))) { | ||
279 | 107 | debug("%s\n", sha1sum); | ||
280 | 108 | return 0; | ||
281 | 109 | } | ||
282 | 110 | |||
283 | 111 | // backup the image | ||
284 | 112 | if(!strncmp(argv[1], "-b", 2*sizeof(char))) { | ||
285 | 113 | char* out_sha1sum = malloc(SHA_DIGEST_STR_SIZE*sizeof(char)); | ||
286 | 114 | int out_filesize; | ||
287 | 115 | |||
288 | 116 | // check if files have same checksum | ||
289 | 117 | if(verify(argv[3], out_sha1sum, &out_filesize, 0) == 0) | ||
290 | 118 | if(strncmp(sha1sum, out_sha1sum, SHA_DIGEST_STR_SIZE) == 0) | ||
291 | 119 | return 0; | ||
292 | 120 | |||
293 | 121 | |||
294 | 122 | unsigned int dataleft = filesize; | ||
295 | 123 | FILE *in; | ||
296 | 124 | FILE *out; | ||
297 | 125 | in = fopen(argv[2], "rb"); | ||
298 | 126 | out = fopen(argv[3], "wb"); | ||
299 | 127 | if(in == NULL || out == NULL) return -1; | ||
300 | 128 | |||
301 | 129 | char buffer[BUFFER_SIZE]; | ||
302 | 130 | while(dataleft > 0) { | ||
303 | 131 | unsigned int fsize = BUFFER_SIZE < dataleft ? BUFFER_SIZE : dataleft; | ||
304 | 132 | unsigned int read_data = fread(buffer, 1, fsize, in); | ||
305 | 133 | unsigned int written_data = fwrite(buffer, 1, read_data, out); | ||
306 | 134 | if(read_data != written_data) { | ||
307 | 135 | abort(); | ||
308 | 136 | } | ||
309 | 137 | dataleft -= read_data; | ||
310 | 138 | } | ||
311 | 139 | |||
312 | 140 | fclose(in); | ||
313 | 141 | fclose(out); | ||
314 | 142 | |||
315 | 143 | return 0; | ||
316 | 144 | } | ||
317 | 145 | |||
318 | 146 | debug("Usage: %s [-d(ump)] [-c](checksum) [-b](backup) <boot.img>\n", argv[0]); | ||
319 | 147 | return -1; | ||
320 | 148 | |||
321 | 149 | } | ||
322 | 0 | 150 | ||
323 | === added directory 'Android/loop-mount-agent' | |||
324 | === added file 'Android/loop-mount-agent/Android.mk' | |||
325 | --- Android/loop-mount-agent/Android.mk 1970-01-01 00:00:00 +0000 | |||
326 | +++ Android/loop-mount-agent/Android.mk 2014-02-11 09:12:08 +0000 | |||
327 | @@ -0,0 +1,27 @@ | |||
328 | 1 | # | ||
329 | 2 | # Copyright (C) 2012 Canonical, Ltd. All rights reserved. | ||
330 | 3 | # | ||
331 | 4 | |||
332 | 5 | LOCAL_PATH:= $(call my-dir) | ||
333 | 6 | |||
334 | 7 | include $(CLEAR_VARS) | ||
335 | 8 | |||
336 | 9 | LOCAL_SRC_FILES:= aloopmount.cpp | ||
337 | 10 | |||
338 | 11 | LOCAL_SHARED_LIBRARIES := \ | ||
339 | 12 | libutils \ | ||
340 | 13 | libcutils \ | ||
341 | 14 | libbinder \ | ||
342 | 15 | libdl | ||
343 | 16 | |||
344 | 17 | LOCAL_STATIC_LIBRARIES := libvold | ||
345 | 18 | |||
346 | 19 | LOCAL_C_INCLUDES := \ | ||
347 | 20 | $(TOP)/frameworks/base/include \ | ||
348 | 21 | $(TOP)/system | ||
349 | 22 | |||
350 | 23 | LOCAL_MODULE:= aloopmount | ||
351 | 24 | |||
352 | 25 | LOCAL_MODULE_TAGS := optional | ||
353 | 26 | |||
354 | 27 | include $(BUILD_EXECUTABLE) | ||
355 | 0 | 28 | ||
356 | === added file 'Android/loop-mount-agent/aloopmount.cpp' | |||
357 | --- Android/loop-mount-agent/aloopmount.cpp 1970-01-01 00:00:00 +0000 | |||
358 | +++ Android/loop-mount-agent/aloopmount.cpp 2014-02-11 09:12:08 +0000 | |||
359 | @@ -0,0 +1,133 @@ | |||
360 | 1 | #define LOG_NDEBUG 0 | ||
361 | 2 | #define LOG_TAG "AndroidLoopMountManager" | ||
362 | 3 | #include <utils/Log.h> | ||
363 | 4 | |||
364 | 5 | #include <errno.h> | ||
365 | 6 | #include <stdio.h> | ||
366 | 7 | #include <stdlib.h> | ||
367 | 8 | #include <string.h> | ||
368 | 9 | #include <sys/mount.h> | ||
369 | 10 | #include <vold/Ext4.h> | ||
370 | 11 | #include <vold/Loop.h> | ||
371 | 12 | #include <private/android_filesystem_config.h> | ||
372 | 13 | |||
373 | 14 | int main(int, char **); | ||
374 | 15 | |||
375 | 16 | static void printUsage() { | ||
376 | 17 | printf("This is android optimised loop mount agent allowing to safely loop mount and unmount in android environment\n"); | ||
377 | 18 | printf("Loop devices are atomatically managed and does not need to be manually created or destroyed\n"); | ||
378 | 19 | printf("Usage:\n"); | ||
379 | 20 | printf(" mount: aMountAgent mount <filesystem type> <image> <mountpoint>\n"); | ||
380 | 21 | printf(" mount: aMountAgent umount <mountpoint>\n"); | ||
381 | 22 | } | ||
382 | 23 | |||
383 | 24 | int mountimage(int argc, char **argv) { | ||
384 | 25 | // we require 5 params <aloopmount> <command: mount> <fstype: ext4> <image: iso.img> <mount point: /tm/iso> | ||
385 | 26 | if (argc != 5) { | ||
386 | 27 | printf("Not enough parameter for mount.\n"); | ||
387 | 28 | printUsage(); | ||
388 | 29 | return -1; | ||
389 | 30 | } | ||
390 | 31 | char* fstype = argv[2]; | ||
391 | 32 | char* image = argv[3]; | ||
392 | 33 | char* mountPoint = realpath(argv[4], NULL); | ||
393 | 34 | if(!mountPoint) { | ||
394 | 35 | printf("Can not access %s - %s (%d)\n", argv[4], strerror(errno), errno); | ||
395 | 36 | return -1; | ||
396 | 37 | } | ||
397 | 38 | |||
398 | 39 | printf("Mounting %s of fstype %s to %s\n", image, fstype, mountPoint); | ||
399 | 40 | char loopDevice[255]; | ||
400 | 41 | unsigned long flags; | ||
401 | 42 | flags = MS_NOATIME | MS_NODEV | MS_NOSUID | MS_DIRSYNC; | ||
402 | 43 | bool loopExists = false; | ||
403 | 44 | if (!Loop::lookupActive(mountPoint, loopDevice, sizeof(loopDevice))) { | ||
404 | 45 | // there is existing loop device for this mountpoint, something is not right | ||
405 | 46 | // try to mount but if fails, do not destroy loop device | ||
406 | 47 | loopExists = true; | ||
407 | 48 | ALOGV("Loop device already exists: %s", loopDevice); | ||
408 | 49 | } else { | ||
409 | 50 | // create loop device | ||
410 | 51 | if (Loop::create(mountPoint, image, loopDevice, sizeof(loopDevice))) { | ||
411 | 52 | ALOGE("Failed to create lopp device for %s", image); | ||
412 | 53 | printf("Failed to create lopp device for %s\n", image); | ||
413 | 54 | return -1; | ||
414 | 55 | } | ||
415 | 56 | } | ||
416 | 57 | // try to mount | ||
417 | 58 | if (!mount(loopDevice, mountPoint, fstype, flags, NULL)) { | ||
418 | 59 | SLOGV("%s mounted to %s with loop device %s", image, mountPoint, loopDevice); | ||
419 | 60 | printf("%s mounted to %s with loop device %s\n", image, mountPoint, loopDevice); | ||
420 | 61 | return 0; | ||
421 | 62 | } | ||
422 | 63 | |||
423 | 64 | // mount failed | ||
424 | 65 | SLOGE("mount failed for %s with error %d %s", mountPoint, errno, strerror(errno)); | ||
425 | 66 | printf("mount failed for %s with error %d %s\n", mountPoint, errno, strerror(errno)); | ||
426 | 67 | // shall we try to destroy loop device? | ||
427 | 68 | if (!loopExists) { | ||
428 | 69 | if ( 0 != Loop::destroyByDevice(loopDevice)) { | ||
429 | 70 | ALOGE("Failed to destroy loop: %s with error %d %s", loopDevice, errno, strerror(errno)); | ||
430 | 71 | printf("Failed to destroy loop: %s with error %d %s\n",loopDevice, errno, strerror(errno)); | ||
431 | 72 | } | ||
432 | 73 | } | ||
433 | 74 | return -1; | ||
434 | 75 | } | ||
435 | 76 | |||
436 | 77 | int unmountMountpoint(int argc, char ** argv) { | ||
437 | 78 | |||
438 | 79 | // we require 3 params <aloopmont> <command: umount> <mount point: /tm/iso> | ||
439 | 80 | if (argc != 3) { | ||
440 | 81 | printf("Not enough parameter for mount.\n"); | ||
441 | 82 | printUsage(); | ||
442 | 83 | return -1; | ||
443 | 84 | } | ||
444 | 85 | // try to unmount first | ||
445 | 86 | char *mountPoint = realpath(argv[2], NULL); | ||
446 | 87 | if(!mountPoint) { | ||
447 | 88 | printf("Can not access %s - %s (%d)\n", argv[2], strerror(errno), errno); | ||
448 | 89 | return -1; | ||
449 | 90 | } | ||
450 | 91 | |||
451 | 92 | if (0 != umount(mountPoint)) { | ||
452 | 93 | ALOGE("Failed to unmount %s with %d, %s", mountPoint, errno, strerror(errno)); | ||
453 | 94 | printf("Failed to unmount %s with %d, %s\n", mountPoint, errno, strerror(errno)); | ||
454 | 95 | return -1; | ||
455 | 96 | } | ||
456 | 97 | // try to destroy loop device | ||
457 | 98 | char loopDevice[255]; | ||
458 | 99 | if (!Loop::lookupActive(mountPoint, loopDevice, sizeof(loopDevice))) { | ||
459 | 100 | if ( 0 != Loop::destroyByDevice(loopDevice)) { | ||
460 | 101 | printf("Failed to destroy loop: %s\n",loopDevice); | ||
461 | 102 | return -1; | ||
462 | 103 | } | ||
463 | 104 | } else { | ||
464 | 105 | printf("No loop device for: %s was found, was this loop mount?!\n", mountPoint); | ||
465 | 106 | return -1; | ||
466 | 107 | } | ||
467 | 108 | printf("%s umounted, loop device %s destroyed\n", mountPoint, loopDevice); | ||
468 | 109 | return 0; | ||
469 | 110 | } | ||
470 | 111 | |||
471 | 112 | int main(int argc, char **argv) { | ||
472 | 113 | /* first parameter will define if we do mount or umount | ||
473 | 114 | * -mount has 3 parameter: mount <fstype> <image> <mountpoint> | ||
474 | 115 | * -umount has 1 parameter: umount <mountpoint> | ||
475 | 116 | */ | ||
476 | 117 | ALOGV("Number of passed parameters %d", argc); | ||
477 | 118 | ALOGV("Called as: %s", argv[0]); | ||
478 | 119 | if (argc < 2) { | ||
479 | 120 | printf("Not enought parameters\n"); | ||
480 | 121 | printUsage(); | ||
481 | 122 | return -1; | ||
482 | 123 | } else if (!strcmp(argv[1], "mount")) { | ||
483 | 124 | // perform mount | ||
484 | 125 | return mountimage(argc, argv); | ||
485 | 126 | } else if (!strcmp(argv[1], "umount")) { | ||
486 | 127 | // perform umount | ||
487 | 128 | return unmountMountpoint(argc, argv); | ||
488 | 129 | } | ||
489 | 130 | printf("Unknown command\n"); | ||
490 | 131 | printUsage(); | ||
491 | 132 | return -1; | ||
492 | 133 | } | ||
493 | 0 | 134 | ||
494 | === added directory 'Ubuntu' | |||
495 | === added file 'Ubuntu/Makefile' | |||
496 | --- Ubuntu/Makefile 1970-01-01 00:00:00 +0000 | |||
497 | +++ Ubuntu/Makefile 2014-02-11 09:12:08 +0000 | |||
498 | @@ -0,0 +1,203 @@ | |||
499 | 1 | ############################################################################# | ||
500 | 2 | # Makefile for building: ubuntudualboot | ||
501 | 3 | # Generated by qmake (3.0) (Qt 5.0.2) on: Fri Dec 13 17:04:22 2013 | ||
502 | 4 | # Project: ubuntudualboot.pro | ||
503 | 5 | # Template: subdirs | ||
504 | 6 | # Command: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake -o Makefile ubuntudualboot.pro | ||
505 | 7 | ############################################################################# | ||
506 | 8 | |||
507 | 9 | MAKEFILE = Makefile | ||
508 | 10 | |||
509 | 11 | first: make_first | ||
510 | 12 | QMAKE = /usr/lib/x86_64-linux-gnu/qt5/bin/qmake | ||
511 | 13 | DEL_FILE = rm -f | ||
512 | 14 | CHK_DIR_EXISTS= test -d | ||
513 | 15 | MKDIR = mkdir -p | ||
514 | 16 | COPY = cp -f | ||
515 | 17 | COPY_FILE = cp -f | ||
516 | 18 | COPY_DIR = cp -f -R | ||
517 | 19 | INSTALL_FILE = install -m 644 -p | ||
518 | 20 | INSTALL_PROGRAM = install -m 755 -p | ||
519 | 21 | INSTALL_DIR = $(COPY_DIR) | ||
520 | 22 | DEL_FILE = rm -f | ||
521 | 23 | SYMLINK = ln -f -s | ||
522 | 24 | DEL_DIR = rmdir | ||
523 | 25 | MOVE = mv -f | ||
524 | 26 | SUBTARGETS = \ | ||
525 | 27 | sub-backend | ||
526 | 28 | |||
527 | 29 | |||
528 | 30 | sub-backend-qmake_all: FORCE | ||
529 | 31 | @test -d backend/ || mkdir -p backend/ | ||
530 | 32 | cd backend/ && $(QMAKE) /home/victorp/ubuntudualboot/backend/backend.pro -o Makefile | ||
531 | 33 | cd backend/ && $(MAKE) -f Makefile qmake_all | ||
532 | 34 | sub-backend: FORCE | ||
533 | 35 | @test -d backend/ || mkdir -p backend/ | ||
534 | 36 | cd backend/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/backend.pro -o Makefile ) && $(MAKE) -f Makefile | ||
535 | 37 | sub-backend-make_first: FORCE | ||
536 | 38 | @test -d backend/ || mkdir -p backend/ | ||
537 | 39 | cd backend/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/backend.pro -o Makefile ) && $(MAKE) -f Makefile | ||
538 | 40 | sub-backend-all: FORCE | ||
539 | 41 | @test -d backend/ || mkdir -p backend/ | ||
540 | 42 | cd backend/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/backend.pro -o Makefile ) && $(MAKE) -f Makefile all | ||
541 | 43 | sub-backend-clean: FORCE | ||
542 | 44 | @test -d backend/ || mkdir -p backend/ | ||
543 | 45 | cd backend/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/backend.pro -o Makefile ) && $(MAKE) -f Makefile clean | ||
544 | 46 | sub-backend-distclean: FORCE | ||
545 | 47 | @test -d backend/ || mkdir -p backend/ | ||
546 | 48 | cd backend/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/backend.pro -o Makefile ) && $(MAKE) -f Makefile distclean | ||
547 | 49 | sub-backend-install_subtargets: FORCE | ||
548 | 50 | @test -d backend/ || mkdir -p backend/ | ||
549 | 51 | cd backend/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/backend.pro -o Makefile ) && $(MAKE) -f Makefile install | ||
550 | 52 | sub-backend-uninstall_subtargets: FORCE | ||
551 | 53 | @test -d backend/ || mkdir -p backend/ | ||
552 | 54 | cd backend/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/backend.pro -o Makefile ) && $(MAKE) -f Makefile uninstall | ||
553 | 55 | |||
554 | 56 | Makefile: ubuntudualboot.pro /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf /usr/share/qt5/mkspecs/features/spec_pre.prf \ | ||
555 | 57 | /usr/share/qt5/mkspecs/common/shell-unix.conf \ | ||
556 | 58 | /usr/share/qt5/mkspecs/common/unix.conf \ | ||
557 | 59 | /usr/share/qt5/mkspecs/common/linux.conf \ | ||
558 | 60 | /usr/share/qt5/mkspecs/common/gcc-base.conf \ | ||
559 | 61 | /usr/share/qt5/mkspecs/common/gcc-base-unix.conf \ | ||
560 | 62 | /usr/share/qt5/mkspecs/common/g++-base.conf \ | ||
561 | 63 | /usr/share/qt5/mkspecs/common/g++-unix.conf \ | ||
562 | 64 | /usr/share/qt5/mkspecs/qconfig.pri \ | ||
563 | 65 | /usr/share/qt5/mkspecs/modules/qt_lib_3d.pri \ | ||
564 | 66 | /usr/share/qt5/mkspecs/modules/qt_lib_3dquick.pri \ | ||
565 | 67 | /usr/share/qt5/mkspecs/modules/qt_lib_bootstrap.pri \ | ||
566 | 68 | /usr/share/qt5/mkspecs/modules/qt_lib_clucene.pri \ | ||
567 | 69 | /usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri \ | ||
568 | 70 | /usr/share/qt5/mkspecs/modules/qt_lib_core.pri \ | ||
569 | 71 | /usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri \ | ||
570 | 72 | /usr/share/qt5/mkspecs/modules/qt_lib_designer.pri \ | ||
571 | 73 | /usr/share/qt5/mkspecs/modules/qt_lib_designercomponents.pri \ | ||
572 | 74 | /usr/share/qt5/mkspecs/modules/qt_lib_gui.pri \ | ||
573 | 75 | /usr/share/qt5/mkspecs/modules/qt_lib_help.pri \ | ||
574 | 76 | /usr/share/qt5/mkspecs/modules/qt_lib_location.pri \ | ||
575 | 77 | /usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri \ | ||
576 | 78 | /usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri \ | ||
577 | 79 | /usr/share/qt5/mkspecs/modules/qt_lib_network.pri \ | ||
578 | 80 | /usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri \ | ||
579 | 81 | /usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri \ | ||
580 | 82 | /usr/share/qt5/mkspecs/modules/qt_lib_printsupport.pri \ | ||
581 | 83 | /usr/share/qt5/mkspecs/modules/qt_lib_qml.pri \ | ||
582 | 84 | /usr/share/qt5/mkspecs/modules/qt_lib_qmldevtools.pri \ | ||
583 | 85 | /usr/share/qt5/mkspecs/modules/qt_lib_qmltest.pri \ | ||
584 | 86 | /usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri \ | ||
585 | 87 | /usr/share/qt5/mkspecs/modules/qt_lib_quick.pri \ | ||
586 | 88 | /usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri \ | ||
587 | 89 | /usr/share/qt5/mkspecs/modules/qt_lib_script.pri \ | ||
588 | 90 | /usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri \ | ||
589 | 91 | /usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri \ | ||
590 | 92 | /usr/share/qt5/mkspecs/modules/qt_lib_sql.pri \ | ||
591 | 93 | /usr/share/qt5/mkspecs/modules/qt_lib_svg.pri \ | ||
592 | 94 | /usr/share/qt5/mkspecs/modules/qt_lib_testlib.pri \ | ||
593 | 95 | /usr/share/qt5/mkspecs/modules/qt_lib_uitools.pri \ | ||
594 | 96 | /usr/share/qt5/mkspecs/modules/qt_lib_v8.pri \ | ||
595 | 97 | /usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri \ | ||
596 | 98 | /usr/share/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri \ | ||
597 | 99 | /usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri \ | ||
598 | 100 | /usr/share/qt5/mkspecs/modules/qt_lib_xml.pri \ | ||
599 | 101 | /usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \ | ||
600 | 102 | /usr/share/qt5/mkspecs/features/qt_functions.prf \ | ||
601 | 103 | /usr/share/qt5/mkspecs/features/qt_config.prf \ | ||
602 | 104 | /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf \ | ||
603 | 105 | /usr/share/qt5/mkspecs/features/spec_post.prf \ | ||
604 | 106 | /usr/share/qt5/mkspecs/features/exclusive_builds.prf \ | ||
605 | 107 | /usr/share/qt5/mkspecs/features/default_pre.prf \ | ||
606 | 108 | /usr/share/qt5/mkspecs/features/unix/default_pre.prf \ | ||
607 | 109 | /usr/share/qt5/mkspecs/features/resolve_config.prf \ | ||
608 | 110 | /usr/share/qt5/mkspecs/features/default_post.prf \ | ||
609 | 111 | /usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf \ | ||
610 | 112 | /usr/share/qt5/mkspecs/features/warn_on.prf \ | ||
611 | 113 | /usr/share/qt5/mkspecs/features/wayland-scanner.prf \ | ||
612 | 114 | /usr/share/qt5/mkspecs/features/testcase_targets.prf \ | ||
613 | 115 | /usr/share/qt5/mkspecs/features/exceptions.prf \ | ||
614 | 116 | /usr/share/qt5/mkspecs/features/yacc.prf \ | ||
615 | 117 | /usr/share/qt5/mkspecs/features/lex.prf \ | ||
616 | 118 | ubuntudualboot.pro | ||
617 | 119 | $(QMAKE) -o Makefile ubuntudualboot.pro | ||
618 | 120 | /usr/share/qt5/mkspecs/features/spec_pre.prf: | ||
619 | 121 | /usr/share/qt5/mkspecs/common/shell-unix.conf: | ||
620 | 122 | /usr/share/qt5/mkspecs/common/unix.conf: | ||
621 | 123 | /usr/share/qt5/mkspecs/common/linux.conf: | ||
622 | 124 | /usr/share/qt5/mkspecs/common/gcc-base.conf: | ||
623 | 125 | /usr/share/qt5/mkspecs/common/gcc-base-unix.conf: | ||
624 | 126 | /usr/share/qt5/mkspecs/common/g++-base.conf: | ||
625 | 127 | /usr/share/qt5/mkspecs/common/g++-unix.conf: | ||
626 | 128 | /usr/share/qt5/mkspecs/qconfig.pri: | ||
627 | 129 | /usr/share/qt5/mkspecs/modules/qt_lib_3d.pri: | ||
628 | 130 | /usr/share/qt5/mkspecs/modules/qt_lib_3dquick.pri: | ||
629 | 131 | /usr/share/qt5/mkspecs/modules/qt_lib_bootstrap.pri: | ||
630 | 132 | /usr/share/qt5/mkspecs/modules/qt_lib_clucene.pri: | ||
631 | 133 | /usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri: | ||
632 | 134 | /usr/share/qt5/mkspecs/modules/qt_lib_core.pri: | ||
633 | 135 | /usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri: | ||
634 | 136 | /usr/share/qt5/mkspecs/modules/qt_lib_designer.pri: | ||
635 | 137 | /usr/share/qt5/mkspecs/modules/qt_lib_designercomponents.pri: | ||
636 | 138 | /usr/share/qt5/mkspecs/modules/qt_lib_gui.pri: | ||
637 | 139 | /usr/share/qt5/mkspecs/modules/qt_lib_help.pri: | ||
638 | 140 | /usr/share/qt5/mkspecs/modules/qt_lib_location.pri: | ||
639 | 141 | /usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri: | ||
640 | 142 | /usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri: | ||
641 | 143 | /usr/share/qt5/mkspecs/modules/qt_lib_network.pri: | ||
642 | 144 | /usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri: | ||
643 | 145 | /usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri: | ||
644 | 146 | /usr/share/qt5/mkspecs/modules/qt_lib_printsupport.pri: | ||
645 | 147 | /usr/share/qt5/mkspecs/modules/qt_lib_qml.pri: | ||
646 | 148 | /usr/share/qt5/mkspecs/modules/qt_lib_qmldevtools.pri: | ||
647 | 149 | /usr/share/qt5/mkspecs/modules/qt_lib_qmltest.pri: | ||
648 | 150 | /usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri: | ||
649 | 151 | /usr/share/qt5/mkspecs/modules/qt_lib_quick.pri: | ||
650 | 152 | /usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri: | ||
651 | 153 | /usr/share/qt5/mkspecs/modules/qt_lib_script.pri: | ||
652 | 154 | /usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri: | ||
653 | 155 | /usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri: | ||
654 | 156 | /usr/share/qt5/mkspecs/modules/qt_lib_sql.pri: | ||
655 | 157 | /usr/share/qt5/mkspecs/modules/qt_lib_svg.pri: | ||
656 | 158 | /usr/share/qt5/mkspecs/modules/qt_lib_testlib.pri: | ||
657 | 159 | /usr/share/qt5/mkspecs/modules/qt_lib_uitools.pri: | ||
658 | 160 | /usr/share/qt5/mkspecs/modules/qt_lib_v8.pri: | ||
659 | 161 | /usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri: | ||
660 | 162 | /usr/share/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri: | ||
661 | 163 | /usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri: | ||
662 | 164 | /usr/share/qt5/mkspecs/modules/qt_lib_xml.pri: | ||
663 | 165 | /usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri: | ||
664 | 166 | /usr/share/qt5/mkspecs/features/qt_functions.prf: | ||
665 | 167 | /usr/share/qt5/mkspecs/features/qt_config.prf: | ||
666 | 168 | /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf: | ||
667 | 169 | /usr/share/qt5/mkspecs/features/spec_post.prf: | ||
668 | 170 | /usr/share/qt5/mkspecs/features/exclusive_builds.prf: | ||
669 | 171 | /usr/share/qt5/mkspecs/features/default_pre.prf: | ||
670 | 172 | /usr/share/qt5/mkspecs/features/unix/default_pre.prf: | ||
671 | 173 | /usr/share/qt5/mkspecs/features/resolve_config.prf: | ||
672 | 174 | /usr/share/qt5/mkspecs/features/default_post.prf: | ||
673 | 175 | /usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf: | ||
674 | 176 | /usr/share/qt5/mkspecs/features/warn_on.prf: | ||
675 | 177 | /usr/share/qt5/mkspecs/features/wayland-scanner.prf: | ||
676 | 178 | /usr/share/qt5/mkspecs/features/testcase_targets.prf: | ||
677 | 179 | /usr/share/qt5/mkspecs/features/exceptions.prf: | ||
678 | 180 | /usr/share/qt5/mkspecs/features/yacc.prf: | ||
679 | 181 | /usr/share/qt5/mkspecs/features/lex.prf: | ||
680 | 182 | ubuntudualboot.pro: | ||
681 | 183 | qmake: FORCE | ||
682 | 184 | @$(QMAKE) -o Makefile ubuntudualboot.pro | ||
683 | 185 | |||
684 | 186 | qmake_all: sub-backend-qmake_all FORCE | ||
685 | 187 | |||
686 | 188 | make_first: sub-backend-make_first FORCE | ||
687 | 189 | all: sub-backend-all FORCE | ||
688 | 190 | clean: sub-backend-clean FORCE | ||
689 | 191 | distclean: sub-backend-distclean FORCE | ||
690 | 192 | -$(DEL_FILE) Makefile | ||
691 | 193 | install_subtargets: sub-backend-install_subtargets FORCE | ||
692 | 194 | uninstall_subtargets: sub-backend-uninstall_subtargets FORCE | ||
693 | 195 | |||
694 | 196 | check: backend | ||
695 | 197 | cd backend; qmake; make; | ||
696 | 198 | install: install_subtargets FORCE | ||
697 | 199 | |||
698 | 200 | uninstall: uninstall_subtargets FORCE | ||
699 | 201 | |||
700 | 202 | FORCE: | ||
701 | 203 | |||
702 | 0 | 204 | ||
703 | === added directory 'Ubuntu/app' | |||
704 | === added file 'Ubuntu/app/Makefile' | |||
705 | --- Ubuntu/app/Makefile 1970-01-01 00:00:00 +0000 | |||
706 | +++ Ubuntu/app/Makefile 2014-02-11 09:12:08 +0000 | |||
707 | @@ -0,0 +1,14 @@ | |||
708 | 1 | # More information: https://wiki.ubuntu.com/Touch/Testing | ||
709 | 2 | # | ||
710 | 3 | # Notes for autopilot tests: | ||
711 | 4 | # ----------------------------------------------------------- | ||
712 | 5 | # In order to run autopilot tests: | ||
713 | 6 | # sudo apt-add-repository ppa:autopilot/ppa | ||
714 | 7 | # sudo apt-get update | ||
715 | 8 | # sudo apt-get install python-autopilot autopilot-qt | ||
716 | 9 | ############################################################# | ||
717 | 10 | |||
718 | 11 | all: | ||
719 | 12 | |||
720 | 13 | run: | ||
721 | 14 | /usr/bin/qmlscene -I ../backend/modules $@ ubuntudualboot.qml --desktop_file_hint="ubuntudualboot.desktop" | ||
722 | 0 | 15 | ||
723 | === added directory 'Ubuntu/app/components' | |||
724 | === added directory 'Ubuntu/app/graphics' | |||
725 | === added file 'Ubuntu/app/graphics/toolbarIcon@8.png' | |||
726 | 1 | Binary files Ubuntu/app/graphics/toolbarIcon@8.png 1970-01-01 00:00:00 +0000 and Ubuntu/app/graphics/toolbarIcon@8.png 2014-02-11 09:12:08 +0000 differ | 16 | Binary files Ubuntu/app/graphics/toolbarIcon@8.png 1970-01-01 00:00:00 +0000 and Ubuntu/app/graphics/toolbarIcon@8.png 2014-02-11 09:12:08 +0000 differ |
727 | === added file 'Ubuntu/app/icon.png' | |||
728 | 2 | Binary files Ubuntu/app/icon.png 1970-01-01 00:00:00 +0000 and Ubuntu/app/icon.png 2014-02-11 09:12:08 +0000 differ | 17 | Binary files Ubuntu/app/icon.png 1970-01-01 00:00:00 +0000 and Ubuntu/app/icon.png 2014-02-11 09:12:08 +0000 differ |
729 | === added directory 'Ubuntu/app/tests' | |||
730 | === added directory 'Ubuntu/app/tests/autopilot' | |||
731 | === added directory 'Ubuntu/app/tests/autopilot/contactsimporter' | |||
732 | === added file 'Ubuntu/app/tests/autopilot/contactsimporter/__init__.py' | |||
733 | --- Ubuntu/app/tests/autopilot/contactsimporter/__init__.py 1970-01-01 00:00:00 +0000 | |||
734 | +++ Ubuntu/app/tests/autopilot/contactsimporter/__init__.py 2014-02-11 09:12:08 +0000 | |||
735 | @@ -0,0 +1,132 @@ | |||
736 | 1 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- | ||
737 | 2 | |||
738 | 3 | """Ubuntu Touch App autopilot tests.""" | ||
739 | 4 | |||
740 | 5 | from os import remove | ||
741 | 6 | import os.path | ||
742 | 7 | from tempfile import mktemp | ||
743 | 8 | import subprocess | ||
744 | 9 | |||
745 | 10 | from autopilot.input import Mouse, Touch, Pointer | ||
746 | 11 | from autopilot.matchers import Eventually | ||
747 | 12 | from autopilot.platform import model | ||
748 | 13 | from testtools.matchers import Is, Not, Equals | ||
749 | 14 | from autopilot.testcase import AutopilotTestCase | ||
750 | 15 | |||
751 | 16 | def get_module_include_path(): | ||
752 | 17 | return os.path.abspath( | ||
753 | 18 | os.path.join( | ||
754 | 19 | os.path.dirname(__file__), | ||
755 | 20 | '..', | ||
756 | 21 | '..', | ||
757 | 22 | '..', | ||
758 | 23 | '..', | ||
759 | 24 | 'backend', | ||
760 | 25 | 'modules') | ||
761 | 26 | ) | ||
762 | 27 | |||
763 | 28 | |||
764 | 29 | class UbuntuTouchAppTestCase(AutopilotTestCase): | ||
765 | 30 | """A common test case class that provides several useful methods for the tests.""" | ||
766 | 31 | |||
767 | 32 | if model() == 'Desktop': | ||
768 | 33 | scenarios = [ | ||
769 | 34 | ('with mouse', dict(input_device_class=Mouse)) | ||
770 | 35 | ] | ||
771 | 36 | else: | ||
772 | 37 | scenarios = [ | ||
773 | 38 | ('with touch', dict(input_device_class=Touch)) | ||
774 | 39 | ] | ||
775 | 40 | |||
776 | 41 | @property | ||
777 | 42 | def main_window(self): | ||
778 | 43 | return MainWindow(self.app) | ||
779 | 44 | |||
780 | 45 | |||
781 | 46 | def setUp(self): | ||
782 | 47 | self.pointing_device = Pointer(self.input_device_class.create()) | ||
783 | 48 | super(UbuntuTouchAppTestCase, self).setUp() | ||
784 | 49 | self.launch_test_qml() | ||
785 | 50 | |||
786 | 51 | |||
787 | 52 | def launch_test_qml(self): | ||
788 | 53 | # If the test class has defined a 'test_qml' class attribute then we | ||
789 | 54 | # write it to disk and launch it inside the QML Scene. If not, then we | ||
790 | 55 | # silently do nothing (presumably the test has something else planned). | ||
791 | 56 | arch = subprocess.check_output(["dpkg-architecture", | ||
792 | 57 | "-qDEB_HOST_MULTIARCH"]).strip() | ||
793 | 58 | if hasattr(self, 'test_qml') and isinstance(self.test_qml, basestring): | ||
794 | 59 | qml_path = mktemp(suffix='.qml') | ||
795 | 60 | open(qml_path, 'w').write(self.test_qml) | ||
796 | 61 | self.addCleanup(remove, qml_path) | ||
797 | 62 | |||
798 | 63 | self.app = self.launch_test_application( | ||
799 | 64 | "/usr/lib/" + arch + "/qt5/bin/qmlscene", | ||
800 | 65 | "-I", get_module_include_path(), | ||
801 | 66 | qml_path, | ||
802 | 67 | app_type='qt') | ||
803 | 68 | |||
804 | 69 | if hasattr(self, 'test_qml_file') and isinstance(self.test_qml_file, basestring): | ||
805 | 70 | qml_path = self.test_qml_file | ||
806 | 71 | self.app = self.launch_test_application( | ||
807 | 72 | "/usr/lib/" + arch + "/qt5/bin/qmlscene", | ||
808 | 73 | "-I", get_module_include_path(), | ||
809 | 74 | qml_path, | ||
810 | 75 | app_type='qt') | ||
811 | 76 | |||
812 | 77 | self.assertThat(self.get_qml_view().visible, Eventually(Equals(True))) | ||
813 | 78 | |||
814 | 79 | |||
815 | 80 | def get_qml_view(self): | ||
816 | 81 | """Get the main QML view""" | ||
817 | 82 | |||
818 | 83 | return self.app.select_single("QQuickView") | ||
819 | 84 | |||
820 | 85 | def get_mainview(self): | ||
821 | 86 | """Get the QML MainView""" | ||
822 | 87 | |||
823 | 88 | mainView = self.app.select_single("MainView") | ||
824 | 89 | self.assertThat(mainView, Not(Is(None))) | ||
825 | 90 | return mainView | ||
826 | 91 | |||
827 | 92 | |||
828 | 93 | def get_object(self,objectName): | ||
829 | 94 | """Get a object based on the objectName""" | ||
830 | 95 | |||
831 | 96 | obj = self.app.select_single(objectName=objectName) | ||
832 | 97 | self.assertThat(obj, Not(Is(None))) | ||
833 | 98 | return obj | ||
834 | 99 | |||
835 | 100 | |||
836 | 101 | def mouse_click(self,objectName): | ||
837 | 102 | """Move mouse on top of the object and click on it""" | ||
838 | 103 | |||
839 | 104 | obj = self.get_object(objectName) | ||
840 | 105 | self.pointing_device.move_to_object(obj) | ||
841 | 106 | self.pointing_device.click() | ||
842 | 107 | |||
843 | 108 | |||
844 | 109 | def mouse_press(self,objectName): | ||
845 | 110 | """Move mouse on top of the object and press mouse button (without releasing it)""" | ||
846 | 111 | |||
847 | 112 | obj = self.get_object(objectName) | ||
848 | 113 | self.pointing_device.move_to_object(obj) | ||
849 | 114 | self.pointing_device.press() | ||
850 | 115 | |||
851 | 116 | |||
852 | 117 | def mouse_release(self): | ||
853 | 118 | """Release mouse button""" | ||
854 | 119 | |||
855 | 120 | self.pointing_device.release() | ||
856 | 121 | |||
857 | 122 | |||
858 | 123 | def type_string(self, string): | ||
859 | 124 | """Type a string with keyboard""" | ||
860 | 125 | |||
861 | 126 | self.keyboard.type(string) | ||
862 | 127 | |||
863 | 128 | |||
864 | 129 | def type_key(self, key): | ||
865 | 130 | """Type a single key with keyboard""" | ||
866 | 131 | |||
867 | 132 | self.keyboard.key(key) | ||
868 | 0 | 133 | ||
869 | === added directory 'Ubuntu/app/tests/autopilot/contactsimporter/main' | |||
870 | === added file 'Ubuntu/app/tests/autopilot/contactsimporter/main/__init__.py' | |||
871 | --- Ubuntu/app/tests/autopilot/contactsimporter/main/__init__.py 1970-01-01 00:00:00 +0000 | |||
872 | +++ Ubuntu/app/tests/autopilot/contactsimporter/main/__init__.py 2014-02-11 09:12:08 +0000 | |||
873 | @@ -0,0 +1,1 @@ | |||
874 | 1 | """ A main.qml test suite """ | ||
875 | 0 | 2 | ||
876 | === added file 'Ubuntu/app/tests/autopilot/contactsimporter/main/test_main.py' | |||
877 | --- Ubuntu/app/tests/autopilot/contactsimporter/main/test_main.py 1970-01-01 00:00:00 +0000 | |||
878 | +++ Ubuntu/app/tests/autopilot/contactsimporter/main/test_main.py 2014-02-11 09:12:08 +0000 | |||
879 | @@ -0,0 +1,23 @@ | |||
880 | 1 | # -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- | ||
881 | 2 | |||
882 | 3 | """Tests for the Hello World""" | ||
883 | 4 | |||
884 | 5 | from autopilot.matchers import Eventually | ||
885 | 6 | from textwrap import dedent | ||
886 | 7 | from testtools.matchers import Is, Not, Equals | ||
887 | 8 | from testtools import skip | ||
888 | 9 | import os | ||
889 | 10 | from contactsimporter import UbuntuTouchAppTestCase | ||
890 | 11 | |||
891 | 12 | |||
892 | 13 | class MainTests(UbuntuTouchAppTestCase): | ||
893 | 14 | """Generic tests for the Hello World""" | ||
894 | 15 | |||
895 | 16 | test_qml_file = "%s/%s.qml" % (os.path.dirname(os.path.realpath(__file__)),"../../../../contactsimporter") | ||
896 | 17 | |||
897 | 18 | def test_0_can_select_mainView(self): | ||
898 | 19 | """Must be able to select the mainview.""" | ||
899 | 20 | |||
900 | 21 | mainView = self.get_mainview() | ||
901 | 22 | self.assertThat(mainView.visible,Eventually(Equals(True))) | ||
902 | 23 | |||
903 | 0 | 24 | ||
904 | === added file 'Ubuntu/app/tests/autopilot/run' | |||
905 | --- Ubuntu/app/tests/autopilot/run 1970-01-01 00:00:00 +0000 | |||
906 | +++ Ubuntu/app/tests/autopilot/run 2014-02-11 09:12:08 +0000 | |||
907 | @@ -0,0 +1,11 @@ | |||
908 | 1 | #!/bin/bash | ||
909 | 2 | |||
910 | 3 | if [[ -z `which autopilot` ]]; then | ||
911 | 4 | echo "Autopilot is not installed. Skip" | ||
912 | 5 | exit | ||
913 | 6 | fi | ||
914 | 7 | |||
915 | 8 | SCRIPTPATH=`dirname $0` | ||
916 | 9 | pushd ${SCRIPTPATH} | ||
917 | 10 | autopilot run contactsimporter | ||
918 | 11 | popd | ||
919 | 0 | 12 | ||
920 | === added directory 'Ubuntu/app/tests/unit' | |||
921 | === added file 'Ubuntu/app/tests/unit/tst_hellocomponent.qml' | |||
922 | --- Ubuntu/app/tests/unit/tst_hellocomponent.qml 1970-01-01 00:00:00 +0000 | |||
923 | +++ Ubuntu/app/tests/unit/tst_hellocomponent.qml 2014-02-11 09:12:08 +0000 | |||
924 | @@ -0,0 +1,49 @@ | |||
925 | 1 | import QtQuick 2.0 | ||
926 | 2 | import QtTest 1.0 | ||
927 | 3 | import Ubuntu.Components 0.1 | ||
928 | 4 | import "../../components" | ||
929 | 5 | |||
930 | 6 | // See more details @ http://qt-project.org/doc/qt-5.0/qtquick/qml-testcase.html | ||
931 | 7 | |||
932 | 8 | // Execute tests with: | ||
933 | 9 | // qmltestrunner | ||
934 | 10 | |||
935 | 11 | Item { | ||
936 | 12 | // The objects | ||
937 | 13 | HelloComponent { | ||
938 | 14 | id: objectUnderTest | ||
939 | 15 | } | ||
940 | 16 | |||
941 | 17 | TestCase { | ||
942 | 18 | name: "HelloComponent" | ||
943 | 19 | |||
944 | 20 | function init() { | ||
945 | 21 | console.debug(">> init"); | ||
946 | 22 | compare("",objectUnderTest.text,"text was not empty on init"); | ||
947 | 23 | console.debug("<< init"); | ||
948 | 24 | } | ||
949 | 25 | |||
950 | 26 | function cleanup() { | ||
951 | 27 | console.debug(">> cleanup"); | ||
952 | 28 | console.debug("<< cleanup"); | ||
953 | 29 | } | ||
954 | 30 | |||
955 | 31 | function initTestCase() { | ||
956 | 32 | console.debug(">> initTestCase"); | ||
957 | 33 | console.debug("<< initTestCase"); | ||
958 | 34 | } | ||
959 | 35 | |||
960 | 36 | function cleanupTestCase() { | ||
961 | 37 | console.debug(">> cleanupTestCase"); | ||
962 | 38 | console.debug("<< cleanupTestCase"); | ||
963 | 39 | } | ||
964 | 40 | |||
965 | 41 | function test_canReadAndWriteText() { | ||
966 | 42 | var expected = "Hello World"; | ||
967 | 43 | |||
968 | 44 | objectUnderTest.text = expected; | ||
969 | 45 | |||
970 | 46 | compare(expected,objectUnderTest.text,"expected did not equal result"); | ||
971 | 47 | } | ||
972 | 48 | } | ||
973 | 49 | } | ||
974 | 0 | 50 | ||
975 | === added file 'Ubuntu/app/ubuntudualboot.desktop' | |||
976 | --- Ubuntu/app/ubuntudualboot.desktop 1970-01-01 00:00:00 +0000 | |||
977 | +++ Ubuntu/app/ubuntudualboot.desktop 2014-02-11 09:12:08 +0000 | |||
978 | @@ -0,0 +1,8 @@ | |||
979 | 1 | [Desktop Entry] | ||
980 | 2 | Name=ubuntudualboot | ||
981 | 3 | Comment=Ubuntu Dual boot with Android | ||
982 | 4 | Exec=qmlscene -I plugin $@ ubuntudualboot.qml | ||
983 | 5 | Icon=icon.png | ||
984 | 6 | Terminal=false | ||
985 | 7 | Type=Application | ||
986 | 8 | X-Ubuntu-Touch=true | ||
987 | 0 | 9 | ||
988 | === added file 'Ubuntu/app/ubuntudualboot.qml' | |||
989 | --- Ubuntu/app/ubuntudualboot.qml 1970-01-01 00:00:00 +0000 | |||
990 | +++ Ubuntu/app/ubuntudualboot.qml 2014-02-11 09:12:08 +0000 | |||
991 | @@ -0,0 +1,57 @@ | |||
992 | 1 | import QtQuick 2.0 | ||
993 | 2 | import Ubuntu.Components 0.1 | ||
994 | 3 | import ubuntuboot 1.0 | ||
995 | 4 | import Ubuntu.Components.Popups 0.1 | ||
996 | 5 | |||
997 | 6 | |||
998 | 7 | MainView { | ||
999 | 8 | width: units.gu(100) | ||
1000 | 9 | height: units.gu(75) | ||
1001 | 10 | applicationName: "com.ubuntu.developer.vtuson.ubuntudualboot" | ||
1002 | 11 | |||
1003 | 12 | |||
1004 | 13 | Page { | ||
1005 | 14 | title: i18n.tr("Ubuntu Dual Boot") | ||
1006 | 15 | Column { | ||
1007 | 16 | spacing: units.gu(2) | ||
1008 | 17 | anchors.top: parent.top | ||
1009 | 18 | anchors.horizontalCenter: parent.horizontalCenter | ||
1010 | 19 | anchors.topMargin: units.gu(2) | ||
1011 | 20 | |||
1012 | 21 | Ubuntuboot { | ||
1013 | 22 | id:reboot | ||
1014 | 23 | boottoandroid: isandroid.checked | ||
1015 | 24 | upass: "phablet" | ||
1016 | 25 | } | ||
1017 | 26 | Label { | ||
1018 | 27 | objectName: "description" | ||
1019 | 28 | text: i18n.tr("Welcome to Ubuntu Dual Boot") | ||
1020 | 29 | } | ||
1021 | 30 | Button { | ||
1022 | 31 | property string ostoboot: isandroid.checked? " Android" : " Ubuntu" | ||
1023 | 32 | id: rebootButton | ||
1024 | 33 | anchors.horizontalCenter: parent.horizontalCenter | ||
1025 | 34 | text: "Reboot to" + ostoboot | ||
1026 | 35 | Component.onCompleted: rebootButton.clicked.connect(reboot.reboot) | ||
1027 | 36 | |||
1028 | 37 | } | ||
1029 | 38 | |||
1030 | 39 | Row { | ||
1031 | 40 | spacing: units.gu(2) | ||
1032 | 41 | CheckBox { | ||
1033 | 42 | id:isandroid | ||
1034 | 43 | checked: false | ||
1035 | 44 | } | ||
1036 | 45 | Label { | ||
1037 | 46 | text:"Boot to Android?" | ||
1038 | 47 | anchors.verticalCenter: isandroid.verticalCenter | ||
1039 | 48 | } | ||
1040 | 49 | } | ||
1041 | 50 | Label { | ||
1042 | 51 | text: reboot.result ===256?"Incorrect password":"" | ||
1043 | 52 | } | ||
1044 | 53 | |||
1045 | 54 | |||
1046 | 55 | } | ||
1047 | 56 | } | ||
1048 | 57 | } | ||
1049 | 0 | 58 | ||
1050 | === added directory 'Ubuntu/backend' | |||
1051 | === added file 'Ubuntu/backend/Makefile' | |||
1052 | --- Ubuntu/backend/Makefile 1970-01-01 00:00:00 +0000 | |||
1053 | +++ Ubuntu/backend/Makefile 2014-02-11 09:12:08 +0000 | |||
1054 | @@ -0,0 +1,205 @@ | |||
1055 | 1 | ############################################################################# | ||
1056 | 2 | # Makefile for building: backend | ||
1057 | 3 | # Generated by qmake (3.0) (Qt 5.0.2) on: Fri Dec 13 17:04:23 2013 | ||
1058 | 4 | # Project: backend.pro | ||
1059 | 5 | # Template: subdirs | ||
1060 | 6 | # Command: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake -o Makefile backend.pro | ||
1061 | 7 | ############################################################################# | ||
1062 | 8 | |||
1063 | 9 | MAKEFILE = Makefile | ||
1064 | 10 | |||
1065 | 11 | first: make_first | ||
1066 | 12 | QMAKE = /usr/lib/x86_64-linux-gnu/qt5/bin/qmake | ||
1067 | 13 | DEL_FILE = rm -f | ||
1068 | 14 | CHK_DIR_EXISTS= test -d | ||
1069 | 15 | MKDIR = mkdir -p | ||
1070 | 16 | COPY = cp -f | ||
1071 | 17 | COPY_FILE = cp -f | ||
1072 | 18 | COPY_DIR = cp -f -R | ||
1073 | 19 | INSTALL_FILE = install -m 644 -p | ||
1074 | 20 | INSTALL_PROGRAM = install -m 755 -p | ||
1075 | 21 | INSTALL_DIR = $(COPY_DIR) | ||
1076 | 22 | DEL_FILE = rm -f | ||
1077 | 23 | SYMLINK = ln -f -s | ||
1078 | 24 | DEL_DIR = rmdir | ||
1079 | 25 | MOVE = mv -f | ||
1080 | 26 | SUBTARGETS = \ | ||
1081 | 27 | sub-modules-ubuntuboot | ||
1082 | 28 | |||
1083 | 29 | |||
1084 | 30 | sub-modules-ubuntuboot-qmake_all: FORCE | ||
1085 | 31 | @test -d modules/ubuntuboot/ || mkdir -p modules/ubuntuboot/ | ||
1086 | 32 | cd modules/ubuntuboot/ && $(QMAKE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/ubuntuboot.pro -o Makefile | ||
1087 | 33 | cd modules/ubuntuboot/ && $(MAKE) -f Makefile qmake_all | ||
1088 | 34 | sub-modules-ubuntuboot: FORCE | ||
1089 | 35 | @test -d modules/ubuntuboot/ || mkdir -p modules/ubuntuboot/ | ||
1090 | 36 | cd modules/ubuntuboot/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/ubuntuboot.pro -o Makefile ) && $(MAKE) -f Makefile | ||
1091 | 37 | sub-modules-ubuntuboot-make_first: FORCE | ||
1092 | 38 | @test -d modules/ubuntuboot/ || mkdir -p modules/ubuntuboot/ | ||
1093 | 39 | cd modules/ubuntuboot/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/ubuntuboot.pro -o Makefile ) && $(MAKE) -f Makefile | ||
1094 | 40 | sub-modules-ubuntuboot-all: FORCE | ||
1095 | 41 | @test -d modules/ubuntuboot/ || mkdir -p modules/ubuntuboot/ | ||
1096 | 42 | cd modules/ubuntuboot/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/ubuntuboot.pro -o Makefile ) && $(MAKE) -f Makefile all | ||
1097 | 43 | sub-modules-ubuntuboot-clean: FORCE | ||
1098 | 44 | @test -d modules/ubuntuboot/ || mkdir -p modules/ubuntuboot/ | ||
1099 | 45 | cd modules/ubuntuboot/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/ubuntuboot.pro -o Makefile ) && $(MAKE) -f Makefile clean | ||
1100 | 46 | sub-modules-ubuntuboot-distclean: FORCE | ||
1101 | 47 | @test -d modules/ubuntuboot/ || mkdir -p modules/ubuntuboot/ | ||
1102 | 48 | cd modules/ubuntuboot/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/ubuntuboot.pro -o Makefile ) && $(MAKE) -f Makefile distclean | ||
1103 | 49 | sub-modules-ubuntuboot-install_subtargets: FORCE | ||
1104 | 50 | @test -d modules/ubuntuboot/ || mkdir -p modules/ubuntuboot/ | ||
1105 | 51 | cd modules/ubuntuboot/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/ubuntuboot.pro -o Makefile ) && $(MAKE) -f Makefile install | ||
1106 | 52 | sub-modules-ubuntuboot-uninstall_subtargets: FORCE | ||
1107 | 53 | @test -d modules/ubuntuboot/ || mkdir -p modules/ubuntuboot/ | ||
1108 | 54 | cd modules/ubuntuboot/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/ubuntuboot.pro -o Makefile ) && $(MAKE) -f Makefile uninstall | ||
1109 | 55 | |||
1110 | 56 | Makefile: backend.pro /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf /usr/share/qt5/mkspecs/features/spec_pre.prf \ | ||
1111 | 57 | /usr/share/qt5/mkspecs/common/shell-unix.conf \ | ||
1112 | 58 | /usr/share/qt5/mkspecs/common/unix.conf \ | ||
1113 | 59 | /usr/share/qt5/mkspecs/common/linux.conf \ | ||
1114 | 60 | /usr/share/qt5/mkspecs/common/gcc-base.conf \ | ||
1115 | 61 | /usr/share/qt5/mkspecs/common/gcc-base-unix.conf \ | ||
1116 | 62 | /usr/share/qt5/mkspecs/common/g++-base.conf \ | ||
1117 | 63 | /usr/share/qt5/mkspecs/common/g++-unix.conf \ | ||
1118 | 64 | /usr/share/qt5/mkspecs/qconfig.pri \ | ||
1119 | 65 | /usr/share/qt5/mkspecs/modules/qt_lib_3d.pri \ | ||
1120 | 66 | /usr/share/qt5/mkspecs/modules/qt_lib_3dquick.pri \ | ||
1121 | 67 | /usr/share/qt5/mkspecs/modules/qt_lib_bootstrap.pri \ | ||
1122 | 68 | /usr/share/qt5/mkspecs/modules/qt_lib_clucene.pri \ | ||
1123 | 69 | /usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri \ | ||
1124 | 70 | /usr/share/qt5/mkspecs/modules/qt_lib_core.pri \ | ||
1125 | 71 | /usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri \ | ||
1126 | 72 | /usr/share/qt5/mkspecs/modules/qt_lib_designer.pri \ | ||
1127 | 73 | /usr/share/qt5/mkspecs/modules/qt_lib_designercomponents.pri \ | ||
1128 | 74 | /usr/share/qt5/mkspecs/modules/qt_lib_gui.pri \ | ||
1129 | 75 | /usr/share/qt5/mkspecs/modules/qt_lib_help.pri \ | ||
1130 | 76 | /usr/share/qt5/mkspecs/modules/qt_lib_location.pri \ | ||
1131 | 77 | /usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri \ | ||
1132 | 78 | /usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri \ | ||
1133 | 79 | /usr/share/qt5/mkspecs/modules/qt_lib_network.pri \ | ||
1134 | 80 | /usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri \ | ||
1135 | 81 | /usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri \ | ||
1136 | 82 | /usr/share/qt5/mkspecs/modules/qt_lib_printsupport.pri \ | ||
1137 | 83 | /usr/share/qt5/mkspecs/modules/qt_lib_qml.pri \ | ||
1138 | 84 | /usr/share/qt5/mkspecs/modules/qt_lib_qmldevtools.pri \ | ||
1139 | 85 | /usr/share/qt5/mkspecs/modules/qt_lib_qmltest.pri \ | ||
1140 | 86 | /usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri \ | ||
1141 | 87 | /usr/share/qt5/mkspecs/modules/qt_lib_quick.pri \ | ||
1142 | 88 | /usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri \ | ||
1143 | 89 | /usr/share/qt5/mkspecs/modules/qt_lib_script.pri \ | ||
1144 | 90 | /usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri \ | ||
1145 | 91 | /usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri \ | ||
1146 | 92 | /usr/share/qt5/mkspecs/modules/qt_lib_sql.pri \ | ||
1147 | 93 | /usr/share/qt5/mkspecs/modules/qt_lib_svg.pri \ | ||
1148 | 94 | /usr/share/qt5/mkspecs/modules/qt_lib_testlib.pri \ | ||
1149 | 95 | /usr/share/qt5/mkspecs/modules/qt_lib_uitools.pri \ | ||
1150 | 96 | /usr/share/qt5/mkspecs/modules/qt_lib_v8.pri \ | ||
1151 | 97 | /usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri \ | ||
1152 | 98 | /usr/share/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri \ | ||
1153 | 99 | /usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri \ | ||
1154 | 100 | /usr/share/qt5/mkspecs/modules/qt_lib_xml.pri \ | ||
1155 | 101 | /usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \ | ||
1156 | 102 | /usr/share/qt5/mkspecs/features/qt_functions.prf \ | ||
1157 | 103 | /usr/share/qt5/mkspecs/features/qt_config.prf \ | ||
1158 | 104 | /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf \ | ||
1159 | 105 | /usr/share/qt5/mkspecs/features/spec_post.prf \ | ||
1160 | 106 | /usr/share/qt5/mkspecs/features/exclusive_builds.prf \ | ||
1161 | 107 | /usr/share/qt5/mkspecs/features/default_pre.prf \ | ||
1162 | 108 | /usr/share/qt5/mkspecs/features/unix/default_pre.prf \ | ||
1163 | 109 | /usr/share/qt5/mkspecs/features/resolve_config.prf \ | ||
1164 | 110 | /usr/share/qt5/mkspecs/features/default_post.prf \ | ||
1165 | 111 | /usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf \ | ||
1166 | 112 | /usr/share/qt5/mkspecs/features/warn_on.prf \ | ||
1167 | 113 | /usr/share/qt5/mkspecs/features/wayland-scanner.prf \ | ||
1168 | 114 | /usr/share/qt5/mkspecs/features/testcase_targets.prf \ | ||
1169 | 115 | /usr/share/qt5/mkspecs/features/exceptions.prf \ | ||
1170 | 116 | /usr/share/qt5/mkspecs/features/yacc.prf \ | ||
1171 | 117 | /usr/share/qt5/mkspecs/features/lex.prf \ | ||
1172 | 118 | backend.pro | ||
1173 | 119 | $(QMAKE) -o Makefile backend.pro | ||
1174 | 120 | /usr/share/qt5/mkspecs/features/spec_pre.prf: | ||
1175 | 121 | /usr/share/qt5/mkspecs/common/shell-unix.conf: | ||
1176 | 122 | /usr/share/qt5/mkspecs/common/unix.conf: | ||
1177 | 123 | /usr/share/qt5/mkspecs/common/linux.conf: | ||
1178 | 124 | /usr/share/qt5/mkspecs/common/gcc-base.conf: | ||
1179 | 125 | /usr/share/qt5/mkspecs/common/gcc-base-unix.conf: | ||
1180 | 126 | /usr/share/qt5/mkspecs/common/g++-base.conf: | ||
1181 | 127 | /usr/share/qt5/mkspecs/common/g++-unix.conf: | ||
1182 | 128 | /usr/share/qt5/mkspecs/qconfig.pri: | ||
1183 | 129 | /usr/share/qt5/mkspecs/modules/qt_lib_3d.pri: | ||
1184 | 130 | /usr/share/qt5/mkspecs/modules/qt_lib_3dquick.pri: | ||
1185 | 131 | /usr/share/qt5/mkspecs/modules/qt_lib_bootstrap.pri: | ||
1186 | 132 | /usr/share/qt5/mkspecs/modules/qt_lib_clucene.pri: | ||
1187 | 133 | /usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri: | ||
1188 | 134 | /usr/share/qt5/mkspecs/modules/qt_lib_core.pri: | ||
1189 | 135 | /usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri: | ||
1190 | 136 | /usr/share/qt5/mkspecs/modules/qt_lib_designer.pri: | ||
1191 | 137 | /usr/share/qt5/mkspecs/modules/qt_lib_designercomponents.pri: | ||
1192 | 138 | /usr/share/qt5/mkspecs/modules/qt_lib_gui.pri: | ||
1193 | 139 | /usr/share/qt5/mkspecs/modules/qt_lib_help.pri: | ||
1194 | 140 | /usr/share/qt5/mkspecs/modules/qt_lib_location.pri: | ||
1195 | 141 | /usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri: | ||
1196 | 142 | /usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri: | ||
1197 | 143 | /usr/share/qt5/mkspecs/modules/qt_lib_network.pri: | ||
1198 | 144 | /usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri: | ||
1199 | 145 | /usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri: | ||
1200 | 146 | /usr/share/qt5/mkspecs/modules/qt_lib_printsupport.pri: | ||
1201 | 147 | /usr/share/qt5/mkspecs/modules/qt_lib_qml.pri: | ||
1202 | 148 | /usr/share/qt5/mkspecs/modules/qt_lib_qmldevtools.pri: | ||
1203 | 149 | /usr/share/qt5/mkspecs/modules/qt_lib_qmltest.pri: | ||
1204 | 150 | /usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri: | ||
1205 | 151 | /usr/share/qt5/mkspecs/modules/qt_lib_quick.pri: | ||
1206 | 152 | /usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri: | ||
1207 | 153 | /usr/share/qt5/mkspecs/modules/qt_lib_script.pri: | ||
1208 | 154 | /usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri: | ||
1209 | 155 | /usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri: | ||
1210 | 156 | /usr/share/qt5/mkspecs/modules/qt_lib_sql.pri: | ||
1211 | 157 | /usr/share/qt5/mkspecs/modules/qt_lib_svg.pri: | ||
1212 | 158 | /usr/share/qt5/mkspecs/modules/qt_lib_testlib.pri: | ||
1213 | 159 | /usr/share/qt5/mkspecs/modules/qt_lib_uitools.pri: | ||
1214 | 160 | /usr/share/qt5/mkspecs/modules/qt_lib_v8.pri: | ||
1215 | 161 | /usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri: | ||
1216 | 162 | /usr/share/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri: | ||
1217 | 163 | /usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri: | ||
1218 | 164 | /usr/share/qt5/mkspecs/modules/qt_lib_xml.pri: | ||
1219 | 165 | /usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri: | ||
1220 | 166 | /usr/share/qt5/mkspecs/features/qt_functions.prf: | ||
1221 | 167 | /usr/share/qt5/mkspecs/features/qt_config.prf: | ||
1222 | 168 | /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf: | ||
1223 | 169 | /usr/share/qt5/mkspecs/features/spec_post.prf: | ||
1224 | 170 | /usr/share/qt5/mkspecs/features/exclusive_builds.prf: | ||
1225 | 171 | /usr/share/qt5/mkspecs/features/default_pre.prf: | ||
1226 | 172 | /usr/share/qt5/mkspecs/features/unix/default_pre.prf: | ||
1227 | 173 | /usr/share/qt5/mkspecs/features/resolve_config.prf: | ||
1228 | 174 | /usr/share/qt5/mkspecs/features/default_post.prf: | ||
1229 | 175 | /usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf: | ||
1230 | 176 | /usr/share/qt5/mkspecs/features/warn_on.prf: | ||
1231 | 177 | /usr/share/qt5/mkspecs/features/wayland-scanner.prf: | ||
1232 | 178 | /usr/share/qt5/mkspecs/features/testcase_targets.prf: | ||
1233 | 179 | /usr/share/qt5/mkspecs/features/exceptions.prf: | ||
1234 | 180 | /usr/share/qt5/mkspecs/features/yacc.prf: | ||
1235 | 181 | /usr/share/qt5/mkspecs/features/lex.prf: | ||
1236 | 182 | backend.pro: | ||
1237 | 183 | qmake: FORCE | ||
1238 | 184 | @$(QMAKE) -o Makefile backend.pro | ||
1239 | 185 | |||
1240 | 186 | qmake_all: sub-modules-ubuntuboot-qmake_all FORCE | ||
1241 | 187 | |||
1242 | 188 | make_first: sub-modules-ubuntuboot-make_first FORCE | ||
1243 | 189 | all: sub-modules-ubuntuboot-all FORCE | ||
1244 | 190 | clean: sub-modules-ubuntuboot-clean FORCE | ||
1245 | 191 | distclean: sub-modules-ubuntuboot-distclean FORCE | ||
1246 | 192 | -$(DEL_FILE) Makefile | ||
1247 | 193 | install_subtargets: sub-modules-ubuntuboot-install_subtargets FORCE | ||
1248 | 194 | uninstall_subtargets: sub-modules-ubuntuboot-uninstall_subtargets FORCE | ||
1249 | 195 | |||
1250 | 196 | sub-modules-ubuntuboot-check: | ||
1251 | 197 | @test -d modules/ubuntuboot/ || mkdir -p modules/ubuntuboot/ | ||
1252 | 198 | cd modules/ubuntuboot/ && ( test -e Makefile || $(QMAKE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/ubuntuboot.pro -o Makefile ) && $(MAKE) -f Makefile check | ||
1253 | 199 | check: modules/ubuntuboot sub-modules-ubuntuboot-check | ||
1254 | 200 | install: install_subtargets FORCE | ||
1255 | 201 | |||
1256 | 202 | uninstall: uninstall_subtargets FORCE | ||
1257 | 203 | |||
1258 | 204 | FORCE: | ||
1259 | 205 | |||
1260 | 0 | 206 | ||
1261 | === added file 'Ubuntu/backend/backend.pro' | |||
1262 | --- Ubuntu/backend/backend.pro 1970-01-01 00:00:00 +0000 | |||
1263 | +++ Ubuntu/backend/backend.pro 2014-02-11 09:12:08 +0000 | |||
1264 | @@ -0,0 +1,8 @@ | |||
1265 | 1 | TEMPLATE = subdirs | ||
1266 | 2 | SUBDIRS = modules/ubuntuboot | ||
1267 | 3 | |||
1268 | 4 | OTHER_FILES += $$system(find tests -type f) | ||
1269 | 5 | |||
1270 | 6 | check.target = check | ||
1271 | 7 | check.depends = modules/ubuntuboot | ||
1272 | 8 | |||
1273 | 0 | 9 | ||
1274 | === added directory 'Ubuntu/backend/modules' | |||
1275 | === added directory 'Ubuntu/backend/modules/ubuntuboot' | |||
1276 | === added file 'Ubuntu/backend/modules/ubuntuboot/Makefile' | |||
1277 | --- Ubuntu/backend/modules/ubuntuboot/Makefile 1970-01-01 00:00:00 +0000 | |||
1278 | +++ Ubuntu/backend/modules/ubuntuboot/Makefile 2014-02-11 09:12:08 +0000 | |||
1279 | @@ -0,0 +1,887 @@ | |||
1280 | 1 | ############################################################################# | ||
1281 | 2 | # Makefile for building: libubuntuboot.so | ||
1282 | 3 | # Generated by qmake (3.0) (Qt 5.0.2) on: Fri Dec 13 17:04:24 2013 | ||
1283 | 4 | # Project: ubuntuboot.pro | ||
1284 | 5 | # Template: lib | ||
1285 | 6 | # Command: /usr/lib/x86_64-linux-gnu/qt5/bin/qmake -o Makefile ubuntuboot.pro | ||
1286 | 7 | ############################################################################# | ||
1287 | 8 | |||
1288 | 9 | MAKEFILE = Makefile | ||
1289 | 10 | |||
1290 | 11 | ####### Compiler, tools and options | ||
1291 | 12 | |||
1292 | 13 | CC = gcc | ||
1293 | 14 | CXX = g++ | ||
1294 | 15 | DEFINES = -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_PLUGIN -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB | ||
1295 | 16 | CFLAGS = -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC $(DEFINES) | ||
1296 | 17 | CXXFLAGS = -m64 -pipe -O2 -D_REENTRANT -Wall -W -fPIC $(DEFINES) | ||
1297 | 18 | INCPATH = -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -I. -I/usr/include/qt5 -I/usr/include/qt5/QtQuick -I/usr/include/qt5/QtQml -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. | ||
1298 | 19 | LINK = g++ | ||
1299 | 20 | LFLAGS = -m64 -Wl,-O1 -Wl,-rpath-link,/usr/lib/x86_64-linux-gnu -shared | ||
1300 | 21 | LIBS = $(SUBLIBS) -L/usr/X11R6/lib64 -lQt5Quick -L/usr/lib/x86_64-linux-gnu -lQt5Qml -lQt5Network -lQt5Gui -lQt5Core -lGL -lpthread | ||
1301 | 22 | AR = ar cqs | ||
1302 | 23 | RANLIB = | ||
1303 | 24 | QMAKE = /usr/lib/x86_64-linux-gnu/qt5/bin/qmake | ||
1304 | 25 | TAR = tar -cf | ||
1305 | 26 | COMPRESS = gzip -9f | ||
1306 | 27 | COPY = cp -f | ||
1307 | 28 | SED = sed | ||
1308 | 29 | COPY_FILE = cp -f | ||
1309 | 30 | COPY_DIR = cp -f -R | ||
1310 | 31 | STRIP = strip | ||
1311 | 32 | INSTALL_FILE = install -m 644 -p | ||
1312 | 33 | INSTALL_DIR = $(COPY_DIR) | ||
1313 | 34 | INSTALL_PROGRAM = install -m 755 -p | ||
1314 | 35 | DEL_FILE = rm -f | ||
1315 | 36 | SYMLINK = ln -f -s | ||
1316 | 37 | DEL_DIR = rmdir | ||
1317 | 38 | MOVE = mv -f | ||
1318 | 39 | CHK_DIR_EXISTS= test -d | ||
1319 | 40 | MKDIR = mkdir -p | ||
1320 | 41 | |||
1321 | 42 | ####### Output directory | ||
1322 | 43 | |||
1323 | 44 | OBJECTS_DIR = ./ | ||
1324 | 45 | |||
1325 | 46 | ####### Files | ||
1326 | 47 | |||
1327 | 48 | SOURCES = backend.cpp \ | ||
1328 | 49 | ubuntuboot.cpp moc_backend.cpp \ | ||
1329 | 50 | moc_ubuntuboot.cpp | ||
1330 | 51 | OBJECTS = backend.o \ | ||
1331 | 52 | ubuntuboot.o \ | ||
1332 | 53 | moc_backend.o \ | ||
1333 | 54 | moc_ubuntuboot.o | ||
1334 | 55 | DIST = /usr/share/qt5/mkspecs/features/spec_pre.prf \ | ||
1335 | 56 | /usr/share/qt5/mkspecs/common/shell-unix.conf \ | ||
1336 | 57 | /usr/share/qt5/mkspecs/common/unix.conf \ | ||
1337 | 58 | /usr/share/qt5/mkspecs/common/linux.conf \ | ||
1338 | 59 | /usr/share/qt5/mkspecs/common/gcc-base.conf \ | ||
1339 | 60 | /usr/share/qt5/mkspecs/common/gcc-base-unix.conf \ | ||
1340 | 61 | /usr/share/qt5/mkspecs/common/g++-base.conf \ | ||
1341 | 62 | /usr/share/qt5/mkspecs/common/g++-unix.conf \ | ||
1342 | 63 | /usr/share/qt5/mkspecs/qconfig.pri \ | ||
1343 | 64 | /usr/share/qt5/mkspecs/modules/qt_lib_3d.pri \ | ||
1344 | 65 | /usr/share/qt5/mkspecs/modules/qt_lib_3dquick.pri \ | ||
1345 | 66 | /usr/share/qt5/mkspecs/modules/qt_lib_bootstrap.pri \ | ||
1346 | 67 | /usr/share/qt5/mkspecs/modules/qt_lib_clucene.pri \ | ||
1347 | 68 | /usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri \ | ||
1348 | 69 | /usr/share/qt5/mkspecs/modules/qt_lib_core.pri \ | ||
1349 | 70 | /usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri \ | ||
1350 | 71 | /usr/share/qt5/mkspecs/modules/qt_lib_designer.pri \ | ||
1351 | 72 | /usr/share/qt5/mkspecs/modules/qt_lib_designercomponents.pri \ | ||
1352 | 73 | /usr/share/qt5/mkspecs/modules/qt_lib_gui.pri \ | ||
1353 | 74 | /usr/share/qt5/mkspecs/modules/qt_lib_help.pri \ | ||
1354 | 75 | /usr/share/qt5/mkspecs/modules/qt_lib_location.pri \ | ||
1355 | 76 | /usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri \ | ||
1356 | 77 | /usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri \ | ||
1357 | 78 | /usr/share/qt5/mkspecs/modules/qt_lib_network.pri \ | ||
1358 | 79 | /usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri \ | ||
1359 | 80 | /usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri \ | ||
1360 | 81 | /usr/share/qt5/mkspecs/modules/qt_lib_printsupport.pri \ | ||
1361 | 82 | /usr/share/qt5/mkspecs/modules/qt_lib_qml.pri \ | ||
1362 | 83 | /usr/share/qt5/mkspecs/modules/qt_lib_qmldevtools.pri \ | ||
1363 | 84 | /usr/share/qt5/mkspecs/modules/qt_lib_qmltest.pri \ | ||
1364 | 85 | /usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri \ | ||
1365 | 86 | /usr/share/qt5/mkspecs/modules/qt_lib_quick.pri \ | ||
1366 | 87 | /usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri \ | ||
1367 | 88 | /usr/share/qt5/mkspecs/modules/qt_lib_script.pri \ | ||
1368 | 89 | /usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri \ | ||
1369 | 90 | /usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri \ | ||
1370 | 91 | /usr/share/qt5/mkspecs/modules/qt_lib_sql.pri \ | ||
1371 | 92 | /usr/share/qt5/mkspecs/modules/qt_lib_svg.pri \ | ||
1372 | 93 | /usr/share/qt5/mkspecs/modules/qt_lib_testlib.pri \ | ||
1373 | 94 | /usr/share/qt5/mkspecs/modules/qt_lib_uitools.pri \ | ||
1374 | 95 | /usr/share/qt5/mkspecs/modules/qt_lib_v8.pri \ | ||
1375 | 96 | /usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri \ | ||
1376 | 97 | /usr/share/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri \ | ||
1377 | 98 | /usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri \ | ||
1378 | 99 | /usr/share/qt5/mkspecs/modules/qt_lib_xml.pri \ | ||
1379 | 100 | /usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \ | ||
1380 | 101 | /usr/share/qt5/mkspecs/features/qt_functions.prf \ | ||
1381 | 102 | /usr/share/qt5/mkspecs/features/qt_config.prf \ | ||
1382 | 103 | /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf \ | ||
1383 | 104 | /usr/share/qt5/mkspecs/features/spec_post.prf \ | ||
1384 | 105 | /usr/share/qt5/mkspecs/features/exclusive_builds.prf \ | ||
1385 | 106 | /usr/share/qt5/mkspecs/features/default_pre.prf \ | ||
1386 | 107 | /usr/share/qt5/mkspecs/features/unix/default_pre.prf \ | ||
1387 | 108 | /usr/share/qt5/mkspecs/features/resolve_config.prf \ | ||
1388 | 109 | /usr/share/qt5/mkspecs/features/default_post.prf \ | ||
1389 | 110 | /usr/share/qt5/mkspecs/features/qt.prf \ | ||
1390 | 111 | /usr/share/qt5/mkspecs/features/resources.prf \ | ||
1391 | 112 | /usr/share/qt5/mkspecs/features/moc.prf \ | ||
1392 | 113 | /usr/share/qt5/mkspecs/features/unix/opengl.prf \ | ||
1393 | 114 | /usr/share/qt5/mkspecs/features/unix/thread.prf \ | ||
1394 | 115 | /usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf \ | ||
1395 | 116 | /usr/share/qt5/mkspecs/features/warn_on.prf \ | ||
1396 | 117 | /usr/share/qt5/mkspecs/features/wayland-scanner.prf \ | ||
1397 | 118 | /usr/share/qt5/mkspecs/features/testcase_targets.prf \ | ||
1398 | 119 | /usr/share/qt5/mkspecs/features/exceptions.prf \ | ||
1399 | 120 | /usr/share/qt5/mkspecs/features/yacc.prf \ | ||
1400 | 121 | /usr/share/qt5/mkspecs/features/lex.prf \ | ||
1401 | 122 | ubuntuboot.pro \ | ||
1402 | 123 | ubuntuboot.pro | ||
1403 | 124 | QMAKE_TARGET = ubuntuboot | ||
1404 | 125 | DESTDIR = | ||
1405 | 126 | TARGET = libubuntuboot.so | ||
1406 | 127 | TARGETD = libubuntuboot.so | ||
1407 | 128 | |||
1408 | 129 | |||
1409 | 130 | first: all | ||
1410 | 131 | ####### Implicit rules | ||
1411 | 132 | |||
1412 | 133 | .SUFFIXES: .o .c .cpp .cc .cxx .C | ||
1413 | 134 | |||
1414 | 135 | .cpp.o: | ||
1415 | 136 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | ||
1416 | 137 | |||
1417 | 138 | .cc.o: | ||
1418 | 139 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | ||
1419 | 140 | |||
1420 | 141 | .cxx.o: | ||
1421 | 142 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | ||
1422 | 143 | |||
1423 | 144 | .C.o: | ||
1424 | 145 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" | ||
1425 | 146 | |||
1426 | 147 | .c.o: | ||
1427 | 148 | $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" | ||
1428 | 149 | |||
1429 | 150 | ####### Build rules | ||
1430 | 151 | |||
1431 | 152 | all: Makefile $(TARGET) | ||
1432 | 153 | |||
1433 | 154 | $(TARGET): $(OBJECTS) $(SUBLIBS) $(OBJCOMP) | ||
1434 | 155 | -$(DEL_FILE) $(TARGET) | ||
1435 | 156 | $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS) $(OBJCOMP) | ||
1436 | 157 | |||
1437 | 158 | |||
1438 | 159 | |||
1439 | 160 | Makefile: ubuntuboot.pro /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf /usr/share/qt5/mkspecs/features/spec_pre.prf \ | ||
1440 | 161 | /usr/share/qt5/mkspecs/common/shell-unix.conf \ | ||
1441 | 162 | /usr/share/qt5/mkspecs/common/unix.conf \ | ||
1442 | 163 | /usr/share/qt5/mkspecs/common/linux.conf \ | ||
1443 | 164 | /usr/share/qt5/mkspecs/common/gcc-base.conf \ | ||
1444 | 165 | /usr/share/qt5/mkspecs/common/gcc-base-unix.conf \ | ||
1445 | 166 | /usr/share/qt5/mkspecs/common/g++-base.conf \ | ||
1446 | 167 | /usr/share/qt5/mkspecs/common/g++-unix.conf \ | ||
1447 | 168 | /usr/share/qt5/mkspecs/qconfig.pri \ | ||
1448 | 169 | /usr/share/qt5/mkspecs/modules/qt_lib_3d.pri \ | ||
1449 | 170 | /usr/share/qt5/mkspecs/modules/qt_lib_3dquick.pri \ | ||
1450 | 171 | /usr/share/qt5/mkspecs/modules/qt_lib_bootstrap.pri \ | ||
1451 | 172 | /usr/share/qt5/mkspecs/modules/qt_lib_clucene.pri \ | ||
1452 | 173 | /usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri \ | ||
1453 | 174 | /usr/share/qt5/mkspecs/modules/qt_lib_core.pri \ | ||
1454 | 175 | /usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri \ | ||
1455 | 176 | /usr/share/qt5/mkspecs/modules/qt_lib_designer.pri \ | ||
1456 | 177 | /usr/share/qt5/mkspecs/modules/qt_lib_designercomponents.pri \ | ||
1457 | 178 | /usr/share/qt5/mkspecs/modules/qt_lib_gui.pri \ | ||
1458 | 179 | /usr/share/qt5/mkspecs/modules/qt_lib_help.pri \ | ||
1459 | 180 | /usr/share/qt5/mkspecs/modules/qt_lib_location.pri \ | ||
1460 | 181 | /usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri \ | ||
1461 | 182 | /usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri \ | ||
1462 | 183 | /usr/share/qt5/mkspecs/modules/qt_lib_network.pri \ | ||
1463 | 184 | /usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri \ | ||
1464 | 185 | /usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri \ | ||
1465 | 186 | /usr/share/qt5/mkspecs/modules/qt_lib_printsupport.pri \ | ||
1466 | 187 | /usr/share/qt5/mkspecs/modules/qt_lib_qml.pri \ | ||
1467 | 188 | /usr/share/qt5/mkspecs/modules/qt_lib_qmldevtools.pri \ | ||
1468 | 189 | /usr/share/qt5/mkspecs/modules/qt_lib_qmltest.pri \ | ||
1469 | 190 | /usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri \ | ||
1470 | 191 | /usr/share/qt5/mkspecs/modules/qt_lib_quick.pri \ | ||
1471 | 192 | /usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri \ | ||
1472 | 193 | /usr/share/qt5/mkspecs/modules/qt_lib_script.pri \ | ||
1473 | 194 | /usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri \ | ||
1474 | 195 | /usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri \ | ||
1475 | 196 | /usr/share/qt5/mkspecs/modules/qt_lib_sql.pri \ | ||
1476 | 197 | /usr/share/qt5/mkspecs/modules/qt_lib_svg.pri \ | ||
1477 | 198 | /usr/share/qt5/mkspecs/modules/qt_lib_testlib.pri \ | ||
1478 | 199 | /usr/share/qt5/mkspecs/modules/qt_lib_uitools.pri \ | ||
1479 | 200 | /usr/share/qt5/mkspecs/modules/qt_lib_v8.pri \ | ||
1480 | 201 | /usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri \ | ||
1481 | 202 | /usr/share/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri \ | ||
1482 | 203 | /usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri \ | ||
1483 | 204 | /usr/share/qt5/mkspecs/modules/qt_lib_xml.pri \ | ||
1484 | 205 | /usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri \ | ||
1485 | 206 | /usr/share/qt5/mkspecs/features/qt_functions.prf \ | ||
1486 | 207 | /usr/share/qt5/mkspecs/features/qt_config.prf \ | ||
1487 | 208 | /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf \ | ||
1488 | 209 | /usr/share/qt5/mkspecs/features/spec_post.prf \ | ||
1489 | 210 | /usr/share/qt5/mkspecs/features/exclusive_builds.prf \ | ||
1490 | 211 | /usr/share/qt5/mkspecs/features/default_pre.prf \ | ||
1491 | 212 | /usr/share/qt5/mkspecs/features/unix/default_pre.prf \ | ||
1492 | 213 | /usr/share/qt5/mkspecs/features/resolve_config.prf \ | ||
1493 | 214 | /usr/share/qt5/mkspecs/features/default_post.prf \ | ||
1494 | 215 | /usr/share/qt5/mkspecs/features/qt.prf \ | ||
1495 | 216 | /usr/share/qt5/mkspecs/features/resources.prf \ | ||
1496 | 217 | /usr/share/qt5/mkspecs/features/moc.prf \ | ||
1497 | 218 | /usr/share/qt5/mkspecs/features/unix/opengl.prf \ | ||
1498 | 219 | /usr/share/qt5/mkspecs/features/unix/thread.prf \ | ||
1499 | 220 | /usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf \ | ||
1500 | 221 | /usr/share/qt5/mkspecs/features/warn_on.prf \ | ||
1501 | 222 | /usr/share/qt5/mkspecs/features/wayland-scanner.prf \ | ||
1502 | 223 | /usr/share/qt5/mkspecs/features/testcase_targets.prf \ | ||
1503 | 224 | /usr/share/qt5/mkspecs/features/exceptions.prf \ | ||
1504 | 225 | /usr/share/qt5/mkspecs/features/yacc.prf \ | ||
1505 | 226 | /usr/share/qt5/mkspecs/features/lex.prf \ | ||
1506 | 227 | ubuntuboot.pro \ | ||
1507 | 228 | /usr/lib/x86_64-linux-gnu/libQt5Quick.prl \ | ||
1508 | 229 | /usr/lib/x86_64-linux-gnu/libQt5Qml.prl \ | ||
1509 | 230 | /usr/lib/x86_64-linux-gnu/libQt5Network.prl \ | ||
1510 | 231 | /usr/lib/x86_64-linux-gnu/libQt5Core.prl \ | ||
1511 | 232 | /usr/lib/x86_64-linux-gnu/libQt5Gui.prl | ||
1512 | 233 | $(QMAKE) -o Makefile ubuntuboot.pro | ||
1513 | 234 | /usr/share/qt5/mkspecs/features/spec_pre.prf: | ||
1514 | 235 | /usr/share/qt5/mkspecs/common/shell-unix.conf: | ||
1515 | 236 | /usr/share/qt5/mkspecs/common/unix.conf: | ||
1516 | 237 | /usr/share/qt5/mkspecs/common/linux.conf: | ||
1517 | 238 | /usr/share/qt5/mkspecs/common/gcc-base.conf: | ||
1518 | 239 | /usr/share/qt5/mkspecs/common/gcc-base-unix.conf: | ||
1519 | 240 | /usr/share/qt5/mkspecs/common/g++-base.conf: | ||
1520 | 241 | /usr/share/qt5/mkspecs/common/g++-unix.conf: | ||
1521 | 242 | /usr/share/qt5/mkspecs/qconfig.pri: | ||
1522 | 243 | /usr/share/qt5/mkspecs/modules/qt_lib_3d.pri: | ||
1523 | 244 | /usr/share/qt5/mkspecs/modules/qt_lib_3dquick.pri: | ||
1524 | 245 | /usr/share/qt5/mkspecs/modules/qt_lib_bootstrap.pri: | ||
1525 | 246 | /usr/share/qt5/mkspecs/modules/qt_lib_clucene.pri: | ||
1526 | 247 | /usr/share/qt5/mkspecs/modules/qt_lib_concurrent.pri: | ||
1527 | 248 | /usr/share/qt5/mkspecs/modules/qt_lib_core.pri: | ||
1528 | 249 | /usr/share/qt5/mkspecs/modules/qt_lib_dbus.pri: | ||
1529 | 250 | /usr/share/qt5/mkspecs/modules/qt_lib_designer.pri: | ||
1530 | 251 | /usr/share/qt5/mkspecs/modules/qt_lib_designercomponents.pri: | ||
1531 | 252 | /usr/share/qt5/mkspecs/modules/qt_lib_gui.pri: | ||
1532 | 253 | /usr/share/qt5/mkspecs/modules/qt_lib_help.pri: | ||
1533 | 254 | /usr/share/qt5/mkspecs/modules/qt_lib_location.pri: | ||
1534 | 255 | /usr/share/qt5/mkspecs/modules/qt_lib_multimedia.pri: | ||
1535 | 256 | /usr/share/qt5/mkspecs/modules/qt_lib_multimediawidgets.pri: | ||
1536 | 257 | /usr/share/qt5/mkspecs/modules/qt_lib_network.pri: | ||
1537 | 258 | /usr/share/qt5/mkspecs/modules/qt_lib_opengl.pri: | ||
1538 | 259 | /usr/share/qt5/mkspecs/modules/qt_lib_platformsupport.pri: | ||
1539 | 260 | /usr/share/qt5/mkspecs/modules/qt_lib_printsupport.pri: | ||
1540 | 261 | /usr/share/qt5/mkspecs/modules/qt_lib_qml.pri: | ||
1541 | 262 | /usr/share/qt5/mkspecs/modules/qt_lib_qmldevtools.pri: | ||
1542 | 263 | /usr/share/qt5/mkspecs/modules/qt_lib_qmltest.pri: | ||
1543 | 264 | /usr/share/qt5/mkspecs/modules/qt_lib_qtmultimediaquicktools.pri: | ||
1544 | 265 | /usr/share/qt5/mkspecs/modules/qt_lib_quick.pri: | ||
1545 | 266 | /usr/share/qt5/mkspecs/modules/qt_lib_quickparticles.pri: | ||
1546 | 267 | /usr/share/qt5/mkspecs/modules/qt_lib_script.pri: | ||
1547 | 268 | /usr/share/qt5/mkspecs/modules/qt_lib_scripttools.pri: | ||
1548 | 269 | /usr/share/qt5/mkspecs/modules/qt_lib_sensors.pri: | ||
1549 | 270 | /usr/share/qt5/mkspecs/modules/qt_lib_sql.pri: | ||
1550 | 271 | /usr/share/qt5/mkspecs/modules/qt_lib_svg.pri: | ||
1551 | 272 | /usr/share/qt5/mkspecs/modules/qt_lib_testlib.pri: | ||
1552 | 273 | /usr/share/qt5/mkspecs/modules/qt_lib_uitools.pri: | ||
1553 | 274 | /usr/share/qt5/mkspecs/modules/qt_lib_v8.pri: | ||
1554 | 275 | /usr/share/qt5/mkspecs/modules/qt_lib_webkit.pri: | ||
1555 | 276 | /usr/share/qt5/mkspecs/modules/qt_lib_webkitwidgets.pri: | ||
1556 | 277 | /usr/share/qt5/mkspecs/modules/qt_lib_widgets.pri: | ||
1557 | 278 | /usr/share/qt5/mkspecs/modules/qt_lib_xml.pri: | ||
1558 | 279 | /usr/share/qt5/mkspecs/modules/qt_lib_xmlpatterns.pri: | ||
1559 | 280 | /usr/share/qt5/mkspecs/features/qt_functions.prf: | ||
1560 | 281 | /usr/share/qt5/mkspecs/features/qt_config.prf: | ||
1561 | 282 | /usr/share/qt5/mkspecs/linux-g++-64/qmake.conf: | ||
1562 | 283 | /usr/share/qt5/mkspecs/features/spec_post.prf: | ||
1563 | 284 | /usr/share/qt5/mkspecs/features/exclusive_builds.prf: | ||
1564 | 285 | /usr/share/qt5/mkspecs/features/default_pre.prf: | ||
1565 | 286 | /usr/share/qt5/mkspecs/features/unix/default_pre.prf: | ||
1566 | 287 | /usr/share/qt5/mkspecs/features/resolve_config.prf: | ||
1567 | 288 | /usr/share/qt5/mkspecs/features/default_post.prf: | ||
1568 | 289 | /usr/share/qt5/mkspecs/features/qt.prf: | ||
1569 | 290 | /usr/share/qt5/mkspecs/features/resources.prf: | ||
1570 | 291 | /usr/share/qt5/mkspecs/features/moc.prf: | ||
1571 | 292 | /usr/share/qt5/mkspecs/features/unix/opengl.prf: | ||
1572 | 293 | /usr/share/qt5/mkspecs/features/unix/thread.prf: | ||
1573 | 294 | /usr/share/qt5/mkspecs/features/unix/gdb_dwarf_index.prf: | ||
1574 | 295 | /usr/share/qt5/mkspecs/features/warn_on.prf: | ||
1575 | 296 | /usr/share/qt5/mkspecs/features/wayland-scanner.prf: | ||
1576 | 297 | /usr/share/qt5/mkspecs/features/testcase_targets.prf: | ||
1577 | 298 | /usr/share/qt5/mkspecs/features/exceptions.prf: | ||
1578 | 299 | /usr/share/qt5/mkspecs/features/yacc.prf: | ||
1579 | 300 | /usr/share/qt5/mkspecs/features/lex.prf: | ||
1580 | 301 | ubuntuboot.pro: | ||
1581 | 302 | /usr/lib/x86_64-linux-gnu/libQt5Quick.prl: | ||
1582 | 303 | /usr/lib/x86_64-linux-gnu/libQt5Qml.prl: | ||
1583 | 304 | /usr/lib/x86_64-linux-gnu/libQt5Network.prl: | ||
1584 | 305 | /usr/lib/x86_64-linux-gnu/libQt5Core.prl: | ||
1585 | 306 | /usr/lib/x86_64-linux-gnu/libQt5Gui.prl: | ||
1586 | 307 | qmake: FORCE | ||
1587 | 308 | @$(QMAKE) -o Makefile ubuntuboot.pro | ||
1588 | 309 | |||
1589 | 310 | qmake_all: FORCE | ||
1590 | 311 | |||
1591 | 312 | dist: | ||
1592 | 313 | @test -d .tmp/ubuntuboot1.0.0 || mkdir -p .tmp/ubuntuboot1.0.0 | ||
1593 | 314 | $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/ubuntuboot1.0.0/ && $(COPY_FILE) --parents backend.h ubuntuboot.h .tmp/ubuntuboot1.0.0/ && $(COPY_FILE) --parents backend.cpp ubuntuboot.cpp .tmp/ubuntuboot1.0.0/ && (cd `dirname .tmp/ubuntuboot1.0.0` && $(TAR) ubuntuboot1.0.0.tar ubuntuboot1.0.0 && $(COMPRESS) ubuntuboot1.0.0.tar) && $(MOVE) `dirname .tmp/ubuntuboot1.0.0`/ubuntuboot1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/ubuntuboot1.0.0 | ||
1594 | 315 | |||
1595 | 316 | |||
1596 | 317 | clean:compiler_clean | ||
1597 | 318 | -$(DEL_FILE) $(OBJECTS) | ||
1598 | 319 | -$(DEL_FILE) *~ core *.core | ||
1599 | 320 | |||
1600 | 321 | |||
1601 | 322 | ####### Sub-libraries | ||
1602 | 323 | |||
1603 | 324 | distclean: clean | ||
1604 | 325 | -$(DEL_FILE) $(TARGET) | ||
1605 | 326 | -$(DEL_FILE) Makefile | ||
1606 | 327 | |||
1607 | 328 | |||
1608 | 329 | mocclean: compiler_moc_header_clean compiler_moc_source_clean | ||
1609 | 330 | |||
1610 | 331 | mocables: compiler_moc_header_make_all compiler_moc_source_make_all | ||
1611 | 332 | |||
1612 | 333 | check: first | ||
1613 | 334 | |||
1614 | 335 | compiler_rcc_make_all: | ||
1615 | 336 | compiler_rcc_clean: | ||
1616 | 337 | compiler_wayland-server-header_make_all: | ||
1617 | 338 | compiler_wayland-server-header_clean: | ||
1618 | 339 | compiler_wayland-client-header_make_all: | ||
1619 | 340 | compiler_wayland-client-header_clean: | ||
1620 | 341 | compiler_moc_header_make_all: moc_backend.cpp moc_ubuntuboot.cpp | ||
1621 | 342 | compiler_moc_header_clean: | ||
1622 | 343 | -$(DEL_FILE) moc_backend.cpp moc_ubuntuboot.cpp | ||
1623 | 344 | moc_backend.cpp: /usr/include/qt5/QtQml/QQmlEngine \ | ||
1624 | 345 | /usr/include/qt5/QtQml/qqmlengine.h \ | ||
1625 | 346 | /usr/include/qt5/QtCore/qurl.h \ | ||
1626 | 347 | /usr/include/qt5/QtCore/qbytearray.h \ | ||
1627 | 348 | /usr/include/qt5/QtCore/qrefcount.h \ | ||
1628 | 349 | /usr/include/qt5/QtCore/qatomic.h \ | ||
1629 | 350 | /usr/include/qt5/QtCore/qglobal.h \ | ||
1630 | 351 | /usr/include/qt5/QtCore/qconfig.h \ | ||
1631 | 352 | /usr/include/qt5/QtCore/qfeatures.h \ | ||
1632 | 353 | /usr/include/qt5/QtCore/qsystemdetection.h \ | ||
1633 | 354 | /usr/include/qt5/QtCore/qcompilerdetection.h \ | ||
1634 | 355 | /usr/include/qt5/QtCore/qprocessordetection.h \ | ||
1635 | 356 | /usr/include/qt5/QtCore/qlogging.h \ | ||
1636 | 357 | /usr/include/qt5/QtCore/qflags.h \ | ||
1637 | 358 | /usr/include/qt5/QtCore/qtypeinfo.h \ | ||
1638 | 359 | /usr/include/qt5/QtCore/qtypetraits.h \ | ||
1639 | 360 | /usr/include/qt5/QtCore/qsysinfo.h \ | ||
1640 | 361 | /usr/include/qt5/QtCore/qbasicatomic.h \ | ||
1641 | 362 | /usr/include/qt5/QtCore/qatomic_bootstrap.h \ | ||
1642 | 363 | /usr/include/qt5/QtCore/qgenericatomic.h \ | ||
1643 | 364 | /usr/include/qt5/QtCore/qatomic_msvc.h \ | ||
1644 | 365 | /usr/include/qt5/QtCore/qatomic_integrity.h \ | ||
1645 | 366 | /usr/include/qt5/QtCore/qoldbasicatomic.h \ | ||
1646 | 367 | /usr/include/qt5/QtCore/qatomic_vxworks.h \ | ||
1647 | 368 | /usr/include/qt5/QtCore/qatomic_power.h \ | ||
1648 | 369 | /usr/include/qt5/QtCore/qatomic_alpha.h \ | ||
1649 | 370 | /usr/include/qt5/QtCore/qatomic_armv7.h \ | ||
1650 | 371 | /usr/include/qt5/QtCore/qatomic_armv6.h \ | ||
1651 | 372 | /usr/include/qt5/QtCore/qatomic_armv5.h \ | ||
1652 | 373 | /usr/include/qt5/QtCore/qatomic_bfin.h \ | ||
1653 | 374 | /usr/include/qt5/QtCore/qatomic_ia64.h \ | ||
1654 | 375 | /usr/include/qt5/QtCore/qatomic_mips.h \ | ||
1655 | 376 | /usr/include/qt5/QtCore/qatomic_s390.h \ | ||
1656 | 377 | /usr/include/qt5/QtCore/qatomic_sh4a.h \ | ||
1657 | 378 | /usr/include/qt5/QtCore/qatomic_sparc.h \ | ||
1658 | 379 | /usr/include/qt5/QtCore/qatomic_x86.h \ | ||
1659 | 380 | /usr/include/qt5/QtCore/qatomic_cxx11.h \ | ||
1660 | 381 | /usr/include/qt5/QtCore/qatomic_gcc.h \ | ||
1661 | 382 | /usr/include/qt5/QtCore/qatomic_unix.h \ | ||
1662 | 383 | /usr/include/qt5/QtCore/qnamespace.h \ | ||
1663 | 384 | /usr/include/qt5/QtCore/qarraydata.h \ | ||
1664 | 385 | /usr/include/qt5/QtCore/qstring.h \ | ||
1665 | 386 | /usr/include/qt5/QtCore/qchar.h \ | ||
1666 | 387 | /usr/include/qt5/QtCore/qstringbuilder.h \ | ||
1667 | 388 | /usr/include/qt5/QtCore/qobjectdefs.h \ | ||
1668 | 389 | /usr/include/qt5/QtCore/qobjectdefs_impl.h \ | ||
1669 | 390 | /usr/include/qt5/QtCore/qlist.h \ | ||
1670 | 391 | /usr/include/qt5/QtCore/qalgorithms.h \ | ||
1671 | 392 | /usr/include/qt5/QtCore/qiterator.h \ | ||
1672 | 393 | /usr/include/qt5/QtCore/qpair.h \ | ||
1673 | 394 | /usr/include/qt5/QtCore/qurlquery.h \ | ||
1674 | 395 | /usr/include/qt5/QtCore/qshareddata.h \ | ||
1675 | 396 | /usr/include/qt5/QtCore/qstringlist.h \ | ||
1676 | 397 | /usr/include/qt5/QtCore/qdatastream.h \ | ||
1677 | 398 | /usr/include/qt5/QtCore/qscopedpointer.h \ | ||
1678 | 399 | /usr/include/qt5/QtCore/qiodevice.h \ | ||
1679 | 400 | /usr/include/qt5/QtCore/qobject.h \ | ||
1680 | 401 | /usr/include/qt5/QtCore/qcoreevent.h \ | ||
1681 | 402 | /usr/include/qt5/QtCore/qmetatype.h \ | ||
1682 | 403 | /usr/include/qt5/QtCore/qvarlengtharray.h \ | ||
1683 | 404 | /usr/include/qt5/QtCore/qcontainerfwd.h \ | ||
1684 | 405 | /usr/include/qt5/QtCore/qisenum.h \ | ||
1685 | 406 | /usr/include/qt5/QtCore/qobject_impl.h \ | ||
1686 | 407 | /usr/include/qt5/QtCore/qregexp.h \ | ||
1687 | 408 | /usr/include/qt5/QtCore/qstringmatcher.h \ | ||
1688 | 409 | /usr/include/qt5/QtCore/qmap.h \ | ||
1689 | 410 | /usr/include/qt5/QtCore/qdebug.h \ | ||
1690 | 411 | /usr/include/qt5/QtCore/qhash.h \ | ||
1691 | 412 | /usr/include/qt5/QtCore/qtextstream.h \ | ||
1692 | 413 | /usr/include/qt5/QtCore/qlocale.h \ | ||
1693 | 414 | /usr/include/qt5/QtCore/qvariant.h \ | ||
1694 | 415 | /usr/include/qt5/QtCore/qvector.h \ | ||
1695 | 416 | /usr/include/qt5/QtCore/qpoint.h \ | ||
1696 | 417 | /usr/include/qt5/QtCore/qset.h \ | ||
1697 | 418 | /usr/include/qt5/QtCore/qcontiguouscache.h \ | ||
1698 | 419 | /usr/include/qt5/QtQml/qjsengine.h \ | ||
1699 | 420 | /usr/include/qt5/QtCore/qsharedpointer.h \ | ||
1700 | 421 | /usr/include/qt5/QtCore/qsharedpointer_impl.h \ | ||
1701 | 422 | /usr/include/qt5/QtQml/qjsvalue.h \ | ||
1702 | 423 | /usr/include/qt5/QtQml/qtqmlglobal.h \ | ||
1703 | 424 | /usr/include/qt5/QtQml/qqmlerror.h \ | ||
1704 | 425 | /usr/include/qt5/QtQml/qqmldebug.h \ | ||
1705 | 426 | /usr/include/qt5/QtQml/QQmlExtensionPlugin \ | ||
1706 | 427 | /usr/include/qt5/QtQml/qqmlextensionplugin.h \ | ||
1707 | 428 | /usr/include/qt5/QtCore/qplugin.h \ | ||
1708 | 429 | /usr/include/qt5/QtCore/qpointer.h \ | ||
1709 | 430 | /usr/include/qt5/QtQml/qqmlextensioninterface.h \ | ||
1710 | 431 | backend.h | ||
1711 | 432 | /usr/lib/x86_64-linux-gnu/qt5/bin/moc $(DEFINES) $(INCPATH) backend.h -o moc_backend.cpp | ||
1712 | 433 | |||
1713 | 434 | moc_ubuntuboot.cpp: /usr/include/qt5/QtCore/QObject \ | ||
1714 | 435 | /usr/include/qt5/QtCore/qobject.h \ | ||
1715 | 436 | /usr/include/qt5/QtCore/qobjectdefs.h \ | ||
1716 | 437 | /usr/include/qt5/QtCore/qnamespace.h \ | ||
1717 | 438 | /usr/include/qt5/QtCore/qglobal.h \ | ||
1718 | 439 | /usr/include/qt5/QtCore/qconfig.h \ | ||
1719 | 440 | /usr/include/qt5/QtCore/qfeatures.h \ | ||
1720 | 441 | /usr/include/qt5/QtCore/qsystemdetection.h \ | ||
1721 | 442 | /usr/include/qt5/QtCore/qcompilerdetection.h \ | ||
1722 | 443 | /usr/include/qt5/QtCore/qprocessordetection.h \ | ||
1723 | 444 | /usr/include/qt5/QtCore/qlogging.h \ | ||
1724 | 445 | /usr/include/qt5/QtCore/qflags.h \ | ||
1725 | 446 | /usr/include/qt5/QtCore/qtypeinfo.h \ | ||
1726 | 447 | /usr/include/qt5/QtCore/qtypetraits.h \ | ||
1727 | 448 | /usr/include/qt5/QtCore/qsysinfo.h \ | ||
1728 | 449 | /usr/include/qt5/QtCore/qobjectdefs_impl.h \ | ||
1729 | 450 | /usr/include/qt5/QtCore/qstring.h \ | ||
1730 | 451 | /usr/include/qt5/QtCore/qchar.h \ | ||
1731 | 452 | /usr/include/qt5/QtCore/qbytearray.h \ | ||
1732 | 453 | /usr/include/qt5/QtCore/qrefcount.h \ | ||
1733 | 454 | /usr/include/qt5/QtCore/qatomic.h \ | ||
1734 | 455 | /usr/include/qt5/QtCore/qbasicatomic.h \ | ||
1735 | 456 | /usr/include/qt5/QtCore/qatomic_bootstrap.h \ | ||
1736 | 457 | /usr/include/qt5/QtCore/qgenericatomic.h \ | ||
1737 | 458 | /usr/include/qt5/QtCore/qatomic_msvc.h \ | ||
1738 | 459 | /usr/include/qt5/QtCore/qatomic_integrity.h \ | ||
1739 | 460 | /usr/include/qt5/QtCore/qoldbasicatomic.h \ | ||
1740 | 461 | /usr/include/qt5/QtCore/qatomic_vxworks.h \ | ||
1741 | 462 | /usr/include/qt5/QtCore/qatomic_power.h \ | ||
1742 | 463 | /usr/include/qt5/QtCore/qatomic_alpha.h \ | ||
1743 | 464 | /usr/include/qt5/QtCore/qatomic_armv7.h \ | ||
1744 | 465 | /usr/include/qt5/QtCore/qatomic_armv6.h \ | ||
1745 | 466 | /usr/include/qt5/QtCore/qatomic_armv5.h \ | ||
1746 | 467 | /usr/include/qt5/QtCore/qatomic_bfin.h \ | ||
1747 | 468 | /usr/include/qt5/QtCore/qatomic_ia64.h \ | ||
1748 | 469 | /usr/include/qt5/QtCore/qatomic_mips.h \ | ||
1749 | 470 | /usr/include/qt5/QtCore/qatomic_s390.h \ | ||
1750 | 471 | /usr/include/qt5/QtCore/qatomic_sh4a.h \ | ||
1751 | 472 | /usr/include/qt5/QtCore/qatomic_sparc.h \ | ||
1752 | 473 | /usr/include/qt5/QtCore/qatomic_x86.h \ | ||
1753 | 474 | /usr/include/qt5/QtCore/qatomic_cxx11.h \ | ||
1754 | 475 | /usr/include/qt5/QtCore/qatomic_gcc.h \ | ||
1755 | 476 | /usr/include/qt5/QtCore/qatomic_unix.h \ | ||
1756 | 477 | /usr/include/qt5/QtCore/qarraydata.h \ | ||
1757 | 478 | /usr/include/qt5/QtCore/qstringbuilder.h \ | ||
1758 | 479 | /usr/include/qt5/QtCore/qlist.h \ | ||
1759 | 480 | /usr/include/qt5/QtCore/qalgorithms.h \ | ||
1760 | 481 | /usr/include/qt5/QtCore/qiterator.h \ | ||
1761 | 482 | /usr/include/qt5/QtCore/qcoreevent.h \ | ||
1762 | 483 | /usr/include/qt5/QtCore/qscopedpointer.h \ | ||
1763 | 484 | /usr/include/qt5/QtCore/qmetatype.h \ | ||
1764 | 485 | /usr/include/qt5/QtCore/qvarlengtharray.h \ | ||
1765 | 486 | /usr/include/qt5/QtCore/qcontainerfwd.h \ | ||
1766 | 487 | /usr/include/qt5/QtCore/qisenum.h \ | ||
1767 | 488 | /usr/include/qt5/QtCore/qobject_impl.h \ | ||
1768 | 489 | /usr/include/qt5/QtCore/QRegularExpression \ | ||
1769 | 490 | /usr/include/qt5/QtCore/qregularexpression.h \ | ||
1770 | 491 | /usr/include/qt5/QtCore/qshareddata.h \ | ||
1771 | 492 | /usr/include/qt5/QtCore/qvariant.h \ | ||
1772 | 493 | /usr/include/qt5/QtCore/qmap.h \ | ||
1773 | 494 | /usr/include/qt5/QtCore/qpair.h \ | ||
1774 | 495 | /usr/include/qt5/QtCore/qdebug.h \ | ||
1775 | 496 | /usr/include/qt5/QtCore/qhash.h \ | ||
1776 | 497 | /usr/include/qt5/QtCore/qtextstream.h \ | ||
1777 | 498 | /usr/include/qt5/QtCore/qiodevice.h \ | ||
1778 | 499 | /usr/include/qt5/QtCore/qlocale.h \ | ||
1779 | 500 | /usr/include/qt5/QtCore/qvector.h \ | ||
1780 | 501 | /usr/include/qt5/QtCore/qpoint.h \ | ||
1781 | 502 | /usr/include/qt5/QtCore/qset.h \ | ||
1782 | 503 | /usr/include/qt5/QtCore/qcontiguouscache.h \ | ||
1783 | 504 | ubuntuboot.h | ||
1784 | 505 | /usr/lib/x86_64-linux-gnu/qt5/bin/moc $(DEFINES) $(INCPATH) ubuntuboot.h -o moc_ubuntuboot.cpp | ||
1785 | 506 | |||
1786 | 507 | compiler_wayland-code_make_all: | ||
1787 | 508 | compiler_wayland-code_clean: | ||
1788 | 509 | compiler_moc_source_make_all: | ||
1789 | 510 | compiler_moc_source_clean: | ||
1790 | 511 | compiler_yacc_decl_make_all: | ||
1791 | 512 | compiler_yacc_decl_clean: | ||
1792 | 513 | compiler_yacc_impl_make_all: | ||
1793 | 514 | compiler_yacc_impl_clean: | ||
1794 | 515 | compiler_lex_make_all: | ||
1795 | 516 | compiler_lex_clean: | ||
1796 | 517 | compiler_clean: compiler_moc_header_clean | ||
1797 | 518 | |||
1798 | 519 | ####### Compile | ||
1799 | 520 | |||
1800 | 521 | backend.o: backend.cpp /usr/include/qt5/QtQml/QtQml \ | ||
1801 | 522 | /usr/include/qt5/QtCore/QtCore \ | ||
1802 | 523 | /usr/include/qt5/QtCore/qabstractanimation.h \ | ||
1803 | 524 | /usr/include/qt5/QtCore/qobject.h \ | ||
1804 | 525 | /usr/include/qt5/QtCore/qobjectdefs.h \ | ||
1805 | 526 | /usr/include/qt5/QtCore/qnamespace.h \ | ||
1806 | 527 | /usr/include/qt5/QtCore/qglobal.h \ | ||
1807 | 528 | /usr/include/qt5/QtCore/qconfig.h \ | ||
1808 | 529 | /usr/include/qt5/QtCore/qfeatures.h \ | ||
1809 | 530 | /usr/include/qt5/QtCore/qsystemdetection.h \ | ||
1810 | 531 | /usr/include/qt5/QtCore/qcompilerdetection.h \ | ||
1811 | 532 | /usr/include/qt5/QtCore/qprocessordetection.h \ | ||
1812 | 533 | /usr/include/qt5/QtCore/qlogging.h \ | ||
1813 | 534 | /usr/include/qt5/QtCore/qflags.h \ | ||
1814 | 535 | /usr/include/qt5/QtCore/qtypeinfo.h \ | ||
1815 | 536 | /usr/include/qt5/QtCore/qtypetraits.h \ | ||
1816 | 537 | /usr/include/qt5/QtCore/qsysinfo.h \ | ||
1817 | 538 | /usr/include/qt5/QtCore/qobjectdefs_impl.h \ | ||
1818 | 539 | /usr/include/qt5/QtCore/qstring.h \ | ||
1819 | 540 | /usr/include/qt5/QtCore/qchar.h \ | ||
1820 | 541 | /usr/include/qt5/QtCore/qbytearray.h \ | ||
1821 | 542 | /usr/include/qt5/QtCore/qrefcount.h \ | ||
1822 | 543 | /usr/include/qt5/QtCore/qatomic.h \ | ||
1823 | 544 | /usr/include/qt5/QtCore/qbasicatomic.h \ | ||
1824 | 545 | /usr/include/qt5/QtCore/qatomic_bootstrap.h \ | ||
1825 | 546 | /usr/include/qt5/QtCore/qgenericatomic.h \ | ||
1826 | 547 | /usr/include/qt5/QtCore/qatomic_msvc.h \ | ||
1827 | 548 | /usr/include/qt5/QtCore/qatomic_integrity.h \ | ||
1828 | 549 | /usr/include/qt5/QtCore/qoldbasicatomic.h \ | ||
1829 | 550 | /usr/include/qt5/QtCore/qatomic_vxworks.h \ | ||
1830 | 551 | /usr/include/qt5/QtCore/qatomic_power.h \ | ||
1831 | 552 | /usr/include/qt5/QtCore/qatomic_alpha.h \ | ||
1832 | 553 | /usr/include/qt5/QtCore/qatomic_armv7.h \ | ||
1833 | 554 | /usr/include/qt5/QtCore/qatomic_armv6.h \ | ||
1834 | 555 | /usr/include/qt5/QtCore/qatomic_armv5.h \ | ||
1835 | 556 | /usr/include/qt5/QtCore/qatomic_bfin.h \ | ||
1836 | 557 | /usr/include/qt5/QtCore/qatomic_ia64.h \ | ||
1837 | 558 | /usr/include/qt5/QtCore/qatomic_mips.h \ | ||
1838 | 559 | /usr/include/qt5/QtCore/qatomic_s390.h \ | ||
1839 | 560 | /usr/include/qt5/QtCore/qatomic_sh4a.h \ | ||
1840 | 561 | /usr/include/qt5/QtCore/qatomic_sparc.h \ | ||
1841 | 562 | /usr/include/qt5/QtCore/qatomic_x86.h \ | ||
1842 | 563 | /usr/include/qt5/QtCore/qatomic_cxx11.h \ | ||
1843 | 564 | /usr/include/qt5/QtCore/qatomic_gcc.h \ | ||
1844 | 565 | /usr/include/qt5/QtCore/qatomic_unix.h \ | ||
1845 | 566 | /usr/include/qt5/QtCore/qarraydata.h \ | ||
1846 | 567 | /usr/include/qt5/QtCore/qstringbuilder.h \ | ||
1847 | 568 | /usr/include/qt5/QtCore/qlist.h \ | ||
1848 | 569 | /usr/include/qt5/QtCore/qalgorithms.h \ | ||
1849 | 570 | /usr/include/qt5/QtCore/qiterator.h \ | ||
1850 | 571 | /usr/include/qt5/QtCore/qcoreevent.h \ | ||
1851 | 572 | /usr/include/qt5/QtCore/qscopedpointer.h \ | ||
1852 | 573 | /usr/include/qt5/QtCore/qmetatype.h \ | ||
1853 | 574 | /usr/include/qt5/QtCore/qvarlengtharray.h \ | ||
1854 | 575 | /usr/include/qt5/QtCore/qcontainerfwd.h \ | ||
1855 | 576 | /usr/include/qt5/QtCore/qisenum.h \ | ||
1856 | 577 | /usr/include/qt5/QtCore/qobject_impl.h \ | ||
1857 | 578 | /usr/include/qt5/QtCore/qanimationgroup.h \ | ||
1858 | 579 | /usr/include/qt5/QtCore/qparallelanimationgroup.h \ | ||
1859 | 580 | /usr/include/qt5/QtCore/qpauseanimation.h \ | ||
1860 | 581 | /usr/include/qt5/QtCore/qpropertyanimation.h \ | ||
1861 | 582 | /usr/include/qt5/QtCore/qvariantanimation.h \ | ||
1862 | 583 | /usr/include/qt5/QtCore/qeasingcurve.h \ | ||
1863 | 584 | /usr/include/qt5/QtCore/qvector.h \ | ||
1864 | 585 | /usr/include/qt5/QtCore/qpoint.h \ | ||
1865 | 586 | /usr/include/qt5/QtCore/qvariant.h \ | ||
1866 | 587 | /usr/include/qt5/QtCore/qmap.h \ | ||
1867 | 588 | /usr/include/qt5/QtCore/qpair.h \ | ||
1868 | 589 | /usr/include/qt5/QtCore/qdebug.h \ | ||
1869 | 590 | /usr/include/qt5/QtCore/qhash.h \ | ||
1870 | 591 | /usr/include/qt5/QtCore/qtextstream.h \ | ||
1871 | 592 | /usr/include/qt5/QtCore/qiodevice.h \ | ||
1872 | 593 | /usr/include/qt5/QtCore/qlocale.h \ | ||
1873 | 594 | /usr/include/qt5/QtCore/qshareddata.h \ | ||
1874 | 595 | /usr/include/qt5/QtCore/qset.h \ | ||
1875 | 596 | /usr/include/qt5/QtCore/qcontiguouscache.h \ | ||
1876 | 597 | /usr/include/qt5/QtCore/qsequentialanimationgroup.h \ | ||
1877 | 598 | /usr/include/qt5/QtCore/qtextcodec.h \ | ||
1878 | 599 | /usr/include/qt5/QtCore/qendian.h \ | ||
1879 | 600 | /usr/include/qt5/QtCore/qlibraryinfo.h \ | ||
1880 | 601 | /usr/include/qt5/QtCore/qdatetime.h \ | ||
1881 | 602 | /usr/include/qt5/QtCore/qsharedpointer.h \ | ||
1882 | 603 | /usr/include/qt5/QtCore/qsharedpointer_impl.h \ | ||
1883 | 604 | /usr/include/qt5/QtCore/qnumeric.h \ | ||
1884 | 605 | /usr/include/qt5/QtCore/qbuffer.h \ | ||
1885 | 606 | /usr/include/qt5/QtCore/qdatastream.h \ | ||
1886 | 607 | /usr/include/qt5/QtCore/qdir.h \ | ||
1887 | 608 | /usr/include/qt5/QtCore/qfileinfo.h \ | ||
1888 | 609 | /usr/include/qt5/QtCore/qfile.h \ | ||
1889 | 610 | /usr/include/qt5/QtCore/qfiledevice.h \ | ||
1890 | 611 | /usr/include/qt5/QtCore/qstringlist.h \ | ||
1891 | 612 | /usr/include/qt5/QtCore/qregexp.h \ | ||
1892 | 613 | /usr/include/qt5/QtCore/qstringmatcher.h \ | ||
1893 | 614 | /usr/include/qt5/QtCore/qdiriterator.h \ | ||
1894 | 615 | /usr/include/qt5/QtCore/qfilesystemwatcher.h \ | ||
1895 | 616 | /usr/include/qt5/QtCore/qprocess.h \ | ||
1896 | 617 | /usr/include/qt5/QtCore/qresource.h \ | ||
1897 | 618 | /usr/include/qt5/QtCore/qsettings.h \ | ||
1898 | 619 | /usr/include/qt5/QtCore/qstandardpaths.h \ | ||
1899 | 620 | /usr/include/qt5/QtCore/qtemporarydir.h \ | ||
1900 | 621 | /usr/include/qt5/QtCore/QScopedPointer \ | ||
1901 | 622 | /usr/include/qt5/QtCore/qtemporaryfile.h \ | ||
1902 | 623 | /usr/include/qt5/QtCore/qurl.h \ | ||
1903 | 624 | /usr/include/qt5/QtCore/qurlquery.h \ | ||
1904 | 625 | /usr/include/qt5/QtCore/qabstractitemmodel.h \ | ||
1905 | 626 | /usr/include/qt5/QtCore/qabstractproxymodel.h \ | ||
1906 | 627 | /usr/include/qt5/QtCore/qidentityproxymodel.h \ | ||
1907 | 628 | /usr/include/qt5/QtCore/qitemselectionmodel.h \ | ||
1908 | 629 | /usr/include/qt5/QtCore/qsortfilterproxymodel.h \ | ||
1909 | 630 | /usr/include/qt5/QtCore/qstringlistmodel.h \ | ||
1910 | 631 | /usr/include/qt5/QtCore/qjsonarray.h \ | ||
1911 | 632 | /usr/include/qt5/QtCore/qjsonvalue.h \ | ||
1912 | 633 | /usr/include/qt5/QtCore/qjsondocument.h \ | ||
1913 | 634 | /usr/include/qt5/QtCore/qjsonobject.h \ | ||
1914 | 635 | /usr/include/qt5/QtCore/qabstracteventdispatcher.h \ | ||
1915 | 636 | /usr/include/qt5/QtCore/qeventloop.h \ | ||
1916 | 637 | /usr/include/qt5/QtCore/qabstractnativeeventfilter.h \ | ||
1917 | 638 | /usr/include/qt5/QtCore/qbasictimer.h \ | ||
1918 | 639 | /usr/include/qt5/QtCore/qcoreapplication.h \ | ||
1919 | 640 | /usr/include/qt5/QtCore/qmath.h \ | ||
1920 | 641 | /usr/include/qt5/QtCore/qmetaobject.h \ | ||
1921 | 642 | /usr/include/qt5/QtCore/qmimedata.h \ | ||
1922 | 643 | /usr/include/qt5/QtCore/qobjectcleanuphandler.h \ | ||
1923 | 644 | /usr/include/qt5/QtCore/qpointer.h \ | ||
1924 | 645 | /usr/include/qt5/QtCore/qsharedmemory.h \ | ||
1925 | 646 | /usr/include/qt5/QtCore/qsignalmapper.h \ | ||
1926 | 647 | /usr/include/qt5/QtCore/qsocketnotifier.h \ | ||
1927 | 648 | /usr/include/qt5/QtCore/qsystemsemaphore.h \ | ||
1928 | 649 | /usr/include/qt5/QtCore/qtimer.h \ | ||
1929 | 650 | /usr/include/qt5/QtCore/qtranslator.h \ | ||
1930 | 651 | /usr/include/qt5/QtCore/qwineventnotifier.h \ | ||
1931 | 652 | /usr/include/qt5/QtCore/qt_windows.h \ | ||
1932 | 653 | /usr/include/qt5/QtCore/qmimedatabase.h \ | ||
1933 | 654 | /usr/include/qt5/QtCore/qmimetype.h \ | ||
1934 | 655 | /usr/include/qt5/QtCore/qfactoryinterface.h \ | ||
1935 | 656 | /usr/include/qt5/QtCore/qlibrary.h \ | ||
1936 | 657 | /usr/include/qt5/QtCore/qplugin.h \ | ||
1937 | 658 | /usr/include/qt5/QtCore/qpluginloader.h \ | ||
1938 | 659 | /usr/include/qt5/QtCore/quuid.h \ | ||
1939 | 660 | /usr/include/qt5/QtCore/qabstractstate.h \ | ||
1940 | 661 | /usr/include/qt5/QtCore/qabstracttransition.h \ | ||
1941 | 662 | /usr/include/qt5/QtCore/qeventtransition.h \ | ||
1942 | 663 | /usr/include/qt5/QtCore/qfinalstate.h \ | ||
1943 | 664 | /usr/include/qt5/QtCore/qhistorystate.h \ | ||
1944 | 665 | /usr/include/qt5/QtCore/qsignaltransition.h \ | ||
1945 | 666 | /usr/include/qt5/QtCore/qstate.h \ | ||
1946 | 667 | /usr/include/qt5/QtCore/qstatemachine.h \ | ||
1947 | 668 | /usr/include/qt5/QtCore/qexception.h \ | ||
1948 | 669 | /usr/include/qt5/QtCore/qfuture.h \ | ||
1949 | 670 | /usr/include/qt5/QtCore/qfutureinterface.h \ | ||
1950 | 671 | /usr/include/qt5/QtCore/qrunnable.h \ | ||
1951 | 672 | /usr/include/qt5/QtCore/qmutex.h \ | ||
1952 | 673 | /usr/include/qt5/QtCore/qresultstore.h \ | ||
1953 | 674 | /usr/include/qt5/QtCore/qfuturesynchronizer.h \ | ||
1954 | 675 | /usr/include/qt5/QtCore/qfuturewatcher.h \ | ||
1955 | 676 | /usr/include/qt5/QtCore/qreadwritelock.h \ | ||
1956 | 677 | /usr/include/qt5/QtCore/qsemaphore.h \ | ||
1957 | 678 | /usr/include/qt5/QtCore/qthread.h \ | ||
1958 | 679 | /usr/include/qt5/QtCore/qthreadpool.h \ | ||
1959 | 680 | /usr/include/qt5/QtCore/qthreadstorage.h \ | ||
1960 | 681 | /usr/include/qt5/QtCore/qwaitcondition.h \ | ||
1961 | 682 | /usr/include/qt5/QtCore/qarraydataops.h \ | ||
1962 | 683 | /usr/include/qt5/QtCore/qarraydatapointer.h \ | ||
1963 | 684 | /usr/include/qt5/QtCore/qbitarray.h \ | ||
1964 | 685 | /usr/include/qt5/QtCore/qbytearraymatcher.h \ | ||
1965 | 686 | /usr/include/qt5/QtCore/qcache.h \ | ||
1966 | 687 | /usr/include/qt5/QtCore/qcryptographichash.h \ | ||
1967 | 688 | /usr/include/qt5/QtCore/qelapsedtimer.h \ | ||
1968 | 689 | /usr/include/qt5/QtCore/qline.h \ | ||
1969 | 690 | /usr/include/qt5/QtCore/qlinkedlist.h \ | ||
1970 | 691 | /usr/include/qt5/QtCore/qmargins.h \ | ||
1971 | 692 | /usr/include/qt5/QtCore/qqueue.h \ | ||
1972 | 693 | /usr/include/qt5/QtCore/qrect.h \ | ||
1973 | 694 | /usr/include/qt5/QtCore/qsize.h \ | ||
1974 | 695 | /usr/include/qt5/QtCore/qregularexpression.h \ | ||
1975 | 696 | /usr/include/qt5/QtCore/qscopedvaluerollback.h \ | ||
1976 | 697 | /usr/include/qt5/QtCore/qstack.h \ | ||
1977 | 698 | /usr/include/qt5/QtCore/qtextboundaryfinder.h \ | ||
1978 | 699 | /usr/include/qt5/QtCore/qtimeline.h \ | ||
1979 | 700 | /usr/include/qt5/QtCore/qxmlstream.h \ | ||
1980 | 701 | /usr/include/qt5/QtCore/qtcoreversion.h \ | ||
1981 | 702 | /usr/include/qt5/QtNetwork/QtNetwork \ | ||
1982 | 703 | /usr/include/qt5/QtNetwork/qabstractnetworkcache.h \ | ||
1983 | 704 | /usr/include/qt5/QtNetwork/qnetworkrequest.h \ | ||
1984 | 705 | /usr/include/qt5/QtCore/QSharedDataPointer \ | ||
1985 | 706 | /usr/include/qt5/QtCore/QString \ | ||
1986 | 707 | /usr/include/qt5/QtCore/QUrl \ | ||
1987 | 708 | /usr/include/qt5/QtCore/QVariant \ | ||
1988 | 709 | /usr/include/qt5/QtNetwork/qhttpmultipart.h \ | ||
1989 | 710 | /usr/include/qt5/QtCore/QByteArray \ | ||
1990 | 711 | /usr/include/qt5/QtCore/QIODevice \ | ||
1991 | 712 | /usr/include/qt5/QtNetwork/QNetworkRequest \ | ||
1992 | 713 | /usr/include/qt5/QtNetwork/qnetworkaccessmanager.h \ | ||
1993 | 714 | /usr/include/qt5/QtCore/QObject \ | ||
1994 | 715 | /usr/include/qt5/QtNetwork/qnetworkcookie.h \ | ||
1995 | 716 | /usr/include/qt5/QtCore/QList \ | ||
1996 | 717 | /usr/include/qt5/QtCore/QMetaType \ | ||
1997 | 718 | /usr/include/qt5/QtNetwork/qnetworkcookiejar.h \ | ||
1998 | 719 | /usr/include/qt5/QtNetwork/qnetworkdiskcache.h \ | ||
1999 | 720 | /usr/include/qt5/QtNetwork/qnetworkreply.h \ | ||
2000 | 721 | /usr/include/qt5/QtNetwork/QNetworkAccessManager \ | ||
2001 | 722 | /usr/include/qt5/QtNetwork/qnetworkconfigmanager.h \ | ||
2002 | 723 | /usr/include/qt5/QtNetwork/qnetworkconfiguration.h \ | ||
2003 | 724 | /usr/include/qt5/QtNetwork/qnetworksession.h \ | ||
2004 | 725 | /usr/include/qt5/QtNetwork/qnetworkinterface.h \ | ||
2005 | 726 | /usr/include/qt5/QtNetwork/qhostaddress.h \ | ||
2006 | 727 | /usr/include/qt5/QtNetwork/qabstractsocket.h \ | ||
2007 | 728 | /usr/include/qt5/QtNetwork/qauthenticator.h \ | ||
2008 | 729 | /usr/include/qt5/QtNetwork/qdnslookup.h \ | ||
2009 | 730 | /usr/include/qt5/QtNetwork/qhostinfo.h \ | ||
2010 | 731 | /usr/include/qt5/QtNetwork/qnetworkproxy.h \ | ||
2011 | 732 | /usr/include/qt5/QtNetwork/qlocalserver.h \ | ||
2012 | 733 | /usr/include/qt5/QtNetwork/qlocalsocket.h \ | ||
2013 | 734 | /usr/include/qt5/QtNetwork/qtcpserver.h \ | ||
2014 | 735 | /usr/include/qt5/QtNetwork/qtcpsocket.h \ | ||
2015 | 736 | /usr/include/qt5/QtNetwork/qudpsocket.h \ | ||
2016 | 737 | /usr/include/qt5/QtNetwork/qssl.h \ | ||
2017 | 738 | /usr/include/qt5/QtCore/QFlags \ | ||
2018 | 739 | /usr/include/qt5/QtNetwork/qsslcertificate.h \ | ||
2019 | 740 | /usr/include/qt5/QtNetwork/qsslcertificateextension.h \ | ||
2020 | 741 | /usr/include/qt5/QtNetwork/qsslcipher.h \ | ||
2021 | 742 | /usr/include/qt5/QtNetwork/qsslconfiguration.h \ | ||
2022 | 743 | /usr/include/qt5/QtNetwork/qsslsocket.h \ | ||
2023 | 744 | /usr/include/qt5/QtNetwork/qsslerror.h \ | ||
2024 | 745 | /usr/include/qt5/QtNetwork/qsslkey.h \ | ||
2025 | 746 | /usr/include/qt5/QtNetwork/qtnetworkversion.h \ | ||
2026 | 747 | /usr/include/qt5/QtQml/qtqmlglobal.h \ | ||
2027 | 748 | /usr/include/qt5/QtQml/qqmldebug.h \ | ||
2028 | 749 | /usr/include/qt5/QtQml/qqml.h \ | ||
2029 | 750 | /usr/include/qt5/QtQml/qqmlprivate.h \ | ||
2030 | 751 | /usr/include/qt5/QtQml/qqmlparserstatus.h \ | ||
2031 | 752 | /usr/include/qt5/QtQml/qqmlpropertyvaluesource.h \ | ||
2032 | 753 | /usr/include/qt5/QtQml/qqmllist.h \ | ||
2033 | 754 | /usr/include/qt5/QtQml/qqmlcomponent.h \ | ||
2034 | 755 | /usr/include/qt5/QtQml/qqmlerror.h \ | ||
2035 | 756 | /usr/include/qt5/QtQml/qjsvalue.h \ | ||
2036 | 757 | /usr/include/qt5/QtQml/qqmlcontext.h \ | ||
2037 | 758 | /usr/include/qt5/QtQml/qqmlengine.h \ | ||
2038 | 759 | /usr/include/qt5/QtQml/qjsengine.h \ | ||
2039 | 760 | /usr/include/qt5/QtQml/qqmlexpression.h \ | ||
2040 | 761 | /usr/include/qt5/QtQml/qqmlscriptstring.h \ | ||
2041 | 762 | /usr/include/qt5/QtQml/qqmlextensioninterface.h \ | ||
2042 | 763 | /usr/include/qt5/QtQml/qqmlextensionplugin.h \ | ||
2043 | 764 | /usr/include/qt5/QtQml/qqmlfile.h \ | ||
2044 | 765 | /usr/include/qt5/QtQml/qqmlincubator.h \ | ||
2045 | 766 | /usr/include/qt5/QtQml/qqmlinfo.h \ | ||
2046 | 767 | /usr/include/qt5/QtQml/qqmlnetworkaccessmanagerfactory.h \ | ||
2047 | 768 | /usr/include/qt5/QtQml/qqmlproperty.h \ | ||
2048 | 769 | /usr/include/qt5/QtQml/qqmlpropertymap.h \ | ||
2049 | 770 | /usr/include/qt5/QtCore/QHash \ | ||
2050 | 771 | /usr/include/qt5/QtCore/QStringList \ | ||
2051 | 772 | /usr/include/qt5/QtQml/qjsvalueiterator.h \ | ||
2052 | 773 | /usr/include/qt5/QtQml/qtqmlversion.h \ | ||
2053 | 774 | /usr/include/qt5/QtQml/QQmlContext \ | ||
2054 | 775 | backend.h \ | ||
2055 | 776 | /usr/include/qt5/QtQml/QQmlEngine \ | ||
2056 | 777 | /usr/include/qt5/QtQml/QQmlExtensionPlugin \ | ||
2057 | 778 | ubuntuboot.h \ | ||
2058 | 779 | /usr/include/qt5/QtCore/QRegularExpression | ||
2059 | 780 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o backend.o backend.cpp | ||
2060 | 781 | |||
2061 | 782 | ubuntuboot.o: ubuntuboot.cpp ubuntuboot.h \ | ||
2062 | 783 | /usr/include/qt5/QtCore/QObject \ | ||
2063 | 784 | /usr/include/qt5/QtCore/qobject.h \ | ||
2064 | 785 | /usr/include/qt5/QtCore/qobjectdefs.h \ | ||
2065 | 786 | /usr/include/qt5/QtCore/qnamespace.h \ | ||
2066 | 787 | /usr/include/qt5/QtCore/qglobal.h \ | ||
2067 | 788 | /usr/include/qt5/QtCore/qconfig.h \ | ||
2068 | 789 | /usr/include/qt5/QtCore/qfeatures.h \ | ||
2069 | 790 | /usr/include/qt5/QtCore/qsystemdetection.h \ | ||
2070 | 791 | /usr/include/qt5/QtCore/qcompilerdetection.h \ | ||
2071 | 792 | /usr/include/qt5/QtCore/qprocessordetection.h \ | ||
2072 | 793 | /usr/include/qt5/QtCore/qlogging.h \ | ||
2073 | 794 | /usr/include/qt5/QtCore/qflags.h \ | ||
2074 | 795 | /usr/include/qt5/QtCore/qtypeinfo.h \ | ||
2075 | 796 | /usr/include/qt5/QtCore/qtypetraits.h \ | ||
2076 | 797 | /usr/include/qt5/QtCore/qsysinfo.h \ | ||
2077 | 798 | /usr/include/qt5/QtCore/qobjectdefs_impl.h \ | ||
2078 | 799 | /usr/include/qt5/QtCore/qstring.h \ | ||
2079 | 800 | /usr/include/qt5/QtCore/qchar.h \ | ||
2080 | 801 | /usr/include/qt5/QtCore/qbytearray.h \ | ||
2081 | 802 | /usr/include/qt5/QtCore/qrefcount.h \ | ||
2082 | 803 | /usr/include/qt5/QtCore/qatomic.h \ | ||
2083 | 804 | /usr/include/qt5/QtCore/qbasicatomic.h \ | ||
2084 | 805 | /usr/include/qt5/QtCore/qatomic_bootstrap.h \ | ||
2085 | 806 | /usr/include/qt5/QtCore/qgenericatomic.h \ | ||
2086 | 807 | /usr/include/qt5/QtCore/qatomic_msvc.h \ | ||
2087 | 808 | /usr/include/qt5/QtCore/qatomic_integrity.h \ | ||
2088 | 809 | /usr/include/qt5/QtCore/qoldbasicatomic.h \ | ||
2089 | 810 | /usr/include/qt5/QtCore/qatomic_vxworks.h \ | ||
2090 | 811 | /usr/include/qt5/QtCore/qatomic_power.h \ | ||
2091 | 812 | /usr/include/qt5/QtCore/qatomic_alpha.h \ | ||
2092 | 813 | /usr/include/qt5/QtCore/qatomic_armv7.h \ | ||
2093 | 814 | /usr/include/qt5/QtCore/qatomic_armv6.h \ | ||
2094 | 815 | /usr/include/qt5/QtCore/qatomic_armv5.h \ | ||
2095 | 816 | /usr/include/qt5/QtCore/qatomic_bfin.h \ | ||
2096 | 817 | /usr/include/qt5/QtCore/qatomic_ia64.h \ | ||
2097 | 818 | /usr/include/qt5/QtCore/qatomic_mips.h \ | ||
2098 | 819 | /usr/include/qt5/QtCore/qatomic_s390.h \ | ||
2099 | 820 | /usr/include/qt5/QtCore/qatomic_sh4a.h \ | ||
2100 | 821 | /usr/include/qt5/QtCore/qatomic_sparc.h \ | ||
2101 | 822 | /usr/include/qt5/QtCore/qatomic_x86.h \ | ||
2102 | 823 | /usr/include/qt5/QtCore/qatomic_cxx11.h \ | ||
2103 | 824 | /usr/include/qt5/QtCore/qatomic_gcc.h \ | ||
2104 | 825 | /usr/include/qt5/QtCore/qatomic_unix.h \ | ||
2105 | 826 | /usr/include/qt5/QtCore/qarraydata.h \ | ||
2106 | 827 | /usr/include/qt5/QtCore/qstringbuilder.h \ | ||
2107 | 828 | /usr/include/qt5/QtCore/qlist.h \ | ||
2108 | 829 | /usr/include/qt5/QtCore/qalgorithms.h \ | ||
2109 | 830 | /usr/include/qt5/QtCore/qiterator.h \ | ||
2110 | 831 | /usr/include/qt5/QtCore/qcoreevent.h \ | ||
2111 | 832 | /usr/include/qt5/QtCore/qscopedpointer.h \ | ||
2112 | 833 | /usr/include/qt5/QtCore/qmetatype.h \ | ||
2113 | 834 | /usr/include/qt5/QtCore/qvarlengtharray.h \ | ||
2114 | 835 | /usr/include/qt5/QtCore/qcontainerfwd.h \ | ||
2115 | 836 | /usr/include/qt5/QtCore/qisenum.h \ | ||
2116 | 837 | /usr/include/qt5/QtCore/qobject_impl.h \ | ||
2117 | 838 | /usr/include/qt5/QtCore/QRegularExpression \ | ||
2118 | 839 | /usr/include/qt5/QtCore/qregularexpression.h \ | ||
2119 | 840 | /usr/include/qt5/QtCore/qshareddata.h \ | ||
2120 | 841 | /usr/include/qt5/QtCore/qvariant.h \ | ||
2121 | 842 | /usr/include/qt5/QtCore/qmap.h \ | ||
2122 | 843 | /usr/include/qt5/QtCore/qpair.h \ | ||
2123 | 844 | /usr/include/qt5/QtCore/qdebug.h \ | ||
2124 | 845 | /usr/include/qt5/QtCore/qhash.h \ | ||
2125 | 846 | /usr/include/qt5/QtCore/qtextstream.h \ | ||
2126 | 847 | /usr/include/qt5/QtCore/qiodevice.h \ | ||
2127 | 848 | /usr/include/qt5/QtCore/qlocale.h \ | ||
2128 | 849 | /usr/include/qt5/QtCore/qvector.h \ | ||
2129 | 850 | /usr/include/qt5/QtCore/qpoint.h \ | ||
2130 | 851 | /usr/include/qt5/QtCore/qset.h \ | ||
2131 | 852 | /usr/include/qt5/QtCore/qcontiguouscache.h | ||
2132 | 853 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o ubuntuboot.o ubuntuboot.cpp | ||
2133 | 854 | |||
2134 | 855 | moc_backend.o: moc_backend.cpp | ||
2135 | 856 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_backend.o moc_backend.cpp | ||
2136 | 857 | |||
2137 | 858 | moc_ubuntuboot.o: moc_ubuntuboot.cpp | ||
2138 | 859 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_ubuntuboot.o moc_ubuntuboot.cpp | ||
2139 | 860 | |||
2140 | 861 | ####### Install | ||
2141 | 862 | |||
2142 | 863 | install_target: first FORCE | ||
2143 | 864 | @test -d $(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot || mkdir -p $(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot | ||
2144 | 865 | -$(INSTALL_PROGRAM) "$(TARGET)" "$(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot/$(TARGET)" | ||
2145 | 866 | -$(STRIP) --strip-unneeded "$(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot/$(TARGET)" | ||
2146 | 867 | |||
2147 | 868 | uninstall_target: FORCE | ||
2148 | 869 | -$(DEL_FILE) "$(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot/$(TARGET)" | ||
2149 | 870 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot/ | ||
2150 | 871 | |||
2151 | 872 | |||
2152 | 873 | install_qmldir: first FORCE | ||
2153 | 874 | @test -d $(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot || mkdir -p $(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot | ||
2154 | 875 | -$(INSTALL_FILE) /home/victorp/ubuntudualboot/backend/modules/ubuntuboot/qmldir $(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot/ | ||
2155 | 876 | |||
2156 | 877 | uninstall_qmldir: FORCE | ||
2157 | 878 | -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot/qmldir | ||
2158 | 879 | -$(DEL_DIR) $(INSTALL_ROOT)/usr/lib/x86_64-linux-gnu/qt5/qml/ubuntuboot/ | ||
2159 | 880 | |||
2160 | 881 | |||
2161 | 882 | install: install_target install_qmldir FORCE | ||
2162 | 883 | |||
2163 | 884 | uninstall: uninstall_target uninstall_qmldir FORCE | ||
2164 | 885 | |||
2165 | 886 | FORCE: | ||
2166 | 887 | |||
2167 | 0 | 888 | ||
2168 | === added file 'Ubuntu/backend/modules/ubuntuboot/backend.cpp' | |||
2169 | --- Ubuntu/backend/modules/ubuntuboot/backend.cpp 1970-01-01 00:00:00 +0000 | |||
2170 | +++ Ubuntu/backend/modules/ubuntuboot/backend.cpp 2014-02-11 09:12:08 +0000 | |||
2171 | @@ -0,0 +1,17 @@ | |||
2172 | 1 | #include <QtQml> | ||
2173 | 2 | #include <QtQml/QQmlContext> | ||
2174 | 3 | #include "backend.h" | ||
2175 | 4 | #include "ubuntuboot.h" | ||
2176 | 5 | |||
2177 | 6 | |||
2178 | 7 | void BackendPlugin::registerTypes(const char *uri) | ||
2179 | 8 | { | ||
2180 | 9 | Q_ASSERT(uri == QLatin1String("ubuntuboot")); | ||
2181 | 10 | |||
2182 | 11 | qmlRegisterType<Ubuntuboot>(uri, 1, 0, "Ubuntuboot"); | ||
2183 | 12 | } | ||
2184 | 13 | |||
2185 | 14 | void BackendPlugin::initializeEngine(QQmlEngine *engine, const char *uri) | ||
2186 | 15 | { | ||
2187 | 16 | QQmlExtensionPlugin::initializeEngine(engine, uri); | ||
2188 | 17 | } | ||
2189 | 0 | 18 | ||
2190 | === added file 'Ubuntu/backend/modules/ubuntuboot/backend.h' | |||
2191 | --- Ubuntu/backend/modules/ubuntuboot/backend.h 1970-01-01 00:00:00 +0000 | |||
2192 | +++ Ubuntu/backend/modules/ubuntuboot/backend.h 2014-02-11 09:12:08 +0000 | |||
2193 | @@ -0,0 +1,18 @@ | |||
2194 | 1 | #ifndef BACKEND_PLUGIN_H | ||
2195 | 2 | #define BACKEND_PLUGIN_H | ||
2196 | 3 | |||
2197 | 4 | #include <QtQml/QQmlEngine> | ||
2198 | 5 | #include <QtQml/QQmlExtensionPlugin> | ||
2199 | 6 | |||
2200 | 7 | |||
2201 | 8 | class BackendPlugin : public QQmlExtensionPlugin | ||
2202 | 9 | { | ||
2203 | 10 | Q_OBJECT | ||
2204 | 11 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | ||
2205 | 12 | |||
2206 | 13 | public: | ||
2207 | 14 | void registerTypes(const char *uri); | ||
2208 | 15 | void initializeEngine(QQmlEngine *engine, const char *uri); | ||
2209 | 16 | }; | ||
2210 | 17 | #endif // BACKEND_PLUGIN_H | ||
2211 | 18 | |||
2212 | 0 | 19 | ||
2213 | === added file 'Ubuntu/backend/modules/ubuntuboot/moc_backend.cpp' | |||
2214 | --- Ubuntu/backend/modules/ubuntuboot/moc_backend.cpp 1970-01-01 00:00:00 +0000 | |||
2215 | +++ Ubuntu/backend/modules/ubuntuboot/moc_backend.cpp 2014-02-11 09:12:08 +0000 | |||
2216 | @@ -0,0 +1,155 @@ | |||
2217 | 1 | /**************************************************************************** | ||
2218 | 2 | ** Meta object code from reading C++ file 'backend.h' | ||
2219 | 3 | ** | ||
2220 | 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.0.2) | ||
2221 | 5 | ** | ||
2222 | 6 | ** WARNING! All changes made in this file will be lost! | ||
2223 | 7 | *****************************************************************************/ | ||
2224 | 8 | |||
2225 | 9 | #include "backend.h" | ||
2226 | 10 | #include <QtCore/qbytearray.h> | ||
2227 | 11 | #include <QtCore/qmetatype.h> | ||
2228 | 12 | #include <QtCore/qplugin.h> | ||
2229 | 13 | #if !defined(Q_MOC_OUTPUT_REVISION) | ||
2230 | 14 | #error "The header file 'backend.h' doesn't include <QObject>." | ||
2231 | 15 | #elif Q_MOC_OUTPUT_REVISION != 67 | ||
2232 | 16 | #error "This file was generated using the moc from 5.0.2. It" | ||
2233 | 17 | #error "cannot be used with the include files from this version of Qt." | ||
2234 | 18 | #error "(The moc has changed too much.)" | ||
2235 | 19 | #endif | ||
2236 | 20 | |||
2237 | 21 | QT_BEGIN_MOC_NAMESPACE | ||
2238 | 22 | struct qt_meta_stringdata_BackendPlugin_t { | ||
2239 | 23 | QByteArrayData data[1]; | ||
2240 | 24 | char stringdata[15]; | ||
2241 | 25 | }; | ||
2242 | 26 | #define QT_MOC_LITERAL(idx, ofs, len) \ | ||
2243 | 27 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ | ||
2244 | 28 | offsetof(qt_meta_stringdata_BackendPlugin_t, stringdata) + ofs \ | ||
2245 | 29 | - idx * sizeof(QByteArrayData) \ | ||
2246 | 30 | ) | ||
2247 | 31 | static const qt_meta_stringdata_BackendPlugin_t qt_meta_stringdata_BackendPlugin = { | ||
2248 | 32 | { | ||
2249 | 33 | QT_MOC_LITERAL(0, 0, 13) | ||
2250 | 34 | }, | ||
2251 | 35 | "BackendPlugin\0" | ||
2252 | 36 | }; | ||
2253 | 37 | #undef QT_MOC_LITERAL | ||
2254 | 38 | |||
2255 | 39 | static const uint qt_meta_data_BackendPlugin[] = { | ||
2256 | 40 | |||
2257 | 41 | // content: | ||
2258 | 42 | 7, // revision | ||
2259 | 43 | 0, // classname | ||
2260 | 44 | 0, 0, // classinfo | ||
2261 | 45 | 0, 0, // methods | ||
2262 | 46 | 0, 0, // properties | ||
2263 | 47 | 0, 0, // enums/sets | ||
2264 | 48 | 0, 0, // constructors | ||
2265 | 49 | 0, // flags | ||
2266 | 50 | 0, // signalCount | ||
2267 | 51 | |||
2268 | 52 | 0 // eod | ||
2269 | 53 | }; | ||
2270 | 54 | |||
2271 | 55 | void BackendPlugin::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | ||
2272 | 56 | { | ||
2273 | 57 | Q_UNUSED(_o); | ||
2274 | 58 | Q_UNUSED(_id); | ||
2275 | 59 | Q_UNUSED(_c); | ||
2276 | 60 | Q_UNUSED(_a); | ||
2277 | 61 | } | ||
2278 | 62 | |||
2279 | 63 | const QMetaObject BackendPlugin::staticMetaObject = { | ||
2280 | 64 | { &QQmlExtensionPlugin::staticMetaObject, qt_meta_stringdata_BackendPlugin.data, | ||
2281 | 65 | qt_meta_data_BackendPlugin, qt_static_metacall, 0, 0} | ||
2282 | 66 | }; | ||
2283 | 67 | |||
2284 | 68 | |||
2285 | 69 | const QMetaObject *BackendPlugin::metaObject() const | ||
2286 | 70 | { | ||
2287 | 71 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | ||
2288 | 72 | } | ||
2289 | 73 | |||
2290 | 74 | void *BackendPlugin::qt_metacast(const char *_clname) | ||
2291 | 75 | { | ||
2292 | 76 | if (!_clname) return 0; | ||
2293 | 77 | if (!strcmp(_clname, qt_meta_stringdata_BackendPlugin.stringdata)) | ||
2294 | 78 | return static_cast<void*>(const_cast< BackendPlugin*>(this)); | ||
2295 | 79 | return QQmlExtensionPlugin::qt_metacast(_clname); | ||
2296 | 80 | } | ||
2297 | 81 | |||
2298 | 82 | int BackendPlugin::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | ||
2299 | 83 | { | ||
2300 | 84 | _id = QQmlExtensionPlugin::qt_metacall(_c, _id, _a); | ||
2301 | 85 | if (_id < 0) | ||
2302 | 86 | return _id; | ||
2303 | 87 | return _id; | ||
2304 | 88 | } | ||
2305 | 89 | |||
2306 | 90 | QT_PLUGIN_METADATA_SECTION const uint qt_section_alignment_dummy = 42; | ||
2307 | 91 | |||
2308 | 92 | #ifdef QT_NO_DEBUG | ||
2309 | 93 | |||
2310 | 94 | QT_PLUGIN_METADATA_SECTION | ||
2311 | 95 | static const unsigned char qt_pluginMetaData[] = { | ||
2312 | 96 | 'Q', 'T', 'M', 'E', 'T', 'A', 'D', 'A', 'T', 'A', ' ', ' ', | ||
2313 | 97 | 0x71, 0x62, 0x6a, 0x73, 0x01, 0x00, 0x00, 0x00, | ||
2314 | 98 | 0xb0, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, | ||
2315 | 99 | 0x9c, 0x00, 0x00, 0x00, 0x1b, 0x03, 0x00, 0x00, | ||
2316 | 100 | 0x03, 0x00, 0x49, 0x49, 0x44, 0x00, 0x00, 0x00, | ||
2317 | 101 | 0x28, 0x00, 0x6f, 0x72, 0x67, 0x2e, 0x71, 0x74, | ||
2318 | 102 | 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, | ||
2319 | 103 | 0x2e, 0x51, 0x74, 0x2e, 0x51, 0x51, 0x6d, 0x6c, | ||
2320 | 104 | 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, | ||
2321 | 105 | 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, | ||
2322 | 106 | 0x63, 0x65, 0x00, 0x00, 0x9b, 0x0a, 0x00, 0x00, | ||
2323 | 107 | 0x09, 0x00, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x4e, | ||
2324 | 108 | 0x61, 0x6d, 0x65, 0x00, 0x0d, 0x00, 0x42, 0x61, | ||
2325 | 109 | 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x50, 0x6c, 0x75, | ||
2326 | 110 | 0x67, 0x69, 0x6e, 0x00, 0x5a, 0x00, 0xa0, 0x00, | ||
2327 | 111 | 0x07, 0x00, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, | ||
2328 | 112 | 0x6e, 0x00, 0x00, 0x00, 0x11, 0x00, 0x00, 0x00, | ||
2329 | 113 | 0x05, 0x00, 0x64, 0x65, 0x62, 0x75, 0x67, 0x00, | ||
2330 | 114 | 0x15, 0x12, 0x00, 0x00, 0x08, 0x00, 0x4d, 0x65, | ||
2331 | 115 | 0x74, 0x61, 0x44, 0x61, 0x74, 0x61, 0x00, 0x00, | ||
2332 | 116 | 0x0c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
2333 | 117 | 0x00, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, | ||
2334 | 118 | 0x80, 0x00, 0x00, 0x00, 0x44, 0x00, 0x00, 0x00, | ||
2335 | 119 | 0x74, 0x00, 0x00, 0x00, 0x64, 0x00, 0x00, 0x00 | ||
2336 | 120 | }; | ||
2337 | 121 | |||
2338 | 122 | #else // QT_NO_DEBUG | ||
2339 | 123 | |||
2340 | 124 | QT_PLUGIN_METADATA_SECTION | ||
2341 | 125 | static const unsigned char qt_pluginMetaData[] = { | ||
2342 | 126 | 'Q', 'T', 'M', 'E', 'T', 'A', 'D', 'A', 'T', 'A', ' ', ' ', | ||
2343 | 127 | 0x71, 0x62, 0x6a, 0x73, 0x01, 0x00, 0x00, 0x00, | ||
2344 | 128 | 0xb0, 0x00, 0x00, 0x00, 0x0b, 0x00, 0x00, 0x00, | ||
2345 | 129 | 0x9c, 0x00, 0x00, 0x00, 0x1b, 0x03, 0x00, 0x00, | ||
2346 | 130 | 0x03, 0x00, 0x49, 0x49, 0x44, 0x00, 0x00, 0x00, | ||
2347 | 131 | 0x28, 0x00, 0x6f, 0x72, 0x67, 0x2e, 0x71, 0x74, | ||
2348 | 132 | 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, | ||
2349 | 133 | 0x2e, 0x51, 0x74, 0x2e, 0x51, 0x51, 0x6d, 0x6c, | ||
2350 | 134 | 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, | ||
2351 | 135 | 0x6e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x66, 0x61, | ||
2352 | 136 | 0x63, 0x65, 0x00, 0x00, 0x95, 0x0a, 0x00, 0x00, | ||
2353 | 137 | 0x08, 0x00, 0x4d, 0x65, 0x74, 0x61, 0x44, 0x61, | ||
2354 | 138 | 0x74, 0x61, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, | ||
2355 | 139 | 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, | ||
2356 | 140 | 0x1b, 0x0e, 0x00, 0x00, 0x09, 0x00, 0x63, 0x6c, | ||
2357 | 141 | 0x61, 0x73, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x00, | ||
2358 | 142 | 0x0d, 0x00, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, | ||
2359 | 143 | 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x00, | ||
2360 | 144 | 0x31, 0x00, 0x00, 0x00, 0x05, 0x00, 0x64, 0x65, | ||
2361 | 145 | 0x62, 0x75, 0x67, 0x00, 0x5a, 0x00, 0xa0, 0x00, | ||
2362 | 146 | 0x07, 0x00, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, | ||
2363 | 147 | 0x6e, 0x00, 0x00, 0x00, 0x0c, 0x00, 0x00, 0x00, | ||
2364 | 148 | 0x44, 0x00, 0x00, 0x00, 0x60, 0x00, 0x00, 0x00, | ||
2365 | 149 | 0x80, 0x00, 0x00, 0x00, 0x8c, 0x00, 0x00, 0x00 | ||
2366 | 150 | }; | ||
2367 | 151 | #endif // QT_NO_DEBUG | ||
2368 | 152 | |||
2369 | 153 | QT_MOC_EXPORT_PLUGIN(BackendPlugin, BackendPlugin) | ||
2370 | 154 | |||
2371 | 155 | QT_END_MOC_NAMESPACE | ||
2372 | 0 | 156 | ||
2373 | === added file 'Ubuntu/backend/modules/ubuntuboot/moc_mytype.cpp' | |||
2374 | --- Ubuntu/backend/modules/ubuntuboot/moc_mytype.cpp 1970-01-01 00:00:00 +0000 | |||
2375 | +++ Ubuntu/backend/modules/ubuntuboot/moc_mytype.cpp 2014-02-11 09:12:08 +0000 | |||
2376 | @@ -0,0 +1,162 @@ | |||
2377 | 1 | /**************************************************************************** | ||
2378 | 2 | ** Meta object code from reading C++ file 'mytype.h' | ||
2379 | 3 | ** | ||
2380 | 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.0.2) | ||
2381 | 5 | ** | ||
2382 | 6 | ** WARNING! All changes made in this file will be lost! | ||
2383 | 7 | *****************************************************************************/ | ||
2384 | 8 | |||
2385 | 9 | #include "mytype.h" | ||
2386 | 10 | #include <QtCore/qbytearray.h> | ||
2387 | 11 | #include <QtCore/qmetatype.h> | ||
2388 | 12 | #if !defined(Q_MOC_OUTPUT_REVISION) | ||
2389 | 13 | #error "The header file 'mytype.h' doesn't include <QObject>." | ||
2390 | 14 | #elif Q_MOC_OUTPUT_REVISION != 67 | ||
2391 | 15 | #error "This file was generated using the moc from 5.0.2. It" | ||
2392 | 16 | #error "cannot be used with the include files from this version of Qt." | ||
2393 | 17 | #error "(The moc has changed too much.)" | ||
2394 | 18 | #endif | ||
2395 | 19 | |||
2396 | 20 | QT_BEGIN_MOC_NAMESPACE | ||
2397 | 21 | struct qt_meta_stringdata_MyType_t { | ||
2398 | 22 | QByteArrayData data[4]; | ||
2399 | 23 | char stringdata[38]; | ||
2400 | 24 | }; | ||
2401 | 25 | #define QT_MOC_LITERAL(idx, ofs, len) \ | ||
2402 | 26 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ | ||
2403 | 27 | offsetof(qt_meta_stringdata_MyType_t, stringdata) + ofs \ | ||
2404 | 28 | - idx * sizeof(QByteArrayData) \ | ||
2405 | 29 | ) | ||
2406 | 30 | static const qt_meta_stringdata_MyType_t qt_meta_stringdata_MyType = { | ||
2407 | 31 | { | ||
2408 | 32 | QT_MOC_LITERAL(0, 0, 6), | ||
2409 | 33 | QT_MOC_LITERAL(1, 7, 17), | ||
2410 | 34 | QT_MOC_LITERAL(2, 25, 0), | ||
2411 | 35 | QT_MOC_LITERAL(3, 26, 10) | ||
2412 | 36 | }, | ||
2413 | 37 | "MyType\0helloWorldChanged\0\0helloWorld\0" | ||
2414 | 38 | }; | ||
2415 | 39 | #undef QT_MOC_LITERAL | ||
2416 | 40 | |||
2417 | 41 | static const uint qt_meta_data_MyType[] = { | ||
2418 | 42 | |||
2419 | 43 | // content: | ||
2420 | 44 | 7, // revision | ||
2421 | 45 | 0, // classname | ||
2422 | 46 | 0, 0, // classinfo | ||
2423 | 47 | 1, 14, // methods | ||
2424 | 48 | 1, 20, // properties | ||
2425 | 49 | 0, 0, // enums/sets | ||
2426 | 50 | 0, 0, // constructors | ||
2427 | 51 | 0, // flags | ||
2428 | 52 | 1, // signalCount | ||
2429 | 53 | |||
2430 | 54 | // signals: name, argc, parameters, tag, flags | ||
2431 | 55 | 1, 0, 19, 2, 0x05, | ||
2432 | 56 | |||
2433 | 57 | // signals: parameters | ||
2434 | 58 | QMetaType::Void, | ||
2435 | 59 | |||
2436 | 60 | // properties: name, type, flags | ||
2437 | 61 | 3, QMetaType::QString, 0x00495103, | ||
2438 | 62 | |||
2439 | 63 | // properties: notify_signal_id | ||
2440 | 64 | 0, | ||
2441 | 65 | |||
2442 | 66 | 0 // eod | ||
2443 | 67 | }; | ||
2444 | 68 | |||
2445 | 69 | void MyType::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | ||
2446 | 70 | { | ||
2447 | 71 | if (_c == QMetaObject::InvokeMetaMethod) { | ||
2448 | 72 | MyType *_t = static_cast<MyType *>(_o); | ||
2449 | 73 | switch (_id) { | ||
2450 | 74 | case 0: _t->helloWorldChanged(); break; | ||
2451 | 75 | default: ; | ||
2452 | 76 | } | ||
2453 | 77 | } else if (_c == QMetaObject::IndexOfMethod) { | ||
2454 | 78 | int *result = reinterpret_cast<int *>(_a[0]); | ||
2455 | 79 | void **func = reinterpret_cast<void **>(_a[1]); | ||
2456 | 80 | { | ||
2457 | 81 | typedef void (MyType::*_t)(); | ||
2458 | 82 | if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MyType::helloWorldChanged)) { | ||
2459 | 83 | *result = 0; | ||
2460 | 84 | } | ||
2461 | 85 | } | ||
2462 | 86 | } | ||
2463 | 87 | Q_UNUSED(_a); | ||
2464 | 88 | } | ||
2465 | 89 | |||
2466 | 90 | const QMetaObject MyType::staticMetaObject = { | ||
2467 | 91 | { &QObject::staticMetaObject, qt_meta_stringdata_MyType.data, | ||
2468 | 92 | qt_meta_data_MyType, qt_static_metacall, 0, 0} | ||
2469 | 93 | }; | ||
2470 | 94 | |||
2471 | 95 | |||
2472 | 96 | const QMetaObject *MyType::metaObject() const | ||
2473 | 97 | { | ||
2474 | 98 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | ||
2475 | 99 | } | ||
2476 | 100 | |||
2477 | 101 | void *MyType::qt_metacast(const char *_clname) | ||
2478 | 102 | { | ||
2479 | 103 | if (!_clname) return 0; | ||
2480 | 104 | if (!strcmp(_clname, qt_meta_stringdata_MyType.stringdata)) | ||
2481 | 105 | return static_cast<void*>(const_cast< MyType*>(this)); | ||
2482 | 106 | return QObject::qt_metacast(_clname); | ||
2483 | 107 | } | ||
2484 | 108 | |||
2485 | 109 | int MyType::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | ||
2486 | 110 | { | ||
2487 | 111 | _id = QObject::qt_metacall(_c, _id, _a); | ||
2488 | 112 | if (_id < 0) | ||
2489 | 113 | return _id; | ||
2490 | 114 | if (_c == QMetaObject::InvokeMetaMethod) { | ||
2491 | 115 | if (_id < 1) | ||
2492 | 116 | qt_static_metacall(this, _c, _id, _a); | ||
2493 | 117 | _id -= 1; | ||
2494 | 118 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | ||
2495 | 119 | if (_id < 1) | ||
2496 | 120 | *reinterpret_cast<int*>(_a[0]) = -1; | ||
2497 | 121 | _id -= 1; | ||
2498 | 122 | } | ||
2499 | 123 | #ifndef QT_NO_PROPERTIES | ||
2500 | 124 | else if (_c == QMetaObject::ReadProperty) { | ||
2501 | 125 | void *_v = _a[0]; | ||
2502 | 126 | switch (_id) { | ||
2503 | 127 | case 0: *reinterpret_cast< QString*>(_v) = helloWorld(); break; | ||
2504 | 128 | } | ||
2505 | 129 | _id -= 1; | ||
2506 | 130 | } else if (_c == QMetaObject::WriteProperty) { | ||
2507 | 131 | void *_v = _a[0]; | ||
2508 | 132 | switch (_id) { | ||
2509 | 133 | case 0: setHelloWorld(*reinterpret_cast< QString*>(_v)); break; | ||
2510 | 134 | } | ||
2511 | 135 | _id -= 1; | ||
2512 | 136 | } else if (_c == QMetaObject::ResetProperty) { | ||
2513 | 137 | _id -= 1; | ||
2514 | 138 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | ||
2515 | 139 | _id -= 1; | ||
2516 | 140 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | ||
2517 | 141 | _id -= 1; | ||
2518 | 142 | } else if (_c == QMetaObject::QueryPropertyStored) { | ||
2519 | 143 | _id -= 1; | ||
2520 | 144 | } else if (_c == QMetaObject::QueryPropertyEditable) { | ||
2521 | 145 | _id -= 1; | ||
2522 | 146 | } else if (_c == QMetaObject::QueryPropertyUser) { | ||
2523 | 147 | _id -= 1; | ||
2524 | 148 | } else if (_c == QMetaObject::RegisterPropertyMetaType) { | ||
2525 | 149 | if (_id < 1) | ||
2526 | 150 | *reinterpret_cast<int*>(_a[0]) = -1; | ||
2527 | 151 | _id -= 1; | ||
2528 | 152 | } | ||
2529 | 153 | #endif // QT_NO_PROPERTIES | ||
2530 | 154 | return _id; | ||
2531 | 155 | } | ||
2532 | 156 | |||
2533 | 157 | // SIGNAL 0 | ||
2534 | 158 | void MyType::helloWorldChanged() | ||
2535 | 159 | { | ||
2536 | 160 | QMetaObject::activate(this, &staticMetaObject, 0, 0); | ||
2537 | 161 | } | ||
2538 | 162 | QT_END_MOC_NAMESPACE | ||
2539 | 0 | 163 | ||
2540 | === added file 'Ubuntu/backend/modules/ubuntuboot/moc_ubuntuboot.cpp' | |||
2541 | --- Ubuntu/backend/modules/ubuntuboot/moc_ubuntuboot.cpp 1970-01-01 00:00:00 +0000 | |||
2542 | +++ Ubuntu/backend/modules/ubuntuboot/moc_ubuntuboot.cpp 2014-02-11 09:12:08 +0000 | |||
2543 | @@ -0,0 +1,213 @@ | |||
2544 | 1 | /**************************************************************************** | ||
2545 | 2 | ** Meta object code from reading C++ file 'ubuntuboot.h' | ||
2546 | 3 | ** | ||
2547 | 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.0.2) | ||
2548 | 5 | ** | ||
2549 | 6 | ** WARNING! All changes made in this file will be lost! | ||
2550 | 7 | *****************************************************************************/ | ||
2551 | 8 | |||
2552 | 9 | #include "ubuntuboot.h" | ||
2553 | 10 | #include <QtCore/qbytearray.h> | ||
2554 | 11 | #include <QtCore/qmetatype.h> | ||
2555 | 12 | #if !defined(Q_MOC_OUTPUT_REVISION) | ||
2556 | 13 | #error "The header file 'ubuntuboot.h' doesn't include <QObject>." | ||
2557 | 14 | #elif Q_MOC_OUTPUT_REVISION != 67 | ||
2558 | 15 | #error "This file was generated using the moc from 5.0.2. It" | ||
2559 | 16 | #error "cannot be used with the include files from this version of Qt." | ||
2560 | 17 | #error "(The moc has changed too much.)" | ||
2561 | 18 | #endif | ||
2562 | 19 | |||
2563 | 20 | QT_BEGIN_MOC_NAMESPACE | ||
2564 | 21 | struct qt_meta_stringdata_Ubuntuboot_t { | ||
2565 | 22 | QByteArrayData data[9]; | ||
2566 | 23 | char stringdata[95]; | ||
2567 | 24 | }; | ||
2568 | 25 | #define QT_MOC_LITERAL(idx, ofs, len) \ | ||
2569 | 26 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ | ||
2570 | 27 | offsetof(qt_meta_stringdata_Ubuntuboot_t, stringdata) + ofs \ | ||
2571 | 28 | - idx * sizeof(QByteArrayData) \ | ||
2572 | 29 | ) | ||
2573 | 30 | static const qt_meta_stringdata_Ubuntuboot_t qt_meta_stringdata_Ubuntuboot = { | ||
2574 | 31 | { | ||
2575 | 32 | QT_MOC_LITERAL(0, 0, 10), | ||
2576 | 33 | QT_MOC_LITERAL(1, 11, 12), | ||
2577 | 34 | QT_MOC_LITERAL(2, 24, 0), | ||
2578 | 35 | QT_MOC_LITERAL(3, 25, 20), | ||
2579 | 36 | QT_MOC_LITERAL(4, 46, 13), | ||
2580 | 37 | QT_MOC_LITERAL(5, 60, 6), | ||
2581 | 38 | QT_MOC_LITERAL(6, 67, 5), | ||
2582 | 39 | QT_MOC_LITERAL(7, 73, 13), | ||
2583 | 40 | QT_MOC_LITERAL(8, 87, 6) | ||
2584 | 41 | }, | ||
2585 | 42 | "Ubuntuboot\0upassChanged\0\0boottoandroidChanged\0" | ||
2586 | 43 | "resultChanged\0reboot\0upass\0boottoandroid\0" | ||
2587 | 44 | "result\0" | ||
2588 | 45 | }; | ||
2589 | 46 | #undef QT_MOC_LITERAL | ||
2590 | 47 | |||
2591 | 48 | static const uint qt_meta_data_Ubuntuboot[] = { | ||
2592 | 49 | |||
2593 | 50 | // content: | ||
2594 | 51 | 7, // revision | ||
2595 | 52 | 0, // classname | ||
2596 | 53 | 0, 0, // classinfo | ||
2597 | 54 | 4, 14, // methods | ||
2598 | 55 | 3, 38, // properties | ||
2599 | 56 | 0, 0, // enums/sets | ||
2600 | 57 | 0, 0, // constructors | ||
2601 | 58 | 0, // flags | ||
2602 | 59 | 3, // signalCount | ||
2603 | 60 | |||
2604 | 61 | // signals: name, argc, parameters, tag, flags | ||
2605 | 62 | 1, 0, 34, 2, 0x05, | ||
2606 | 63 | 3, 0, 35, 2, 0x05, | ||
2607 | 64 | 4, 0, 36, 2, 0x05, | ||
2608 | 65 | |||
2609 | 66 | // slots: name, argc, parameters, tag, flags | ||
2610 | 67 | 5, 0, 37, 2, 0x0a, | ||
2611 | 68 | |||
2612 | 69 | // signals: parameters | ||
2613 | 70 | QMetaType::Void, | ||
2614 | 71 | QMetaType::Void, | ||
2615 | 72 | QMetaType::Void, | ||
2616 | 73 | |||
2617 | 74 | // slots: parameters | ||
2618 | 75 | QMetaType::Void, | ||
2619 | 76 | |||
2620 | 77 | // properties: name, type, flags | ||
2621 | 78 | 6, QMetaType::QString, 0x00495003, | ||
2622 | 79 | 7, QMetaType::Bool, 0x00495003, | ||
2623 | 80 | 8, QMetaType::Int, 0x00495001, | ||
2624 | 81 | |||
2625 | 82 | // properties: notify_signal_id | ||
2626 | 83 | 0, | ||
2627 | 84 | 1, | ||
2628 | 85 | 2, | ||
2629 | 86 | |||
2630 | 87 | 0 // eod | ||
2631 | 88 | }; | ||
2632 | 89 | |||
2633 | 90 | void Ubuntuboot::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) | ||
2634 | 91 | { | ||
2635 | 92 | if (_c == QMetaObject::InvokeMetaMethod) { | ||
2636 | 93 | Ubuntuboot *_t = static_cast<Ubuntuboot *>(_o); | ||
2637 | 94 | switch (_id) { | ||
2638 | 95 | case 0: _t->upassChanged(); break; | ||
2639 | 96 | case 1: _t->boottoandroidChanged(); break; | ||
2640 | 97 | case 2: _t->resultChanged(); break; | ||
2641 | 98 | case 3: _t->reboot(); break; | ||
2642 | 99 | default: ; | ||
2643 | 100 | } | ||
2644 | 101 | } else if (_c == QMetaObject::IndexOfMethod) { | ||
2645 | 102 | int *result = reinterpret_cast<int *>(_a[0]); | ||
2646 | 103 | void **func = reinterpret_cast<void **>(_a[1]); | ||
2647 | 104 | { | ||
2648 | 105 | typedef void (Ubuntuboot::*_t)(); | ||
2649 | 106 | if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Ubuntuboot::upassChanged)) { | ||
2650 | 107 | *result = 0; | ||
2651 | 108 | } | ||
2652 | 109 | } | ||
2653 | 110 | { | ||
2654 | 111 | typedef void (Ubuntuboot::*_t)(); | ||
2655 | 112 | if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Ubuntuboot::boottoandroidChanged)) { | ||
2656 | 113 | *result = 1; | ||
2657 | 114 | } | ||
2658 | 115 | } | ||
2659 | 116 | { | ||
2660 | 117 | typedef void (Ubuntuboot::*_t)(); | ||
2661 | 118 | if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&Ubuntuboot::resultChanged)) { | ||
2662 | 119 | *result = 2; | ||
2663 | 120 | } | ||
2664 | 121 | } | ||
2665 | 122 | } | ||
2666 | 123 | Q_UNUSED(_a); | ||
2667 | 124 | } | ||
2668 | 125 | |||
2669 | 126 | const QMetaObject Ubuntuboot::staticMetaObject = { | ||
2670 | 127 | { &QObject::staticMetaObject, qt_meta_stringdata_Ubuntuboot.data, | ||
2671 | 128 | qt_meta_data_Ubuntuboot, qt_static_metacall, 0, 0} | ||
2672 | 129 | }; | ||
2673 | 130 | |||
2674 | 131 | |||
2675 | 132 | const QMetaObject *Ubuntuboot::metaObject() const | ||
2676 | 133 | { | ||
2677 | 134 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; | ||
2678 | 135 | } | ||
2679 | 136 | |||
2680 | 137 | void *Ubuntuboot::qt_metacast(const char *_clname) | ||
2681 | 138 | { | ||
2682 | 139 | if (!_clname) return 0; | ||
2683 | 140 | if (!strcmp(_clname, qt_meta_stringdata_Ubuntuboot.stringdata)) | ||
2684 | 141 | return static_cast<void*>(const_cast< Ubuntuboot*>(this)); | ||
2685 | 142 | return QObject::qt_metacast(_clname); | ||
2686 | 143 | } | ||
2687 | 144 | |||
2688 | 145 | int Ubuntuboot::qt_metacall(QMetaObject::Call _c, int _id, void **_a) | ||
2689 | 146 | { | ||
2690 | 147 | _id = QObject::qt_metacall(_c, _id, _a); | ||
2691 | 148 | if (_id < 0) | ||
2692 | 149 | return _id; | ||
2693 | 150 | if (_c == QMetaObject::InvokeMetaMethod) { | ||
2694 | 151 | if (_id < 4) | ||
2695 | 152 | qt_static_metacall(this, _c, _id, _a); | ||
2696 | 153 | _id -= 4; | ||
2697 | 154 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { | ||
2698 | 155 | if (_id < 4) | ||
2699 | 156 | *reinterpret_cast<int*>(_a[0]) = -1; | ||
2700 | 157 | _id -= 4; | ||
2701 | 158 | } | ||
2702 | 159 | #ifndef QT_NO_PROPERTIES | ||
2703 | 160 | else if (_c == QMetaObject::ReadProperty) { | ||
2704 | 161 | void *_v = _a[0]; | ||
2705 | 162 | switch (_id) { | ||
2706 | 163 | case 0: *reinterpret_cast< QString*>(_v) = upass(); break; | ||
2707 | 164 | case 1: *reinterpret_cast< bool*>(_v) = boottoandroid(); break; | ||
2708 | 165 | case 2: *reinterpret_cast< int*>(_v) = result(); break; | ||
2709 | 166 | } | ||
2710 | 167 | _id -= 3; | ||
2711 | 168 | } else if (_c == QMetaObject::WriteProperty) { | ||
2712 | 169 | void *_v = _a[0]; | ||
2713 | 170 | switch (_id) { | ||
2714 | 171 | case 0: setUPass(*reinterpret_cast< QString*>(_v)); break; | ||
2715 | 172 | case 1: Setboottoandroid(*reinterpret_cast< bool*>(_v)); break; | ||
2716 | 173 | } | ||
2717 | 174 | _id -= 3; | ||
2718 | 175 | } else if (_c == QMetaObject::ResetProperty) { | ||
2719 | 176 | _id -= 3; | ||
2720 | 177 | } else if (_c == QMetaObject::QueryPropertyDesignable) { | ||
2721 | 178 | _id -= 3; | ||
2722 | 179 | } else if (_c == QMetaObject::QueryPropertyScriptable) { | ||
2723 | 180 | _id -= 3; | ||
2724 | 181 | } else if (_c == QMetaObject::QueryPropertyStored) { | ||
2725 | 182 | _id -= 3; | ||
2726 | 183 | } else if (_c == QMetaObject::QueryPropertyEditable) { | ||
2727 | 184 | _id -= 3; | ||
2728 | 185 | } else if (_c == QMetaObject::QueryPropertyUser) { | ||
2729 | 186 | _id -= 3; | ||
2730 | 187 | } else if (_c == QMetaObject::RegisterPropertyMetaType) { | ||
2731 | 188 | if (_id < 3) | ||
2732 | 189 | *reinterpret_cast<int*>(_a[0]) = -1; | ||
2733 | 190 | _id -= 3; | ||
2734 | 191 | } | ||
2735 | 192 | #endif // QT_NO_PROPERTIES | ||
2736 | 193 | return _id; | ||
2737 | 194 | } | ||
2738 | 195 | |||
2739 | 196 | // SIGNAL 0 | ||
2740 | 197 | void Ubuntuboot::upassChanged() | ||
2741 | 198 | { | ||
2742 | 199 | QMetaObject::activate(this, &staticMetaObject, 0, 0); | ||
2743 | 200 | } | ||
2744 | 201 | |||
2745 | 202 | // SIGNAL 1 | ||
2746 | 203 | void Ubuntuboot::boottoandroidChanged() | ||
2747 | 204 | { | ||
2748 | 205 | QMetaObject::activate(this, &staticMetaObject, 1, 0); | ||
2749 | 206 | } | ||
2750 | 207 | |||
2751 | 208 | // SIGNAL 2 | ||
2752 | 209 | void Ubuntuboot::resultChanged() | ||
2753 | 210 | { | ||
2754 | 211 | QMetaObject::activate(this, &staticMetaObject, 2, 0); | ||
2755 | 212 | } | ||
2756 | 213 | QT_END_MOC_NAMESPACE | ||
2757 | 0 | 214 | ||
2758 | === added file 'Ubuntu/backend/modules/ubuntuboot/qmldir' | |||
2759 | --- Ubuntu/backend/modules/ubuntuboot/qmldir 1970-01-01 00:00:00 +0000 | |||
2760 | +++ Ubuntu/backend/modules/ubuntuboot/qmldir 2014-02-11 09:12:08 +0000 | |||
2761 | @@ -0,0 +1,2 @@ | |||
2762 | 1 | module ubuntuboot | ||
2763 | 2 | plugin ubuntuboot | ||
2764 | 0 | 3 | ||
2765 | === added file 'Ubuntu/backend/modules/ubuntuboot/ubuntuboot.cpp' | |||
2766 | --- Ubuntu/backend/modules/ubuntuboot/ubuntuboot.cpp 1970-01-01 00:00:00 +0000 | |||
2767 | +++ Ubuntu/backend/modules/ubuntuboot/ubuntuboot.cpp 2014-02-11 09:12:08 +0000 | |||
2768 | @@ -0,0 +1,35 @@ | |||
2769 | 1 | #include "ubuntuboot.h" | ||
2770 | 2 | |||
2771 | 3 | Ubuntuboot::Ubuntuboot(QObject *parent) : | ||
2772 | 4 | QObject(parent) | ||
2773 | 5 | { | ||
2774 | 6 | boot_android_cmd ="sudo -S /system/bin/reboot"; | ||
2775 | 7 | boot_ubuntu_cmd ="sudo -S /system/bin/reboot recovery"; | ||
2776 | 8 | passwd_command="echo "; | ||
2777 | 9 | m_upass=""; | ||
2778 | 10 | mAndroid = false; | ||
2779 | 11 | result_cmd= 0; | ||
2780 | 12 | } | ||
2781 | 13 | |||
2782 | 14 | Ubuntuboot::~Ubuntuboot() { | ||
2783 | 15 | |||
2784 | 16 | } | ||
2785 | 17 | |||
2786 | 18 | void Ubuntuboot::reboot() { | ||
2787 | 19 | |||
2788 | 20 | QString icmd = ""; | ||
2789 | 21 | //configure account | ||
2790 | 22 | icmd += passwd_command + m_upass + " \| "; | ||
2791 | 23 | if (mAndroid) { | ||
2792 | 24 | icmd +=boot_android_cmd; | ||
2793 | 25 | } else { | ||
2794 | 26 | icmd +=boot_ubuntu_cmd; | ||
2795 | 27 | } | ||
2796 | 28 | |||
2797 | 29 | QByteArray ba = icmd.toLocal8Bit(); | ||
2798 | 30 | const char *cmd_char = ba.data(); | ||
2799 | 31 | //printf("cmd to run is %s\n",cmd_char); | ||
2800 | 32 | result_cmd = system (cmd_char); | ||
2801 | 33 | printf("command result is %d\n",result_cmd); | ||
2802 | 34 | resultChanged(); | ||
2803 | 35 | } | ||
2804 | 0 | 36 | ||
2805 | === added file 'Ubuntu/backend/modules/ubuntuboot/ubuntuboot.h' | |||
2806 | --- Ubuntu/backend/modules/ubuntuboot/ubuntuboot.h 1970-01-01 00:00:00 +0000 | |||
2807 | +++ Ubuntu/backend/modules/ubuntuboot/ubuntuboot.h 2014-02-11 09:12:08 +0000 | |||
2808 | @@ -0,0 +1,50 @@ | |||
2809 | 1 | #ifndef UBUNTUBOOT_H | ||
2810 | 2 | #define UBUNTUBOOT_H | ||
2811 | 3 | |||
2812 | 4 | #include <QObject> | ||
2813 | 5 | #include <stdlib.h> | ||
2814 | 6 | #include <iostream> | ||
2815 | 7 | #include <stdio.h> | ||
2816 | 8 | #include <QRegularExpression> | ||
2817 | 9 | |||
2818 | 10 | class Ubuntuboot : public QObject | ||
2819 | 11 | { | ||
2820 | 12 | Q_OBJECT | ||
2821 | 13 | Q_PROPERTY( QString upass READ upass WRITE setUPass NOTIFY upassChanged ) | ||
2822 | 14 | Q_PROPERTY( bool boottoandroid READ boottoandroid WRITE Setboottoandroid NOTIFY boottoandroidChanged ) | ||
2823 | 15 | Q_PROPERTY( int result READ result NOTIFY resultChanged ) | ||
2824 | 16 | |||
2825 | 17 | public: | ||
2826 | 18 | explicit Ubuntuboot(QObject *parent = 0); | ||
2827 | 19 | ~Ubuntuboot(); | ||
2828 | 20 | |||
2829 | 21 | Q_SLOT void reboot(); | ||
2830 | 22 | |||
2831 | 23 | Q_SIGNALS: | ||
2832 | 24 | void upassChanged(); | ||
2833 | 25 | void boottoandroidChanged(); | ||
2834 | 26 | void resultChanged(); | ||
2835 | 27 | |||
2836 | 28 | protected: | ||
2837 | 29 | //ubuntu password | ||
2838 | 30 | QString m_upass; | ||
2839 | 31 | int result_cmd; | ||
2840 | 32 | |||
2841 | 33 | QString upass() { return m_upass;} | ||
2842 | 34 | void setUPass(QString ipass) { m_upass =ipass; Q_EMIT upassChanged();} | ||
2843 | 35 | |||
2844 | 36 | //set what to boot into | ||
2845 | 37 | bool mAndroid; | ||
2846 | 38 | bool boottoandroid() { return mAndroid;} | ||
2847 | 39 | void Setboottoandroid(bool bootandroid) { mAndroid = bootandroid; Q_EMIT boottoandroidChanged();} | ||
2848 | 40 | |||
2849 | 41 | //result | ||
2850 | 42 | int result() { return result_cmd;} | ||
2851 | 43 | private: | ||
2852 | 44 | QString boot_android_cmd; | ||
2853 | 45 | QString boot_ubuntu_cmd; | ||
2854 | 46 | QString passwd_command; | ||
2855 | 47 | |||
2856 | 48 | }; | ||
2857 | 49 | |||
2858 | 50 | #endif // UBUNTUBOOT_H | ||
2859 | 0 | 51 | ||
2860 | === added file 'Ubuntu/backend/modules/ubuntuboot/ubuntuboot.pro' | |||
2861 | --- Ubuntu/backend/modules/ubuntuboot/ubuntuboot.pro 1970-01-01 00:00:00 +0000 | |||
2862 | +++ Ubuntu/backend/modules/ubuntuboot/ubuntuboot.pro 2014-02-11 09:12:08 +0000 | |||
2863 | @@ -0,0 +1,36 @@ | |||
2864 | 1 | TEMPLATE = lib | ||
2865 | 2 | TARGET = ubuntuboot | ||
2866 | 3 | QT += qml quick | ||
2867 | 4 | CONFIG += qt plugin no_keywords | ||
2868 | 5 | |||
2869 | 6 | #comment in the following line to disable traces | ||
2870 | 7 | DEFINES += QT_NO_DEBUG_OUTPUT | ||
2871 | 8 | |||
2872 | 9 | TARGET = $$qtLibraryTarget($$TARGET) | ||
2873 | 10 | uri = ubuntuboot | ||
2874 | 11 | |||
2875 | 12 | INCLUDEPATH += . | ||
2876 | 13 | |||
2877 | 14 | # Input | ||
2878 | 15 | HEADERS += backend.h \ | ||
2879 | 16 | ubuntuboot.h | ||
2880 | 17 | SOURCES += backend.cpp \ | ||
2881 | 18 | ubuntuboot.cpp | ||
2882 | 19 | |||
2883 | 20 | # Install path for the plugin | ||
2884 | 21 | installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /) | ||
2885 | 22 | target.path = $$installPath | ||
2886 | 23 | INSTALLS += target | ||
2887 | 24 | |||
2888 | 25 | # find files | ||
2889 | 26 | QMLDIR_FILE = qmldir | ||
2890 | 27 | |||
2891 | 28 | # make visible to qt creator | ||
2892 | 29 | OTHER_FILES += $$QMLDIR_FILE | ||
2893 | 30 | |||
2894 | 31 | # create install targets for files | ||
2895 | 32 | qmldir.path = $$installPath | ||
2896 | 33 | qmldir.files = $$QMLDIR_FILE | ||
2897 | 34 | |||
2898 | 35 | INSTALLS += qmldir | ||
2899 | 36 | |||
2900 | 0 | 37 | ||
2901 | === added directory 'Ubuntu/click' | |||
2902 | === added file 'Ubuntu/click/icon.png' | |||
2903 | 1 | Binary files Ubuntu/click/icon.png 1970-01-01 00:00:00 +0000 and Ubuntu/click/icon.png 2014-02-11 09:12:08 +0000 differ | 38 | Binary files Ubuntu/click/icon.png 1970-01-01 00:00:00 +0000 and Ubuntu/click/icon.png 2014-02-11 09:12:08 +0000 differ |
2904 | === added file 'Ubuntu/click/manifest.json' | |||
2905 | --- Ubuntu/click/manifest.json 1970-01-01 00:00:00 +0000 | |||
2906 | +++ Ubuntu/click/manifest.json 2014-02-11 09:12:08 +0000 | |||
2907 | @@ -0,0 +1,15 @@ | |||
2908 | 1 | { | ||
2909 | 2 | "description": "Ubuntu app part of Ubuntu and Android dual boot", | ||
2910 | 3 | "framework": "ubuntu-sdk-13.10", | ||
2911 | 4 | "hooks": { | ||
2912 | 5 | "ubuntudualboot": { | ||
2913 | 6 | "apparmor": "ubuntudualboot.json", | ||
2914 | 7 | "desktop": "ubuntudualboot.desktop" | ||
2915 | 8 | } | ||
2916 | 9 | }, | ||
2917 | 10 | "maintainer": "victor palau <vtuson@gmail.com>", | ||
2918 | 11 | "name": "com.ubuntu.developer.vtuson.ubuntudualboot", | ||
2919 | 12 | "title": "ubuntudualboot", | ||
2920 | 13 | "version": "0.5", | ||
2921 | 14 | "architecture": "armhf" | ||
2922 | 15 | } | ||
2923 | 0 | 16 | ||
2924 | === added directory 'Ubuntu/click/plugin' | |||
2925 | === added directory 'Ubuntu/click/plugin/ubuntuboot' | |||
2926 | === added file 'Ubuntu/click/plugin/ubuntuboot/qmldir' | |||
2927 | --- Ubuntu/click/plugin/ubuntuboot/qmldir 1970-01-01 00:00:00 +0000 | |||
2928 | +++ Ubuntu/click/plugin/ubuntuboot/qmldir 2014-02-11 09:12:08 +0000 | |||
2929 | @@ -0,0 +1,2 @@ | |||
2930 | 1 | module ubuntuboot | ||
2931 | 2 | plugin ubuntuboot | ||
2932 | 0 | 3 | ||
2933 | === added file 'Ubuntu/click/ubuntudualboot.desktop' | |||
2934 | --- Ubuntu/click/ubuntudualboot.desktop 1970-01-01 00:00:00 +0000 | |||
2935 | +++ Ubuntu/click/ubuntudualboot.desktop 2014-02-11 09:12:08 +0000 | |||
2936 | @@ -0,0 +1,8 @@ | |||
2937 | 1 | [Desktop Entry] | ||
2938 | 2 | Name=ubuntudualboot | ||
2939 | 3 | Comment=Ubuntu Dual boot with Android | ||
2940 | 4 | Exec=qmlscene -I plugin $@ ubuntudualboot.qml | ||
2941 | 5 | Icon=icon.png | ||
2942 | 6 | Terminal=false | ||
2943 | 7 | Type=Application | ||
2944 | 8 | X-Ubuntu-Touch=true | ||
2945 | 0 | 9 | ||
2946 | === added file 'Ubuntu/click/ubuntudualboot.json' | |||
2947 | --- Ubuntu/click/ubuntudualboot.json 1970-01-01 00:00:00 +0000 | |||
2948 | +++ Ubuntu/click/ubuntudualboot.json 2014-02-11 09:12:08 +0000 | |||
2949 | @@ -0,0 +1,8 @@ | |||
2950 | 1 | { | ||
2951 | 2 | "policy_groups": [ | ||
2952 | 3 | "networking" | ||
2953 | 4 | ], | ||
2954 | 5 | "policy_version": 1, | ||
2955 | 6 | "template": "unconfined" | ||
2956 | 7 | |||
2957 | 8 | } | ||
2958 | 0 | 9 | ||
2959 | === added file 'Ubuntu/click/ubuntudualboot.qml' | |||
2960 | --- Ubuntu/click/ubuntudualboot.qml 1970-01-01 00:00:00 +0000 | |||
2961 | +++ Ubuntu/click/ubuntudualboot.qml 2014-02-11 09:12:08 +0000 | |||
2962 | @@ -0,0 +1,57 @@ | |||
2963 | 1 | import QtQuick 2.0 | ||
2964 | 2 | import Ubuntu.Components 0.1 | ||
2965 | 3 | import ubuntuboot 1.0 | ||
2966 | 4 | import Ubuntu.Components.Popups 0.1 | ||
2967 | 5 | |||
2968 | 6 | |||
2969 | 7 | MainView { | ||
2970 | 8 | width: units.gu(100) | ||
2971 | 9 | height: units.gu(75) | ||
2972 | 10 | applicationName: "com.ubuntu.developer.vtuson.ubuntudualboot" | ||
2973 | 11 | |||
2974 | 12 | |||
2975 | 13 | Page { | ||
2976 | 14 | title: i18n.tr("Ubuntu Dual Boot") | ||
2977 | 15 | Column { | ||
2978 | 16 | spacing: units.gu(2) | ||
2979 | 17 | anchors.top: parent.top | ||
2980 | 18 | anchors.horizontalCenter: parent.horizontalCenter | ||
2981 | 19 | anchors.topMargin: units.gu(2) | ||
2982 | 20 | |||
2983 | 21 | Ubuntuboot { | ||
2984 | 22 | id:reboot | ||
2985 | 23 | boottoandroid: isandroid.checked | ||
2986 | 24 | upass: "phablet" | ||
2987 | 25 | } | ||
2988 | 26 | Label { | ||
2989 | 27 | objectName: "description" | ||
2990 | 28 | text: i18n.tr("Welcome to Ubuntu Dual Boot") | ||
2991 | 29 | } | ||
2992 | 30 | Button { | ||
2993 | 31 | property string ostoboot: isandroid.checked? " Android" : " Ubuntu" | ||
2994 | 32 | id: rebootButton | ||
2995 | 33 | anchors.horizontalCenter: parent.horizontalCenter | ||
2996 | 34 | text: "Reboot to" + ostoboot | ||
2997 | 35 | Component.onCompleted: rebootButton.clicked.connect(reboot.reboot) | ||
2998 | 36 | |||
2999 | 37 | } | ||
3000 | 38 | |||
3001 | 39 | Row { | ||
3002 | 40 | spacing: units.gu(2) | ||
3003 | 41 | CheckBox { | ||
3004 | 42 | id:isandroid | ||
3005 | 43 | checked: false | ||
3006 | 44 | } | ||
3007 | 45 | Label { | ||
3008 | 46 | text:"Boot to Android?" | ||
3009 | 47 | anchors.verticalCenter: isandroid.verticalCenter | ||
3010 | 48 | } | ||
3011 | 49 | } | ||
3012 | 50 | Label { | ||
3013 | 51 | text: reboot.result ===256?"Incorrect password":"" | ||
3014 | 52 | } | ||
3015 | 53 | |||
3016 | 54 | |||
3017 | 55 | } | ||
3018 | 56 | } | ||
3019 | 57 | } | ||
3020 | 0 | 58 | ||
3021 | === added file 'Ubuntu/click_howto' | |||
3022 | --- Ubuntu/click_howto 1970-01-01 00:00:00 +0000 | |||
3023 | +++ Ubuntu/click_howto 2014-02-11 09:12:08 +0000 | |||
3024 | @@ -0,0 +1,9 @@ | |||
3025 | 1 | how to build click: | ||
3026 | 2 | click build click/ | ||
3027 | 3 | |||
3028 | 4 | how to install | ||
3029 | 5 | adb push -> click package to /home/phablet/ | ||
3030 | 6 | adb shell | ||
3031 | 7 | su phablet | ||
3032 | 8 | cd ~ | ||
3033 | 9 | pkcon -p install-local <filename>.click | ||
3034 | 0 | 10 | ||
3035 | === added file 'Ubuntu/ubuntudualboot.pro' | |||
3036 | --- Ubuntu/ubuntudualboot.pro 1970-01-01 00:00:00 +0000 | |||
3037 | +++ Ubuntu/ubuntudualboot.pro 2014-02-11 09:12:08 +0000 | |||
3038 | @@ -0,0 +1,11 @@ | |||
3039 | 1 | TEMPLATE = subdirs | ||
3040 | 2 | |||
3041 | 3 | SUBDIRS += \ | ||
3042 | 4 | backend | ||
3043 | 5 | |||
3044 | 6 | OTHER_FILES += $$system(find app -type f) | ||
3045 | 7 | |||
3046 | 8 | check.target = check | ||
3047 | 9 | check.commands = cd backend; qmake; make; | ||
3048 | 10 | check.depends = backend | ||
3049 | 11 | QMAKE_EXTRA_TARGETS += check | ||
3050 | 0 | 12 | ||
3051 | === added directory 'install' | |||
3052 | === added file 'install/dualboot.sh' | |||
3053 | --- install/dualboot.sh 1970-01-01 00:00:00 +0000 | |||
3054 | +++ install/dualboot.sh 2014-02-11 09:12:08 +0000 | |||
3055 | @@ -0,0 +1,224 @@ | |||
3056 | 1 | #!/bin/bash | ||
3057 | 2 | |||
3058 | 3 | ACTION=$1 | ||
3059 | 4 | SCRIPT_NAME=dualboot.sh | ||
3060 | 5 | # Used version of CWM recovery | ||
3061 | 6 | URL_CMW_PATH_MAKO="http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.4.3-mako.img" | ||
3062 | 7 | URL_CMW_PATH_HAMMERHEAD="http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.4.5-hammerhead.img" | ||
3063 | 8 | URL_CMW_PATH_GROUPER="http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.4.3-grouper.img" | ||
3064 | 9 | URL_CMW_PATH_MAGURO="http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.4.3-maguro.img" | ||
3065 | 10 | URL_CMW_PATH_MANTA="http://download2.clockworkmod.com/recoveries/recovery-clockwork-6.0.4.3-manta.img" | ||
3066 | 11 | URL_SUPERU_1_86="http://download.chainfire.eu/372/SuperSU/UPDATE-SuperSU-v1.86.zip?retrieve_file=1" | ||
3067 | 12 | URL_U_INSTALLER_PACKAGE="http://humpolec.ubuntu.com/UPDATE-UbuntuInstaller.zip" | ||
3068 | 13 | CACHE_RECOVERY=/cache/recovery | ||
3069 | 14 | TEMP_FOLDER=humpTemp | ||
3070 | 15 | RECOVERY_IMAGE=recovery.img | ||
3071 | 16 | SU_PACKAGE=UPDATE-SuperSU-v1.86.zip | ||
3072 | 17 | UBUNTU_INSTALLER_PACKAGE=UPDATE-UbuntuInstaller.zip | ||
3073 | 18 | RECOVERY_URL= | ||
3074 | 19 | DEVICE= | ||
3075 | 20 | CM_DEVICE= | ||
3076 | 21 | |||
3077 | 22 | # get device model | ||
3078 | 23 | detect_device() { | ||
3079 | 24 | echo "Connect device to install Ubuntu installer to." | ||
3080 | 25 | DEVICE=$(adb wait-for-device shell getprop ro.product.device) | ||
3081 | 26 | CM_DEVICE=$(adb wait-for-device shell getprop ro.cm.device) | ||
3082 | 27 | |||
3083 | 28 | if [[ "$DEVICE" == mako* ]]; then | ||
3084 | 29 | echo "Detected connected Nexus 4" | ||
3085 | 30 | RECOVERY_URL=$URL_CMW_PATH_MAKO | ||
3086 | 31 | else if [[ "$DEVICE" == maguro* ]]; then | ||
3087 | 32 | echo "Detected connected Galaxy Nexus" | ||
3088 | 33 | RECOVERY_URL=$URL_CMW_PATH_MAGURO | ||
3089 | 34 | else if [[ "$DEVICE" == grouper* ]]; then | ||
3090 | 35 | echo "Detected connected Nexus 7" | ||
3091 | 36 | RECOVERY_URL=$URL_CMW_PATH_GROUPER | ||
3092 | 37 | else if [[ "$DEVICE" == manta* ]]; then | ||
3093 | 38 | echo "Detected connected Nexus 10" | ||
3094 | 39 | RECOVERY_URL=$URL_CMW_PATH_MANTA | ||
3095 | 40 | else if [[ "$DEVICE" == hammerhead* ]]; then | ||
3096 | 41 | echo "Detected connected Nexus 5" | ||
3097 | 42 | RECOVERY_URL=$URL_CMW_PATH_HAMMERHEAD | ||
3098 | 43 | else | ||
3099 | 44 | echo "Connected device is not supported" | ||
3100 | 45 | exit 0 | ||
3101 | 46 | fi | ||
3102 | 47 | fi | ||
3103 | 48 | fi | ||
3104 | 49 | fi | ||
3105 | 50 | fi | ||
3106 | 51 | } | ||
3107 | 52 | |||
3108 | 53 | |||
3109 | 54 | print_usage() { | ||
3110 | 55 | echo "Welcome to Humpolec. This is Ubuntu-Android dualboot enabler" | ||
3111 | 56 | echo "Please connect supported phone with adb enabled" | ||
3112 | 57 | echo " " | ||
3113 | 58 | echo "$SCRIPT_NAME action" | ||
3114 | 59 | echo " " | ||
3115 | 60 | echo " actions:" | ||
3116 | 61 | echo " HELP: Prints this help" | ||
3117 | 62 | echo " FULL: Full installation: this will install SuperUser package as well Ubuntu dualboot installer." | ||
3118 | 63 | echo " Use this if you don't have SuperUser package installed on your device." | ||
3119 | 64 | echo " Typical first time choice for unmodified factory images clean AOSP builds" | ||
3120 | 65 | echo " Installation will reboot twice into the recovery, if prompterd **** when exiting recovery, answer NO" | ||
3121 | 66 | echo " UPDATE: Updates application: this will install Ubuntu dualboot installer. It assumes there is alresdy Super User installed" | ||
3122 | 67 | echo " Typical option for for CyanogenMod or other similar builds." | ||
3123 | 68 | echo " Use this option if you already have Ubuntu dualboot installer installed and are only upgrading" | ||
3124 | 69 | echo " Installation will reboot twice into the recovery, if prompterd when existing recovery, answer NO" | ||
3125 | 70 | echo " INSTALL_SU: Installs Superuser" | ||
3126 | 71 | echo " FIX_MAKO_RADIO: Install 4.3 radio image" | ||
3127 | 72 | echo " !!! Use this only if you are running on Nexus 4 running Android 4.4.x and experiencing audio issue during call" | ||
3128 | 73 | echo " !!! Do NOT USE this on any other phone than Nexus 4!!!" | ||
3129 | 74 | } | ||
3130 | 75 | |||
3131 | 76 | wait_for_adb() { | ||
3132 | 77 | MODE=$1 | ||
3133 | 78 | echo "Waiting for $MODE to boot" | ||
3134 | 79 | RECOVERY_STATE=$(adb devices) | ||
3135 | 80 | while ! [[ "$RECOVERY_STATE" == *$MODE ]] | ||
3136 | 81 | do | ||
3137 | 82 | sleep 1 | ||
3138 | 83 | RECOVERY_STATE=$(adb devices) | ||
3139 | 84 | done | ||
3140 | 85 | } | ||
3141 | 86 | |||
3142 | 87 | print_ask_help() { | ||
3143 | 88 | echo "For more information refer to $ $SCRIPT_NAME HELP" | ||
3144 | 89 | } | ||
3145 | 90 | |||
3146 | 91 | create_temp_dir() { | ||
3147 | 92 | mkdir $TEMP_FOLDER | ||
3148 | 93 | cd $TEMP_FOLDER | ||
3149 | 94 | } | ||
3150 | 95 | |||
3151 | 96 | delete_temp_dir() { | ||
3152 | 97 | cd .. | ||
3153 | 98 | rm -rf $TEMP_FOLDER | ||
3154 | 99 | } | ||
3155 | 100 | |||
3156 | 101 | download_su_package() { | ||
3157 | 102 | echo "Downloading SU package" | ||
3158 | 103 | # check downloaded file size, this often fails, so retry. Expected size is 1184318 | ||
3159 | 104 | download_file $URL_SUPERU_1_86 $SU_PACKAGE 1184000 | ||
3160 | 105 | } | ||
3161 | 106 | |||
3162 | 107 | download_app_update() { | ||
3163 | 108 | echo "Downloading Ubuntu Installer application package" | ||
3164 | 109 | # check downloaded file size, this often fails, so retry. Expected size is 2309120 | ||
3165 | 110 | download_file $URL_U_INSTALLER_PACKAGE $UBUNTU_INSTALLER_PACKAGE 2309000 | ||
3166 | 111 | } | ||
3167 | 112 | |||
3168 | 113 | download_recovery() { | ||
3169 | 114 | echo "Downloading recovery for $DEVICE" | ||
3170 | 115 | # check downloaded file size, this often fails, so retry. any recovery should be more than 5M | ||
3171 | 116 | download_file $RECOVERY_URL $RECOVERY_IMAGE 5000000 | ||
3172 | 117 | } | ||
3173 | 118 | |||
3174 | 119 | download_file() { | ||
3175 | 120 | DOWNLOAD_URL=$1 | ||
3176 | 121 | FILENAME=$2 | ||
3177 | 122 | TARGET_SIZE=$3 | ||
3178 | 123 | SIZE=1 | ||
3179 | 124 | # check downloaded file size, this often fails, so retry. Expected size is TARGET_SIZE | ||
3180 | 125 | while [[ $TARGET_SIZE -ge $SIZE ]] | ||
3181 | 126 | do | ||
3182 | 127 | curl $DOWNLOAD_URL > $FILENAME | ||
3183 | 128 | SIZE=$(ls -la $FILENAME | awk '{ print $5}') | ||
3184 | 129 | echo "Downloaded file has size: $SIZE" | ||
3185 | 130 | done | ||
3186 | 131 | } | ||
3187 | 132 | |||
3188 | 133 | install_su() { | ||
3189 | 134 | echo "Rebooting to bootloader" | ||
3190 | 135 | adb wait-for-device reboot bootloader | ||
3191 | 136 | fastboot boot $RECOVERY_IMAGE | ||
3192 | 137 | wait_for_adb recovery | ||
3193 | 138 | echo "Creating update command" | ||
3194 | 139 | adb shell rm -rf $CACHE_RECOVERY | ||
3195 | 140 | adb shell mkdir $CACHE_RECOVERY | ||
3196 | 141 | adb shell "echo -e '--sideload' > $CACHE_RECOVERY/command" | ||
3197 | 142 | echo "Booting back to bootloader" | ||
3198 | 143 | adb reboot bootloader | ||
3199 | 144 | fastboot boot $RECOVERY_IMAGE | ||
3200 | 145 | wait_for_adb sideload | ||
3201 | 146 | adb sideload $SU_PACKAGE | ||
3202 | 147 | echo "Wait for installation of package to complete" | ||
3203 | 148 | } | ||
3204 | 149 | |||
3205 | 150 | install_ubuntu_installer() { | ||
3206 | 151 | echo "Rebooting to bootloader" | ||
3207 | 152 | adb wait-for-device reboot bootloader | ||
3208 | 153 | fastboot boot $RECOVERY_IMAGE | ||
3209 | 154 | wait_for_adb recovery | ||
3210 | 155 | echo "Creating update command" | ||
3211 | 156 | adb shell rm -rf $CACHE_RECOVERY | ||
3212 | 157 | adb shell mkdir $CACHE_RECOVERY | ||
3213 | 158 | adb shell "echo -e '--sideload' > $CACHE_RECOVERY/command" | ||
3214 | 159 | echo "Booting back to bootloader" | ||
3215 | 160 | adb reboot bootloader | ||
3216 | 161 | fastboot boot $RECOVERY_IMAGE | ||
3217 | 162 | wait_for_adb sideload | ||
3218 | 163 | adb sideload $UBUNTU_INSTALLER_PACKAGE | ||
3219 | 164 | echo "Wait for installation of package to complete" | ||
3220 | 165 | echo "If you are asked to preserve possibly lost root access" | ||
3221 | 166 | echo "Or if device should be rooted" | ||
3222 | 167 | echo "This is false warning and yuou can answer either yes or no" | ||
3223 | 168 | } | ||
3224 | 169 | |||
3225 | 170 | check_build_for_su_update() { | ||
3226 | 171 | if [[ "$CM_DEVICE" == "$DEVICE" ]]; then | ||
3227 | 172 | echo "!!! This seems to be CyanogenMod build, you already have SuperUser as part of the system" | ||
3228 | 173 | echo "Go to Settings->SuperUser->Settings and make sure it is enabled for applications" | ||
3229 | 174 | echo "For installation, use: $ $SCRIPT_NAME UPDATE" | ||
3230 | 175 | print_ask_help | ||
3231 | 176 | exit 0; | ||
3232 | 177 | fi | ||
3233 | 178 | } | ||
3234 | 179 | |||
3235 | 180 | if [[ "$ACTION" == HELP ]]; then | ||
3236 | 181 | echo "HELP" | ||
3237 | 182 | print_usage | ||
3238 | 183 | else if [[ "$ACTION" == FULL ]]; then | ||
3239 | 184 | detect_device | ||
3240 | 185 | check_build_for_su_update | ||
3241 | 186 | echo "FULL install" | ||
3242 | 187 | create_temp_dir | ||
3243 | 188 | download_su_package | ||
3244 | 189 | download_app_update | ||
3245 | 190 | download_recovery | ||
3246 | 191 | |||
3247 | 192 | install_ubuntu_installer | ||
3248 | 193 | install_su | ||
3249 | 194 | |||
3250 | 195 | delete_temp_dir | ||
3251 | 196 | else if [[ "$ACTION" == INSTALL_SU ]]; then | ||
3252 | 197 | detect_device | ||
3253 | 198 | check_build_for_su_update | ||
3254 | 199 | echo "INSTALL_SU" | ||
3255 | 200 | create_temp_dir | ||
3256 | 201 | download_su_package | ||
3257 | 202 | download_recovery | ||
3258 | 203 | |||
3259 | 204 | install_su | ||
3260 | 205 | |||
3261 | 206 | delete_temp_dir | ||
3262 | 207 | else if [[ "$ACTION" == UPDATE ]]; then | ||
3263 | 208 | detect_device | ||
3264 | 209 | create_temp_dir | ||
3265 | 210 | echo "UPDATE install" | ||
3266 | 211 | download_app_update | ||
3267 | 212 | download_recovery | ||
3268 | 213 | |||
3269 | 214 | install_ubuntu_installer | ||
3270 | 215 | |||
3271 | 216 | delete_temp_dir | ||
3272 | 217 | else | ||
3273 | 218 | echo "Unknow action" | ||
3274 | 219 | print_ask_help | ||
3275 | 220 | fi | ||
3276 | 221 | fi | ||
3277 | 222 | fi | ||
3278 | 223 | fi | ||
3279 | 224 |
Thanks
These are different codebase, I would prefer to keep them separated. Because each project need to be built with different build environment.