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

Side by Side Diff: BUILD.gn

Issue 1955723003: Add GN targets for samples (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 | no next file » | no next file with comments »
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 2236 matching lines...) Expand 10 before | Expand all | Expand 10 after
2247 2247
2248 configs -= [ "//build/config/compiler:chromium_code" ] 2248 configs -= [ "//build/config/compiler:chromium_code" ]
2249 configs += [ "//build/config/compiler:no_chromium_code" ] 2249 configs += [ "//build/config/compiler:no_chromium_code" ]
2250 configs += [ 2250 configs += [
2251 ":internal_config", 2251 ":internal_config",
2252 ":libplatform_config", 2252 ":libplatform_config",
2253 ":features", 2253 ":features",
2254 ":toolchain", 2254 ":toolchain",
2255 ] 2255 ]
2256 } 2256 }
2257
2258 executable("hello-world") {
2259 sources = [
2260 "samples/hello-world.cc",
2261 ]
2262
2263 configs -= [ "//build/config/compiler:chromium_code" ]
2264 configs += [ "//build/config/compiler:no_chromium_code" ]
2265 configs += [
2266 # Note: don't use :internal_config here because this target will get
2267 # the :external_config applied to it by virtue of depending on :v8, and
2268 # you can't have both applied to the same target.
2269 ":internal_config_base",
2270 ":features",
2271 ":toolchain",
2272 ]
2273
2274 deps = [
2275 ":v8",
2276 ":v8_libplatform",
2277 "//build/config/sanitizers:deps",
2278 "//build/win:default_exe_manifest",
2279 ]
2280
2281 if (v8_enable_i18n_support) {
2282 deps += [ "//third_party/icu" ]
2283 }
2284 }
2285
2286 executable("process") {
2287 sources = [
2288 "samples/process.cc",
2289 ]
2290
2291 configs -= [ "//build/config/compiler:chromium_code" ]
2292 configs += [ "//build/config/compiler:no_chromium_code" ]
2293 configs += [
2294 # Note: don't use :internal_config here because this target will get
2295 # the :external_config applied to it by virtue of depending on :v8, and
2296 # you can't have both applied to the same target.
2297 ":internal_config_base",
2298 ":features",
2299 ":toolchain",
2300 ]
2301
2302 deps = [
2303 ":v8",
2304 ":v8_libplatform",
2305 "//build/config/sanitizers:deps",
2306 "//build/win:default_exe_manifest",
2307 ]
2308
2309 if (v8_enable_i18n_support) {
2310 deps += [ "//third_party/icu" ]
2311 }
2312 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698