From 91172d638734c7abccce7880ff9375a5ffb6036f Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 17 Jul 2018 18:45:13 -0700 Subject: [PATCH] build: [gn] move native_mate build config to native_mate dir (#13706) --- BUILD.gn | 39 +-------------------------------------- native_mate/BUILD.gn | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+), 38 deletions(-) create mode 100644 native_mate/BUILD.gn diff --git a/BUILD.gn b/BUILD.gn index 7924a3df59a3..6d057babefa1 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -68,43 +68,6 @@ config("features") { } } -config("native_mate_config") { - include_dirs = [ "native_mate" ] - cflags_cc = [ "-Wno-deprecated-declarations" ] - cflags_objcc = cflags_cc -} - -source_set("native_mate") { - deps = [ - "//base", - "//net", - "//v8:v8_headers", - "build/node", - ] - public_configs = [ ":native_mate_config" ] - sources = [ - "native_mate/native_mate/arguments.cc", - "native_mate/native_mate/arguments.h", - "native_mate/native_mate/compat.h", - "native_mate/native_mate/constructor.h", - "native_mate/native_mate/converter.cc", - "native_mate/native_mate/converter.h", - "native_mate/native_mate/dictionary.cc", - "native_mate/native_mate/dictionary.h", - "native_mate/native_mate/function_template.cc", - "native_mate/native_mate/function_template.h", - "native_mate/native_mate/handle.h", - "native_mate/native_mate/object_template_builder.cc", - "native_mate/native_mate/object_template_builder.h", - "native_mate/native_mate/persistent_dictionary.cc", - "native_mate/native_mate/persistent_dictionary.h", - "native_mate/native_mate/scoped_persistent.h", - "native_mate/native_mate/wrappable.cc", - "native_mate/native_mate/wrappable.h", - "native_mate/native_mate/wrappable_base.h", - ] -} - npm_action("atom_browserify_sandbox") { deps = [ ":atom_js2c_copy" ] @@ -237,9 +200,9 @@ static_library("electron_lib") { "//ui/views", "//v8", ":atom_js2c", - ":native_mate", "brightray", "build/node", + "native_mate", ] include_dirs = [ "chromium_src", diff --git a/native_mate/BUILD.gn b/native_mate/BUILD.gn new file mode 100644 index 000000000000..ae7bac1e70c6 --- /dev/null +++ b/native_mate/BUILD.gn @@ -0,0 +1,36 @@ +config("native_mate_config") { + include_dirs = [ "." ] + cflags_cc = [ "-Wno-deprecated-declarations" ] + cflags_objcc = cflags_cc +} + +source_set("native_mate") { + deps = [ + "../build/node", + "//base", + "//net", + "//v8:v8_headers", + ] + public_configs = [ ":native_mate_config" ] + sources = [ + "native_mate/arguments.cc", + "native_mate/arguments.h", + "native_mate/compat.h", + "native_mate/constructor.h", + "native_mate/converter.cc", + "native_mate/converter.h", + "native_mate/dictionary.cc", + "native_mate/dictionary.h", + "native_mate/function_template.cc", + "native_mate/function_template.h", + "native_mate/handle.h", + "native_mate/object_template_builder.cc", + "native_mate/object_template_builder.h", + "native_mate/persistent_dictionary.cc", + "native_mate/persistent_dictionary.h", + "native_mate/scoped_persistent.h", + "native_mate/wrappable.cc", + "native_mate/wrappable.h", + "native_mate/wrappable_base.h", + ] +}