Chromium Code Reviews| 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' , | 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' , | 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', | 21 'out_newlib_arm': '>(nacl_newlib_out_dir)/>(nexe_target)_newlib_arm.nexe', |
| 22 'nmf_newlib': '>(nacl_newlib_out_dir)/>(nexe_target).nmf', | 22 'nmf_newlib': '>(nacl_newlib_out_dir)/>(nexe_target).nmf', |
| 23 'nacl_glibc_out_dir': '<(PRODUCT_DIR)/nacl_test_data/glibc', | 23 'nacl_glibc_out_dir': '<(PRODUCT_DIR)/nacl_test_data/glibc', |
| 24 'out_glibc32': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_32.nexe', | 24 'out_glibc32': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_32.nexe', |
| 25 'out_glibc64': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_64.nexe', | 25 'out_glibc64': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_x86_64.nexe', |
| 26 'out_glibc_arm': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_arm.nexe', | 26 'out_glibc_arm': '>(nacl_glibc_out_dir)/>(nexe_target)_glibc_arm.nexe', |
| 27 'nmf_glibc': '>(nacl_glibc_out_dir)/>(nexe_target).nmf', | 27 'nmf_glibc': '>(nacl_glibc_out_dir)/>(nexe_target).nmf', |
| 28 }, | 28 }, |
| 29 'dependencies': [ | 29 'dependencies': [ |
| 30 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', | |
| 30 '<(DEPTH)/ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib', | 31 '<(DEPTH)/ppapi/ppapi_untrusted.gyp:ppapi_cpp_lib', |
| 31 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', | 32 '<(DEPTH)/ppapi/native_client/native_client.gyp:ppapi_lib', |
| 32 ], | 33 ], |
| 33 'target_conditions': [ | 34 'target_conditions': [ |
| 34 ['test_files!=[] and build_newlib==1', { | 35 ['test_files!=[] and build_newlib==1', { |
| 35 'copies': [ | 36 'copies': [ |
| 36 { | 37 { |
| 37 'destination': '>(nacl_newlib_out_dir)', | 38 'destination': '>(nacl_newlib_out_dir)', |
| 38 'files': [ | 39 'files': [ |
| 39 '>@(test_files)', | 40 '>@(test_files)', |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 '>@(_inputs)', | 123 '>@(_inputs)', |
| 123 '--objdump=>(nacl_objdump)', | 124 '--objdump=>(nacl_objdump)', |
| 124 '--output=>(nmf_glibc)', | 125 '--output=>(nmf_glibc)', |
| 125 '--path-prefix=>(nexe_target)_libs', | 126 '--path-prefix=>(nexe_target)_libs', |
| 126 '--stage-dependencies=<(nacl_glibc_out_dir)', | 127 '--stage-dependencies=<(nacl_glibc_out_dir)', |
| 127 '--toolchain=glibc', | 128 '--toolchain=glibc', |
| 128 ], | 129 ], |
| 129 'target_conditions': [ | 130 'target_conditions': [ |
| 130 ['enable_x86_64==1', { | 131 ['enable_x86_64==1', { |
| 131 'inputs': ['>(out_glibc64)'], | 132 'inputs': ['>(out_glibc64)'], |
| 132 'action': ['--library-path=>(libdir_glibc64)'], | 133 'action': [ |
| 134 '--library-path=>(libdir_glibc64)', | |
| 135 '--library-path=<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib64' , | |
|
noelallen1
2012/09/21 23:20:25
Are you using anything that's not in the SDK here?
binji
2012/09/24 17:59:56
Presently, all untrusted .a and .so files are buil
| |
| 136 ], | |
| 133 }], | 137 }], |
| 134 ['enable_x86_32==1', { | 138 ['enable_x86_32==1', { |
| 135 'inputs': ['>(out_glibc32)'], | 139 'inputs': ['>(out_glibc32)'], |
| 136 'action': ['--library-path=>(libdir_glibc32)'], | 140 'action': [ |
| 141 '--library-path=>(libdir_glibc32)', | |
| 142 '--library-path=<(SHARED_INTERMEDIATE_DIR)/tc_glibc/lib32' , | |
| 143 ], | |
| 137 }], | 144 }], |
| 138 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. | 145 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. |
| 139 ], | 146 ], |
| 140 }, | 147 }, |
| 141 ], | 148 ], |
| 142 }], | 149 }], |
| 143 ], | 150 ], |
| 144 }], | 151 }], |
| 145 ], | 152 ], |
| 146 }, | 153 }, |
| 147 } | 154 } |
| OLD | NEW |