OSDN Git Service

Added nvdaHelper/sconscript which for some reason was never added before, should...
authorMichael Curran <mick@kulgan.net>
Tue, 16 Nov 2010 02:17:50 +0000 (12:17 +1000)
committerMichael Curran <mick@kulgan.net>
Tue, 16 Nov 2010 02:17:50 +0000 (12:17 +1000)
nvdaHelper/sconscript [new file with mode: 0644]

diff --git a/nvdaHelper/sconscript b/nvdaHelper/sconscript
new file mode 100644 (file)
index 0000000..470af27
--- /dev/null
@@ -0,0 +1,41 @@
+###\r
+#This file is a part of the NVDA project.\r
+#URL: http://www.nvda-project.org/\r
+#Copyright 2006-2010 NVDA contributers.\r
+#This program is free software: you can redistribute it and/or modify\r
+#it under the terms of the GNU General Public License version 2.0, as published by\r
+#the Free Software Foundation.\r
+#This program is distributed in the hope that it will be useful,\r
+#but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r
+#This license can be found at:\r
+#http://www.gnu.org/licenses/old-licenses/gpl-2.0.html\r
+###\r
+\r
+Import(\r
+       'env',\r
+       'sourceDir',\r
+       'clientDir',\r
+       'sourceLibDir',\r
+       'sourceLibDir64',\r
+)\r
+\r
+archLibInstallDirs={\r
+       'x86':sourceLibDir,\r
+       'x86_64':sourceLibDir64,\r
+}\r
+\r
+archClientInstallDirs={\r
+       'x86':clientDir.Dir('x86'),\r
+       'x86_64':clientDir.Dir('x64'),\r
+}\r
+\r
+vars = Variables()\r
+vars.Add(BoolVariable("nvdaHelperDebug", "If true assertions are enabled, debug libraries are used, debug symbols are produced, and no optimization will occure", False))\r
+\r
+#Build nvdaHelper for needed architectures\r
+for arch in env['targetArchitectures']: \r
+       archEnv=env.Clone(TARGET_ARCH=arch,tools=['windowsSdk','midl','msrpc','boost','default'])\r
+       vars.Update(archEnv)\r
+       archEnv.SConscript('archBuild_sconscript',exports={'env':archEnv,'clientInstallDir':archClientInstallDirs[arch],'libInstallDir':archLibInstallDirs[arch]},variant_dir='build/%s'%arch)\r
+\r