~mshinke/nvdajp/betterBraille

« back to all changes in this revision

Viewing changes to nvdaHelper/archBuild_sconscript

  • Committer: Masataka Shinke
  • Date: 2011-10-25 12:35:26 UTC
  • mfrom: (4175.1.10 jpmain)
  • mto: (4175.1.36 jpmain)
  • mto: This revision was merged to the branch mainline in revision 4193.
  • Revision ID: mshinke@users.sourceforge.jp-20111025123526-ze527a2rl3z0g2ky
lp:~nishimotz/nvdajp/main : 4185 をマージ

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
###
 
2
#This file is a part of the NVDA project.
 
3
#URL: http://www.nvda-project.org/
 
4
#Copyright 2006-2010 NVDA contributers.
 
5
#This program is free software: you can redistribute it and/or modify
 
6
#it under the terms of the GNU General Public License version 2.0, as published by
 
7
#the Free Software Foundation.
 
8
#This program is distributed in the hope that it will be useful,
 
9
#but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
11
#This license can be found at:
 
12
#http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
 
13
###
 
14
 
 
15
import os
 
16
import shutil
 
17
 
 
18
Import(
 
19
        'env',
 
20
        'sourceDir',
 
21
        'sourceTypelibDir',
 
22
        'libInstallDir',
 
23
        'clientInstallDir',
 
24
)
 
25
 
 
26
TARGET_ARCH=env['TARGET_ARCH']
 
27
debug=env['nvdaHelperDebugFlags']
 
28
 
 
29
#Some defines and includes for the environment
 
30
env.Append(CPPDEFINES=['UNICODE','_CRT_SECURE_NO_DEPRECATE',('LOGLEVEL','${nvdaHelperLogLevel}'),('_WIN32_WINNT','_WIN32_WINNT_WINXP')])
 
31
env.Append(CXXFLAGS=['/EHsc','/W3','/WX'])
 
32
env.Append(CPPPATH=['#/include',Dir('.').abspath])
 
33
env.Append(LINKFLAGS='/incremental:no')
 
34
env.Append(LINKFLAGS='/release') #We always want a checksum in the header
 
35
env.Append(MIDLFLAGS='/x64' if TARGET_ARCH=='x86_64' else '/win32')
 
36
 
 
37
if 'noOptimize' in debug:
 
38
        env.Append(CCFLAGS=['/Od'])
 
39
else:
 
40
        env.Append(CCFLAGS=['/O2','/GL'])
 
41
        env.Append(LINKFLAGS=['/LTCG'])
 
42
 
 
43
if 'debugCRT' in debug:
 
44
        env.Append(CCFLAGS=['/MTd'])
 
45
else:
 
46
        env.Append(CCFLAGS=['/MT'])
 
47
        env.Append(CPPDEFINES=['NDEBUG'])
 
48
 
 
49
if 'RTC' in debug:
 
50
        env.Append(CCFLAGS=['/RTCsu'])
 
51
 
 
52
if 'symbols' in debug:
 
53
        env.Append(PDB='${TARGET}.pdb')
 
54
        env.Append(LINKFLAGS='/OPT:REF') #having symbols usually turns this off but we have no need for unused symbols
 
55
 
 
56
Export('env')
 
57
 
 
58
acrobatAccessRPCStubs=env.SConscript('acrobatAccess_sconscript')
 
59
Export('acrobatAccessRPCStubs')
 
60
if TARGET_ARCH=='x86':
 
61
        env.Install(sourceTypelibDir,acrobatAccessRPCStubs[0]) #typelib
 
62
 
 
63
ia2RPCStubs=env.SConscript('ia2_sconscript')
 
64
Export('ia2RPCStubs')
 
65
env.Install(libInstallDir,ia2RPCStubs[0]) #proxy dll
 
66
if TARGET_ARCH=='x86':
 
67
        env.Install(sourceTypelibDir,ia2RPCStubs[1]) #typelib
 
68
 
 
69
if TARGET_ARCH=='x86':
 
70
        localLib=env.SConscript('local/sconscript')
 
71
        Export('localLib')
 
72
        env.Install(libInstallDir,localLib)
 
73
 
 
74
clientLib=env.SConscript('client/sconscript')
 
75
Export('clientLib')
 
76
env.Install(clientInstallDir,clientLib)
 
77
 
 
78
minHookLib=env.SConscript('minHook/sconscript')
 
79
Export('minHookLib')
 
80
env.Install(libInstallDir,minHookLib)
 
81
 
 
82
remoteLib=env.SConscript('remote/sconscript')
 
83
Export('remoteLib')
 
84
env.Install(libInstallDir,remoteLib)
 
85
 
 
86
if TARGET_ARCH=='x86_64':
 
87
        remoteLoaderProgram=env.SConscript('remoteLoader/sconscript')
 
88
        env.Install(libInstallDir,remoteLoaderProgram)
 
89
 
 
90
vbufBaseStaticLib=env.SConscript('vbufBase/sconscript')
 
91
Export('vbufBaseStaticLib')
 
92
 
 
93
adobeAcrobatVBufBackend=env.SConscript('vbufBackends/adobeAcrobat/sconscript')
 
94
env.Install(libInstallDir,adobeAcrobatVBufBackend)
 
95
 
 
96
adobeFlashVBufBackend=env.SConscript('vbufBackends/adobeFlash/sconscript')
 
97
env.Install(libInstallDir,adobeFlashVBufBackend)
 
98
 
 
99
geckoVBufBackend=env.SConscript('vbufBackends/gecko_ia2/sconscript')
 
100
env.Install(libInstallDir,geckoVBufBackend)
 
101
 
 
102
mshtmlVBufBackend=env.SConscript('vbufBackends/mshtml/sconscript')
 
103
env.Install(libInstallDir,mshtmlVBufBackend)
 
104
 
 
105
if TARGET_ARCH=='x86' and os.path.isdir(Dir('#include/espeak').abspath):
 
106
        env.SConscript('espeak/sconscript')
 
107
 
 
108
nvdajpime=env.SConscript('nvdajpime/sconscript')                # Masataka Shinke
 
109
Export('nvdajpime')                                                                             # Masataka Shinke
 
110
env.Install(clientInstallDir,nvdajpime)                                 # Masataka Shinke
 
111
env.Install(libInstallDir,nvdajpime)                                    # Masataka.Shinke
 
112
 
 
113
nvdajpimeRPC=env.SConscript('nvdajpimeRPC/sconscript')  # Masataka Shinke
 
114
Export('nvdajpimeRPC')                                                                  # Masataka Shinke
 
115
env.Install(clientInstallDir,nvdajpimeRPC)                              # Masataka Shinke
 
116
env.Install(libInstallDir,nvdajpimeRPC)                                 # Masataka.Shinke
 
117
 
 
118
if TARGET_ARCH=='x86_64':
 
119
        nvdajpimeLoaderProgram=env.SConscript('nvdajpimeLoader/sconscript')
 
120
        env.Install(libInstallDir,nvdajpimeLoaderProgram)
 
121
 
 
122
if TARGET_ARCH=='x86' and os.path.isdir(Dir('#include/jtalk/libopenjtalk').abspath):
 
123
        nvdajptextLib=env.SConscript('nvdajptext/sconscript')
 
124
        Export('nvdajptextLib')
 
125
        env.Install(libInstallDir,nvdajptextLib)