Index: BUILD.gn |
diff --git a/BUILD.gn b/BUILD.gn |
index f3d670daf961bc7bb3c21d10fbe194d3e91fb2c0..00ccf656f0987fc6fb46bf0663cdb1b897d40dfb 100644 |
--- a/BUILD.gn |
+++ b/BUILD.gn |
@@ -2254,3 +2254,59 @@ source_set("wasm_asmjs_fuzzer") { |
":toolchain", |
] |
} |
+ |
+executable("hello-world") { |
+ sources = [ |
+ "samples/hello-world.cc", |
+ ] |
+ |
+ configs -= [ "//build/config/compiler:chromium_code" ] |
+ configs += [ "//build/config/compiler:no_chromium_code" ] |
+ configs += [ |
+ # Note: don't use :internal_config here because this target will get |
+ # the :external_config applied to it by virtue of depending on :v8, and |
+ # you can't have both applied to the same target. |
+ ":internal_config_base", |
+ ":features", |
+ ":toolchain", |
+ ] |
+ |
+ deps = [ |
+ ":v8", |
+ ":v8_libplatform", |
+ "//build/config/sanitizers:deps", |
+ "//build/win:default_exe_manifest", |
+ ] |
+ |
+ if (v8_enable_i18n_support) { |
+ deps += [ "//third_party/icu" ] |
+ } |
+} |
+ |
+executable("process") { |
+ sources = [ |
+ "samples/process.cc", |
+ ] |
+ |
+ configs -= [ "//build/config/compiler:chromium_code" ] |
+ configs += [ "//build/config/compiler:no_chromium_code" ] |
+ configs += [ |
+ # Note: don't use :internal_config here because this target will get |
+ # the :external_config applied to it by virtue of depending on :v8, and |
+ # you can't have both applied to the same target. |
+ ":internal_config_base", |
+ ":features", |
+ ":toolchain", |
+ ] |
+ |
+ deps = [ |
+ ":v8", |
+ ":v8_libplatform", |
+ "//build/config/sanitizers:deps", |
+ "//build/win:default_exe_manifest", |
+ ] |
+ |
+ if (v8_enable_i18n_support) { |
+ deps += [ "//third_party/icu" ] |
+ } |
+} |