[Author: oshlack]
[google-gears.git] / gears / Makefile
blobf3780f3a16582ed24cb5fd34a1a6c705ab2c5ce4
1 # Copyright 2005, Google Inc.
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are met:
6 # 1. Redistributions of source code must retain the above copyright notice,
7 # this list of conditions and the following disclaimer.
8 # 2. Redistributions in binary form must reproduce the above copyright notice,
9 # this list of conditions and the following disclaimer in the documentation
10 # and/or other materials provided with the distribution.
11 # 3. Neither the name of Google Inc. nor the names of its contributors may be
12 # used to endorse or promote products derived from this software without
13 # specific prior written permission.
15 # THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
16 # WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
17 # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
18 # EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
19 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20 # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21 # OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22 # WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23 # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
24 # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 include tools/version.mk
27 include tools/config.mk
28 include tools/sanity.mk
30 MODULE = $(SHORT_NAME)
32 #-----------------------------------------------------------------------------
33 # third_party/sqlite_google
35 THIRD_PARTY_VPATH += \
36 third_party/sqlite_google/src \
37 third_party/sqlite_google/preprocessed \
38 third_party/sqlite_google/ext/fts1 \
39 third_party/sqlite_google/ext/fts2 \
40 $(NULL)
42 SQLITE_CSRCS += \
43 alter.c \
44 analyze.c \
45 attach.c \
46 auth.c \
47 btree.c \
48 build.c \
49 callback.c \
50 complete.c \
51 date.c \
52 delete.c \
53 expr.c \
54 func.c \
55 hash.c \
56 insert.c \
57 legacy.c \
58 loadext.c \
59 main.c \
60 malloc.c \
61 opcodes.c \
62 os.c \
63 os_os2.c \
64 os_unix.c \
65 os_win.c \
66 pager.c \
67 parse.c \
68 pragma.c \
69 prepare.c \
70 printf.c \
71 random.c \
72 select.c \
73 table.c \
74 tokenize.c \
75 trigger.c \
76 update.c \
77 utf.c \
78 util.c \
79 vacuum.c \
80 vdbe.c \
81 vdbeapi.c \
82 vdbeaux.c \
83 vdbeblob.c \
84 vdbefifo.c \
85 vdbemem.c \
86 vtab.c \
87 where.c \
88 fts1.c \
89 fts1_hash.c \
90 fts1_porter.c \
91 fts1_tokenizer1.c \
92 fts2.c \
93 fts2_hash.c \
94 fts2_porter.c \
95 fts2_tokenizer1.c \
96 $(NULL)
98 #-----------------------------------------------------------------------------
99 # third_party/libpng
101 # TODO(andreip): fix errors in zlib before building this for wince
102 ifneq ($(OS),wince)
103 THIRD_PARTY_VPATH += \
104 third_party/libpng \
105 $(NULL)
107 THIRD_PARTY_CSRCS += \
108 png.c \
109 pngerror.c \
110 pnggccrd.c \
111 pngget.c \
112 pngmem.c \
113 pngpread.c \
114 pngread.c \
115 pngrio.c \
116 pngrtran.c \
117 pngrutil.c \
118 pngset.c \
119 pngtrans.c \
120 pngvcrd.c \
121 pngwio.c \
122 pngwrite.c \
123 pngwtran.c \
124 pngwutil.c \
125 $(NULL)
126 endif
128 #-----------------------------------------------------------------------------
129 # third_party/zlib
131 # TODO(andreip): fix errors in gzio.c for wince
132 ifneq ($(OS),wince)
133 THIRD_PARTY_VPATH += \
134 third_party/zlib \
135 $(NULL)
137 THIRD_PARTY_CSRCS += \
138 adler32.c \
139 compress.c \
140 crc32.c \
141 deflate.c \
142 gzio.c \
143 infback.c \
144 inffast.c \
145 inflate.c \
146 inftrees.c \
147 trees.c \
148 uncompr.c \
149 zutil.c \
150 $(NULL)
151 endif
153 #-----------------------------------------------------------------------------
154 # third_party/jsoncpp
156 THIRD_PARTY_VPATH += \
157 third_party/jsoncpp \
158 $(NULL)
160 THIRD_PARTY_CPPSRCS += \
161 json_reader.cc \
162 json_value.cc \
163 json_writer.cc \
164 $(NULL)
166 #-----------------------------------------------------------------------------
167 # third_party/breakpad
169 ifeq ($(OS),win32)
170 THIRD_PARTY_VPATH += \
171 third_party/breakpad/src/client/windows/handler \
172 third_party/breakpad/src/client/windows/sender \
173 third_party/breakpad/src/common/windows \
174 $(NULL)
176 THIRD_PARTY_CPPSRCS += \
177 exception_handler.cc \
178 guid_string.cc \
179 crash_report_sender.cc \
180 http_upload.cc \
181 $(NULL)
184 FF_VPATH += \
185 base/common \
186 $(NULL)
188 FF_CPPSRCS += \
189 exception_handler_win32.cc \
190 $(NULL)
193 IE_VPATH += \
194 base/common \
195 $(NULL)
197 IE_CPPSRCS += \
198 exception_handler_win32.cc \
199 $(NULL)
200 endif
202 #-----------------------------------------------------------------------------
203 # base/common
205 COMMON_VPATH += \
206 base/common \
207 installer \
208 $(NULL)
210 COMMON_M4SRCS += \
211 product_constants.h.m4 \
212 product_version.rc.m4 \
213 win32_msi.wxs.m4 \
214 $(NULL)
216 COMMON_CPPSRCS += \
217 $(NULL)
218 # WARNING: Think carefully before listing any non-third-party C/C++ files in
219 # COMMON_*SRCS. Such files only get built once per platform (not per browser),
220 # and BROWSER_* #defines are not obeyed. Instead, use FF_CPPSRCS and IE_CPPSRCS
221 # when possible.
222 # One important exception: unit-tested code is only built once per platform, so
223 # it should be listed in CPPSRCS. Thus it must not use any BROWSER_* #defines,
224 # directly or indirectly.
226 # TODO(cprince): investigate OS-specific sources (e.g. WIN32_CPPSRCS)
229 #-----------------------------------------------------------------------------
230 # base/firefox
232 FF_VPATH += \
233 base/common \
234 base/firefox \
235 $(NULL)
237 FF_M4SRCS += \
238 install.rdf.m4 \
239 $(NULL)
241 FF_IDLSRCS += \
242 base_interface_ff.idl \
243 $(NULL)
245 FF_CPPSRCS += \
246 base_class.cc \
247 base_class_test.cc \
248 dom_utils.cc \
249 file.cc \
250 file_posix.cc \
251 file_linux.cc \
252 file_osx.cc \
253 file_test.cc \
254 file_win32.cc \
255 html_event_monitor.cc \
256 html_event_monitor_ff.cc \
257 http_utils.cc \
258 js_runner_ff.cc \
259 js_runner_ff_marshaling.cc \
260 js_runner_utils.cc \
261 js_types.cc \
262 message_queue.cc \
263 message_queue_ff.cc \
264 message_service.cc \
265 message_service_test.cc \
266 module.cc \
267 mutex.cc \
268 name_value_table.cc \
269 ns_file_utils.cc \
270 paths.cc \
271 paths_ff.cc \
272 permissions_db.cc \
273 png_utils.cc \
274 security_model.cc \
275 security_model_test.cc \
276 shortcut_table.cc \
277 sqlite_wrapper.cc \
278 stopwatch.cc \
279 stopwatch_ff.cc \
280 string16.cc \
281 string_utils.cc \
282 string_utils_test.cc \
283 thread_locals.cc \
284 url_utils.cc \
285 url_utils_ff.cc \
286 url_utils_test.cc \
287 xpcom_dynamic_load.cc \
288 $(NULL)
290 #-----------------------------------------------------------------------------
291 # base/ie
293 IE_VPATH += \
294 base/common \
295 base/ie \
296 $(NULL)
298 IE_M4SRCS += \
299 bho.rgs.m4 \
300 interfaces.idl.m4 \
301 module.rgs.m4 \
302 $(NULL)
304 IE_IDLSRCS += \
305 interfaces.idl \
306 $(NULL)
308 IE_CPPSRCS += \
309 activex_utils.cc \
310 base_class.cc \
311 base_class_test.cc \
312 bho.cc \
313 detect_version_collision.cc \
314 file.cc \
315 file_test.cc \
316 file_win32.cc \
317 html_event_monitor.cc \
318 html_event_monitor_ie.cc \
319 http_utils.cc \
320 ie_version.cc \
321 js_runner_ie.cc \
322 js_runner_utils.cc \
323 js_types.cc \
324 message_queue.cc \
325 message_queue_ie.cc \
326 message_service.cc \
327 message_service_test.cc \
328 module.cc \
329 module_wrapper.cc \
330 mutex.cc \
331 name_value_table.cc \
332 paths.cc \
333 paths_ie.cc \
334 permissions_db.cc \
335 png_utils.cc \
336 security_model.cc \
337 security_model_test.cc \
338 shortcut_table.cc \
339 sqlite_wrapper.cc \
340 stopwatch.cc \
341 stopwatch_ie.cc \
342 string16.cc \
343 string_utils.cc \
344 string_utils_test.cc \
345 thread_locals.cc \
346 url_utils.cc \
347 url_utils_ie.cc \
348 url_utils_test.cc \
349 vista_utils.cc \
350 $(NULL)
352 IE_LINK_EXTRAS += \
353 $(IE_OUTDIR)/module.res \
354 $(NULL)
356 #-----------------------------------------------------------------------------
357 # base/iemobile
359 IEMOBILE_VPATH += \
360 base/common \
361 base/ie \
362 $(NULL)
364 IEMOBILE_M4SRCS += \
365 bho.rgs.m4 \
366 interfaces.idl.m4 \
367 module.rgs.m4 \
368 $(NULL)
370 IEMOBILE_IDLSRCS += \
371 interfaces.idl \
372 $(NULL)
374 IEMOBILE_CPPSRCS += \
375 activex_utils.cc \
376 base_class.cc \
377 bho.cc \
378 detect_version_collision.cc \
379 file.cc \
380 file_wince.cc \
381 file_test.cc \
382 html_event_monitor.cc \
383 html_event_monitor_ie.cc \
384 http_utils.cc \
385 js_runner_ie.cc \
386 js_runner_utils.cc \
387 js_types.cc \
388 message_queue.cc \
389 message_queue_ie.cc \
390 message_service.cc \
391 message_service_test.cc \
392 module.cc \
393 module_wrapper.cc \
394 mutex.cc \
395 name_value_table.cc \
396 paths.cc \
397 paths_ie.cc \
398 permissions_db.cc \
399 security_model.cc \
400 security_model_test.cc \
401 shortcut_table.cc \
402 sqlite_wrapper.cc \
403 stopwatch.cc \
404 stopwatch_ie.cc \
405 string16.cc \
406 string_utils.cc \
407 string_utils_test.cc \
408 thread_locals.cc \
409 url_utils.cc \
410 url_utils_ie.cc \
411 url_utils_test.cc \
412 vista_utils.cc \
413 wince_compatibility.cc \
414 $(NULL)
416 IEMOBILE_LINK_EXTRAS += \
417 $(IE_OUTDIR)/module.res \
418 $(NULL)
420 #-----------------------------------------------------------------------------
421 # base/npapi
423 NPAPI_VPATH += \
424 base/common \
425 base/npapi \
426 $(NULL)
428 NPAPI_M4SRCS += \
429 $(NULL)
431 NPAPI_IDLSRCS += \
432 $(NULL)
434 NPAPI_CPPSRCS += \
435 base_class.cc \
436 base_class_test.cc \
437 browser_utils.cc \
438 file.cc \
439 file_win32.cc \
440 file_test.cc \
441 html_event_monitor.cc \
442 html_event_monitor_np.cc \
443 http_utils.cc \
444 js_runner_np.cc \
445 js_runner_utils.cc \
446 js_types.cc \
447 module.cc \
448 mutex.cc \
449 name_value_table.cc \
450 np_utils.cc \
451 npn_bindings.cc \
452 npp_bindings.cc \
453 paths.cc \
454 paths_ie.cc \
455 permissions_db.cc \
456 plugin.cc \
457 png_utils.cc \
458 security_model.cc \
459 security_model_test.cc \
460 shortcut_table.cc \
461 sqlite_wrapper.cc \
462 stopwatch.cc \
463 stopwatch_ie.cc \
464 string16.cc \
465 string_utils.cc \
466 string_utils_test.cc \
467 thread_locals.cc \
468 url_utils.cc \
469 url_utils_ie.cc \
470 url_utils_test.cc \
471 vista_utils.cc \
472 $(NULL)
474 # TODO(mpcomplete): use WIN32_LINK_EXTRAS here.
475 ifeq ($(OS),win32)
476 NPAPI_LINK_EXTRAS += \
477 $(NPAPI_OUTDIR)/module.res \
478 $(NULL)
479 endif
481 #-----------------------------------------------------------------------------
482 # console/firefox
484 FF_VPATH += \
485 console/common \
486 console/firefox \
487 $(NULL)
489 FF_M4SRCS += \
490 console.idl.m4 \
491 $(NULL)
493 FF_IDLSRCS += \
494 console.idl \
495 $(NULL)
497 # console/common
498 FF_CPPSRCS += \
499 console.cc \
500 js_callback_logging_backend.cc \
501 $(NULL)
503 # console/firefox
504 FF_CPPSRCS += \
505 console_ff.cc \
506 $(NULL)
508 #-----------------------------------------------------------------------------
509 # console/ie
511 IE_VPATH += \
512 console/common \
513 console/ie \
514 $(NULL)
516 IE_IDLSRCS += \
517 console.idl \
518 $(NULL)
520 # console/common
521 IE_CPPSRCS += \
522 console.cc \
523 js_callback_logging_backend.cc \
524 $(NULL)
526 # console/ie
527 IE_CPPSRCS += \
528 console_ie.cc \
529 $(NULL)
531 #-----------------------------------------------------------------------------
532 # console/iemobile
534 IEMOBILE_VPATH += \
535 console\common \
536 console\ie \
537 $(NULL)
539 IEMOBILE_IDLSRCS += \
540 console.idl \
541 $(NULL)
543 # console/common
544 IEMOBILE_CPPSRCS += \
545 console.cc \
546 js_callback_logging_backend.cc \
547 $(NULL)
549 # console/ie
550 IEMOBILE_CPPSRCS += \
551 console_ie.cc \
552 $(NULL)
554 #-----------------------------------------------------------------------------
555 # database/firefox
557 FF_VPATH += \
558 database/common \
559 database/firefox \
560 $(NULL)
562 FF_M4SRCS += \
563 database.idl.m4 \
564 $(NULL)
566 FF_IDLSRCS += \
567 database.idl \
568 $(NULL)
570 FF_CPPSRCS += \
571 database.cc \
572 database_utils.cc \
573 result_set.cc \
574 $(NULL)
576 #-----------------------------------------------------------------------------
577 # database/ie
579 IE_VPATH += \
580 database/common \
581 database/ie \
582 $(NULL)
584 IE_IDLSRCS += \
585 database.idl \
586 $(NULL)
588 IE_CPPSRCS += \
589 database.cc \
590 database_utils.cc \
591 result_set.cc \
592 $(NULL)
594 #-----------------------------------------------------------------------------
595 # database/iemobile
597 IEMOBILE_VPATH += \
598 database/common \
599 database/ie \
600 $(NULL)
602 IEMOBILE_IDLSRCS += \
603 database.idl \
604 $(NULL)
606 IEMOBILE_CPPSRCS += \
607 database.cc \
608 database_utils.cc \
609 result_set.cc \
610 $(NULL)
612 #-----------------------------------------------------------------------------
613 # database/npapi
615 NPAPI_VPATH += \
616 database/common \
617 database/npapi \
618 $(NULL)
620 NPAPI_IDLSRCS += \
621 $(NULL)
623 NPAPI_CPPSRCS += \
624 database.cc \
625 database_utils.cc \
626 result_set.cc \
627 $(NULL)
629 #-----------------------------------------------------------------------------
630 # desktop
632 FF_VPATH += \
633 desktop \
634 $(NULL)
636 FF_IDLSRCS += \
637 desktop_ff.idl \
638 $(NULL)
640 FF_CPPSRCS += \
641 desktop.cc \
642 $(NULL)
644 IE_VPATH += \
645 desktop \
646 $(NULL)
648 IEMOBILE_VPATH += \
649 desktop \
650 $(NULL)
652 IE_IDLSRCS += \
653 desktop_ie.idl \
654 $(NULL)
656 IEMOBILE_IDLSRCS += \
657 desktop_ie.idl \
658 $(NULL)
660 IE_CPPSRCS += \
661 desktop.cc \
662 $(NULL)
664 NPAPI_VPATH += \
665 desktop \
666 $(NULL)
668 NPAPI_IDLSRCS += \
669 $(NULL)
671 NPAPI_CPPSRCS += \
672 $(NULL)
674 #-----------------------------------------------------------------------------
675 # test
677 ifeq ($(MODE),dbg)
679 FF_VPATH += \
680 cctests \
681 $(NULL)
683 FF_M4SRCS += \
684 test_ff.idl.m4 \
685 $(NULL)
687 FF_IDLSRCS += \
688 test_ff.idl \
689 $(NULL)
691 FF_CPPSRCS += \
692 test.cc \
693 $(NULL)
695 IE_VPATH += \
696 cctests \
697 $(NULL)
699 IE_IDLSRCS += \
700 test_ie.idl \
701 $(NULL)
703 IE_CPPSRCS += \
704 test.cc \
705 $(NULL)
707 IEMOBILE_VPATH += \
708 cctests \
709 $(NULL)
711 IEMOBILE_IDLSRCS += \
712 test_ie.idl \
713 $(NULL)
715 IEMOBILE_CPPSRCS += \
716 test.cc \
717 $(NULL)
719 endif
721 #-----------------------------------------------------------------------------
722 # ui/generated
724 # Anything with the _I18N suffix will be expanded for each language in
725 # I18N_LANGS
727 I18N_LANGS += \
728 en-US \
729 $(NULL)
731 # ui/generated is not specified here, because it's included in the generated
732 # name for _I18N source files.
733 COMMON_VPATH += \
734 $(NULL)
736 COMMON_M4SRCS_I18N += \
737 permissions_dialog.html.m4 \
738 settings_dialog.html.m4 \
739 shortcuts_dialog.html.m4 \
740 $(NULL)
742 FF_VPATH += \
743 $(NULL)
745 FF_M4SRCS_I18N += \
746 i18n.dtd.m4 \
747 $(NULL)
749 IE_VPATH += \
750 ui/generated \
751 $(NULL)
753 IE_M4SRCS += \
754 ui_html.rc.m4 \
755 $(NULL)
757 IEMOBILE_VPATH += \
758 ui/generated \
759 $(NULL)
761 IEMOBILE_M4SRCS += \
762 ui_html.rc.m4 \
763 $(NULL)
765 #-----------------------------------------------------------------------------
766 # ui/firefox
768 FF_VPATH += \
769 ui/common \
770 ui/firefox \
771 $(NULL)
773 FF_M4SRCS += \
774 browser-overlay.js.m4 \
775 browser-overlay.xul.m4 \
776 chrome.manifest.m4 \
777 $(NULL)
779 FF_IDLSRCS += \
780 ui_utils.idl \
781 $(NULL)
783 FF_CPPSRCS += \
784 html_dialog.cc \
785 permissions_dialog.cc \
786 settings_dialog.cc \
787 ui_utils.cc \
788 $(NULL)
790 #-----------------------------------------------------------------------------
791 # ui/ie
793 IE_VPATH += \
794 ui/common \
795 ui/ie \
796 $(NULL)
798 IE_M4SRCS += \
799 ui_resources.rc.m4 \
800 tools_menu_item.rgs.m4 \
801 $(NULL)
803 IE_IDLSRCS += \
804 html_dialog_host.idl \
805 $(NULL)
807 IE_CPPSRCS += \
808 html_dialog.cc \
809 html_dialog_host.cc \
810 permissions_dialog.cc \
811 settings_dialog.cc \
812 tools_menu_item.cc \
813 $(NULL)
815 IE_LINK_EXTRAS += \
816 $(IE_OUTDIR)/ui_resources.res \
817 $(NULL)
819 #-----------------------------------------------------------------------------
820 # ui/iemobile
822 IEMOBILE_VPATH += \
823 ui/common \
824 ui/ie \
825 $(NULL)
827 IEMOBILE_M4SRCS += \
828 ui_resources.rc.m4 \
829 tools_menu_item.rgs.m4 \
830 $(NULL)
832 IEMOBILE_IDLSRCS += \
833 html_dialog_host.idl \
834 $(NULL)
836 #-----------------------------------------------------------------------------
837 # ui/npapi
839 NPAPI_VPATH += \
840 ui/common \
841 $(NULL)
843 NPAPI_IDLSRCS += \
844 $(NULL)
846 NPAPI_CPPSRCS += \
847 html_dialog.cc \
848 permissions_dialog.cc \
849 settings_dialog.cc \
850 $(NULL)
852 #-----------------------------------------------------------------------------
853 # workerpool/firefox
855 FF_VPATH += \
856 workerpool/common \
857 workerpool/firefox \
858 $(NULL)
860 FF_M4SRCS += \
861 workerpool.idl.m4 \
862 $(NULL)
864 FF_IDLSRCS += \
865 workerpool.idl \
866 $(NULL)
868 FF_CPPSRCS += \
869 workerpool.cc \
870 workerpool_utils.cc \
871 $(NULL)
873 #-----------------------------------------------------------------------------
874 # workerpool/ie
876 IE_VPATH += \
877 workerpool/common \
878 workerpool/ie \
879 $(NULL)
881 IE_IDLSRCS += \
882 workerpool.idl \
883 $(NULL)
885 IE_CPPSRCS += \
886 workerpool.cc \
887 workerpool_utils.cc \
888 $(NULL)
890 #-----------------------------------------------------------------------------
891 # workerpool/iemobile
893 IEMOBILE_VPATH += \
894 workerpool/common \
895 workerpool/ie \
896 $(NULL)
898 IEMOBILE_IDLSRCS += \
899 workerpool.idl \
900 $(NULL)
902 IEMOBILE_CPPSRCS += \
903 workerpool.cc \
904 workerpool_utils.cc \
905 $(NULL)
907 #-----------------------------------------------------------------------------
908 # workerpool/npapi
910 NPAPI_VPATH += \
911 workerpool/common \
912 workerpool/npapi \
913 $(NULL)
915 NPAPI_CPPSRCS += \
916 workerpool.cc \
917 workerpool_utils.cc \
918 $(NULL)
920 #-----------------------------------------------------------------------------
921 # timer
923 FF_VPATH += \
924 timer\
925 $(NULL)
927 FF_IDLSRCS += \
928 timer_ff.idl \
929 $(NULL)
931 FF_CPPSRCS += \
932 timer.cc \
933 $(NULL)
935 IE_VPATH += \
936 timer \
937 $(NULL)
939 IE_IDLSRCS += \
940 timer_ie.idl \
941 $(NULL)
943 IE_CPPSRCS += \
944 timer.cc \
945 $(NULL)
947 IEMOBILE_VPATH += \
948 timer \
949 $(NULL)
951 IEMOBILE_IDLSRCS += \
952 timer_ie.idl \
953 $(NULL)
955 IEMOBILE_CPPSRCS += \
956 timer.cc \
957 $(NULL)
959 #-----------------------------------------------------------------------------
960 # localserver/ff
962 FF_VPATH += \
963 base/common \
964 localserver/common \
965 localserver/firefox \
966 $(NULL)
968 FF_M4SRCS += \
969 localserver.idl.m4 \
970 $(NULL)
972 FF_IDLSRCS += \
973 localserver.idl \
974 $(NULL)
976 # localserver/common
977 FF_CPPSRCS += \
978 blob_store.cc \
979 capture_task.cc \
980 file_store.cc \
981 http_constants.cc \
982 http_cookies.cc \
983 localserver.cc \
984 localserver_db.cc \
985 managed_resource_store.cc \
986 manifest.cc \
987 name_value_table_test.cc \
988 permissions_db_test.cc \
989 resource_store.cc \
990 sqlite_wrapper_test.cc \
991 update_task.cc \
992 $(NULL)
994 # localserver/firefox
995 FF_CPPSRCS += \
996 async_task_ff.cc \
997 cache_intercept.cc \
998 file_submitter_ff.cc \
999 http_request_ff.cc \
1000 localserver_ff.cc \
1001 managed_resource_store_ff.cc \
1002 resource_store_ff.cc \
1003 update_task_ff.cc \
1004 $(NULL)
1006 #-----------------------------------------------------------------------------
1007 # localserver/ie
1009 IE_VPATH += \
1010 base/common \
1011 localserver/common \
1012 localserver/ie \
1013 $(NULL)
1015 IE_IDLSRCS += \
1016 localserver.idl \
1017 $(NULL)
1019 # localserver/common
1020 IE_CPPSRCS += \
1021 blob_store.cc \
1022 capture_task.cc \
1023 file_store.cc \
1024 http_constants.cc \
1025 http_cookies.cc \
1026 localserver.cc \
1027 localserver_db.cc \
1028 managed_resource_store.cc \
1029 manifest.cc \
1030 name_value_table_test.cc \
1031 permissions_db_test.cc \
1032 resource_store.cc \
1033 sqlite_wrapper_test.cc \
1034 update_task.cc \
1035 $(NULL)
1037 # localserver/ie
1038 IE_CPPSRCS += \
1039 async_task_ie.cc \
1040 file_submit_behavior.cc \
1041 file_submitter_ie.cc \
1042 http_handler_ie.cc \
1043 http_request_ie.cc \
1044 localserver_ie.cc \
1045 managed_resource_store_ie.cc \
1046 resource_store_ie.cc \
1047 update_task_ie.cc \
1048 urlmon_utils.cc \
1049 $(NULL)
1051 #-----------------------------------------------------------------------------
1052 # localserver/iemobile
1054 IEMOBILE_VPATH += \
1055 base/common \
1056 localserver/common \
1057 localserver/ie \
1058 $(NULL)
1060 IEMOBILE_IDLSRCS += \
1061 localserver.idl \
1062 $(NULL)
1064 # localserver/common
1065 IEMOBILE_CPPSRCS += \
1066 blob_store.cc \
1067 capture_task.cc \
1068 file_store.cc \
1069 http_constants.cc \
1070 http_cookies.cc \
1071 localserver.cc \
1072 localserver_db.cc \
1073 managed_resource_store.cc \
1074 manifest.cc \
1075 name_value_table_test.cc \
1076 permissions_db_test.cc \
1077 resource_store.cc \
1078 sqlite_wrapper_test.cc \
1079 update_task.cc \
1080 $(NULL)
1082 # localserver/iemobile
1083 IEMOBILE_CPPSRCS += \
1084 async_task_ie.cc \
1085 http_handler_ie.cc \
1086 http_request_ie.cc \
1087 localserver_ie.cc \
1088 managed_resource_store_ie.cc \
1089 resource_store_ie.cc \
1090 update_task_ie.cc \
1091 urlmon_utils.cc \
1092 $(NULL)
1094 #-----------------------------------------------------------------------------
1095 # httprequest/ff
1097 FF_VPATH += \
1098 httprequest/firefox \
1099 $(NULL)
1101 FF_IDLSRCS += \
1102 httprequest.idl \
1103 $(NULL)
1105 FF_CPPSRCS += \
1106 httprequest_ff.cc \
1107 $(NULL)
1109 #-----------------------------------------------------------------------------
1110 # localserver/npapi
1112 NPAPI_VPATH += \
1113 base/common \
1114 localserver/common \
1115 localserver/npapi \
1116 $(NULL)
1118 NPAPI_M4SRCS += \
1119 $(NULL)
1121 NPAPI_IDLSRCS += \
1122 $(NULL)
1124 NPAPI_CPPSRCS += \
1125 $(NULL)
1127 # localserver/common
1128 NPAPI_CPPSRCS += \
1129 http_constants.cc \
1130 localserver_db_stub.cc \
1131 $(NULL)
1133 # localserver/npapi
1134 NPAPI_CPPSRCS += \
1135 file_submitter_np.cc \
1136 localserver_np.cc \
1137 managed_resource_store_np.cc \
1138 resource_store_np.cc \
1139 $(NULL)
1141 #-----------------------------------------------------------------------------
1142 # httprequest/ie
1144 IE_VPATH += \
1145 httprequest/ie \
1146 $(NULL)
1148 IE_IDLSRCS += \
1149 httprequest.idl \
1150 $(NULL)
1152 IE_CPPSRCS += \
1153 httprequest_ie.cc \
1154 $(NULL)
1156 #-----------------------------------------------------------------------------
1157 # httprequest/iemobile
1159 IEMOBILE_VPATH += \
1160 httprequest/ie \
1161 $(NULL)
1163 IEMOBILE_IDLSRCS += \
1164 httprequest.idl \
1165 $(NULL)
1167 IEMOBILE_CPPSRCS += \
1168 httprequest_ie.cc \
1169 $(NULL)
1171 #-----------------------------------------------------------------------------
1172 # channel/ff
1174 FF_VPATH += \
1175 channel/firefox \
1176 $(NULL)
1178 FF_IDLSRCS += \
1179 channel.idl \
1180 $(NULL)
1182 FF_CPPSRCS += \
1183 channel.cc \
1184 $(NULL)
1186 #-----------------------------------------------------------------------------
1187 # channel/ie
1189 IE_VPATH += \
1190 channel/ie \
1191 $(NULL)
1193 IE_IDLSRCS += \
1194 channel.idl \
1195 $(NULL)
1197 IE_CPPSRCS += \
1198 channel.cc \
1199 $(NULL)
1201 #-----------------------------------------------------------------------------
1202 # channel/iemobile
1204 IEMOBILE_VPATH += \
1205 channel/ie \
1206 $(NULL)
1208 IEMOBILE_IDLSRCS += \
1209 channel.idl \
1210 $(NULL)
1212 #-----------------------------------------------------------------------------
1213 # blob
1215 FF_VPATH += \
1216 blob \
1217 $(NULL)
1219 FF_IDLSRCS += \
1220 $(NULL)
1222 FF_CPPSRCS += \
1223 buffer_blob.cc \
1224 $(NULL)
1226 IE_VPATH += \
1227 blob \
1228 $(NULL)
1230 IE_IDLSRCS += \
1231 $(NULL)
1233 IE_CPPSRCS += \
1234 buffer_blob.cc \
1235 $(NULL)
1237 IEMOBILE_VPATH += \
1238 blob \
1239 $(NULL)
1241 IEMOBILE_IDLSRCS += \
1242 $(NULL)
1244 IEMOBILE_CPPSRCS += \
1245 buffer_blob.cc \
1246 $(NULL)
1248 #-----------------------------------------------------------------------------
1249 # factory/ff
1251 FF_VPATH += \
1252 factory/common \
1253 factory/firefox \
1254 $(NULL)
1256 FF_IDLSRCS += \
1257 factory.idl \
1258 $(NULL)
1260 FF_CPPSRCS += \
1261 factory.cc \
1262 factory_utils.cc \
1263 $(NULL)
1265 #-----------------------------------------------------------------------------
1266 # factory/ie
1268 IE_VPATH += \
1269 factory/common \
1270 factory/ie \
1271 $(NULL)
1273 IE_M4SRCS += \
1274 factory.rgs.m4 \
1275 $(NULL)
1277 IE_IDLSRCS += \
1278 factory.idl \
1279 $(NULL)
1281 IE_CPPSRCS += \
1282 factory.cc \
1283 factory_utils.cc \
1284 $(NULL)
1286 #-----------------------------------------------------------------------------
1287 # factory/iemobile
1289 IEMOBILE_VPATH += \
1290 factory/common \
1291 factory/ie \
1292 $(NULL)
1294 IEMOBILE_M4SRCS += \
1295 factory.rgs.m4 \
1296 $(NULL)
1298 IEMOBILE_IDLSRCS += \
1299 factory.idl \
1300 $(NULL)
1302 IEMOBILE_CPPSRCS += \
1303 factory.cc \
1304 factory_utils.cc \
1305 $(NULL)
1307 #-----------------------------------------------------------------------------
1308 # factory/npapi
1310 NPAPI_VPATH += \
1311 factory/common \
1312 factory/npapi \
1313 $(NULL)
1315 NPAPI_IDLSRCS += \
1316 $(NULL)
1318 NPAPI_CPPSRCS += \
1319 factory.cc \
1320 factory_wrapper.cc \
1321 factory_utils.cc \
1322 $(NULL)
1324 include tools/rules.mk