DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH     = @DEPTH@
topsrcdir = @top_srcdir@
srcdir    = @srcdir@
VPATH     = @srcdir@

include $(DEPTH)/config/autoconf.mk

OS_CXXFLAGS := $(filter-out -fshort-wchar,$(OS_CXXFLAGS))

LIBRARY_NAME = chromium_s
FORCE_STATIC_LIB = 1
LIBXUL_LIBRARY = 1
EXPORT_LIBRARY = 1

ACDEFINES =

ifndef MOZ_NATIVE_LIBEVENT # {
vpath %.c \
  $(srcdir)/src/third_party/libevent \
  $(NULL)
else # } else {
# message_pump_libevent.cc includes third_party/libevent/event.h,
# which we put in $(DIST), see export rule below
LOCAL_INCLUDES += -I$(DIST)
endif # }

vpath %.cc \
  $(srcdir)/src/base \
  $(srcdir)/src/chrome/common \
  $(NULL)

vpath %.mm \
  $(srcdir)/src/base \
  $(srcdir)/src/chrome/common \
  $(NULL)

include $(topsrcdir)/config/config.mk
include $(topsrcdir)/ipc/chromium/chromium-config.mk

CPPSRCS += \
  at_exit.cc \
  base_paths.cc \
  base_switches.cc \
  command_line.cc \
  debug_util.cc \
  file_path.cc \
  file_util.cc \
  histogram.cc \
  lazy_instance.cc \
  lock.cc \
  logging.cc \
  memory_debug.cc \
  message_loop.cc \
  message_pump_default.cc \
  non_thread_safe.cc \
  path_service.cc \
  pickle.cc \
  rand_util.cc \
  ref_counted.cc \
  revocable_store.cc \
  scoped_temp_dir.cc \
  simple_thread.cc \
  stats_table.cc \
  string_escape.cc \
  string_piece.cc \
  string_util.cc \
  system_monitor.cc \
  thread.cc \
  thread_collision_warner.cc \
  time.cc \
  timer.cc \
  trace_event.cc \
  tracked.cc \
  tracked_objects.cc \
  child_process.cc \
  child_process_host.cc \
  child_process_info.cc \
  child_thread.cc \
  chrome_counters.cc \
  chrome_paths.cc \
  chrome_switches.cc \
  debug_flags.cc \
  env_vars.cc \
  ipc_channel_proxy.cc \
  ipc_logging.cc \
  ipc_message.cc \
  ipc_message_utils.cc \
  ipc_sync_channel.cc \
  ipc_sync_message.cc \
  message_router.cc \
  notification_service.cc \
  task_queue.cc \
  $(NULL)

ifdef OS_WIN # {

CPPSRCS += \
  base_paths_win.cc \
  cpu.cc \
  condition_variable_win.cc \
  debug_util_win.cc \
  event_recorder.cc \
  file_util_win.cc \
  file_version_info.cc \
  lock_impl_win.cc \
  idle_timer.cc \
  message_pump_win.cc \
  object_watcher.cc \
  platform_file_win.cc \
  platform_thread_win.cc \
  process_util_win.cc \
  process_win.cc \
  rand_util_win.cc \
  registry.cc \
  shared_memory_win.cc \
  sys_info_win.cc \
  sys_string_conversions_win.cc \
  system_monitor_win.cc \
  thread_local_storage_win.cc \
  thread_local_win.cc \
  time_win.cc \
  waitable_event_watcher_win.cc \
  waitable_event_win.cc \
  win_util.cc \
  chrome_paths_win.cc \
  chrome_constants.cc \
  ipc_channel_win.cc \
  process_watcher_win.cc \
  transport_dib_win.cc \
  $(NULL)

endif # } OS_WIN

ifdef _MSC_VER # {

CPPSRCS += \
  debug_on_start.cc

endif # }

ifdef OS_POSIX # {

CPPSRCS += \
  condition_variable_posix.cc \
  debug_util_posix.cc \
  event_recorder_stubs.cc \
  file_descriptor_shuffle.cc \
  file_util_posix.cc \
  lock_impl_posix.cc \
  message_pump_libevent.cc \
  platform_file_posix.cc \
  platform_thread_posix.cc \
  process_posix.cc \
  process_util_posix.cc \
  rand_util_posix.cc \
  shared_memory_posix.cc \
  string16.cc \
  system_monitor_posix.cc \
  sys_info_posix.cc \
  thread_local_posix.cc \
  thread_local_storage_posix.cc \
  waitable_event_posix.cc \
  waitable_event_watcher_posix.cc \
  file_descriptor_set_posix.cc \
  ipc_channel_posix.cc \
  process_watcher_posix_sigchld.cc \
  $(NULL)

