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/jsoncpp
156 THIRD_PARTY_VPATH
+= \
157 third_party
/jsoncpp \
160 THIRD_PARTY_CPPSRCS
+= \
166 #-----------------------------------------------------------------------------
167 # third_party/breakpad
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 \
176 THIRD_PARTY_CPPSRCS
+= \
177 exception_handler.
cc \
179 crash_report_sender.
cc \
189 exception_handler_win32.
cc \
198 exception_handler_win32.
cc \
202 #-----------------------------------------------------------------------------
211 product_constants.h.m4 \
212 product_version.rc.m4 \
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
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 #-----------------------------------------------------------------------------
242 base_interface_ff.idl \
255 html_event_monitor.
cc \
256 html_event_monitor_ff.
cc \
259 js_runner_ff_marshaling.
cc \
263 message_queue_ff.
cc \
265 message_service_test.
cc \
268 name_value_table.
cc \
275 security_model_test.
cc \
282 string_utils_test.
cc \
287 xpcom_dynamic_load.
cc \
290 #-----------------------------------------------------------------------------
313 detect_version_collision.
cc \
317 html_event_monitor.
cc \
318 html_event_monitor_ie.
cc \
325 message_queue_ie.
cc \
327 message_service_test.
cc \
331 name_value_table.
cc \
337 security_model_test.
cc \
344 string_utils_test.
cc \
353 $(IE_OUTDIR
)/module.res \
356 #-----------------------------------------------------------------------------
370 IEMOBILE_IDLSRCS
+= \
374 IEMOBILE_CPPSRCS
+= \
378 detect_version_collision.
cc \
382 html_event_monitor.
cc \
383 html_event_monitor_ie.
cc \
389 message_queue_ie.
cc \
391 message_service_test.
cc \
395 name_value_table.
cc \
400 security_model_test.
cc \
407 string_utils_test.
cc \
413 wince_compatibility.
cc \
416 IEMOBILE_LINK_EXTRAS
+= \
417 $(IE_OUTDIR
)/module.res \
420 #-----------------------------------------------------------------------------
441 html_event_monitor.
cc \
442 html_event_monitor_np.
cc \
449 name_value_table.
cc \
459 security_model_test.
cc \
466 string_utils_test.
cc \
474 # TODO(mpcomplete): use WIN32_LINK_EXTRAS here.
476 NPAPI_LINK_EXTRAS
+= \
477 $(NPAPI_OUTDIR
)/module.res \
481 #-----------------------------------------------------------------------------
500 js_callback_logging_backend.
cc \
508 #-----------------------------------------------------------------------------
523 js_callback_logging_backend.
cc \
531 #-----------------------------------------------------------------------------
539 IEMOBILE_IDLSRCS
+= \
544 IEMOBILE_CPPSRCS
+= \
546 js_callback_logging_backend.
cc \
550 IEMOBILE_CPPSRCS
+= \
554 #-----------------------------------------------------------------------------
576 #-----------------------------------------------------------------------------
594 #-----------------------------------------------------------------------------
602 IEMOBILE_IDLSRCS
+= \
606 IEMOBILE_CPPSRCS
+= \
612 #-----------------------------------------------------------------------------
629 #-----------------------------------------------------------------------------
656 IEMOBILE_IDLSRCS
+= \
674 #-----------------------------------------------------------------------------
711 IEMOBILE_IDLSRCS
+= \
715 IEMOBILE_CPPSRCS
+= \
721 #-----------------------------------------------------------------------------
724 # Anything with the _I18N suffix will be expanded for each language in
731 # ui/generated is not specified here, because it's included in the generated
732 # name for _I18N source files.
736 COMMON_M4SRCS_I18N
+= \
737 permissions_dialog.html.m4 \
738 settings_dialog.html.m4 \
739 shortcuts_dialog.html.m4 \
765 #-----------------------------------------------------------------------------
774 browser-overlay.js.m4 \
775 browser-overlay.xul.m4 \
785 permissions_dialog.
cc \
790 #-----------------------------------------------------------------------------
800 tools_menu_item.rgs.m4 \
804 html_dialog_host.idl \
809 html_dialog_host.
cc \
810 permissions_dialog.
cc \
816 $(IE_OUTDIR
)/ui_resources.res \
819 #-----------------------------------------------------------------------------
829 tools_menu_item.rgs.m4 \
832 IEMOBILE_IDLSRCS
+= \
833 html_dialog_host.idl \
836 #-----------------------------------------------------------------------------
848 permissions_dialog.
cc \
852 #-----------------------------------------------------------------------------
870 workerpool_utils.
cc \
873 #-----------------------------------------------------------------------------
887 workerpool_utils.
cc \
890 #-----------------------------------------------------------------------------
891 # workerpool/iemobile
898 IEMOBILE_IDLSRCS
+= \
902 IEMOBILE_CPPSRCS
+= \
904 workerpool_utils.
cc \
907 #-----------------------------------------------------------------------------
917 workerpool_utils.
cc \
920 #-----------------------------------------------------------------------------
951 IEMOBILE_IDLSRCS
+= \
955 IEMOBILE_CPPSRCS
+= \
959 #-----------------------------------------------------------------------------
965 localserver
/firefox \
985 managed_resource_store.
cc \
987 name_value_table_test.
cc \
988 permissions_db_test.
cc \
990 sqlite_wrapper_test.
cc \
994 # localserver/firefox
998 file_submitter_ff.
cc \
1001 managed_resource_store_ff.
cc \
1002 resource_store_ff.
cc \
1006 #-----------------------------------------------------------------------------
1011 localserver
/common \
1019 # localserver/common
1028 managed_resource_store.
cc \
1030 name_value_table_test.
cc \
1031 permissions_db_test.
cc \
1033 sqlite_wrapper_test.
cc \
1040 file_submit_behavior.
cc \
1041 file_submitter_ie.
cc \
1042 http_handler_ie.
cc \
1043 http_request_ie.
cc \
1045 managed_resource_store_ie.
cc \
1046 resource_store_ie.
cc \
1051 #-----------------------------------------------------------------------------
1052 # localserver/iemobile
1056 localserver
/common \
1060 IEMOBILE_IDLSRCS
+= \
1064 # localserver/common
1065 IEMOBILE_CPPSRCS
+= \
1073 managed_resource_store.
cc \
1075 name_value_table_test.
cc \
1076 permissions_db_test.
cc \
1078 sqlite_wrapper_test.
cc \
1082 # localserver/iemobile
1083 IEMOBILE_CPPSRCS
+= \
1085 http_handler_ie.
cc \
1086 http_request_ie.
cc \
1088 managed_resource_store_ie.
cc \
1089 resource_store_ie.
cc \
1094 #-----------------------------------------------------------------------------
1098 httprequest
/firefox \
1109 #-----------------------------------------------------------------------------
1114 localserver
/common \
1127 # localserver/common
1130 localserver_db_stub.
cc \
1135 file_submitter_np.
cc \
1137 managed_resource_store_np.
cc \
1138 resource_store_np.
cc \
1141 #-----------------------------------------------------------------------------
1156 #-----------------------------------------------------------------------------
1157 # httprequest/iemobile
1163 IEMOBILE_IDLSRCS
+= \
1167 IEMOBILE_CPPSRCS
+= \
1171 #-----------------------------------------------------------------------------
1186 #-----------------------------------------------------------------------------
1201 #-----------------------------------------------------------------------------
1208 IEMOBILE_IDLSRCS
+= \
1212 #-----------------------------------------------------------------------------
1241 IEMOBILE_IDLSRCS
+= \
1244 IEMOBILE_CPPSRCS
+= \
1248 #-----------------------------------------------------------------------------
1265 #-----------------------------------------------------------------------------
1286 #-----------------------------------------------------------------------------
1294 IEMOBILE_M4SRCS
+= \
1298 IEMOBILE_IDLSRCS
+= \
1302 IEMOBILE_CPPSRCS
+= \
1307 #-----------------------------------------------------------------------------
1320 factory_wrapper.
cc \
1324 include tools
/rules.mk