diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-01-13 13:57:48 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-01-13 13:59:31 -0700 |
commit | 7c286a408f116acc9121a989f5613ec69ee89d34 (patch) | |
tree | 76ef52b80f1e1822303e28e695c48c5fe534f20f | |
parent | 89c7d59d92f43ba97fc4a1d3b221869ebfbf20e0 (diff) | |
download | numpy-7c286a408f116acc9121a989f5613ec69ee89d34.tar.gz |
BUG: Need to keep SCons support in cpucaps and cpuid.
These tools are not directly related to numpy builds.
-rw-r--r-- | tools/win32build/cpucaps/SConstruct | 8 | ||||
-rw-r--r-- | tools/win32build/cpuid/SConstruct | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tools/win32build/cpucaps/SConstruct b/tools/win32build/cpucaps/SConstruct new file mode 100644 index 000000000..7a0f481b6 --- /dev/null +++ b/tools/win32build/cpucaps/SConstruct @@ -0,0 +1,8 @@ +env = Environment(tools = ['mingw']) + +env.Append(CPPPATH = ['../cpuid']) +env.Append(CFLAGS = ['-W', '-Wall']) +cpuplug = env.SharedLibrary('cpucaps', source = ['cpucaps_main.c', '../cpuid/cpuid.c']) + +cpuplug_install = env.InstallAs('C:\Program Files\NSIS\Plugins\CpuCaps.dll', cpuplug[0]) +env.Alias('install', cpuplug_install) diff --git a/tools/win32build/cpuid/SConstruct b/tools/win32build/cpuid/SConstruct new file mode 100644 index 000000000..3b491deb1 --- /dev/null +++ b/tools/win32build/cpuid/SConstruct @@ -0,0 +1,5 @@ +env = Environment(tools = ['mingw']) + +#libcpuid = env.SharedLibrary('cpuid', source = ['cpuid.c']) +#test = env.Program('test', source = ['test.c'], LIBS = libcpuid, RPATH = ['.']) +test = env.Program('test', source = ['test.c', 'cpuid.c']) |