Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2016 The V8 project authors. All rights reserved. | 1 # Copyright 2016 The V8 project 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 # The sources are kept automatically in sync with cctest.gyp. | 5 # The sources are kept automatically in sync with cctest.gyp. |
| 6 | 6 |
| 7 import("../../gni/v8.gni") | 7 import("../../gni/v8.gni") |
| 8 | 8 |
| 9 gypi_values = exec_script("//build/gypi_to_gn.py", | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
| 10 [ rebase_path("cctest.gyp") ], | 10 [ rebase_path("cctest.gyp") ], |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 40 sources += gypi_values.cctest_sources_ppc | 40 sources += gypi_values.cctest_sources_ppc |
| 41 } else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") { | 41 } else if (v8_current_cpu == "s390" || v8_current_cpu == "s390x") { |
| 42 sources += gypi_values.cctest_sources_s390 | 42 sources += gypi_values.cctest_sources_s390 |
| 43 } | 43 } |
| 44 | 44 |
| 45 if (is_linux) { | 45 if (is_linux) { |
| 46 # TODO(machenbach): Translate 'or OS=="qnx"' from gyp. | 46 # TODO(machenbach): Translate 'or OS=="qnx"' from gyp. |
| 47 sources += [ "test-platform-linux.cc" ] | 47 sources += [ "test-platform-linux.cc" ] |
| 48 } else if (is_win) { | 48 } else if (is_win) { |
| 49 sources += [ "test-platform-win32.cc" ] | 49 sources += [ "test-platform-win32.cc" ] |
| 50 # TODO(machenbach): Translate from gyp. | |
| 51 # "msvs_settings": { | |
| 52 # "VCCLCompilerTool": { | |
| 53 # # MSVS wants this for gay-{precision,shortest}.cc. | |
| 54 # "AdditionalOptions": ["/bigobj"], | |
| 55 # }, | |
| 56 # }, | |
| 57 } | 50 } |
| 58 | 51 |
| 59 configs = [ | 52 configs = [ |
| 60 "../..:external_config", | 53 "../..:external_config", |
| 61 "../..:internal_config_base", | 54 "../..:internal_config_base", |
| 62 ] | 55 ] |
| 63 | 56 |
| 64 # TODO(machenbach): Translate from gyp. | 57 # TODO(machenbach): Translate from gyp. |
| 65 #['v8_current_cpu=="ppc" or v8_current_cpu=="ppc64" \ | |
| 66 # or v8_current_cpu=="arm" or v8_current_cpu=="arm64" \ | |
| 67 # or v8_current_cpu=="s390" or v8_current_cpu=="s390x"', { | |
| 68 # # disable fmadd/fmsub so that expected results match generated code in | |
| 69 # # RunFloat64MulAndFloat64Add1 and friends. | |
| 70 # 'cflags': ['-ffp-contract=off'], | |
| 71 #}], | |
| 72 | |
| 73 # TODO(machenbach): Translate from gyp. | |
| 74 #["OS=="aix"", { | 58 #["OS=="aix"", { |
|
vogelheim
2016/07/22 09:45:25
.. Since you now had ldflags, this would trivially
Michael Achenbach
2016/07/22 09:49:45
Like to keep it separate as I have no clue about A
| |
| 75 # "ldflags": [ "-Wl,-bbigtoc" ], | 59 # "ldflags": [ "-Wl,-bbigtoc" ], |
| 76 #}], | 60 #}], |
| 77 | 61 |
| 78 deps = [ | 62 deps = [ |
| 79 ":resources", | 63 ":resources", |
| 80 "../..:v8_libplatform", | 64 "../..:v8_libplatform", |
| 81 "//build/config/sanitizers:deps", | 65 "//build/config/sanitizers:deps", |
| 82 "//build/win:default_exe_manifest", | 66 "//build/win:default_exe_manifest", |
| 83 ] | 67 ] |
| 84 | 68 |
| 85 if (is_component_build) { | 69 if (is_component_build) { |
| 86 # cctest can't be built against a shared library, so we | 70 # cctest can't be built against a shared library, so we |
| 87 # need to depend on the underlying static target in that case. | 71 # need to depend on the underlying static target in that case. |
| 88 deps += [ "../..:v8_maybe_snapshot" ] | 72 deps += [ "../..:v8_maybe_snapshot" ] |
| 89 } else { | 73 } else { |
| 90 deps += [ "../..:v8" ] | 74 deps += [ "../..:v8" ] |
| 91 } | 75 } |
| 92 | 76 |
| 77 cflags = [] | |
| 78 ldflags = [] | |
| 79 | |
| 80 if (v8_current_cpu == "ppc" || v8_current_cpu == "ppc64" || | |
| 81 v8_current_cpu=="arm" || v8_current_cpu=="arm64" || | |
|
vogelheim
2016/07/22 09:45:25
style nitpick: please unify whitespace around the
Michael Achenbach
2016/07/22 09:49:45
Done.
| |
| 82 v8_current_cpu=="s390" || v8_current_cpu=="s390x") { | |
| 83 # Disable fmadd/fmsub so that expected results match generated code in | |
| 84 # RunFloat64MulAndFloat64Add1 and friends. | |
| 85 cflags += [ "-ffp-contract=off" ] | |
| 86 } | |
| 87 | |
| 93 if (is_win) { | 88 if (is_win) { |
| 94 # This warning is benignly triggered by the U16 and U32 macros in | 89 # This warning is benignly triggered by the U16 and U32 macros in |
| 95 # bytecode-utils.h. | 90 # bytecode-utils.h. |
| 96 # C4309: 'static_cast': truncation of constant value | 91 # C4309: 'static_cast': truncation of constant value |
| 97 cflags = [ "/wd4309" ] | 92 cflags += [ "/wd4309" ] |
| 93 | |
| 94 # MSVS wants this for gay-{precision,shortest}.cc. | |
| 95 cflags += [ "/bigobj" ] | |
| 98 | 96 |
| 99 # Suppress warnings about importing locally defined symbols. | 97 # Suppress warnings about importing locally defined symbols. |
| 100 if (is_component_build) { | 98 if (is_component_build) { |
| 101 ldflags = [ | 99 ldflags += [ |
| 102 "/ignore:4049", | 100 "/ignore:4049", |
| 103 "/ignore:4217", | 101 "/ignore:4217", |
| 104 ] | 102 ] |
| 105 } | 103 } |
| 106 } | 104 } |
| 107 } | 105 } |
| 108 | 106 |
| 109 action("resources") { | 107 action("resources") { |
| 110 visibility = [ ":*" ] # Only targets in this file can depend on this. | 108 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 111 | 109 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 158 "//build/win:default_exe_manifest", | 156 "//build/win:default_exe_manifest", |
| 159 ] | 157 ] |
| 160 | 158 |
| 161 if (is_component_build) { | 159 if (is_component_build) { |
| 162 # Same as cctest, we need to depend on the underlying static target. | 160 # Same as cctest, we need to depend on the underlying static target. |
| 163 deps += [ "../..:v8_maybe_snapshot" ] | 161 deps += [ "../..:v8_maybe_snapshot" ] |
| 164 } else { | 162 } else { |
| 165 deps += [ "../..:v8" ] | 163 deps += [ "../..:v8" ] |
| 166 } | 164 } |
| 167 } | 165 } |
| OLD | NEW |