Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #! -*- python -*- | 1 #! -*- python -*- |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import atexit | 6 import atexit |
| 7 import glob | 7 import glob |
| 8 import os | 8 import os |
| 9 import platform | 9 import platform |
| 10 import shutil | 10 import shutil |
| (...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1961 return ('process_output_single' in extra or | 1961 return ('process_output_single' in extra or |
| 1962 'log_golden' in extra) | 1962 'log_golden' in extra) |
| 1963 | 1963 |
| 1964 # ---------------------------------------------------------- | 1964 # ---------------------------------------------------------- |
| 1965 DeclareBit('tests_use_irt', 'Non-browser tests also load the IRT image', False) | 1965 DeclareBit('tests_use_irt', 'Non-browser tests also load the IRT image', False) |
| 1966 | 1966 |
| 1967 # Translate the given pexe. | 1967 # Translate the given pexe. |
| 1968 def GetTranslatedNexe(env, pexe): | 1968 def GetTranslatedNexe(env, pexe): |
| 1969 pexe_name = pexe.abspath | 1969 pexe_name = pexe.abspath |
| 1970 nexe_name = pexe_name[:pexe_name.index('.pexe')] + '.nexe' | 1970 nexe_name = pexe_name[:pexe_name.index('.pexe')] + '.nexe' |
| 1971 trans_cmd = ('${TRANSLATE} ${TRANSLATEFLAGS} -Wl,-L${LIB_DIR} %s -o %s' % | 1971 trans_cmd = ('${TRANSLATECOM} ${TRANSLATEFLAGS} -Wl,-L${LIB_DIR} ${SOURCES} -o ${TARGET}') |
|
robertm
2012/03/15 22:25:49
can you follow the mode in naclsdk.py and define
| |
| 1972 (pexe_name, nexe_name)) | 1972 return env.Command(target=nexe_name, source=[pexe_name], |
| 1973 return env.Command(nexe_name, pexe_name, trans_cmd) | 1973 action=[Action(trans_cmd)]) |
| 1974 | 1974 |
| 1975 pre_base_env.AddMethod(GetTranslatedNexe) | 1975 pre_base_env.AddMethod(GetTranslatedNexe) |
| 1976 | 1976 |
| 1977 def CommandSelLdrTestNacl(env, name, nexe, | 1977 def CommandSelLdrTestNacl(env, name, nexe, |
| 1978 args = None, | 1978 args = None, |
| 1979 log_verbosity=2, | 1979 log_verbosity=2, |
| 1980 sel_ldr_flags=None, | 1980 sel_ldr_flags=None, |
| 1981 loader=None, | 1981 loader=None, |
| 1982 size='medium', | 1982 size='medium', |
| 1983 # True for *.nexe statically linked with glibc | 1983 # True for *.nexe statically linked with glibc |
| (...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3879 nacl_env.ValidateSdk() | 3879 nacl_env.ValidateSdk() |
| 3880 | 3880 |
| 3881 if BROKEN_TEST_COUNT > 0: | 3881 if BROKEN_TEST_COUNT > 0: |
| 3882 msg = "There are %d broken tests." % BROKEN_TEST_COUNT | 3882 msg = "There are %d broken tests." % BROKEN_TEST_COUNT |
| 3883 if GetOption('brief_comstr'): | 3883 if GetOption('brief_comstr'): |
| 3884 msg += " Add --verbose to the command line for more information." | 3884 msg += " Add --verbose to the command line for more information." |
| 3885 print msg | 3885 print msg |
| 3886 | 3886 |
| 3887 # separate warnings from actual build output | 3887 # separate warnings from actual build output |
| 3888 Banner('B U I L D - O U T P U T:') | 3888 Banner('B U I L D - O U T P U T:') |
| OLD | NEW |