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

Unified Diff: build/common.gypi

Issue 10696082: Clean up gyp settings for libjpeg (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove android settings Created 8 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/iccjpeg/iccjpeg.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index efe1dc9cfb5e4f2a5ab59536db58e532aada23a4..73eb4864e58adc20eb71f41d1519437fc92134d4 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -183,6 +183,10 @@
# Use libjpeg-turbo as the JPEG codec used by Chromium.
'use_libjpeg_turbo%': 1,
+ # Use system libjpeg. Note that the system's libjepg will be used even if
+ # use_libjpeg_turbo is set.
+ 'use_system_libjpeg%': 0,
+
# Variable 'component' is for cases where we would like to build some
# components as dynamic shared libraries but still need variable
# 'library' for static libraries.
@@ -1058,11 +1062,12 @@
# Set the relative path from this file to the GYP file of the JPEG
# library used by Chromium.
- ['use_libjpeg_turbo==1', {
- 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp',
- }, {
+ ['use_system_libjpeg==1 or use_libjpeg_turbo==0', {
+ # Configuration for using the system libjeg is here.
'libjpeg_gyp_path': '../third_party/libjpeg/libjpeg.gyp',
- }], # use_libjpeg_turbo==1
+ }, {
+ 'libjpeg_gyp_path': '../third_party/libjpeg_turbo/libjpeg.gyp',
+ }],
# Options controlling the use of GConf (the classic GNOME configuration
# system) and GIO, which contains GSettings (the new GNOME config system).
« no previous file with comments | « no previous file | third_party/iccjpeg/iccjpeg.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698