summaryrefslogtreecommitdiffstats
path: root/third_party/instrumented_libraries/instrumented_libraries.gyp
diff options
context:
space:
mode:
authorearthdok@chromium.org <earthdok@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 15:51:54 +0000
committerearthdok@chromium.org <earthdok@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-27 15:51:54 +0000
commit848e8e4616cd71d9fb4c220b31a20bc176f17c5d (patch)
tree5f71027124c1d60f218c22e0c75501ec232991cb /third_party/instrumented_libraries/instrumented_libraries.gyp
parent10f7c534e2017eb8614bd6c02a4043188bad199b (diff)
downloadchromium_src-848e8e4616cd71d9fb4c220b31a20bc176f17c5d.zip
chromium_src-848e8e4616cd71d9fb4c220b31a20bc176f17c5d.tar.gz
chromium_src-848e8e4616cd71d9fb4c220b31a20bc176f17c5d.tar.bz2
Instrumented libraries: improve handling of custom patches.
- pass the patch as a command line argument to the build script, instead of applying it through run_before_build, - add each patch and run_before_build script to inputs for its corresponding library, - move patches and scripts to their own subdirectories, - also, fix a small error in the build configuration for libappindicator1. BUG=313751 R=glider@chromium.org NOTRY=true TEST=compile Review URL: https://codereview.chromium.org/361473002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280338 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party/instrumented_libraries/instrumented_libraries.gyp')
-rw-r--r--third_party/instrumented_libraries/instrumented_libraries.gyp25
1 files changed, 15 insertions, 10 deletions
diff --git a/third_party/instrumented_libraries/instrumented_libraries.gyp b/third_party/instrumented_libraries/instrumented_libraries.gyp
index 479d7db..7ab04c1 100644
--- a/third_party/instrumented_libraries/instrumented_libraries.gyp
+++ b/third_party/instrumented_libraries/instrumented_libraries.gyp
@@ -46,6 +46,7 @@
# $ character in a way that would work for every package.
'-Wl,-R,XORIGIN/.'
],
+ 'patch': '',
'run_before_build': '',
'conditions': [
@@ -176,7 +177,7 @@
{
'package_name': 'freetype',
'dependencies=': [],
- 'run_before_build': 'freetype.sh',
+ 'run_before_build': 'scripts/freetype.sh',
'includes': ['standard_instrumented_package_target.gypi'],
},
{
@@ -223,7 +224,7 @@
# From debian/rules.
'--with-add-fonts=/usr/X11R6/lib/X11/fonts,/usr/local/share/fonts',
],
- 'run_before_build': 'libfontconfig.sh',
+ 'patch': 'patches/libfontconfig.diff',
'includes': ['standard_instrumented_package_target.gypi'],
},
{
@@ -255,7 +256,7 @@
# TSan reports data races on debug variables.
'--disable-debug',
],
- 'run_before_build': 'libnspr4.sh',
+ 'run_before_build': 'scripts/libnspr4.sh',
'includes': ['standard_instrumented_package_target.gypi'],
},
{
@@ -371,7 +372,7 @@
{
'package_name': 'zlib1g',
'dependencies=': [],
- 'run_before_build': 'zlib1g.sh',
+ 'patch': 'patches/zlib1g.diff',
'includes': ['standard_instrumented_package_target.gypi'],
},
{
@@ -379,7 +380,7 @@
'dependencies=': [
'<(_sanitizer_type)-libnspr4',
],
- 'run_before_build': 'nss.sh',
+ 'patch': 'patches/nss.diff',
'build_method': 'custom_nss',
'includes': ['standard_instrumented_package_target.gypi'],
},
@@ -388,20 +389,21 @@
'dependencies=': [
'<(_sanitizer_type)-libdbus-1-3',
],
- 'run_before_build': 'pulseaudio.sh',
+ 'patch': 'patches/pulseaudio.diff',
+ 'run_before_build': 'scripts/pulseaudio.sh',
'jobs': 1,
'includes': ['standard_instrumented_package_target.gypi'],
},
{
'package_name': 'libasound2',
'dependencies=': [],
- 'run_before_build': 'libasound2.sh',
+ 'run_before_build': 'scripts/libasound2.sh',
'includes': ['standard_instrumented_package_target.gypi'],
},
{
'package_name': 'libcups2',
'dependencies=': [],
- 'run_before_build': 'libcups2.sh',
+ 'patch': 'patches/libcups2.diff',
'jobs': 1,
'extra_configure_flags': [
# All from debian/rules.
@@ -487,7 +489,8 @@
'--with-xinput=yes',
],
'dependencies=': [],
- 'run_before_build': 'libgtk2.0-0.sh',
+ 'patch': 'patches/libgtk2.0-0.diff',
+ 'run_before_build': 'scripts/libgtk2.0-0.sh',
'includes': ['standard_instrumented_package_target.gypi'],
},
{
@@ -500,7 +503,8 @@
'--disable-introspection',
],
'dependencies=': [],
- 'run_before_build': 'libgdk-pixbuf2.0-0.sh',
+ 'patch': 'patches/libgdk-pixbuf2.0-0.diff',
+ 'run_before_build': 'scripts/libgdk-pixbuf2.0-0.sh',
'includes': ['standard_instrumented_package_target.gypi'],
},
{
@@ -553,6 +557,7 @@
],
'dependencies=': [],
'build_method': 'custom_libappindicator1',
+ 'jobs': 1,
'includes': ['standard_instrumented_package_target.gypi'],
},
{