Browse Source

build: [gn] fix include_dirs ordering error

Jeremy Apthorp 6 years ago
parent
commit
c44cf88a6e
1 changed files with 8 additions and 8 deletions
  1. 8 8
      BUILD.gn

+ 8 - 8
BUILD.gn

@@ -240,6 +240,14 @@ static_library("electron_lib") {
     "brightray",
     "build/node",
   ]
+  include_dirs = [
+    "chromium_src",
+    ".",
+    "$target_gen_dir",
+    # TODO(nornagon): replace usage of SchemeRegistry by an actually exported
+    # API of blink, then delete this include dir.
+    "//third_party/WebKit/Source",
+  ]
   if (enable_desktop_capturer) {
     deps += [ "//third_party/webrtc/modules/desktop_capture" ]
   }
@@ -275,14 +283,6 @@ static_library("electron_lib") {
     # Disable warnings for g_settings_list_schemas.
     "GLIB_DISABLE_DEPRECATION_WARNINGS",
   ]
-  include_dirs = [
-    "chromium_src",
-    ".",
-    "$target_gen_dir",
-    # TODO(nornagon): replace usage of SchemeRegistry by an actually exported
-    # API of blink, then delete this include dir.
-    "//third_party/WebKit/Source",
-  ]
   if (is_component_build) {
     defines += [
       # Import V8 symbols from shared library (node.dll / libnode.so)