Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 ], | 83 ], |
| 84 'link_flags': [ | 84 'link_flags': [ |
| 85 '-lppapi_cpp', | 85 '-lppapi_cpp', |
| 86 '-lppapi', | 86 '-lppapi', |
| 87 '-pthread', | 87 '-pthread', |
| 88 ], | 88 ], |
| 89 'extra_args': [ | 89 'extra_args': [ |
| 90 '--strip-all', | 90 '--strip-all', |
| 91 ], | 91 ], |
| 92 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', | 92 'create_nmf': '<(DEPTH)/native_client_sdk/src/tools/create_nmf.py', |
| 93 'create_nmf_args_portable%': [], | |
| 93 }, | 94 }, |
| 94 'target_conditions': [ | 95 'target_conditions': [ |
| 95 ['generate_nmf==1 and build_newlib==1', { | 96 ['generate_nmf==1 and build_newlib==1', { |
| 96 'actions': [ | 97 'actions': [ |
| 97 { | 98 { |
| 98 'action_name': 'Generate NEWLIB NMF', | 99 'action_name': 'Generate NEWLIB NMF', |
| 99 'inputs': ['>(create_nmf)'], | 100 'inputs': ['>(create_nmf)'], |
|
bradn
2014/01/10 17:48:36
I think you'll also need a variable to list bonus
bradnelson
2014/01/10 17:54:54
For the record, the manifest does not strictly dep
| |
| 100 'outputs': ['>(nmf_newlib)'], | 101 'outputs': ['>(nmf_newlib)'], |
| 101 'action': [ | 102 'action': [ |
| 102 'python', | 103 'python', |
| 103 '>@(_inputs)', | 104 '>(create_nmf)', |
| 104 '--output=>(nmf_newlib)', | 105 '--output=>(nmf_newlib)', |
| 106 '>@(create_nmf_args_portable)', | |
| 105 ], | 107 ], |
| 106 'target_conditions': [ | 108 'target_conditions': [ |
| 107 ['enable_x86_64==1', { | 109 ['enable_x86_64==1', { |
| 108 'inputs': ['>(out_newlib64)'], | 110 'inputs': ['>(out_newlib64)'], |
| 111 'action': ['>(out_newlib64)'], | |
| 109 }], | 112 }], |
| 110 ['enable_x86_32==1', { | 113 ['enable_x86_32==1', { |
| 111 'inputs': ['>(out_newlib32)'], | 114 'inputs': ['>(out_newlib32)'], |
| 115 'action': ['>(out_newlib32)'], | |
| 112 }], | 116 }], |
| 113 ['enable_arm==1', { | 117 ['enable_arm==1', { |
| 114 'inputs': ['>(out_newlib_arm)'], | 118 'inputs': ['>(out_newlib_arm)'], |
| 119 'action': ['>(out_newlib_arm)'], | |
| 115 }], | 120 }], |
| 116 ], | 121 ], |
| 117 }, | 122 }, |
| 118 ], | 123 ], |
| 119 }], | 124 }], |
| 120 ['"<(target_arch)"!="arm" and generate_nmf==1 and disable_glibc==0 and build_glibc==1', { | 125 ['"<(target_arch)"!="arm" and generate_nmf==1 and disable_glibc==0 and build_glibc==1', { |
| 121 'variables': { | 126 'variables': { |
| 122 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which | 127 # NOTE: Use /lib, not /lib64 here; it is a symbolic link which |
| 123 # doesn't work on Windows. | 128 # doesn't work on Windows. |
| 124 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', | 129 'libdir_glibc64': '>(nacl_glibc_tc_root)/x86_64-nacl/lib', |
| 125 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', | 130 'libdir_glibc32': '>(nacl_glibc_tc_root)/x86_64-nacl/lib32', |
| 126 'nacl_objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump', | 131 'nacl_objdump': '>(nacl_glibc_tc_root)/bin/x86_64-nacl-objdump', |
| 127 }, | 132 }, |
| 128 'actions': [ | 133 'actions': [ |
| 129 { | 134 { |
| 130 'action_name': 'Generate GLIBC NMF and copy libs', | 135 'action_name': 'Generate GLIBC NMF and copy libs', |
| 131 'inputs': ['>(create_nmf)'], | 136 'inputs': ['>(create_nmf)'], |
| 132 # NOTE: There is no explicit dependency for the lib32 | 137 # NOTE: There is no explicit dependency for the lib32 |
| 133 # and lib64 directories created in the PRODUCT_DIR. | 138 # and lib64 directories created in the PRODUCT_DIR. |
| 134 # They are created as a side-effect of NMF creation. | 139 # They are created as a side-effect of NMF creation. |
| 135 'outputs': ['>(nmf_glibc)'], | 140 'outputs': ['>(nmf_glibc)'], |
| 136 'action': [ | 141 'action': [ |
| 137 'python', | 142 'python', |
| 138 '>@(_inputs)', | 143 '>(create_nmf)', |
| 139 '--objdump=>(nacl_objdump)', | 144 '--objdump=>(nacl_objdump)', |
| 140 '--output=>(nmf_glibc)', | 145 '--output=>(nmf_glibc)', |
| 141 '--path-prefix=>(nexe_target)_libs', | 146 '--path-prefix=>(nexe_target)_libs', |
| 142 '--stage-dependencies=<(nacl_glibc_out_dir)', | 147 '--stage-dependencies=<(nacl_glibc_out_dir)', |
| 148 '>@(create_nmf_args_portable)', | |
| 143 ], | 149 ], |
| 144 'target_conditions': [ | 150 'target_conditions': [ |
| 145 ['enable_x86_64==1', { | 151 ['enable_x86_64==1', { |
| 146 'inputs': ['>(out_glibc64)'], | 152 'inputs': ['>(out_glibc64)'], |
| 147 'action': [ | 153 'action': [ |
| 154 '>(out_glibc64)', | |
| 148 '--library-path=>(libdir_glibc64)', | 155 '--library-path=>(libdir_glibc64)', |
| 149 '--library-path=>(tc_lib_dir_glibc64)', | 156 '--library-path=>(tc_lib_dir_glibc64)', |
| 150 ], | 157 ], |
| 151 }], | 158 }], |
| 152 ['enable_x86_32==1', { | 159 ['enable_x86_32==1', { |
| 153 'inputs': ['>(out_glibc32)'], | 160 'inputs': ['>(out_glibc32)'], |
| 154 'action': [ | 161 'action': [ |
| 162 '>(out_glibc32)', | |
| 155 '--library-path=>(libdir_glibc32)', | 163 '--library-path=>(libdir_glibc32)', |
| 156 '--library-path=>(tc_lib_dir_glibc32)', | 164 '--library-path=>(tc_lib_dir_glibc32)', |
| 157 ], | 165 ], |
| 158 }], | 166 }], |
| 159 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. | 167 # TODO(ncbray) handle arm case. We don't have ARM glibc yet. |
| 160 ], | 168 ], |
| 161 }, | 169 }, |
| 162 ], | 170 ], |
| 163 }], | 171 }], |
| 164 ['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0', { | 172 ['generate_nmf==1 and build_pnacl_newlib==1 and disable_pnacl==0', { |
| 165 'actions': [ | 173 'actions': [ |
| 166 { | 174 { |
| 167 'action_name': 'Generate PNACL NEWLIB NMF', | 175 'action_name': 'Generate PNACL NEWLIB NMF', |
| 168 # NOTE: create_nmf must be first, it is the script python | 176 # NOTE: create_nmf must be first, it is the script python |
| 169 # executes below. | 177 # executes below. |
| 170 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib)'], | 178 'inputs': ['>(create_nmf)', '>(out_pnacl_newlib)'], |
| 171 'outputs': ['>(nmf_pnacl_newlib)'], | 179 'outputs': ['>(nmf_pnacl_newlib)'], |
| 172 'action': [ | 180 'action': [ |
| 173 'python', | 181 'python', |
| 174 '>@(_inputs)', | 182 '>(create_nmf)', |
| 175 '--output=>(nmf_pnacl_newlib)', | 183 '--output=>(nmf_pnacl_newlib)', |
| 184 '>(out_pnacl_newlib)', | |
| 185 '>@(create_nmf_args_portable)', | |
| 176 ], | 186 ], |
| 177 }, | 187 }, |
| 178 ], | 188 ], |
| 179 }], | 189 }], |
| 180 ], | 190 ], |
| 181 }], | 191 }], |
| 182 ], | 192 ], |
| 183 }, | 193 }, |
| 184 } | 194 } |
| OLD | NEW |