From 7c286a408f116acc9121a989f5613ec69ee89d34 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sun, 13 Jan 2013 13:57:48 -0700 Subject: BUG: Need to keep SCons support in cpucaps and cpuid. These tools are not directly related to numpy builds. --- tools/win32build/cpucaps/SConstruct | 8 ++++++++ tools/win32build/cpuid/SConstruct | 5 +++++ 2 files changed, 13 insertions(+) create mode 100644 tools/win32build/cpucaps/SConstruct create mode 100644 tools/win32build/cpuid/SConstruct 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']) -- cgit v1.2.1