OLD | NEW |
(Empty) | |
| 1 # -*- python -*- |
| 2 # |
| 3 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 { |
| 8 'includes': [ |
| 9 '../../../build/common.gypi', |
| 10 ], |
| 11 'common_sources': [ |
| 12 'nacl_process.h', |
| 13 ], |
| 14 'conditions': [ |
| 15 ['OS=="linux"', { |
| 16 'platform_sources': [ |
| 17 'posix/nacl_process.c', |
| 18 'posix/nacl_process_types.h', |
| 19 ], |
| 20 }], |
| 21 ['OS=="mac"', { |
| 22 'platform_sources': [ |
| 23 'posix/nacl_process.c', |
| 24 'posix/nacl_process_types.h', |
| 25 ], |
| 26 }], |
| 27 ['OS=="win"', { |
| 28 'platform_sources': [ |
| 29 'win/nacl_process.c', |
| 30 'win/nacl_process_types.h', |
| 31 ], |
| 32 }], |
| 33 ], |
| 34 'target_defaults': { |
| 35 'variables': { |
| 36 'target_base': 'none', |
| 37 }, |
| 38 'target_conditions': [ |
| 39 ['target_base=="nacl_platform"', { |
| 40 'sources': [ |
| 41 '<@(common_sources)', |
| 42 '<@(platform_sources)', |
| 43 ], |
| 44 }], |
| 45 ['target_base=="nacl_platform_tests"', { |
| 46 'sources': [ |
| 47 'nacl_process_test.c', |
| 48 ], |
| 49 }], |
| 50 ], |
| 51 }, |
| 52 'targets': [ |
| 53 { |
| 54 'target_name': 'nacl_platform', |
| 55 'type': 'static_library', |
| 56 'variables': { |
| 57 'target_base': 'nacl_platform', |
| 58 }, |
| 59 'dependencies': [ |
| 60 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', |
| 61 ], |
| 62 }, |
| 63 ], |
| 64 } |
OLD | NEW |