Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Side by Side Diff: tools/gn/bootstrap/bootstrap.py

Issue 1531573008: move libevent into base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix shim path Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/checklicenses/checklicenses.py ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This file isn't officially supported by the Chromium project. It's maintained 6 # This file isn't officially supported by the Chromium project. It's maintained
7 # on a best-effort basis by volunteers, so some things may be broken from time 7 # on a best-effort basis by volunteers, so some things may be broken from time
8 # to time. If you encounter errors, it's most often due to files in base that 8 # to time. If you encounter errors, it's most often due to files in base that
9 # have been added or moved since somebody last tried this script. Generally 9 # have been added or moved since somebody last tried this script. Generally
10 # such errors are easy to diagnose. 10 # such errors are easy to diagnose.
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 'base/sys_info_posix.cc', 301 'base/sys_info_posix.cc',
302 'base/threading/platform_thread_internal_posix.cc', 302 'base/threading/platform_thread_internal_posix.cc',
303 'base/threading/platform_thread_posix.cc', 303 'base/threading/platform_thread_posix.cc',
304 'base/threading/thread_local_posix.cc', 304 'base/threading/thread_local_posix.cc',
305 'base/threading/thread_local_storage_posix.cc', 305 'base/threading/thread_local_storage_posix.cc',
306 'base/threading/worker_pool_posix.cc', 306 'base/threading/worker_pool_posix.cc',
307 'base/time/time_posix.cc', 307 'base/time/time_posix.cc',
308 ]) 308 ])
309 static_libraries['libevent'] = { 309 static_libraries['libevent'] = {
310 'sources': [ 310 'sources': [
311 'third_party/libevent/buffer.c', 311 'base/third_party/libevent/buffer.c',
312 'third_party/libevent/evbuffer.c', 312 'base/third_party/libevent/evbuffer.c',
313 'third_party/libevent/evdns.c', 313 'base/third_party/libevent/evdns.c',
314 'third_party/libevent/event.c', 314 'base/third_party/libevent/event.c',
315 'third_party/libevent/event_tagging.c', 315 'base/third_party/libevent/event_tagging.c',
316 'third_party/libevent/evrpc.c', 316 'base/third_party/libevent/evrpc.c',
317 'third_party/libevent/evutil.c', 317 'base/third_party/libevent/evutil.c',
318 'third_party/libevent/http.c', 318 'base/third_party/libevent/http.c',
319 'third_party/libevent/log.c', 319 'base/third_party/libevent/log.c',
320 'third_party/libevent/poll.c', 320 'base/third_party/libevent/poll.c',
321 'third_party/libevent/select.c', 321 'base/third_party/libevent/select.c',
322 'third_party/libevent/signal.c', 322 'base/third_party/libevent/signal.c',
323 'third_party/libevent/strlcpy.c', 323 'base/third_party/libevent/strlcpy.c',
324 ], 324 ],
325 'tool': 'cc', 325 'tool': 'cc',
326 'include_dirs': [], 326 'include_dirs': [],
327 'cflags': cflags + ['-DHAVE_CONFIG_H'], 327 'cflags': cflags + ['-DHAVE_CONFIG_H'],
328 } 328 }
329 329
330 330
331 if is_linux: 331 if is_linux:
332 libs.extend(['-lrt']) 332 libs.extend(['-lrt'])
333 ldflags.extend(['-pthread']) 333 ldflags.extend(['-pthread'])
(...skipping 11 matching lines...) Expand all
345 'base/process/process_iterator_linux.cc', 345 'base/process/process_iterator_linux.cc',
346 'base/process/process_linux.cc', 346 'base/process/process_linux.cc',
347 'base/process/process_metrics_linux.cc', 347 'base/process/process_metrics_linux.cc',
348 'base/strings/sys_string_conversions_posix.cc', 348 'base/strings/sys_string_conversions_posix.cc',
349 'base/sys_info_linux.cc', 349 'base/sys_info_linux.cc',
350 'base/threading/platform_thread_linux.cc', 350 'base/threading/platform_thread_linux.cc',
351 'base/trace_event/malloc_dump_provider.cc', 351 'base/trace_event/malloc_dump_provider.cc',
352 'base/trace_event/process_memory_maps_dump_provider.cc', 352 'base/trace_event/process_memory_maps_dump_provider.cc',
353 ]) 353 ])
354 static_libraries['libevent']['include_dirs'].extend([ 354 static_libraries['libevent']['include_dirs'].extend([
355 os.path.join(SRC_ROOT, 'third_party', 'libevent', 'linux') 355 os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'linux')
356 ]) 356 ])
357 static_libraries['libevent']['sources'].extend([ 357 static_libraries['libevent']['sources'].extend([
358 'third_party/libevent/epoll.c', 358 'base/third_party/libevent/epoll.c',
359 ]) 359 ])
360 360
361 361
362 if is_mac: 362 if is_mac:
363 static_libraries['base']['sources'].extend([ 363 static_libraries['base']['sources'].extend([
364 'base/base_paths_mac.mm', 364 'base/base_paths_mac.mm',
365 'base/files/file_util_mac.mm', 365 'base/files/file_util_mac.mm',
366 'base/mac/bundle_locations.mm', 366 'base/mac/bundle_locations.mm',
367 'base/mac/call_with_eh_frame.cc', 367 'base/mac/call_with_eh_frame.cc',
368 'base/mac/call_with_eh_frame_asm.S', 368 'base/mac/call_with_eh_frame_asm.S',
369 'base/mac/foundation_util.mm', 369 'base/mac/foundation_util.mm',
370 'base/mac/mach_logging.cc', 370 'base/mac/mach_logging.cc',
371 'base/mac/scoped_mach_port.cc', 371 'base/mac/scoped_mach_port.cc',
372 'base/mac/scoped_nsautorelease_pool.mm', 372 'base/mac/scoped_nsautorelease_pool.mm',
373 'base/message_loop/message_pump_mac.mm', 373 'base/message_loop/message_pump_mac.mm',
374 'base/process/process_handle_mac.cc', 374 'base/process/process_handle_mac.cc',
375 'base/process/process_iterator_mac.cc', 375 'base/process/process_iterator_mac.cc',
376 'base/process/process_metrics_mac.cc', 376 'base/process/process_metrics_mac.cc',
377 'base/strings/sys_string_conversions_mac.mm', 377 'base/strings/sys_string_conversions_mac.mm',
378 'base/time/time_mac.cc', 378 'base/time/time_mac.cc',
379 'base/threading/platform_thread_mac.mm', 379 'base/threading/platform_thread_mac.mm',
380 'base/trace_event/malloc_dump_provider.cc', 380 'base/trace_event/malloc_dump_provider.cc',
381 ]) 381 ])
382 static_libraries['libevent']['include_dirs'].extend([ 382 static_libraries['libevent']['include_dirs'].extend([
383 os.path.join(SRC_ROOT, 'third_party', 'libevent', 'mac') 383 os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'mac')
384 ]) 384 ])
385 static_libraries['libevent']['sources'].extend([ 385 static_libraries['libevent']['sources'].extend([
386 'third_party/libevent/kqueue.c', 386 'base/third_party/libevent/kqueue.c',
387 ]) 387 ])
388 388
389 389
390 if is_mac: 390 if is_mac:
391 template_filename = 'build_mac.ninja.template' 391 template_filename = 'build_mac.ninja.template'
392 else: 392 else:
393 template_filename = 'build.ninja.template' 393 template_filename = 'build.ninja.template'
394 394
395 with open(os.path.join(GN_ROOT, 'bootstrap', template_filename)) as f: 395 with open(os.path.join(GN_ROOT, 'bootstrap', template_filename)) as f:
396 ninja_template = f.read() 396 ninja_template = f.read()
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 cmd.append('-v') 458 cmd.append('-v')
459 cmd.append('gn') 459 cmd.append('gn')
460 check_call(cmd) 460 check_call(cmd)
461 461
462 if not options.debug: 462 if not options.debug:
463 check_call(['strip', os.path.join(build_dir, 'gn')]) 463 check_call(['strip', os.path.join(build_dir, 'gn')])
464 464
465 465
466 if __name__ == '__main__': 466 if __name__ == '__main__':
467 sys.exit(main(sys.argv[1:])) 467 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « tools/checklicenses/checklicenses.py ('k') | ui/gl/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698