Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Side by Side Diff: BUILD.gn

Issue 2011853002: [gn] Add unittests (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixing v8_shell dependency Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build_overrides/gtest.gni » ('j') | test/unittests/BUILD.gn » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 import("//build/config/mips.gni") 7 import("//build/config/mips.gni")
8 import("//build/config/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 9
10 if (is_android) { 10 if (is_android) {
(...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after
2014 "//build/config/sanitizers:deps", 2014 "//build/config/sanitizers:deps",
2015 "//build/win:default_exe_manifest", 2015 "//build/win:default_exe_manifest",
2016 ] 2016 ]
2017 } 2017 }
2018 } 2018 }
2019 2019
2020 ############################################################################### 2020 ###############################################################################
2021 # Public targets 2021 # Public targets
2022 # 2022 #
2023 2023
2024 want_v8_shell = (
2025 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") ||
2026 (current_toolchain == v8_snapshot_toolchain &&
2027 v8_toolset_for_shell == "host") ||
2028 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target"))
2029
2030 group("gn_all") {
2031 testonly = true
2032
2033 deps = [
2034 ":d8",
2035 ]
2036
2037 if (want_v8_shell) {
2038 deps += [
2039 ":v8_shell",
2040 ]
2041 }
2042
2043 if (host_os != "mac" || !is_android) {
2044 # These items don't compile for Android on Mac.
2045 deps += [
2046 "test/unittests:unittests",
2047 ]
2048 }
2049 }
2050
2024 if (is_component_build) { 2051 if (is_component_build) {
2025 component("v8") { 2052 component("v8") {
2026 sources = [ 2053 sources = [
2027 "src/v8dll-main.cc", 2054 "src/v8dll-main.cc",
2028 ] 2055 ]
2029 2056
2030 public_deps = [ 2057 public_deps = [
2031 ":v8_base", 2058 ":v8_base",
2032 snapshot_target, 2059 snapshot_target,
2033 ] 2060 ]
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
2086 } 2113 }
2087 2114
2088 if (!is_component_build) { 2115 if (!is_component_build) {
2089 sources += [ "$target_gen_dir/d8-js.cc" ] 2116 sources += [ "$target_gen_dir/d8-js.cc" ]
2090 } 2117 }
2091 if (v8_enable_i18n_support) { 2118 if (v8_enable_i18n_support) {
2092 deps += [ "//third_party/icu" ] 2119 deps += [ "//third_party/icu" ]
2093 } 2120 }
2094 } 2121 }
2095 2122
2096 if ((current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || 2123 if (want_v8_shell) {
2097 (current_toolchain == v8_snapshot_toolchain &&
2098 v8_toolset_for_shell == "host") ||
2099 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) {
2100 executable("v8_shell") { 2124 executable("v8_shell") {
2101 sources = [ 2125 sources = [
2102 "samples/shell.cc", 2126 "samples/shell.cc",
2103 ] 2127 ]
2104 2128
2105 configs -= [ "//build/config/compiler:chromium_code" ] 2129 configs -= [ "//build/config/compiler:chromium_code" ]
2106 configs += [ "//build/config/compiler:no_chromium_code" ] 2130 configs += [ "//build/config/compiler:no_chromium_code" ]
2107 configs += [ 2131 configs += [
2108 # Note: don't use :internal_config here because this target will get 2132 # Note: don't use :internal_config here because this target will get
2109 # the :external_config applied to it by virtue of depending on :v8, and 2133 # the :external_config applied to it by virtue of depending on :v8, and
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
2178 sources = [ 2202 sources = [
2179 "test/fuzzer/wasm-asmjs.cc", 2203 "test/fuzzer/wasm-asmjs.cc",
2180 ] 2204 ]
2181 2205
2182 deps = [ 2206 deps = [
2183 ":fuzzer_support", 2207 ":fuzzer_support",
2184 ] 2208 ]
2185 2209
2186 configs = [ ":internal_config" ] 2210 configs = [ ":internal_config" ]
2187 } 2211 }
OLDNEW
« no previous file with comments | « no previous file | build_overrides/gtest.gni » ('j') | test/unittests/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698