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

Side by Side Diff: build/linux/system.gyp

Issue 11571036: Linux: use generated library loader for libgps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixlets Created 8 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 | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | content/browser/geolocation/gps_location_provider_linux.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'variables': { 6 'variables': {
7 'conditions': [ 7 'conditions': [
8 ['sysroot!=""', { 8 ['sysroot!=""', {
9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"', 9 'pkg-config': './pkg-config-wrapper "<(sysroot)" "<(target_arch)"',
10 }, { 10 }, {
11 'pkg-config': 'pkg-config' 11 'pkg-config': 'pkg-config'
12 }] 12 }],
13 ], 13 ],
14 14
15 'linux_link_libgps%': 0,
15 'linux_link_libpci%': 0, 16 'linux_link_libpci%': 0,
16 'linux_link_libspeechd%': 0, 17 'linux_link_libspeechd%': 0,
17 }, 18 },
18 'conditions': [ 19 'conditions': [
19 [ 'os_posix==1 and OS!="mac"', { 20 [ 'os_posix==1 and OS!="mac"', {
20 'variables': { 21 'variables': {
21 # We use our own copy of libssl3, although we still need to link against 22 # We use our own copy of libssl3, although we still need to link against
22 # the rest of NSS. 23 # the rest of NSS.
23 'use_system_ssl%': 0, 24 'use_system_ssl%': 0,
24 }, 25 },
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 ], 110 ],
110 'libraries': [ 111 'libraries': [
111 '<!@(<(pkg-config) --libs-only-l gdk-2.0)', 112 '<!@(<(pkg-config) --libs-only-l gdk-2.0)',
112 ], 113 ],
113 }, 114 },
114 }], 115 }],
115 ], 116 ],
116 }, 117 },
117 ], # targets 118 ], # targets
118 }], 119 }],
120 ['linux_use_libgps==1', {
121 'targets': [
122 {
123 'target_name': 'libgps',
124 'type': 'static_library',
125 'dependencies': [
126 '../../base/base.gyp:base',
127 ],
128 'all_dependent_settings': {
129 'defines': [
130 'USE_LIBGPS',
131 ],
132 'include_dirs': [
133 '<(SHARED_INTERMEDIATE_DIR)',
134 ],
135 'conditions': [
136 ['linux_link_libgps==1', {
137 'cflags': [
138 '<!@(<(pkg-config) --cflags libgps)',
139 ],
140 'link_settings': {
141 'ldflags': [
142 '<!@(<(pkg-config) --libs-only-L --libs-only-other libgps)',
143 ],
144 'libraries': [
145 '<!@(<(pkg-config) --libs-only-l libgps)',
146 ],
147 }
148 }],
149 ],
150 },
151 'hard_dependency': 1,
152 'actions': [
153 {
154 'variables': {
155 'output_h': '<(SHARED_INTERMEDIATE_DIR)/library_loaders/libgps.h ',
156 'output_cc': '<(INTERMEDIATE_DIR)/libgps_loader.cc',
157 'generator': '../../tools/generate_library_loader/generate_libra ry_loader.py',
158 },
159 'action_name': 'generate_libgps_loader',
160 'inputs': [
161 '<(generator)',
162 ],
163 'outputs': [
164 '<(output_h)',
165 '<(output_cc)',
166 ],
167 'action': ['python',
168 '<(generator)',
169 '--name', 'LibGpsLoader',
170 '--output-h', '<(output_h)',
171 '--output-cc', '<(output_cc)',
172 '--header', '<gps.h>',
173 '--bundled-header', '"third_party/gpsd/release-3.1/gps. h"',
174 '--link-directly=<(linux_link_libgps)',
175 'gps_open',
176 'gps_close',
177 'gps_read',
178 # We don't use gps_shm_read() directly, just to make
179 # sure that libgps has the shared memory support.
180 'gps_shm_read',
181 ],
182 'message': 'Generating libgps library loader.',
183 'process_outputs_as_sources': 1,
184 },
185 ],
186 },
187 ],
188 }],
119 ], # conditions 189 ], # conditions
120 'targets': [ 190 'targets': [
121 { 191 {
122 'target_name': 'ssl', 192 'target_name': 'ssl',
123 'type': 'none', 193 'type': 'none',
124 'conditions': [ 194 'conditions': [
125 ['_toolset=="target"', { 195 ['_toolset=="target"', {
126 'conditions': [ 196 'conditions': [
127 ['use_openssl==1', { 197 ['use_openssl==1', {
128 'dependencies': [ 198 'dependencies': [
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 ], 873 ],
804 'libraries': [ 874 'libraries': [
805 '<!@(<(pkg-config) --libs-only-l libudev)', 875 '<!@(<(pkg-config) --libs-only-l libudev)',
806 ], 876 ],
807 }, 877 },
808 }], 878 }],
809 ], 879 ],
810 }, 880 },
811 ], 881 ],
812 } 882 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | content/browser/geolocation/gps_location_provider_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698