Mercurial > fife-parpg
comparison engine/SConscript @ 413:10ac0c080564
Added the install-dlls target for the win32 platform only. It copies all dlls to both the Python site-packages/fife directory and the <FIFE>/engine/python/fife directory. This assumes you have the Development Kit is installed in the build/win32 directory. I have not tested to make sure this doesn't break other platforms. [t:430]
author | prock@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Tue, 02 Feb 2010 20:47:20 +0000 |
parents | efa51189ffc3 |
children | 92433f507feb |
comparison
equal
deleted
inserted
replaced
412:49646eb39fe1 | 413:10ac0c080564 |
---|---|
54 implfiles = [f for f in allfiles_base if utils.is_implfile(f)] | 54 implfiles = [f for f in allfiles_base if utils.is_implfile(f)] |
55 swigfiles = [f for f in allfiles_base if utils.is_swigfile(f)] | 55 swigfiles = [f for f in allfiles_base if utils.is_swigfile(f)] |
56 intfiles = utils.filter_by_dir(['swigwrappers'], swigfiles) | 56 intfiles = utils.filter_by_dir(['swigwrappers'], swigfiles) |
57 compilefiles = utils.filter_by_dir(['swigwrappers'], implfiles) | 57 compilefiles = utils.filter_by_dir(['swigwrappers'], implfiles) |
58 | 58 |
59 if sys.platform == 'win32': | |
60 dllpath = upath(opts['DLLPATH']) | |
61 dllfilelist = list(dllpath.walkfiles('*.dll')) | |
62 dllfiles = list() | |
63 for f in dllfilelist: | |
64 dllfiles.append(utils.relpath(f,opts['DLLPATH'])) | |
65 | |
66 | |
67 | |
68 | |
59 | 69 |
60 #************************************************************************** | 70 #************************************************************************** |
61 #python | 71 #python |
62 #************************************************************************** | 72 #************************************************************************** |
63 | 73 |
171 | 181 |
172 install_python_lib = env.Install(pypath, pythonlib) | 182 install_python_lib = env.Install(pypath, pythonlib) |
173 install_python_module = env.Install(pypath, ['#/engine/python/fife/fife.py','#/engine/python/fife/__init__.py']) | 183 install_python_module = env.Install(pypath, ['#/engine/python/fife/fife.py','#/engine/python/fife/__init__.py']) |
174 install_python_extensions = env.InstallAs(extdestfilelist, extensionfiles) | 184 install_python_extensions = env.InstallAs(extdestfilelist, extensionfiles) |
175 | 185 |
186 if sys.platform == 'win32': | |
187 dlldestfilelist = utils.gen_dest_files(pypath, dllfiles) | |
188 dlldestfilelist2 = utils.gen_dest_files(os.path.join(engine_path, 'python', 'fife'), dllfiles) | |
189 | |
190 install_dlls = env.InstallAs(dlldestfilelist, dllfilelist) | |
191 install_dlls2 = env.InstallAs(dlldestfilelist2, dllfilelist) | |
192 | |
176 #************************************************************************** | 193 #************************************************************************** |
177 #Alias definitions | 194 #Alias definitions |
178 #************************************************************************** | 195 #************************************************************************** |
179 | 196 |
180 alias_msvc = Alias('msvc',msvcproj) | 197 alias_msvc = Alias('msvc',msvcproj) |
187 alias_static = Alias('fife-static', staticlib) | 204 alias_static = Alias('fife-static', staticlib) |
188 alias_swig = Alias('fife-swig', [pythonext, copy_cmd2, copy_cmd3]) | 205 alias_swig = Alias('fife-swig', [pythonext, copy_cmd2, copy_cmd3]) |
189 alias_python = Alias('fife-python', [pythonlib, copy_cmd, alias_swig]) | 206 alias_python = Alias('fife-python', [pythonlib, copy_cmd, alias_swig]) |
190 Alias('fife', [alias_shared, alias_static, alias_python]) | 207 Alias('fife', [alias_shared, alias_static, alias_python]) |
191 | 208 |
209 if sys.platform == 'win32': | |
210 Alias('install-dlls', [install_dlls, install_dlls2]) | |
211 | |
192 alias_install_shared = Alias('install-shared', install_shared) | 212 alias_install_shared = Alias('install-shared', install_shared) |
193 alias_install_static = Alias('install-static', install_static) | 213 alias_install_static = Alias('install-static', install_static) |
194 alias_install_python = Alias('install-python', [alias_python, install_python_lib, install_python_module, install_python_extensions]) | 214 alias_install_python = Alias('install-python', [alias_python, install_python_lib, install_python_module, install_python_extensions]) |
195 alias_install_dev = Alias('install-dev', [alias_install_shared, alias_install_static, install_headers]) | 215 alias_install_dev = Alias('install-dev', [alias_install_shared, alias_install_static, install_headers]) |
196 Alias('install-all', [alias_install_python, alias_install_dev]) | 216 Alias('install-all', [alias_install_python, alias_install_dev]) |