1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
14 # The Original Code is the Mozilla platform.
16 # The Initial Developer of the Original Code is
17 # the Mozilla Foundation <http://www.mozilla.org/>.
18 # Portions created by the Initial Developer are Copyright (C) 2009
19 # the Initial Developer. All Rights Reserved.
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 2 or later (the "GPL"), or
25 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
26 # in which case the provisions of the GPL or the LGPL are applicable instead
27 # of those above. If you wish to allow use of your version of this file only
28 # under the terms of either the GPL or the LGPL, and not to allow others to
29 # use your version of this file under the terms of the MPL, indicate your
30 # decision by deleting the provisions above and replace them with the notice
31 # and other provisions required by the GPL or the LGPL. If you do not delete
32 # the provisions above, a recipient may use your version of this file under
33 # the terms of any one of the MPL, the GPL or the LGPL.
35 # ***** END LICENSE BLOCK *****
38 topsrcdir
= @top_srcdir@
42 include $(DEPTH
)/config
/autoconf.mk
44 OS_CXXFLAGS
:= $(filter-out -fshort-wchar
,$(OS_CXXFLAGS
))
46 LIBRARY_NAME
= chromium_s
51 ENABLE_CXX_EXCEPTIONS
= 1
54 ifndef MOZ_NATIVE_LIBEVENT
# {
56 $(srcdir)/src
/third_party
/libevent \
59 # message_pump_libevent.cc includes third_party/libevent/event.h,
60 # which we put in $(DIST), see export rule below
61 LOCAL_INCLUDES
+= -I
$(DIST
)
66 $(srcdir)/src
/base
/third_party
/dmg_fp \
67 $(srcdir)/src
/base
/third_party
/nspr \
68 $(srcdir)/src
/base
/third_party
/nss \
69 $(srcdir)/src
/chrome
/common \
74 $(srcdir)/src
/chrome
/common \
77 include $(topsrcdir
)/config
/config.mk
78 include $(topsrcdir
)/ipc
/chromium
/chromium-config.mk
97 message_pump_default.
cc \
113 thread_collision_warner.
cc \
120 child_process_host.
cc \
121 child_process_info.
cc \
128 ipc_channel_proxy.
cc \
131 ipc_message_utils.
cc \
132 ipc_sync_channel.
cc \
133 ipc_sync_message.
cc \
135 notification_service.
cc \
144 condition_variable_win.
cc \
149 file_version_info.
cc \
152 message_pump_win.
cc \
154 platform_file_win.
cc \
155 platform_thread_win.
cc \
156 process_util_win.
cc \
160 shared_memory_win.
cc \
162 sys_string_conversions_win.
cc \
163 system_monitor_win.
cc \
164 thread_local_storage_win.
cc \
165 thread_local_win.
cc \
167 waitable_event_watcher_win.
cc \
168 waitable_event_win.
cc \
170 chrome_paths_win.
cc \
172 process_watcher_win.
cc \
173 transport_dib_win.
cc \
182 condition_variable_posix.
cc \
183 debug_util_posix.
cc \
184 event_recorder_stubs.
cc \
185 file_descriptor_shuffle.
cc \
188 message_pump_libevent.
cc \
189 platform_file_posix.
cc \
190 platform_thread_posix.
cc \
192 process_util_posix.
cc \
194 shared_memory_posix.
cc \
196 system_monitor_posix.
cc \
198 thread_local_posix.
cc \
199 thread_local_storage_posix.
cc \
200 waitable_event_posix.
cc \
201 waitable_event_watcher_posix.
cc \
202 file_descriptor_set_posix.
cc \
203 ipc_channel_posix.
cc \
204 process_watcher_posix_sigchld.
cc \
214 file_version_info_mac.mm \
216 message_pump_mac.mm \
217 platform_thread_mac.mm \
218 process_util_mac.mm \
219 scoped_nsautorelease_pool.mm \
220 sys_string_conversions_mac.mm \
222 chrome_paths_mac.mm \
224 platform_util_mac.mm \
225 chrome_application_mac.mm \
234 mach_message_source_mac.
cc \
235 transport_dib_mac.
cc \
243 atomicops_internals_x86_gcc.
cc \
244 base_paths_linux.
cc \
247 file_version_info_linux.
cc \
249 process_util_linux.
cc \
253 ifdef MOZ_ENABLE_GTK2
255 message_pump_glib.
cc \
261 moc_message_pump_qt.
cc \
274 ifndef MOZ_NATIVE_LIBEVENT
# {
278 LOCAL_INCLUDES
+= -I
$(srcdir)/src
/third_party
/libevent
279 DEFINES
+= -DHAVE_CONFIG_H
298 LOCAL_INCLUDES
+= -I
$(srcdir)/src
/third_party
/libevent
/mac
303 LOCAL_INCLUDES
+= -I
$(srcdir)/src
/third_party
/libevent
/linux
314 ifneq (86,$(findstring 86,$(OS_TEST
))) # {
315 ifneq (arm
,$(findstring arm
,$(OS_TEST
))) # {
316 # Use mutex-backed atomics
317 CPPSRCS
+= atomicops_internals_mutex.
cc
321 OS_CXXFLAGS
+= $(TK_CFLAGS
)
323 include $(topsrcdir
)/config
/rules.mk
325 ifdef MOZ_NATIVE_LIBEVENT
# {
327 mkdir
-p
$(DIST
)/third_party
/libevent
328 echo
"#include <event.h>" > $(DIST
)/third_party
/libevent
/event.h