| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 'includes': [ | 6 'includes': [ |
| 7 '../../../build/common.gypi', | 7 '../../../build/common.gypi', |
| 8 ], | 8 ], |
| 9 'variables': { | 9 'variables': { |
| 10 'common_sources': [ | 10 'common_sources': [ |
| 11 'gio.c', | 11 'gio.c', |
| 12 'gio_mem.c', | 12 'gio_mem.c', |
| 13 'gprintf.c', | 13 'gprintf.c', |
| 14 'gio_mem_snapshot.c', | 14 'gio_mem_snapshot.c', |
| 15 ], | 15 ], |
| 16 'trusted_sources': [ | 16 'trusted_sources': [ |
| 17 '<@(common_sources)', | 17 '<@(common_sources)', |
| 18 'gio_pio.c', | 18 'gio_pio.c', |
| 19 ], | 19 ], |
| 20 }, | 20 }, |
| 21 'targets': [ | 21 'targets': [ |
| 22 { | 22 { |
| 23 'target_name': 'gio', | 23 'target_name': 'gio', |
| 24 'type': 'static_library', | 24 'type': 'static_library', |
| 25 'sources': [ | 25 'sources': [ |
| 26 '<@(trusted_sources)', | 26 '<@(trusted_sources)', |
| 27 ], | 27 ], |
| 28 }, | 28 }, |
| 29 { |
| 30 'target_name': 'gio_lib', |
| 31 'type': 'none', |
| 32 'variables': { |
| 33 'nlib_target': 'libgio.a', |
| 34 'build_glibc': 1, |
| 35 'build_newlib': 1, |
| 36 'sources': ['<@(common_sources)'] |
| 37 }, |
| 38 'dependencies': [ |
| 39 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| 40 ], |
| 41 }, |
| 29 ], | 42 ], |
| 30 'conditions': [ | 43 'conditions': [ |
| 31 # NOTE: we do not support untrusted gyp build on arm yet. | |
| 32 ['target_arch!="arm"', { | |
| 33 'targets' : [ | |
| 34 { | |
| 35 'target_name': 'gio_lib', | |
| 36 'type': 'none', | |
| 37 'variables': { | |
| 38 'nlib_target': 'libgio.a', | |
| 39 'build_glibc': 1, | |
| 40 'build_newlib': 1, | |
| 41 'sources': ['<@(common_sources)'] | |
| 42 }, | |
| 43 'dependencies': [ | |
| 44 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | |
| 45 ], | |
| 46 }, | |
| 47 ], | |
| 48 }], | |
| 49 ['OS=="win"', { | 44 ['OS=="win"', { |
| 50 'targets': [ | 45 'targets': [ |
| 51 { | 46 { |
| 52 'target_name': 'gio64', | 47 'target_name': 'gio64', |
| 53 'type': 'static_library', | 48 'type': 'static_library', |
| 54 'sources': [ | 49 'sources': [ |
| 55 '<@(trusted_sources)', | 50 '<@(trusted_sources)', |
| 56 ], | 51 ], |
| 57 'variables': { | 52 'variables': { |
| 58 'win_target': 'x64', | 53 'win_target': 'x64', |
| 59 }, | 54 }, |
| 60 } | 55 } |
| 61 ], | 56 ], |
| 62 }], | 57 }], |
| 63 ], | 58 ], |
| 64 } | 59 } |
| OLD | NEW |