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 \
98 #-----------------------------------------------------------------------------
101 # TODO(andreip): fix errors in zlib before building this for wince
103 THIRD_PARTY_VPATH
+= \
107 THIRD_PARTY_CSRCS
+= \
128 #-----------------------------------------------------------------------------
131 # TODO(andreip): fix errors in gzio.c for wince
133 THIRD_PARTY_VPATH
+= \
137 THIRD_PARTY_CSRCS
+= \
153 #-----------------------------------------------------------------------------
154 # third_party/libjpeg
156 ifneq ($(OFFICIAL_BUILD
),1)
158 THIRD_PARTY_VPATH
+= \
159 third_party
/libjpeg \
162 THIRD_PARTY_CSRCS
+= \
211 endif # not OFFICIAL_BUILD
213 #-----------------------------------------------------------------------------
216 ifneq ($(OFFICIAL_BUILD
),1)
218 THIRD_PARTY_VPATH
+= \
253 endif # not OFFICIAL_BUILD
255 #-----------------------------------------------------------------------------
256 # third_party/jsoncpp
258 THIRD_PARTY_VPATH
+= \
259 third_party
/jsoncpp \
262 THIRD_PARTY_CPPSRCS
+= \
268 #-----------------------------------------------------------------------------
269 # third_party/breakpad
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 \
278 THIRD_PARTY_CPPSRCS
+= \
279 exception_handler.
cc \
281 crash_report_sender.
cc \
291 exception_handler_win32.
cc \
300 exception_handler_win32.
cc \
309 exception_handler_win32.
cc \
313 #-----------------------------------------------------------------------------
322 product_constants.h.m4 \
323 product_version.rc.m4 \
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
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 #-----------------------------------------------------------------------------
354 base_interface_ff.idl \
365 html_event_monitor.
cc \
366 html_event_monitor_ff.
cc \
367 ipc_message_queue_null.
cc \
370 js_runner_ff_marshaling.
cc \
374 message_queue_ff.
cc \
376 message_service_test.
cc \
379 name_value_table.
cc \
386 security_model_test.
cc \
388 serialization_test.
cc \
395 string_utils_test.
cc \
400 xpcom_dynamic_load.
cc \
403 #-----------------------------------------------------------------------------
426 detect_version_collision.
cc \
430 html_event_monitor.
cc \
431 html_event_monitor_ie.
cc \
432 ipc_message_queue_win32.
cc \
439 message_queue_ie.
cc \
441 message_service_test.
cc \
445 name_value_table.
cc \
451 security_model_test.
cc \
453 serialization_test.
cc \
460 string_utils_test.
cc \
469 $(IE_OUTDIR
)/module.res \
472 #-----------------------------------------------------------------------------
486 IEMOBILE_IDLSRCS
+= \
490 IEMOBILE_CPPSRCS
+= \
494 detect_version_collision.
cc \
498 ipc_message_queue_null.
cc \
504 message_queue_ie.
cc \
506 message_service_test.
cc \
510 name_value_table.
cc \
515 security_model_test.
cc \
517 serialization_test.
cc \
524 string_utils_test.
cc \
530 wince_compatibility.
cc \
533 IEMOBILE_LINK_EXTRAS
+= \
534 $(IE_OUTDIR
)/module.res \
537 #-----------------------------------------------------------------------------
560 html_event_monitor.
cc \
561 html_event_monitor_np.
cc \
562 ipc_message_queue_null.
cc \
569 message_queue_ie.
cc \
571 message_service_test.
cc \
574 name_value_table.
cc \
584 security_model_test.
cc \
586 serialization_test.
cc \
593 string_utils_test.
cc \
601 # TODO(mpcomplete): use WIN32_LINK_EXTRAS here.
603 NPAPI_LINK_EXTRAS
+= \
604 $(NPAPI_OUTDIR
)/module.res \
608 #-----------------------------------------------------------------------------
627 js_callback_logging_backend.
cc \
635 #-----------------------------------------------------------------------------
650 js_callback_logging_backend.
cc \
658 #-----------------------------------------------------------------------------
666 IEMOBILE_IDLSRCS
+= \
671 IEMOBILE_CPPSRCS
+= \
673 js_callback_logging_backend.
cc \
677 IEMOBILE_CPPSRCS
+= \
681 #-----------------------------------------------------------------------------
703 #-----------------------------------------------------------------------------
721 #-----------------------------------------------------------------------------
729 IEMOBILE_IDLSRCS
+= \
733 IEMOBILE_CPPSRCS
+= \
739 #-----------------------------------------------------------------------------
756 #-----------------------------------------------------------------------------
773 desktop_utils_linux.
cc \
774 desktop_utils_osx.
cc \
775 desktop_utils_win32.
cc \
790 IEMOBILE_IDLSRCS
+= \
796 desktop_utils_win32.
cc \
809 #-----------------------------------------------------------------------------
824 #-----------------------------------------------------------------------------
827 # Anything with the _I18N suffix will be expanded for each language in
834 # ui/generated is not specified here, because it's included in the generated
835 # name for _I18N source files.
839 COMMON_M4SRCS_I18N
+= \
840 permissions_dialog.html.m4 \
841 settings_dialog.html.m4 \
842 shortcuts_dialog.html.m4 \
868 #-----------------------------------------------------------------------------
877 browser-overlay.js.m4 \
878 browser-overlay.xul.m4 \
888 permissions_dialog.
cc \
893 #-----------------------------------------------------------------------------
903 tools_menu_item.rgs.m4 \
907 html_dialog_host.idl \
912 html_dialog_host.
cc \
913 permissions_dialog.
cc \
919 $(IE_OUTDIR
)/ui_resources.res \
922 #-----------------------------------------------------------------------------
932 html_dialog_bridge_iemobile.rgs.m4 \
933 tools_menu_item.rgs.m4 \
936 IEMOBILE_IDLSRCS
+= \
937 html_dialog_host.idl \
938 html_dialog_host_iemobile.idl \
939 html_dialog_bridge_iemobile.idl \
942 IEMOBILE_CPPSRCS
+= \
944 html_dialog_host_iemobile.
cc \
945 permissions_dialog.
cc \
946 html_dialog_bridge_iemobile.
cc \
951 IEMOBILE_LINK_EXTRAS
+= \
952 $(IE_OUTDIR
)/ui_resources.res \
955 #-----------------------------------------------------------------------------
967 permissions_dialog.
cc \
971 #-----------------------------------------------------------------------------
989 workerpool_utils.
cc \
992 #-----------------------------------------------------------------------------
1006 workerpool_utils.
cc \
1009 #-----------------------------------------------------------------------------
1010 # workerpool/iemobile
1017 IEMOBILE_IDLSRCS
+= \
1021 IEMOBILE_CPPSRCS
+= \
1023 workerpool_utils.
cc \
1026 #-----------------------------------------------------------------------------
1036 workerpool_utils.
cc \
1039 #-----------------------------------------------------------------------------
1070 IEMOBILE_IDLSRCS
+= \
1074 IEMOBILE_CPPSRCS
+= \
1078 #-----------------------------------------------------------------------------
1083 localserver
/common \
1084 localserver
/firefox \
1088 localserver.idl.m4 \
1095 # localserver/common
1104 managed_resource_store.
cc \
1106 name_value_table_test.
cc \
1107 permissions_db_test.
cc \
1109 sqlite_wrapper_test.
cc \
1113 # localserver/firefox
1116 cache_intercept.
cc \
1117 file_submitter_ff.
cc \
1118 http_request_ff.
cc \
1120 managed_resource_store_ff.
cc \
1121 resource_store_ff.
cc \
1125 #-----------------------------------------------------------------------------
1130 localserver
/common \
1138 # localserver/common
1147 managed_resource_store.
cc \
1149 name_value_table_test.
cc \
1150 permissions_db_test.
cc \
1152 sqlite_wrapper_test.
cc \
1159 file_submit_behavior.
cc \
1160 file_submitter_ie.
cc \
1161 http_handler_ie.
cc \
1162 http_request_ie.
cc \
1164 managed_resource_store_ie.
cc \
1165 resource_store_ie.
cc \
1170 #-----------------------------------------------------------------------------
1171 # localserver/iemobile
1175 localserver
/common \
1179 IEMOBILE_IDLSRCS
+= \
1183 # localserver/common
1184 IEMOBILE_CPPSRCS
+= \
1192 managed_resource_store.
cc \
1194 name_value_table_test.
cc \
1195 permissions_db_test.
cc \
1197 sqlite_wrapper_test.
cc \
1201 # localserver/iemobile
1202 IEMOBILE_CPPSRCS
+= \
1204 http_handler_ie.
cc \
1205 http_request_ie.
cc \
1207 managed_resource_store_ie.
cc \
1208 resource_store_ie.
cc \
1213 #-----------------------------------------------------------------------------
1218 localserver
/common \
1232 # localserver/common
1241 managed_resource_store.
cc \
1243 name_value_table_test.
cc \
1244 permissions_db_test.
cc \
1246 sqlite_wrapper_test.
cc \
1253 file_submitter_np.
cc \
1254 http_handler_ie.
cc \
1255 http_request_ie.
cc \
1257 managed_resource_store_np.
cc \
1260 resource_store_np.
cc \
1263 #-----------------------------------------------------------------------------
1267 httprequest
/firefox \
1271 httprequest.idl.m4 \
1282 #-----------------------------------------------------------------------------
1297 #-----------------------------------------------------------------------------
1298 # httprequest/iemobile
1304 IEMOBILE_IDLSRCS
+= \
1308 IEMOBILE_CPPSRCS
+= \
1312 #-----------------------------------------------------------------------------
1315 ifneq ($(OFFICIAL_BUILD
),1)
1348 IEMOBILE_IDLSRCS
+= \
1352 IEMOBILE_CPPSRCS
+= \
1359 #-----------------------------------------------------------------------------
1362 ifneq ($(OFFICIAL_BUILD
),1)
1379 image_loader_ff.
cc \
1394 image_loader_ie.
cc \
1398 #-----------------------------------------------------------------------------
1415 #-----------------------------------------------------------------------------
1436 #-----------------------------------------------------------------------------
1444 IEMOBILE_M4SRCS
+= \
1448 IEMOBILE_IDLSRCS
+= \
1452 IEMOBILE_CPPSRCS
+= \
1457 #-----------------------------------------------------------------------------
1470 factory_wrapper.
cc \
1474 #-----------------------------------------------------------------------------
1475 # installer/iemobile
1478 installer
/iemobile \
1482 IEMOBILE_M4SRCS
+= \
1486 IEMOBILE_SETUP_CPPSRCS
+= \
1487 process_restarter.
cc \
1491 IEMOBILE_SETUP_LINK_EXTRAS
+= \
1492 $(IE_OUTDIR
)/setup.res \
1495 include tools
/rules.mk