| OLD | NEW |
| 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 'includes': [ | 6 'includes': [ |
| 7 '../../../build/common.gypi', | 7 '../../../build/common.gypi', |
| 8 ], | 8 ], |
| 9 'variables': { | 9 'variables': { |
| 10 'irt_sources': [ | 10 'irt_sources': [ |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 'irt_core_resource.c', | 45 'irt_core_resource.c', |
| 46 ], | 46 ], |
| 47 'irt_browser': [ | 47 'irt_browser': [ |
| 48 'irt_interfaces_ppapi.c', | 48 'irt_interfaces_ppapi.c', |
| 49 'irt_ppapi.c', | 49 'irt_ppapi.c', |
| 50 'irt_manifest.c', | 50 'irt_manifest.c', |
| 51 ], | 51 ], |
| 52 }, | 52 }, |
| 53 'targets': [ | 53 'targets': [ |
| 54 { | 54 { |
| 55 'target_name': 'irt_core_raw_nexe', | 55 'target_name': 'irt_core_nexe', |
| 56 'type': 'none', | 56 'type': 'none', |
| 57 'variables': { | 57 'variables': { |
| 58 'nexe_target': 'irt_core_raw', | 58 'nexe_target': 'irt_core', |
| 59 # These out_* fields override the default filenames, which | |
| 60 # include a "_newlib" suffix and places them in the target | |
| 61 # directory. | |
| 62 'out_newlib64': '<(SHARED_INTERMEDIATE_DIR)/irt_core_x86_64_raw.nexe', | |
| 63 'out_newlib32': '<(SHARED_INTERMEDIATE_DIR)/irt_core_x86_32_raw.nexe', | |
| 64 'out_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/irt_core_arm_raw.nexe', | |
| 65 'build_glibc': 0, | 59 'build_glibc': 0, |
| 66 'build_newlib': 0, | 60 'build_newlib': 0, |
| 67 'build_irt': 1, | 61 'build_irt': 1, |
| 68 }, | 62 }, |
| 69 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], | 63 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], |
| 70 'link_flags': [ | 64 'link_flags': [ |
| 71 '-lsrpc', | 65 '-lsrpc', |
| 72 '-limc_syscalls', | 66 '-limc_syscalls', |
| 73 '-lplatform', | 67 '-lplatform', |
| 74 '-lgio', | 68 '-lgio', |
| 75 '-lm', | 69 '-lm', |
| 76 ], | 70 ], |
| 77 'dependencies': [ | 71 'dependencies': [ |
| 78 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', | 72 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', |
| 79 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', | 73 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', |
| 80 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 74 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
| 75 '<(DEPTH)/native_client/src/tools/tls_edit/tls_edit.gyp:tls_edit#host', |
| 81 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 76 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
| 82 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 77 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
| 83 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 78 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| 84 ], | 79 ], |
| 85 }, | 80 }, |
| 86 { | 81 { |
| 87 'target_name': 'irt_core_nexe', | |
| 88 'type': 'none', | |
| 89 'dependencies': [ | |
| 90 'irt_core_raw_nexe', | |
| 91 '<(DEPTH)/native_client/src/tools/tls_edit/tls_edit.gyp:tls_edit#host', | |
| 92 ], | |
| 93 'conditions': [ | |
| 94 ['target_arch=="arm"', { | |
| 95 'actions': [ | |
| 96 { | |
| 97 'action_name': 'tls_edit_irt_arm', | |
| 98 'message': 'Patching TLS for irt_core (arm)', | |
| 99 'msvs_cygwin_shell': 0, | |
| 100 'inputs': [ | |
| 101 '<(PRODUCT_DIR)/tls_edit', | |
| 102 '<(SHARED_INTERMEDIATE_DIR)/irt_core_arm_raw.nexe', | |
| 103 ], | |
| 104 'outputs': [ | |
| 105 '<(PRODUCT_DIR)/irt_core_newlib_arm.nexe', | |
| 106 ], | |
| 107 'action': ['<@(_inputs)', '<@(_outputs)'], | |
| 108 }, | |
| 109 ], | |
| 110 }], | |
| 111 ['target_arch!="arm"', { | |
| 112 'actions': [ | |
| 113 { | |
| 114 'action_name': 'tls_edit_irt_x86-64', | |
| 115 'message': 'Patching TLS for irt_core (x86-64)', | |
| 116 'msvs_cygwin_shell': 0, | |
| 117 'inputs': [ | |
| 118 '<(PRODUCT_DIR)/tls_edit', | |
| 119 '<(SHARED_INTERMEDIATE_DIR)/irt_core_x86_64_raw.nexe', | |
| 120 ], | |
| 121 'outputs': [ | |
| 122 '<(PRODUCT_DIR)/irt_core_newlib_x64.nexe', | |
| 123 ], | |
| 124 'action': ['<@(_inputs)', '<@(_outputs)'], | |
| 125 }, | |
| 126 { | |
| 127 'action_name': 'tls_edit_irt_x86-32', | |
| 128 'message': 'Patching TLS for irt_core (x86-32)', | |
| 129 'msvs_cygwin_shell': 0, | |
| 130 'inputs': [ | |
| 131 '<(PRODUCT_DIR)/tls_edit', | |
| 132 '<(SHARED_INTERMEDIATE_DIR)/irt_core_x86_32_raw.nexe', | |
| 133 ], | |
| 134 'outputs': [ | |
| 135 '<(PRODUCT_DIR)/irt_core_newlib_x32.nexe', | |
| 136 ], | |
| 137 'action': ['<@(_inputs)', '<@(_outputs)'], | |
| 138 }, | |
| 139 ], | |
| 140 }], | |
| 141 ], | |
| 142 }, | |
| 143 { | |
| 144 'target_name': 'irt_browser_lib', | 82 'target_name': 'irt_browser_lib', |
| 145 'type': 'none', | 83 'type': 'none', |
| 146 'variables': { | 84 'variables': { |
| 147 'nlib_target': 'libirt_browser.a', | 85 'nlib_target': 'libirt_browser.a', |
| 148 'build_glibc': 0, | 86 'build_glibc': 0, |
| 149 'build_newlib': 1, | 87 'build_newlib': 1, |
| 150 'build_irt': 1, | 88 'build_irt': 1, |
| 151 }, | 89 }, |
| 152 'sources': ['<@(irt_sources)', '<@(irt_browser)'], | 90 'sources': ['<@(irt_sources)', '<@(irt_browser)'], |
| 153 'include_dirs': ['../../../../ppapi'], | 91 'include_dirs': ['../../../../ppapi'], |
| 154 'dependencies': [ | 92 'dependencies': [ |
| 155 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 93 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
| 156 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 94 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
| 157 ], | 95 ], |
| 158 }, | 96 }, |
| 159 ], | 97 ], |
| 160 } | 98 } |
| OLD | NEW |