]> khamidou — GitHub mirrors - electron.git/commitdiff
Link to the views module as static library.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 9 Jul 2013 02:22:38 +0000 (10:22 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 9 Jul 2013 02:22:38 +0000 (10:22 +0800)
atom.gyp
common.gypi
vendor/brightray

index 63bd60bea7dfe056742f396959742aacf44dc7d7..a74c42ed15a0ae3dd2c9756f9f795e981a5e1617 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
       'export_dependent_settings': [
         'vendor/brightray/brightray.gyp:brightray',
       ],
+      'conditions': [
+        ['OS=="win"', {
+          'link_settings': {
+            'libraries': [
+              '-limm32.lib',
+              '-loleacc.lib',
+              '<(atom_source_root)/<(libchromiumcontent_library_dir)/views_chromiumcontent.lib',
+            ],
+          },
+        }],
+      ],
     },
     {
       'target_name': 'generated_sources',
index d36fb3fd3eecf423c3ba328595172526149e0dc0..dc5168181da120a6d65f588f9931a7e543293372 100644 (file)
       4800,  # (v8.h) forcing value to bool 'true' or 'false'
       4819,  # The file contains a character that cannot be represented in the current code page
     ],
+    'msvs_settings': {
+      'VCLinkerTool': {
+        'AdditionalOptions': [
+          # ATL 8.0 included in WDK 7.1 makes the linker to generate following
+          # warnings:
+          #   - warning LNK4254: section 'ATL' (50000040) merged into
+          #     '.rdata' (40000040) with different attributes
+          #   - warning LNK4078: multiple 'ATL' sections found with
+          #     different attributes
+          '/ignore:4254',
+          '/ignore:4078',
+          # views_chromiumcontent.lib generates this warning because it's
+          # symobls are defined as dllexport but used as static library:
+          #   - warning LNK4217: locally defined symbol imported in function
+          '/ignore:4217',
+        ],
+      },
+    },
   },
   'conditions': [
     # Settings to compile with clang under OS X.
index 0805ba501cc9e9c4bf1cf1e265a782c53b2cc45f..111ca6ad837c25c5f0fa53299a7c67153d0dab8b 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 0805ba501cc9e9c4bf1cf1e265a782c53b2cc45f
+Subproject commit 111ca6ad837c25c5f0fa53299a7c67153d0dab8b