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_nexe', | 55 'target_name': 'tls_edit', |
| 56 'type': 'executable', |
| 57 'toolsets': ['host'], |
| 58 'sources': [ |
| 59 'tls_edit.c', |
| 60 ], |
| 61 'dependencies': [ |
| 62 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform', |
| 63 '<(DEPTH)/native_client/src/trusted/validator_ragel/rdfa_validator.gyp:r
dfa_validator', |
| 64 ], |
| 65 }, |
| 66 { |
| 67 'target_name': 'irt_core_raw_nexe', |
56 'type': 'none', | 68 'type': 'none', |
57 'variables': { | 69 'variables': { |
58 'nexe_target': 'irt_core', | 70 'nexe_target': 'irt_core_raw', |
| 71 # These out_* fields override the default filenames, which |
| 72 # include a "_newlib" suffix and places them in the target |
| 73 # directory. |
| 74 'out_newlib64': '<(SHARED_INTERMEDIATE_DIR)/irt_core_x86_64_raw.nexe', |
| 75 'out_newlib32': '<(SHARED_INTERMEDIATE_DIR)/irt_core_x86_32_raw.nexe', |
| 76 'out_newlib_arm': '<(SHARED_INTERMEDIATE_DIR)/irt_core_arm_raw.nexe', |
59 'build_glibc': 0, | 77 'build_glibc': 0, |
60 'build_newlib': 0, | 78 'build_newlib': 0, |
61 'build_irt': 1, | 79 'build_irt': 1, |
62 }, | 80 }, |
63 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], | 81 'sources': ['<@(irt_sources)', '<@(irt_nonbrowser)'], |
64 'link_flags': [ | 82 'link_flags': [ |
65 '-lsrpc', | 83 '-lsrpc', |
66 '-limc_syscalls', | 84 '-limc_syscalls', |
67 '-lplatform', | 85 '-lplatform', |
68 '-lgio', | 86 '-lgio', |
(...skipping 10 matching lines...) Expand all Loading... |
79 'dependencies': [ | 97 'dependencies': [ |
80 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', | 98 '<(DEPTH)/native_client/src/shared/gio/gio.gyp:gio_lib', |
81 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', | 99 '<(DEPTH)/native_client/src/shared/platform/platform.gyp:platform_lib', |
82 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', | 100 '<(DEPTH)/native_client/src/shared/srpc/srpc.gyp:srpc_lib', |
83 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', | 101 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib', |
84 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 102 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
85 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 103 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
86 ], | 104 ], |
87 }, | 105 }, |
88 { | 106 { |
| 107 'target_name': 'irt_core_nexe', |
| 108 'type': 'none', |
| 109 'dependencies': [ |
| 110 'irt_core_raw_nexe', |
| 111 'tls_edit#host', |
| 112 ], |
| 113 'conditions': [ |
| 114 ['target_arch=="arm"', { |
| 115 'actions': [ |
| 116 { |
| 117 'action_name': 'tls_edit_irt_arm', |
| 118 'message': 'Patching TLS for irt_core (arm)', |
| 119 'msvs_cygwin_shell': 0, |
| 120 'inputs': [ |
| 121 '<(PRODUCT_DIR)/tls_edit', |
| 122 '<(SHARED_INTERMEDIATE_DIR)/irt_core_arm_raw.nexe', |
| 123 ], |
| 124 'outputs': [ |
| 125 '<(PRODUCT_DIR)/irt_core_newlib_arm.nexe', |
| 126 ], |
| 127 'action': ['<@(_inputs)', '<@(_outputs)'], |
| 128 }, |
| 129 ], |
| 130 }], |
| 131 ['target_arch!="arm"', { |
| 132 'actions': [ |
| 133 { |
| 134 'action_name': 'tls_edit_irt_x64', |
| 135 'message': 'Patching TLS for irt_core (x86-64)', |
| 136 'msvs_cygwin_shell': 0, |
| 137 'inputs': [ |
| 138 '<(PRODUCT_DIR)/tls_edit', |
| 139 '<(SHARED_INTERMEDIATE_DIR)/irt_core_x86_64_raw.nexe', |
| 140 ], |
| 141 'outputs': [ |
| 142 '<(PRODUCT_DIR)/irt_core_newlib_x64.nexe', |
| 143 ], |
| 144 'action': ['<@(_inputs)', '<@(_outputs)'], |
| 145 }, |
| 146 { |
| 147 'action_name': 'tls_edit_irt_x32', |
| 148 'message': 'Patching TLS for irt_core (x86-32)', |
| 149 'msvs_cygwin_shell': 0, |
| 150 'inputs': [ |
| 151 '<(PRODUCT_DIR)/tls_edit', |
| 152 '<(SHARED_INTERMEDIATE_DIR)/irt_core_x86_32_raw.nexe', |
| 153 ], |
| 154 'outputs': [ |
| 155 '<(PRODUCT_DIR)/irt_core_newlib_x32.nexe', |
| 156 ], |
| 157 'action': ['<@(_inputs)', '<@(_outputs)'], |
| 158 }, |
| 159 ], |
| 160 }], |
| 161 ], |
| 162 }, |
| 163 { |
89 'target_name': 'irt_browser_lib', | 164 'target_name': 'irt_browser_lib', |
90 'type': 'none', | 165 'type': 'none', |
91 'variables': { | 166 'variables': { |
92 'nlib_target': 'libirt_browser.a', | 167 'nlib_target': 'libirt_browser.a', |
93 'build_glibc': 0, | 168 'build_glibc': 0, |
94 'build_newlib': 1, | 169 'build_newlib': 1, |
95 'build_irt': 1, | 170 'build_irt': 1, |
96 }, | 171 }, |
97 'sources': ['<@(irt_sources)', '<@(irt_browser)'], | 172 'sources': ['<@(irt_sources)', '<@(irt_browser)'], |
98 'include_dirs': ['../../../../ppapi'], | 173 'include_dirs': ['../../../../ppapi'], |
99 'conditions': [ | 174 'conditions': [ |
100 ['target_arch=="arm"', { | 175 ['target_arch=="arm"', { |
101 'sources': [ 'aeabi_read_tp.S' ], | 176 'sources': [ 'aeabi_read_tp.S' ], |
102 }], | 177 }], |
103 ], | 178 ], |
104 'dependencies': [ | 179 'dependencies': [ |
105 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', | 180 '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
106 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', | 181 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib_newlib', |
107 ], | 182 ], |
108 }, | 183 }, |
109 ], | 184 ], |
110 } | 185 } |
OLD | NEW |