OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/linux/gtk/gtk.gni") | |
6 import("//build/config/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") |
7 import("//build/toolchain/goma.gni") | 6 import("//build/toolchain/goma.gni") |
8 | 7 |
9 declare_args() { | 8 declare_args() { |
10 # The default number of jobs to use when building instrumented libraries. | 9 # The default number of jobs to use when building instrumented libraries. |
11 instrumented_libraries_jobs = 8 | 10 instrumented_libraries_jobs = 8 |
12 | 11 |
13 # The platform on which the instrumented libraries are being built. | 12 # The platform on which the instrumented libraries are being built. |
14 instrumented_libraries_platform = "trusty" | 13 instrumented_libraries_platform = "trusty" |
15 } | 14 } |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 } | 103 } |
105 group("locally_built") { | 104 group("locally_built") { |
106 visibility = [ ":deps" ] | 105 visibility = [ ":deps" ] |
107 deps = [ | 106 deps = [ |
108 ":atk1.0", | 107 ":atk1.0", |
109 ":brltty", | 108 ":brltty", |
110 ":dee", | 109 ":dee", |
111 ":freetype", | 110 ":freetype", |
112 ":libappindicator1", | 111 ":libappindicator1", |
113 ":libasound2", | 112 ":libasound2", |
| 113 ":libatk-bridge2.0-0", |
| 114 ":libatspi2.0-0", |
114 ":libcairo2", | 115 ":libcairo2", |
115 ":libcap2", | 116 ":libcap2", |
116 ":libcredentialkit_pkcs11", | 117 ":libcredentialkit_pkcs11", |
117 ":libdbus-1-3", | 118 ":libdbus-1-3", |
118 ":libdbus-glib-1-2", | 119 ":libdbus-glib-1-2", |
119 ":libdbusmenu", | 120 ":libdbusmenu", |
120 ":libdbusmenu-glib4", | 121 ":libdbusmenu-glib4", |
121 ":libexpat1", | 122 ":libexpat1", |
122 ":libffi6", | 123 ":libffi6", |
123 ":libfontconfig1", | 124 ":libfontconfig1", |
124 ":libgconf-2-4", | 125 ":libgconf-2-4", |
125 ":libgcrypt11", | 126 ":libgcrypt11", |
| 127 ":libgdk-pixbuf2.0-0", |
126 ":libglib2.0-0", | 128 ":libglib2.0-0", |
127 ":libgnome-keyring0", | 129 ":libgnome-keyring0", |
128 ":libgpg-error0", | 130 ":libgpg-error0", |
| 131 ":libgtk2.0-0", |
| 132 ":libgtk-3-0", |
129 ":libnspr4", | 133 ":libnspr4", |
130 ":libp11-kit0", | 134 ":libp11-kit0", |
131 ":libpci3", | 135 ":libpci3", |
132 ":libpcre3", | 136 ":libpcre3", |
133 ":libpixman-1-0", | 137 ":libpixman-1-0", |
134 ":libunity9", | 138 ":libunity9", |
135 ":libva1", | 139 ":libva1", |
136 ":libx11-6", | 140 ":libx11-6", |
137 ":libxau6", | 141 ":libxau6", |
138 ":libxcb1", | 142 ":libxcb1", |
139 ":libxcomposite1", | 143 ":libxcomposite1", |
140 ":libxcursor1", | 144 ":libxcursor1", |
141 ":libxdamage1", | 145 ":libxdamage1", |
142 ":libxdmcp6", | 146 ":libxdmcp6", |
143 ":libxext6", | 147 ":libxext6", |
144 ":libxfixes3", | 148 ":libxfixes3", |
145 ":libxi6", | 149 ":libxi6", |
146 ":libxinerama1", | 150 ":libxinerama1", |
147 ":libxrandr2", | 151 ":libxrandr2", |
148 ":libxrender1", | 152 ":libxrender1", |
149 ":libxss1", | 153 ":libxss1", |
150 ":libxtst6", | 154 ":libxtst6", |
151 ":nss", | 155 ":nss", |
152 ":pango1.0", | 156 ":pango1.0", |
153 ":pulseaudio", | 157 ":pulseaudio", |
154 ":udev", | 158 ":udev", |
155 ":zlib1g", | 159 ":zlib1g", |
156 ] | 160 ] |
157 if (!use_gtk3) { | |
158 deps += [ | |
159 ":libgdk-pixbuf2.0-0", | |
160 ":libgtk2.0-0", | |
161 ] | |
162 } | |
163 if (is_precise) { | 161 if (is_precise) { |
164 deps += [ ":libtasn1-3" ] | 162 deps += [ ":libtasn1-3" ] |
165 } | 163 } |
166 if (is_trusty) { | 164 if (is_trusty) { |
167 deps += [ | 165 deps += [ |
168 ":harfbuzz", | 166 ":harfbuzz", |
169 ":libsecret", | 167 ":libsecret", |
170 ":libtasn1-6", | 168 ":libtasn1-6", |
171 ] | 169 ] |
172 } | 170 } |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 ] | 355 ] |
358 jobs = 1 | 356 jobs = 1 |
359 pre_build = "scripts/pre-build/autogen.sh" | 357 pre_build = "scripts/pre-build/autogen.sh" |
360 } | 358 } |
361 | 359 |
362 instrumented_library("libasound2") { | 360 instrumented_library("libasound2") { |
363 extra_configure_flags = [ "--disable-static" ] | 361 extra_configure_flags = [ "--disable-static" ] |
364 pre_build = "scripts/pre-build/libasound2.sh" | 362 pre_build = "scripts/pre-build/libasound2.sh" |
365 } | 363 } |
366 | 364 |
| 365 instrumented_library("libatk-bridge2.0-0") { |
| 366 extra_configure_flags = [ "--disable-static" ] |
| 367 } |
| 368 |
| 369 instrumented_library("libatspi2.0-0") { |
| 370 extra_configure_flags = [ |
| 371 "--disable-static", |
| 372 "--disable-introspection" |
| 373 ] |
| 374 } |
| 375 |
367 instrumented_library("libcairo2") { | 376 instrumented_library("libcairo2") { |
368 extra_configure_flags = [ | 377 extra_configure_flags = [ |
369 "--disable-gtk-doc", | 378 "--disable-gtk-doc", |
370 "--disable-static", | 379 "--disable-static", |
371 ] | 380 ] |
372 } | 381 } |
373 | 382 |
374 instrumented_library("libcap2") { | 383 instrumented_library("libcap2") { |
375 extra_configure_flags = [ "--disable-static" ] | 384 extra_configure_flags = [ "--disable-static" ] |
376 build_method = "custom_libcap" | 385 build_method = "custom_libcap" |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
573 "--prefix=/usr", | 582 "--prefix=/usr", |
574 "--sysconfdir=/etc", | 583 "--sysconfdir=/etc", |
575 "--enable-test-print-backend", | 584 "--enable-test-print-backend", |
576 "--enable-introspection=no", | 585 "--enable-introspection=no", |
577 "--with-xinput=yes", | 586 "--with-xinput=yes", |
578 ] | 587 ] |
579 patch = "patches/libgtk2.0-0.${instrumented_libraries_platform}.diff" | 588 patch = "patches/libgtk2.0-0.${instrumented_libraries_platform}.diff" |
580 pre_build = "scripts/pre-build/libgtk2.0-0.sh" | 589 pre_build = "scripts/pre-build/libgtk2.0-0.sh" |
581 } | 590 } |
582 | 591 |
| 592 instrumented_library("libgtk-3-0") { |
| 593 package_cflags = [ "-Wno-return-type" ] |
| 594 extra_configure_flags = [ |
| 595 "--disable-static", |
| 596 "--disable-introspection", |
| 597 |
| 598 # From debian/rules. |
| 599 "--enable-test-print-backend", |
| 600 "--enable-x11-backend", |
| 601 ] |
| 602 pre_build = "scripts/pre-build/libgtk-3-0.sh" |
| 603 } |
| 604 |
583 instrumented_library("libnspr4") { | 605 instrumented_library("libnspr4") { |
584 extra_configure_flags = [ | 606 extra_configure_flags = [ |
585 "--enable-64bit", | 607 "--enable-64bit", |
586 "--disable-static", | 608 "--disable-static", |
587 | 609 |
588 # TSan reports data races on debug variables. | 610 # TSan reports data races on debug variables. |
589 "--disable-debug", | 611 "--disable-debug", |
590 ] | 612 ] |
591 pre_build = "scripts/pre-build/libnspr4.sh" | 613 pre_build = "scripts/pre-build/libnspr4.sh" |
592 } | 614 } |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
816 "--disable-gudev", | 838 "--disable-gudev", |
817 ] | 839 ] |
818 pre_build = "scripts/pre-build/udev.sh" | 840 pre_build = "scripts/pre-build/udev.sh" |
819 } | 841 } |
820 | 842 |
821 instrumented_library("zlib1g") { | 843 instrumented_library("zlib1g") { |
822 # --disable-static is not supported | 844 # --disable-static is not supported |
823 patch = "patches/zlib1g.diff" | 845 patch = "patches/zlib1g.diff" |
824 } | 846 } |
825 } | 847 } |
OLD | NEW |