[Author: zork]
[google-gears.git] / gears / Makefile
blobf8d7e0952c2d123847b7f2442106ad77e0842206
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/libjpeg
156 ifneq ($(OFFICIAL_BUILD),1)
157 ifneq ($(OS),wince)
158 THIRD_PARTY_VPATH += \
159 third_party/libjpeg \
160 $(NULL)
162 THIRD_PARTY_CSRCS += \
163 jcapimin.c \
164 jcapistd.c \
165 jccoefct.c \
166 jccolor.c \
167 jcdctmgr.c \
168 jchuff.c \
169 jcinit.c \
170 jcmainct.c \
171 jcmarker.c \
172 jcmaster.c \
173 jcomapi.c \
174 jcparam.c \
175 jcphuff.c \
176 jcprepct.c \
177 jcsample.c \
178 jctrans.c \
179 jdapimin.c \
180 jdapistd.c \
181 jdatadst.c \
182 jdatasrc.c \
183 jdcoefct.c \
184 jdcolor.c \
185 jddctmgr.c \
186 jdhuff.c \
187 jdinput.c \
188 jdmainct.c \
189 jdmarker.c \
190 jdmaster.c \
191 jdmerge.c \
192 jdphuff.c \
193 jdpostct.c \
194 jdsample.c \
195 jdtrans.c \
196 jerror.c \
197 jfdctflt.c \
198 jfdctfst.c \
199 jfdctint.c \
200 jidctflt.c \
201 jidctfst.c \
202 jidctint.c \
203 jidctred.c \
204 jquant1.c \
205 jquant2.c \
206 jutils.c \
207 jmemmgr.c \
208 jmemnobs.c \
209 $(NULL)
210 endif # not wince
211 endif # not OFFICIAL_BUILD
213 #-----------------------------------------------------------------------------
214 # third_party/libgd
216 ifneq ($(OFFICIAL_BUILD),1)
217 ifneq ($(OS),wince)
218 THIRD_PARTY_VPATH += \
219 third_party/libgd \
220 $(NULL)
222 LIBGD_CSRCS += \
223 gd.c \
224 gdfx.c \
225 gd_security.c \
226 gd_gd.c \
227 gd_gd2.c \
228 gd_io.c \
229 gd_io_dp.c \
230 gd_gif_in.c \
231 gd_gif_out.c \
232 gd_io_file.c \
233 gd_io_ss.c \
234 gd_jpeg.c \
235 gd_png.c \
236 gd_ss.c \
237 gd_topal.c \
238 gd_wbmp.c \
239 gdcache.c \
240 gdfontg.c \
241 gdfontl.c \
242 gdfontmb.c \
243 gdfonts.c \
244 gdfontt.c \
245 gdft.c \
246 gdhelpers.c \
247 gdkanji.c \
248 gdtables.c \
249 gdxpm.c \
250 wbmp.c \
251 $(NULL)
252 endif # not wince
253 endif # not OFFICIAL_BUILD
255 #-----------------------------------------------------------------------------
256 # third_party/jsoncpp
258 THIRD_PARTY_VPATH += \
259 third_party/jsoncpp \
260 $(NULL)
262 THIRD_PARTY_CPPSRCS += \
263 json_reader.cc \
264 json_value.cc \
265 json_writer.cc \
266 $(NULL)
268 #-----------------------------------------------------------------------------
269 # third_party/breakpad
271 ifeq ($(OS),win32)
272 THIRD_PARTY_VPATH += \
273 third_party/breakpad/src/client/windows/handler \
274 third_party/breakpad/src/client/windows/sender \
275 third_party/breakpad/src/common/windows \
276 $(NULL)
278 THIRD_PARTY_CPPSRCS += \
279 exception_handler.cc \
280 guid_string.cc \
281 crash_report_sender.cc \
282 http_upload.cc \
283 $(NULL)
286 FF_VPATH += \
287 base/common \
288 $(NULL)
290 FF_CPPSRCS += \
291 exception_handler_win32.cc \
292 $(NULL)
295 IE_VPATH += \
296 base/common \
297 $(NULL)
299 IE_CPPSRCS += \
300 exception_handler_win32.cc \
301 $(NULL)
304 NPAPI_VPATH += \
305 base/common \
306 $(NULL)
308 NPAPI_CPPSRCS += \
309 exception_handler_win32.cc \
310 $(NULL)
311 endif
313 #-----------------------------------------------------------------------------
314 # base/common
316 COMMON_VPATH += \
317 base/common \
318 installer \
319 $(NULL)
321 COMMON_M4SRCS += \
322 product_constants.h.m4 \
323 product_version.rc.m4 \
324 win32_msi.wxs.m4 \
325 wince_cab.inf.m4 \
326 $(NULL)
328 COMMON_CPPSRCS += \
329 $(NULL)
330 # WARNING: Think carefully before listing any non-third-party C/C++ files in
331 # COMMON_*SRCS. Such files only get built once per platform (not per browser),
332 # and BROWSER_* #defines are not obeyed. Instead, use FF_CPPSRCS and IE_CPPSRCS
333 # when possible.
334 # One important exception: unit-tested code is only built once per platform, so
335 # it should be listed in CPPSRCS. Thus it must not use any BROWSER_* #defines,
336 # directly or indirectly.
338 # TODO(cprince): investigate OS-specific sources (e.g. WIN32_CPPSRCS)
341 #-----------------------------------------------------------------------------
342 # base/firefox
344 FF_VPATH += \
345 base/common \
346 base/firefox \
347 $(NULL)
349 FF_M4SRCS += \
350 install.rdf.m4 \
351 $(NULL)
353 FF_IDLSRCS += \
354 base_interface_ff.idl \
355 $(NULL)
357 FF_CPPSRCS += \
358 base_class.cc \
359 base_class_test.cc \
360 dom_utils.cc \
361 file.cc \
362 file_posix.cc \
363 file_test.cc \
364 file_win32.cc \
365 html_event_monitor.cc \
366 html_event_monitor_ff.cc \
367 ipc_message_queue_null.cc \
368 http_utils.cc \
369 js_runner_ff.cc \
370 js_runner_ff_marshaling.cc \
371 js_runner_utils.cc \
372 js_types.cc \
373 message_queue.cc \
374 message_queue_ff.cc \
375 message_service.cc \
376 message_service_test.cc \
377 module.cc \
378 mutex.cc \
379 name_value_table.cc \
380 ns_file_utils.cc \
381 paths.cc \
382 paths_ff.cc \
383 permissions_db.cc \
384 png_utils.cc \
385 security_model.cc \
386 security_model_test.cc \
387 serialization.cc \
388 serialization_test.cc \
389 shortcut_table.cc \
390 sqlite_wrapper.cc \
391 stopwatch.cc \
392 stopwatch_ff.cc \
393 string16.cc \
394 string_utils.cc \
395 string_utils_test.cc \
396 thread_locals.cc \
397 url_utils.cc \
398 url_utils_ff.cc \
399 url_utils_test.cc \
400 xpcom_dynamic_load.cc \
401 $(NULL)
403 #-----------------------------------------------------------------------------
404 # base/ie
406 IE_VPATH += \
407 base/common \
408 base/ie \
409 $(NULL)
411 IE_M4SRCS += \
412 bho.rgs.m4 \
413 interfaces.idl.m4 \
414 module.rgs.m4 \
415 $(NULL)
417 IE_IDLSRCS += \
418 interfaces.idl \
419 $(NULL)
421 IE_CPPSRCS += \
422 activex_utils.cc \
423 base_class.cc \
424 base_class_test.cc \
425 bho.cc \
426 detect_version_collision.cc \
427 file.cc \
428 file_test.cc \
429 file_win32.cc \
430 html_event_monitor.cc \
431 html_event_monitor_ie.cc \
432 ipc_message_queue_win32.cc \
433 http_utils.cc \
434 ie_version.cc \
435 js_runner_ie.cc \
436 js_runner_utils.cc \
437 js_types.cc \
438 message_queue.cc \
439 message_queue_ie.cc \
440 message_service.cc \
441 message_service_test.cc \
442 module.cc \
443 module_wrapper.cc \
444 mutex.cc \
445 name_value_table.cc \
446 paths.cc \
447 paths_ie.cc \
448 permissions_db.cc \
449 png_utils.cc \
450 security_model.cc \
451 security_model_test.cc \
452 serialization.cc \
453 serialization_test.cc \
454 shortcut_table.cc \
455 sqlite_wrapper.cc \
456 stopwatch.cc \
457 stopwatch_ie.cc \
458 string16.cc \
459 string_utils.cc \
460 string_utils_test.cc \
461 thread_locals.cc \
462 url_utils.cc \
463 url_utils_ie.cc \
464 url_utils_test.cc \
465 vista_utils.cc \
466 $(NULL)
468 IE_LINK_EXTRAS += \
469 $(IE_OUTDIR)/module.res \
470 $(NULL)
472 #-----------------------------------------------------------------------------
473 # base/iemobile
475 IEMOBILE_VPATH += \
476 base/common \
477 base/ie \
478 $(NULL)
480 IEMOBILE_M4SRCS += \
481 bho.rgs.m4 \
482 interfaces.idl.m4 \
483 module.rgs.m4 \
484 $(NULL)
486 IEMOBILE_IDLSRCS += \
487 interfaces.idl \
488 $(NULL)
490 IEMOBILE_CPPSRCS += \
491 activex_utils.cc \
492 base_class.cc \
493 bho.cc \
494 detect_version_collision.cc \
495 file.cc \
496 file_test.cc \
497 file_wince.cc \
498 ipc_message_queue_null.cc \
499 http_utils.cc \
500 js_runner_ie.cc \
501 js_runner_utils.cc \
502 js_types.cc \
503 message_queue.cc \
504 message_queue_ie.cc \
505 message_service.cc \
506 message_service_test.cc \
507 module.cc \
508 module_wrapper.cc \
509 mutex.cc \
510 name_value_table.cc \
511 paths.cc \
512 paths_ie.cc \
513 permissions_db.cc \
514 security_model.cc \
515 security_model_test.cc \
516 serialization.cc \
517 serialization_test.cc \
518 shortcut_table.cc \
519 sqlite_wrapper.cc \
520 stopwatch.cc \
521 stopwatch_ie.cc \
522 string16.cc \
523 string_utils.cc \
524 string_utils_test.cc \
525 thread_locals.cc \
526 url_utils.cc \
527 url_utils_ie.cc \
528 url_utils_test.cc \
529 vista_utils.cc \
530 wince_compatibility.cc \
531 $(NULL)
533 IEMOBILE_LINK_EXTRAS += \
534 $(IE_OUTDIR)/module.res \
535 $(NULL)
537 #-----------------------------------------------------------------------------
538 # base/npapi
540 NPAPI_VPATH += \
541 base/common \
542 base/npapi \
543 base/ie \
544 $(NULL)
546 NPAPI_M4SRCS += \
547 $(NULL)
549 NPAPI_IDLSRCS += \
550 $(NULL)
552 NPAPI_CPPSRCS += \
553 activex_utils.cc \
554 base_class.cc \
555 base_class_test.cc \
556 browser_utils.cc \
557 file.cc \
558 file_win32.cc \
559 file_test.cc \
560 html_event_monitor.cc \
561 html_event_monitor_np.cc \
562 ipc_message_queue_null.cc \
563 http_utils.cc \
564 ie_version.cc \
565 js_runner_np.cc \
566 js_runner_utils.cc \
567 js_types.cc \
568 message_queue.cc \
569 message_queue_ie.cc \
570 message_service.cc \
571 message_service_test.cc \
572 module.cc \
573 mutex.cc \
574 name_value_table.cc \
575 np_utils.cc \
576 npn_bindings.cc \
577 npp_bindings.cc \
578 paths.cc \
579 paths_np.cc \
580 permissions_db.cc \
581 plugin.cc \
582 png_utils.cc \
583 security_model.cc \
584 security_model_test.cc \
585 serialization.cc \
586 serialization_test.cc \
587 shortcut_table.cc \
588 sqlite_wrapper.cc \
589 stopwatch.cc \
590 stopwatch_ie.cc \
591 string16.cc \
592 string_utils.cc \
593 string_utils_test.cc \
594 thread_locals.cc \
595 url_utils.cc \
596 url_utils_ie.cc \
597 url_utils_test.cc \
598 vista_utils.cc \
599 $(NULL)
601 # TODO(mpcomplete): use WIN32_LINK_EXTRAS here.
602 ifeq ($(OS),win32)
603 NPAPI_LINK_EXTRAS += \
604 $(NPAPI_OUTDIR)/module.res \
605 $(NULL)
606 endif
608 #-----------------------------------------------------------------------------
609 # console/firefox
611 FF_VPATH += \
612 console/common \
613 console/firefox \
614 $(NULL)
616 FF_M4SRCS += \
617 console.idl.m4 \
618 $(NULL)
620 FF_IDLSRCS += \
621 console.idl \
622 $(NULL)
624 # console/common
625 FF_CPPSRCS += \
626 console.cc \
627 js_callback_logging_backend.cc \
628 $(NULL)
630 # console/firefox
631 FF_CPPSRCS += \
632 console_ff.cc \
633 $(NULL)
635 #-----------------------------------------------------------------------------
636 # console/ie
638 IE_VPATH += \
639 console/common \
640 console/ie \
641 $(NULL)
643 IE_IDLSRCS += \
644 console.idl \
645 $(NULL)
647 # console/common
648 IE_CPPSRCS += \
649 console.cc \
650 js_callback_logging_backend.cc \
651 $(NULL)
653 # console/ie
654 IE_CPPSRCS += \
655 console_ie.cc \
656 $(NULL)
658 #-----------------------------------------------------------------------------
659 # console/iemobile
661 IEMOBILE_VPATH += \
662 console\common \
663 console\ie \
664 $(NULL)
666 IEMOBILE_IDLSRCS += \
667 console.idl \
668 $(NULL)
670 # console/common
671 IEMOBILE_CPPSRCS += \
672 console.cc \
673 js_callback_logging_backend.cc \
674 $(NULL)
676 # console/ie
677 IEMOBILE_CPPSRCS += \
678 console_ie.cc \
679 $(NULL)
681 #-----------------------------------------------------------------------------
682 # database/firefox
684 FF_VPATH += \
685 database/common \
686 database/firefox \
687 $(NULL)
689 FF_M4SRCS += \
690 database.idl.m4 \
691 $(NULL)
693 FF_IDLSRCS += \
694 database.idl \
695 $(NULL)
697 FF_CPPSRCS += \
698 database.cc \
699 database_utils.cc \
700 result_set.cc \
701 $(NULL)
703 #-----------------------------------------------------------------------------
704 # database/ie
706 IE_VPATH += \
707 database/common \
708 database/ie \
709 $(NULL)
711 IE_IDLSRCS += \
712 database.idl \
713 $(NULL)
715 IE_CPPSRCS += \
716 database.cc \
717 database_utils.cc \
718 result_set.cc \
719 $(NULL)
721 #-----------------------------------------------------------------------------
722 # database/iemobile
724 IEMOBILE_VPATH += \
725 database/common \
726 database/ie \
727 $(NULL)
729 IEMOBILE_IDLSRCS += \
730 database.idl \
731 $(NULL)
733 IEMOBILE_CPPSRCS += \
734 database.cc \
735 database_utils.cc \
736 result_set.cc \
737 $(NULL)
739 #-----------------------------------------------------------------------------
740 # database/npapi
742 NPAPI_VPATH += \
743 database/common \
744 database/npapi \
745 $(NULL)
747 NPAPI_IDLSRCS += \
748 $(NULL)
750 NPAPI_CPPSRCS += \
751 database.cc \
752 database_utils.cc \
753 result_set.cc \
754 $(NULL)
756 #-----------------------------------------------------------------------------
757 # desktop
759 FF_VPATH += \
760 desktop \
761 $(NULL)
763 FF_M4SRCS += \
764 desktop_ff.idl.m4 \
765 $(NULL)
767 FF_IDLSRCS += \
768 desktop_ff.idl \
769 $(NULL)
771 FF_CPPSRCS += \
772 desktop.cc \
773 desktop_utils_linux.cc \
774 desktop_utils_osx.cc \
775 desktop_utils_win32.cc \
776 $(NULL)
778 IE_VPATH += \
779 desktop \
780 $(NULL)
782 IEMOBILE_VPATH += \
783 desktop \
784 $(NULL)
786 IE_IDLSRCS += \
787 desktop_ie.idl \
788 $(NULL)
790 IEMOBILE_IDLSRCS += \
791 desktop_ie.idl \
792 $(NULL)
794 IE_CPPSRCS += \
795 desktop.cc \
796 desktop_utils_win32.cc \
797 $(NULL)
799 NPAPI_VPATH += \
800 desktop \
801 $(NULL)
803 NPAPI_IDLSRCS += \
804 $(NULL)
806 NPAPI_CPPSRCS += \
807 $(NULL)
809 #-----------------------------------------------------------------------------
810 # test
812 ifeq ($(MODE),dbg)
814 SHARED_VPATH += \
815 cctests \
816 $(NULL)
818 SHARED_CPPSRCS += \
819 test.cc \
820 $(NULL)
822 endif
824 #-----------------------------------------------------------------------------
825 # ui/generated
827 # Anything with the _I18N suffix will be expanded for each language in
828 # I18N_LANGS
830 I18N_LANGS += \
831 en-US \
832 $(NULL)
834 # ui/generated is not specified here, because it's included in the generated
835 # name for _I18N source files.
836 COMMON_VPATH += \
837 $(NULL)
839 COMMON_M4SRCS_I18N += \
840 permissions_dialog.html.m4 \
841 settings_dialog.html.m4 \
842 shortcuts_dialog.html.m4 \
843 $(NULL)
845 FF_VPATH += \
846 $(NULL)
848 FF_M4SRCS_I18N += \
849 i18n.dtd.m4 \
850 $(NULL)
852 IE_VPATH += \
853 ui/generated \
854 $(NULL)
856 IE_M4SRCS += \
857 ui_html.rc.m4 \
858 $(NULL)
860 IEMOBILE_VPATH += \
861 ui/generated \
862 $(NULL)
864 IEMOBILE_M4SRCS += \
865 ui_html.rc.m4 \
866 $(NULL)
868 #-----------------------------------------------------------------------------
869 # ui/firefox
871 FF_VPATH += \
872 ui/common \
873 ui/firefox \
874 $(NULL)
876 FF_M4SRCS += \
877 browser-overlay.js.m4 \
878 browser-overlay.xul.m4 \
879 chrome.manifest.m4 \
880 $(NULL)
882 FF_IDLSRCS += \
883 ui_utils.idl \
884 $(NULL)
886 FF_CPPSRCS += \
887 html_dialog.cc \
888 permissions_dialog.cc \
889 settings_dialog.cc \
890 ui_utils.cc \
891 $(NULL)
893 #-----------------------------------------------------------------------------
894 # ui/ie
896 IE_VPATH += \
897 ui/common \
898 ui/ie \
899 $(NULL)
901 IE_M4SRCS += \
902 ui_resources.rc.m4 \
903 tools_menu_item.rgs.m4 \
904 $(NULL)
906 IE_IDLSRCS += \
907 html_dialog_host.idl \
908 $(NULL)
910 IE_CPPSRCS += \
911 html_dialog.cc \
912 html_dialog_host.cc \
913 permissions_dialog.cc \
914 settings_dialog.cc \
915 tools_menu_item.cc \
916 $(NULL)
918 IE_LINK_EXTRAS += \
919 $(IE_OUTDIR)/ui_resources.res \
920 $(NULL)
922 #-----------------------------------------------------------------------------
923 # ui/iemobile
925 IEMOBILE_VPATH += \
926 ui/common \
927 ui/ie \
928 $(NULL)
930 IEMOBILE_M4SRCS += \
931 ui_resources.rc.m4 \
932 html_dialog_bridge_iemobile.rgs.m4 \
933 tools_menu_item.rgs.m4 \
934 $(NULL)
936 IEMOBILE_IDLSRCS += \
937 html_dialog_host.idl \
938 html_dialog_host_iemobile.idl \
939 html_dialog_bridge_iemobile.idl \
940 $(NULL)
942 IEMOBILE_CPPSRCS += \
943 html_dialog.cc \
944 html_dialog_host_iemobile.cc \
945 permissions_dialog.cc \
946 html_dialog_bridge_iemobile.cc \
947 settings_dialog.cc \
948 tools_menu_item.cc \
949 $(NULL)
951 IEMOBILE_LINK_EXTRAS += \
952 $(IE_OUTDIR)/ui_resources.res \
953 $(NULL)
955 #-----------------------------------------------------------------------------
956 # ui/npapi
958 NPAPI_VPATH += \
959 ui/common \
960 $(NULL)
962 NPAPI_IDLSRCS += \
963 $(NULL)
965 NPAPI_CPPSRCS += \
966 html_dialog.cc \
967 permissions_dialog.cc \
968 settings_dialog.cc \
969 $(NULL)
971 #-----------------------------------------------------------------------------
972 # workerpool/firefox
974 FF_VPATH += \
975 workerpool/common \
976 workerpool/firefox \
977 $(NULL)
979 FF_M4SRCS += \
980 workerpool.idl.m4 \
981 $(NULL)
983 FF_IDLSRCS += \
984 workerpool.idl \
985 $(NULL)
987 FF_CPPSRCS += \
988 workerpool.cc \
989 workerpool_utils.cc \
990 $(NULL)
992 #-----------------------------------------------------------------------------
993 # workerpool/ie
995 IE_VPATH += \
996 workerpool/common \
997 workerpool/ie \
998 $(NULL)
1000 IE_IDLSRCS += \
1001 workerpool.idl \
1002 $(NULL)
1004 IE_CPPSRCS += \
1005 workerpool.cc \
1006 workerpool_utils.cc \
1007 $(NULL)
1009 #-----------------------------------------------------------------------------
1010 # workerpool/iemobile
1012 IEMOBILE_VPATH += \
1013 workerpool/common \
1014 workerpool/ie \
1015 $(NULL)
1017 IEMOBILE_IDLSRCS += \
1018 workerpool.idl \
1019 $(NULL)
1021 IEMOBILE_CPPSRCS += \
1022 workerpool.cc \
1023 workerpool_utils.cc \
1024 $(NULL)
1026 #-----------------------------------------------------------------------------
1027 # workerpool/npapi
1029 NPAPI_VPATH += \
1030 workerpool/common \
1031 workerpool/npapi \
1032 $(NULL)
1034 NPAPI_CPPSRCS += \
1035 workerpool.cc \
1036 workerpool_utils.cc \
1037 $(NULL)
1039 #-----------------------------------------------------------------------------
1040 # timer
1042 FF_VPATH += \
1043 timer\
1044 $(NULL)
1046 FF_IDLSRCS += \
1047 timer_ff.idl \
1048 $(NULL)
1050 FF_CPPSRCS += \
1051 timer.cc \
1052 $(NULL)
1054 IE_VPATH += \
1055 timer \
1056 $(NULL)
1058 IE_IDLSRCS += \
1059 timer_ie.idl \
1060 $(NULL)
1062 IE_CPPSRCS += \
1063 timer.cc \
1064 $(NULL)
1066 IEMOBILE_VPATH += \
1067 timer \
1068 $(NULL)
1070 IEMOBILE_IDLSRCS += \
1071 timer_ie.idl \
1072 $(NULL)
1074 IEMOBILE_CPPSRCS += \
1075 timer.cc \
1076 $(NULL)
1078 #-----------------------------------------------------------------------------
1079 # localserver/ff
1081 FF_VPATH += \
1082 base/common \
1083 localserver/common \
1084 localserver/firefox \
1085 $(NULL)
1087 FF_M4SRCS += \
1088 localserver.idl.m4 \
1089 $(NULL)
1091 FF_IDLSRCS += \
1092 localserver.idl \
1093 $(NULL)
1095 # localserver/common
1096 FF_CPPSRCS += \
1097 blob_store.cc \
1098 capture_task.cc \
1099 file_store.cc \
1100 http_constants.cc \
1101 http_cookies.cc \
1102 localserver.cc \
1103 localserver_db.cc \
1104 managed_resource_store.cc \
1105 manifest.cc \
1106 name_value_table_test.cc \
1107 permissions_db_test.cc \
1108 resource_store.cc \
1109 sqlite_wrapper_test.cc \
1110 update_task.cc \
1111 $(NULL)
1113 # localserver/firefox
1114 FF_CPPSRCS += \
1115 async_task_ff.cc \
1116 cache_intercept.cc \
1117 file_submitter_ff.cc \
1118 http_request_ff.cc \
1119 localserver_ff.cc \
1120 managed_resource_store_ff.cc \
1121 resource_store_ff.cc \
1122 update_task_ff.cc \
1123 $(NULL)
1125 #-----------------------------------------------------------------------------
1126 # localserver/ie
1128 IE_VPATH += \
1129 base/common \
1130 localserver/common \
1131 localserver/ie \
1132 $(NULL)
1134 IE_IDLSRCS += \
1135 localserver.idl \
1136 $(NULL)
1138 # localserver/common
1139 IE_CPPSRCS += \
1140 blob_store.cc \
1141 capture_task.cc \
1142 file_store.cc \
1143 http_constants.cc \
1144 http_cookies.cc \
1145 localserver.cc \
1146 localserver_db.cc \
1147 managed_resource_store.cc \
1148 manifest.cc \
1149 name_value_table_test.cc \
1150 permissions_db_test.cc \
1151 resource_store.cc \
1152 sqlite_wrapper_test.cc \
1153 update_task.cc \
1154 $(NULL)
1156 # localserver/ie
1157 IE_CPPSRCS += \
1158 async_task_ie.cc \
1159 file_submit_behavior.cc \
1160 file_submitter_ie.cc \
1161 http_handler_ie.cc \
1162 http_request_ie.cc \
1163 localserver_ie.cc \
1164 managed_resource_store_ie.cc \
1165 resource_store_ie.cc \
1166 update_task_ie.cc \
1167 urlmon_utils.cc \
1168 $(NULL)
1170 #-----------------------------------------------------------------------------
1171 # localserver/iemobile
1173 IEMOBILE_VPATH += \
1174 base/common \
1175 localserver/common \
1176 localserver/ie \
1177 $(NULL)
1179 IEMOBILE_IDLSRCS += \
1180 localserver.idl \
1181 $(NULL)
1183 # localserver/common
1184 IEMOBILE_CPPSRCS += \
1185 blob_store.cc \
1186 capture_task.cc \
1187 file_store.cc \
1188 http_constants.cc \
1189 http_cookies.cc \
1190 localserver.cc \
1191 localserver_db.cc \
1192 managed_resource_store.cc \
1193 manifest.cc \
1194 name_value_table_test.cc \
1195 permissions_db_test.cc \
1196 resource_store.cc \
1197 sqlite_wrapper_test.cc \
1198 update_task.cc \
1199 $(NULL)
1201 # localserver/iemobile
1202 IEMOBILE_CPPSRCS += \
1203 async_task_ie.cc \
1204 http_handler_ie.cc \
1205 http_request_ie.cc \
1206 localserver_ie.cc \
1207 managed_resource_store_ie.cc \
1208 resource_store_ie.cc \
1209 update_task_ie.cc \
1210 urlmon_utils.cc \
1211 $(NULL)
1213 #-----------------------------------------------------------------------------
1214 # localserver/npapi
1216 NPAPI_VPATH += \
1217 base/common \
1218 localserver/common \
1219 localserver/npapi \
1220 localserver/ie \
1221 $(NULL)
1223 NPAPI_M4SRCS += \
1224 $(NULL)
1226 NPAPI_IDLSRCS += \
1227 $(NULL)
1229 NPAPI_CPPSRCS += \
1230 $(NULL)
1232 # localserver/common
1233 NPAPI_CPPSRCS += \
1234 blob_store.cc \
1235 capture_task.cc \
1236 file_store.cc \
1237 http_constants.cc \
1238 http_cookies.cc \
1239 localserver.cc \
1240 localserver_db.cc \
1241 managed_resource_store.cc \
1242 manifest.cc \
1243 name_value_table_test.cc \
1244 permissions_db_test.cc \
1245 resource_store.cc \
1246 sqlite_wrapper_test.cc \
1247 update_task.cc \
1248 $(NULL)
1250 # localserver/npapi
1251 NPAPI_CPPSRCS += \
1252 async_task_np.cc \
1253 file_submitter_np.cc \
1254 http_handler_ie.cc \
1255 http_request_ie.cc \
1256 localserver_np.cc \
1257 managed_resource_store_np.cc \
1258 update_task_np.cc \
1259 urlmon_utils.cc \
1260 resource_store_np.cc \
1261 $(NULL)
1263 #-----------------------------------------------------------------------------
1264 # httprequest/ff
1266 FF_VPATH += \
1267 httprequest/firefox \
1268 $(NULL)
1270 FF_M4SRCS += \
1271 httprequest.idl.m4 \
1272 $(NULL)
1274 FF_IDLSRCS += \
1275 httprequest.idl \
1276 $(NULL)
1278 FF_CPPSRCS += \
1279 httprequest_ff.cc \
1280 $(NULL)
1282 #-----------------------------------------------------------------------------
1283 # httprequest/ie
1285 IE_VPATH += \
1286 httprequest/ie \
1287 $(NULL)
1289 IE_IDLSRCS += \
1290 httprequest.idl \
1291 $(NULL)
1293 IE_CPPSRCS += \
1294 httprequest_ie.cc \
1295 $(NULL)
1297 #-----------------------------------------------------------------------------
1298 # httprequest/iemobile
1300 IEMOBILE_VPATH += \
1301 httprequest/ie \
1302 $(NULL)
1304 IEMOBILE_IDLSRCS += \
1305 httprequest.idl \
1306 $(NULL)
1308 IEMOBILE_CPPSRCS += \
1309 httprequest_ie.cc \
1310 $(NULL)
1312 #-----------------------------------------------------------------------------
1313 # blob
1315 ifneq ($(OFFICIAL_BUILD),1)
1316 FF_VPATH += \
1317 blob \
1318 $(NULL)
1320 FF_IDLSRCS += \
1321 blob_ff.idl \
1322 $(NULL)
1324 FF_CPPSRCS += \
1325 blob_ff.cc \
1326 buffer_blob.cc \
1327 file_blob.cc \
1328 $(NULL)
1330 IE_VPATH += \
1331 blob \
1332 $(NULL)
1334 IE_IDLSRCS += \
1335 blob_ie.idl \
1336 $(NULL)
1338 IE_CPPSRCS += \
1339 blob_ie.cc \
1340 buffer_blob.cc \
1341 file_blob.cc \
1342 $(NULL)
1344 IEMOBILE_VPATH += \
1345 blob \
1346 $(NULL)
1348 IEMOBILE_IDLSRCS += \
1349 blob_ie.idl \
1350 $(NULL)
1352 IEMOBILE_CPPSRCS += \
1353 blob_ie.cc \
1354 buffer_blob.cc \
1355 file_blob.cc \
1356 $(NULL)
1357 endif
1359 #-----------------------------------------------------------------------------
1360 # image/ff
1362 ifneq ($(OFFICIAL_BUILD),1)
1363 FF_VPATH += \
1364 image/common \
1365 image/firefox \
1366 $(NULL)
1368 FF_M4SRCS += \
1369 image.idl.m4 \
1370 $(NULL)
1372 FF_IDLSRCS += \
1373 image.idl \
1374 $(NULL)
1376 FF_CPPSRCS += \
1377 image.cc \
1378 image_ff.cc \
1379 image_loader_ff.cc \
1380 $(NULL)
1382 IE_VPATH += \
1383 image/common \
1384 image/ie \
1385 $(NULL)
1387 IE_IDLSRCS += \
1388 image.idl \
1389 $(NULL)
1391 IE_CPPSRCS += \
1392 image.cc \
1393 image_ie.cc \
1394 image_loader_ie.cc \
1395 $(NULL)
1396 endif
1398 #-----------------------------------------------------------------------------
1399 # factory/ff
1401 FF_VPATH += \
1402 factory/common \
1403 factory/firefox \
1404 $(NULL)
1406 FF_IDLSRCS += \
1407 factory.idl \
1408 $(NULL)
1410 FF_CPPSRCS += \
1411 factory.cc \
1412 factory_utils.cc \
1413 $(NULL)
1415 #-----------------------------------------------------------------------------
1416 # factory/ie
1418 IE_VPATH += \
1419 factory/common \
1420 factory/ie \
1421 $(NULL)
1423 IE_M4SRCS += \
1424 factory.rgs.m4 \
1425 $(NULL)
1427 IE_IDLSRCS += \
1428 factory.idl \
1429 $(NULL)
1431 IE_CPPSRCS += \
1432 factory.cc \
1433 factory_utils.cc \
1434 $(NULL)
1436 #-----------------------------------------------------------------------------
1437 # factory/iemobile
1439 IEMOBILE_VPATH += \
1440 factory/common \
1441 factory/ie \
1442 $(NULL)
1444 IEMOBILE_M4SRCS += \
1445 factory.rgs.m4 \
1446 $(NULL)
1448 IEMOBILE_IDLSRCS += \
1449 factory.idl \
1450 $(NULL)
1452 IEMOBILE_CPPSRCS += \
1453 factory.cc \
1454 factory_utils.cc \
1455 $(NULL)
1457 #-----------------------------------------------------------------------------
1458 # factory/npapi
1460 NPAPI_VPATH += \
1461 factory/common \
1462 factory/npapi \
1463 $(NULL)
1465 NPAPI_IDLSRCS += \
1466 $(NULL)
1468 NPAPI_CPPSRCS += \
1469 factory.cc \
1470 factory_wrapper.cc \
1471 factory_utils.cc \
1472 $(NULL)
1474 #-----------------------------------------------------------------------------
1475 # installer/iemobile
1477 IEMOBILE_VPATH += \
1478 installer/iemobile \
1479 base/common \
1480 $(NULL)
1482 IEMOBILE_M4SRCS += \
1483 setup.rc.m4 \
1484 $(NULL)
1486 IEMOBILE_SETUP_CPPSRCS += \
1487 process_restarter.cc \
1488 setup.cc \
1489 $(NULL)
1491 IEMOBILE_SETUP_LINK_EXTRAS += \
1492 $(IE_OUTDIR)/setup.res \
1493 $(NULL)
1495 include tools/rules.mk