chromium-gn-remove-third-party.patch
1 | From 36f44a39630a329b79432836ec6aecb8ab54a6e5 Mon Sep 17 00:00:00 2001 |
2 | From: Julien Lepiller <julien@lepiller.eu> |
3 | Date: Tue, 28 Feb 2017 13:39:58 +0100 |
4 | Subject: [PATCH] remove third party |
5 | |
6 | --- |
7 | tools/gn/bootstrap/bootstrap.py | 34 +--------------------------------- |
8 | 1 file changed, 1 insertion(+), 33 deletions(-) |
9 | |
10 | diff --git a/tools/gn/bootstrap/bootstrap.py b/tools/gn/bootstrap/bootstrap.py |
11 | index 90adca2..0c790a2 100755 |
12 | --- a/tools/gn/bootstrap/bootstrap.py |
13 | +++ b/tools/gn/bootstrap/bootstrap.py |
14 | @@ -541,29 +541,9 @@ def write_gn_ninja(path, root_gen_dir, options): |
15 | 'base/time/time_posix.cc', |
16 | 'base/trace_event/heap_profiler_allocation_register_posix.cc', |
17 | ]) |
18 | - static_libraries['libevent'] = { |
19 | - 'sources': [ |
20 | - 'base/third_party/libevent/buffer.c', |
21 | - 'base/third_party/libevent/evbuffer.c', |
22 | - 'base/third_party/libevent/evdns.c', |
23 | - 'base/third_party/libevent/event.c', |
24 | - 'base/third_party/libevent/event_tagging.c', |
25 | - 'base/third_party/libevent/evrpc.c', |
26 | - 'base/third_party/libevent/evutil.c', |
27 | - 'base/third_party/libevent/http.c', |
28 | - 'base/third_party/libevent/log.c', |
29 | - 'base/third_party/libevent/poll.c', |
30 | - 'base/third_party/libevent/select.c', |
31 | - 'base/third_party/libevent/signal.c', |
32 | - 'base/third_party/libevent/strlcpy.c', |
33 | - ], |
34 | - 'tool': 'cc', |
35 | - 'include_dirs': [], |
36 | - 'cflags': cflags + ['-DHAVE_CONFIG_H'], |
37 | - } |
38 | |
39 | if is_linux: |
40 | - libs.extend(['-lrt', '-latomic']) |
41 | + libs.extend(['-lrt', '-latomic', '-levent']) |
42 | ldflags.extend(['-pthread']) |
43 | |
44 | static_libraries['xdg_user_dirs'] = { |
45 | @@ -587,12 +567,6 @@ def write_gn_ninja(path, root_gen_dir, options): |
46 | 'base/threading/platform_thread_linux.cc', |
47 | 'base/trace_event/malloc_dump_provider.cc', |
48 | ]) |
49 | - static_libraries['libevent']['include_dirs'].extend([ |
50 | - os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'linux') |
51 | - ]) |
52 | - static_libraries['libevent']['sources'].extend([ |
53 | - 'base/third_party/libevent/epoll.c', |
54 | - ]) |
55 | |
56 | |
57 | if is_mac: |
58 | @@ -622,12 +596,6 @@ def write_gn_ninja(path, root_gen_dir, options): |
59 | 'base/threading/platform_thread_mac.mm', |
60 | 'base/trace_event/malloc_dump_provider.cc', |
61 | ]) |
62 | - static_libraries['libevent']['include_dirs'].extend([ |
63 | - os.path.join(SRC_ROOT, 'base', 'third_party', 'libevent', 'mac') |
64 | - ]) |
65 | - static_libraries['libevent']['sources'].extend([ |
66 | - 'base/third_party/libevent/kqueue.c', |
67 | - ]) |
68 | |
69 | libs.extend([ |
70 | '-framework', 'AppKit', |
71 | -- |
72 | 2.7.4 |
73 | |
74 |