| 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 '../../../../native_client/build/untrusted.gypi', | 7 '../../../../native_client/build/untrusted.gypi', |
| 8 ], | 8 ], |
| 9 'target_defaults': { | 9 'target_defaults': { |
| 10 # We need to override the variables in untrusted.gypi outside of a | 10 # We need to override the variables in untrusted.gypi outside of a |
| 11 # target_condition block because the target_condition block in | 11 # target_condition block because the target_condition block in |
| 12 # untrusted gypi is fully evaluated and interpolated before any of the | 12 # untrusted gypi is fully evaluated and interpolated before any of the |
| 13 # target_condition blocks in this file are expanded. This means that any | 13 # target_condition blocks in this file are expanded. This means that any |
| 14 # variables overriden inside a target_condition block in this file will not | 14 # variables overriden inside a target_condition block in this file will not |
| 15 # affect the values in untrusted.gypi. | 15 # affect the values in untrusted.gypi. |
| 16 'variables': { | 16 'variables': { |
| 17 'test_files': [], | 17 'test_files': [], |
| 18 'nacl_newlib_out_dir': '<(PRODUCT_DIR)/nacl_test_data/newlib', | 18 'nacl_newlib_out_dir': '<(PRODUCT_DIR)/nacl_test_data/newlib', |
| 19 'out_newlib32': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_32.nexe'
, | |
| 20 'out_newlib64': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_64.nexe'
, | |
| 21 'out_newlib_arm': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_arm.nexe', | |
| 22 'nmf_newlib': '>(nacl_newlib_out_dir)/>(nexe_target).nmf', | |
| 23 'nacl_glibc_out_dir': '<(PRODUCT_DIR)/nacl_test_data/glibc', | 19 'nacl_glibc_out_dir': '<(PRODUCT_DIR)/nacl_test_data/glibc', |
| 24 'out_glibc32': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_32.nexe', | 20 'target_conditions': [ |
| 25 'out_glibc64': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_64.nexe', | 21 ['nexe_target!=""', { |
| 26 'out_glibc_arm': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_arm.nexe', | 22 # These variables are used for nexe building and for library building, |
| 27 'nmf_glibc': '>(nacl_glibc_out_dir)/>(nexe_target).nmf', | 23 # so they should be unconditionally re-defined. |
| 24 'out_newlib32': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_32.n
exe', |
| 25 'out_newlib64': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_x86_64.n
exe', |
| 26 'out_newlib_arm': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_arm.ne
xe', |
| 27 'nmf_newlib': '>(nacl_newlib_out_dir)/>(nexe_target).nmf', |
| 28 'out_glibc32': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_32.nexe
', |
| 29 'out_glibc64': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_64.nexe
', |
| 30 'out_glibc_arm': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_arm.nexe'
, |
| 31 'nmf_glibc': '>(nacl_glibc_out_dir)/>(nexe_target).nmf', |
| 32 }], |
| 33 ], |
| 28 }, | 34 }, |
| 29 'dependencies': [ | 35 'dependencies': [ |
| 30 '<(DEPTH)/ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib', | 36 '<(DEPTH)/ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib', |
| 31 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', | 37 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', |
| 32 ], | 38 ], |
| 33 'target_conditions': [ | 39 'target_conditions': [ |
| 34 ['test_files!=[] and build_newlib==1', { | 40 ['test_files!=[] and build_newlib==1', { |
| 35 'copies': [ | 41 'copies': [ |
| 36 { | 42 { |
| 37 'destination': '>(nacl_newlib_out_dir)', | 43 'destination': '>(nacl_newlib_out_dir)', |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 '>@(_inputs)', | 128 '>@(_inputs)', |
| 123 '--objdump=>(nacl_objdump)', | 129 '--objdump=>(nacl_objdump)', |
| 124 '--output=>(nmf_glibc)', | 130 '--output=>(nmf_glibc)', |
| 125 '--path-prefix=>(nexe_target)_libs', | 131 '--path-prefix=>(nexe_target)_libs', |
| 126 '--stage-dependencies=<(nacl_glibc_out_dir)', | 132 '--stage-dependencies=<(nacl_glibc_out_dir)', |
| 127 '--toolchain=glibc', | 133 '--toolchain=glibc', |
| 128 ], | 134 ], |
| 129 'target_conditions': [ | 135 'target_conditions': [ |
| 130 ['enable_x86_64==1', { | 136 ['enable_x86_64==1', { |
| 131 'inputs': ['>(out_glibc64)'], | 137 'inputs': ['>(out_glibc64)'], |
| 132 'action': ['--library-path=>(libdir_glibc64)'], | 138 'action': [ |
| 139 '--library-path=>(libdir_glibc64)', |
| 140 '--library-path=<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64'
, |
| 141 ], |
| 133 }], | 142 }], |
| 134 ['enable_x86_32==1', { | 143 ['enable_x86_32==1', { |
| 135 'inputs': ['>(out_glibc32)'], | 144 'inputs': ['>(out_glibc32)'], |
| 136 'action': ['--library-path=>(libdir_glibc32)'], | 145 'action': [ |
| 146 '--library-path=>(libdir_glibc32)', |
| 147 '--library-path=<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32'
, |
| 148 ], |
| 137 }], | 149 }], |
| 138 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. | 150 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. |
| 139 ], | 151 ], |
| 140 }, | 152 }, |
| 141 ], | 153 ], |
| 142 }], | 154 }], |
| 143 ], | 155 ], |
| 144 }], | 156 }], |
| 145 ], | 157 ], |
| 146 }, | 158 }, |
| 147 } | 159 } |
| OLD | NEW |