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

Side by Side Diff: plugin/plugin.gyp

Issue 340044: Linux: Add support for loading environment variables at plugin start-up from ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 1 month 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 | « plugin/linux/main_linux.cc ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 # PLEASE NOTE: This file contains the targets for generating the 5 # PLEASE NOTE: This file contains the targets for generating the
6 # plugin two different ways -- once as a shared library, and once as a 6 # plugin two different ways -- once as a shared library, and once as a
7 # static library. The static library is only built if we are inside 7 # static library. The static library is only built if we are inside
8 # of a Chrome tree, and it gets built with different defined symbols, 8 # of a Chrome tree, and it gets built with different defined symbols,
9 # and without the packaging code on the Mac. The shared library gets 9 # and without the packaging code on the Mac. The shared library gets
10 # built in an o3d tree, or in a chrome tree when built by an o3d 10 # built in an o3d tree, or in a chrome tree when built by an o3d
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 ], 187 ],
188 }, 188 },
189 ], 189 ],
190 }, 190 },
191 ], 191 ],
192 ['OS == "linux"', 192 ['OS == "linux"',
193 { 193 {
194 'sources': [ 194 'sources': [
195 'linux/main_linux.cc', 195 'linux/main_linux.cc',
196 'linux/config.cc', 196 'linux/config.cc',
197 'linux/envvars.cc',
197 ], 198 ],
198 'link_settings': { 199 'link_settings': {
199 'libraries': [ 200 'libraries': [
200 '-lGL', 201 '-lGL',
201 ], 202 ],
202 }, 203 },
204 'defines': [
205 'O3D_PLUGIN_ENV_VARS_FILE="/opt/google/o3d/envvars"',
206 ],
203 }, 207 },
204 ], 208 ],
205 ['OS == "win"', 209 ['OS == "win"',
206 { 210 {
207 'dependencies': [ 211 'dependencies': [
208 '../breakpad/breakpad.gyp:o3dBreakpad', 212 '../breakpad/breakpad.gyp:o3dBreakpad',
209 ], 213 ],
210 'sources': [ 214 'sources': [
211 'win/config.cc', 215 'win/config.cc',
212 'win/logger_main.cc', 216 'win/logger_main.cc',
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 '../../third_party/glew/files/lib/libMacStaticGLEW.a', 332 '../../third_party/glew/files/lib/libMacStaticGLEW.a',
329 ], 333 ],
330 }, 334 },
331 }, 335 },
332 ], 336 ],
333 ['OS == "linux"', 337 ['OS == "linux"',
334 { 338 {
335 'sources': [ 339 'sources': [
336 'linux/main_linux.cc', 340 'linux/main_linux.cc',
337 'linux/config.cc', 341 'linux/config.cc',
342 'linux/envvars.cc',
338 ], 343 ],
339 'link_settings': { 344 'link_settings': {
340 'libraries': [ 345 'libraries': [
341 '-lGL', 346 '-lGL',
342 ], 347 ],
343 }, 348 },
349 'defines': [
350 'O3D_PLUGIN_ENV_VARS_FILE="/opt/google/o3d/envvars"',
351 ],
344 # On Linux, shared library targets aren't copied to the 352 # On Linux, shared library targets aren't copied to the
345 # product dir automatically. Filed GYP issue #74 to address t his. 353 # product dir automatically. Filed GYP issue #74 to address t his.
346 # TODO(gspencer): Remove when issue #74 is resolved. 354 # TODO(gspencer): Remove when issue #74 is resolved.
347 'copies': [ 355 'copies': [
348 { 356 {
349 'destination': '<(PRODUCT_DIR)', 357 'destination': '<(PRODUCT_DIR)',
350 'files': [ 358 'files': [
351 '<(PRODUCT_DIR)/obj/o3d/plugin/<(SHARED_LIB_PREFIX)<(_ta rget_name)<(SHARED_LIB_SUFFIX)', 359 '<(PRODUCT_DIR)/obj/o3d/plugin/<(SHARED_LIB_PREFIX)<(_ta rget_name)<(SHARED_LIB_SUFFIX)',
352 ], 360 ],
353 }, 361 },
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 }, 541 },
534 ], 542 ],
535 ], 543 ],
536 } 544 }
537 545
538 # Local Variables: 546 # Local Variables:
539 # tab-width:2 547 # tab-width:2
540 # indent-tabs-mode:nil 548 # indent-tabs-mode:nil
541 # End: 549 # End:
542 # vim: set expandtab tabstop=2 shiftwidth=2: 550 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « plugin/linux/main_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698