]> khamidou — GitHub mirrors - electron.git/commitdiff
Set compilation requirements for using TaskDialogIndirect
authorCheng Zhao <zcbenz@gmail.com>
Wed, 8 Jul 2015 05:30:04 +0000 (13:30 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Wed, 8 Jul 2015 05:30:04 +0000 (13:30 +0800)
* Link with Comctl32.lib
* Update manifest file to use common controls v6

Thanks @vinnyp for finding out how to make it work

atom.gyp
atom/browser/resources/win/atom.manifest [new file with mode: 0644]

index 5dfd6c4af2a5b3035736d74aa05e819dbec72864..83ea66adbabd5ce31e944ff8c166dfcb838b0f3c 100644 (file)
--- a/atom.gyp
+++ b/atom.gyp
           'include_dirs': [
             '<(libchromiumcontent_dir)/gen/ui/resources',
           ],
+          'msvs_settings': {
+            'VCManifestTool': {
+              'EmbedManifest': 'true',
+              'AdditionalManifestFiles': 'atom/browser/resources/win/atom.manifest',
+            }
+          },
           'copies': [
             {
               'variables': {
             'libraries': [
               '-limm32.lib',
               '-loleacc.lib',
-              '-lComdlg32.lib',
-              '-lWininet.lib',
+              '-lcomctl32.lib',
+              '-lcomdlg32.lib',
+              '-lwininet.lib',
             ],
           },
           'dependencies': [
diff --git a/atom/browser/resources/win/atom.manifest b/atom/browser/resources/win/atom.manifest
new file mode 100644 (file)
index 0000000..324364f
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
+
+  <dependency>
+    <dependentAssembly>
+      <assemblyIdentity type="Win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"></assemblyIdentity>
+    </dependentAssembly>
+  </dependency>
+
+  <trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
+    <security>
+      <requestedPrivileges>
+        <requestedExecutionLevel level="asInvoker" />
+      </requestedPrivileges>
+    </security>
+  </trustInfo>
+
+</assembly>