ifeq ($(OS_TARGET),Android)
DEFINES += -DANDROID -D_POSIX_MONOTONIC_CLOCK=0
CPPSRCS += \
  message_pump_android.cc \
  $(NULL)
endif # Android

endif # } OS_POSIX

ifdef OS_MACOSX # {

CMMSRCS += \
  base_paths_mac.mm \
  file_util_mac.mm \
  file_version_info_mac.mm \
  mac_util.mm \
  message_pump_mac.mm \
  platform_thread_mac.mm \
  process_util_mac.mm \
  scoped_nsautorelease_pool.mm \
  sys_string_conversions_mac.mm \
  worker_pool_mac.mm \
  chrome_paths_mac.mm \
  mach_ipc_mac.mm \
  platform_util_mac.mm \
  chrome_application_mac.mm \
  $(NULL)

CPPSRCS += \
  debug_util_mac.cc \
  hmac_mac.cc \
  idle_timer.cc \
  sys_info_mac.cc \
  time_mac.cc \
  mach_message_source_mac.cc \
  transport_dib_mac.cc \
  $(NULL)

endif # } OS_MACOSX

ifdef OS_LINUX # {

CPPSRCS += \
  atomicops_internals_x86_gcc.cc \
  base_paths_linux.cc \
  file_version_info_linux.cc \
  idle_timer_none.cc \
  process_util_linux.cc \
  time_posix.cc \
  $(NULL)

ifdef MOZ_ENABLE_GTK2
CPPSRCS += \
  message_pump_glib.cc \
  $(NULL)
endif

ifdef MOZ_ENABLE_QT
MOCSRCS = \
  moc_message_pump_qt.cc \
  $(NULL)

CPPSRCS += \
  $(MOCSRCS) \
  message_pump_qt.cc \
  $(NULL)
endif

endif # } OS_LINUX

ifdef OS_BSD # {

CPPSRCS += \
  atomicops_internals_x86_gcc.cc \
  process_util_bsd.cc \
  time_posix.cc \
  $(NULL)

ifdef MOZ_ENABLE_GTK2
CPPSRCS += \
  message_pump_glib.cc \
  $(NULL)
endif

ifdef MOZ_ENABLE_QT
MOCSRCS = \
  moc_message_pump_qt.cc \
  $(NULL)

CPPSRCS += \
  $(MOCSRCS) \
  message_pump_qt.cc \
  $(NULL)
endif

endif # } OS_BSD

# libevent

ifndef MOZ_NATIVE_LIBEVENT # {

ifdef OS_POSIX # {

LOCAL_INCLUDES += -I$(srcdir)/src/third_party/libevent
DEFINES += -DHAVE_CONFIG_H

CSRCS += \
  buffer.c \
  evbuffer.c \
  evdns.c \
  event.c \
  event_tagging.c \
  evrpc.c \
  evutil.c \
  http.c \
  log.c \
  poll.c \
  select.c \
  signal.c \
  strlcpy.c \
  $(NULL)

ifdef OS_MACOSX # {
LOCAL_INCLUDES += -I$(srcdir)/src/third_party/libevent/mac
CSRCS += kqueue.c
endif # }

ifdef OS_LINUX # {
LOCAL_INCLUDES += -I$(srcdir)/src/third_party/libevent/linux
CSRCS += \
  epoll.c \
  epoll_sub.c \
  $(NULL)
endif # }

endif # }

endif # }

ifneq (86,$(findstring 86,$(OS_TEST))) # {
ifneq (arm,$(findstring arm,$(OS_TEST))) # {
ifneq (mips,$(findstring mips,$(OS_TEST))) # {
# Use mutex-backed atomics
CPPSRCS += atomicops_internals_mutex.cc
endif # }
endif # }
endif # }

OS_CXXFLAGS += $(TK_CFLAGS)

include $(topsrcdir)/config/rules.mk

ifdef MOZ_NATIVE_LIBEVENT # {

export-preqs = \
  $(call mkdir_deps,$(DIST)/third_party/libevent) \
  $(NULL)

export:: $(export-preqs)
	echo "#include <event.h>" > $(DIST)/third_party/libevent/event.h

endif # }