Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # Copyright (c) 2009 Google Inc. All rights reserved. |
michael@0 | 2 | # Use of this source code is governed by a BSD-style license that can be |
michael@0 | 3 | # found in the LICENSE file. |
michael@0 | 4 | |
michael@0 | 5 | { |
michael@0 | 6 | 'target_defaults': { |
michael@0 | 7 | 'conditions': [ |
michael@0 | 8 | ['OS=="win"', { |
michael@0 | 9 | 'defines': ['PLATFORM_WIN'], |
michael@0 | 10 | }], |
michael@0 | 11 | ['OS=="mac"', { |
michael@0 | 12 | 'defines': ['PLATFORM_MAC'], |
michael@0 | 13 | }], |
michael@0 | 14 | ['OS=="linux"', { |
michael@0 | 15 | 'defines': ['PLATFORM_LINUX'], |
michael@0 | 16 | # Support 64-bit shared libs (also works fine for 32-bit). |
michael@0 | 17 | 'cflags': ['-fPIC'], |
michael@0 | 18 | 'libraries': ['-ldl'], |
michael@0 | 19 | }], |
michael@0 | 20 | ], |
michael@0 | 21 | }, |
michael@0 | 22 | 'targets': [ |
michael@0 | 23 | { |
michael@0 | 24 | 'target_name': 'program', |
michael@0 | 25 | 'type': 'executable', |
michael@0 | 26 | 'dependencies': [ |
michael@0 | 27 | 'lib1', |
michael@0 | 28 | 'lib2', |
michael@0 | 29 | ], |
michael@0 | 30 | 'sources': [ |
michael@0 | 31 | 'program.c', |
michael@0 | 32 | ], |
michael@0 | 33 | }, |
michael@0 | 34 | { |
michael@0 | 35 | 'target_name': 'lib1', |
michael@0 | 36 | 'type': 'loadable_module', |
michael@0 | 37 | 'product_name': 'lib1', |
michael@0 | 38 | 'product_prefix': '', |
michael@0 | 39 | 'xcode_settings': {'OTHER_LDFLAGS': ['-dynamiclib'], 'MACH_O_TYPE': ''}, |
michael@0 | 40 | 'sources': [ |
michael@0 | 41 | 'lib1.c', |
michael@0 | 42 | ], |
michael@0 | 43 | }, |
michael@0 | 44 | { |
michael@0 | 45 | 'target_name': 'lib2', |
michael@0 | 46 | 'product_name': 'lib2', |
michael@0 | 47 | 'product_prefix': '', |
michael@0 | 48 | 'type': 'loadable_module', |
michael@0 | 49 | 'xcode_settings': {'OTHER_LDFLAGS': ['-dynamiclib'], 'MACH_O_TYPE': ''}, |
michael@0 | 50 | 'sources': [ |
michael@0 | 51 | 'lib2.c', |
michael@0 | 52 | ], |
michael@0 | 53 | }, |
michael@0 | 54 | ], |
michael@0 | 55 | } |