Permalink
Browse files

windows build files

  • Loading branch information...
1 parent e84c70b commit a8a5bfeab21c3da6c885186558b068ed4daa90ea @spencersalazar committed Oct 16, 2012
View
@@ -15,3 +15,5 @@
.DS_Store
*.tgz
+/chugins.opt
+/chugins.ncb
View
@@ -0,0 +1,5 @@
+/*.plg
+/*.ncb
+/*.opt
+/Debug
+/Release
View
@@ -0,0 +1,5 @@
+/*.plg
+/*.ncb
+/*.opt
+/Debug
+/Release
View
@@ -0,0 +1,5 @@
+/*.plg
+/*.ncb
+/*.opt
+/Debug
+/Release
View
@@ -0,0 +1,117 @@
+# Microsoft Developer Studio Project File - Name="MagicSine" - Package Owner=<4>
+# Microsoft Developer Studio Generated Build File, Format Version 6.00
+# ** DO NOT EDIT **
+
+# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
+
+CFG=MagicSine - Win32 Debug
+!MESSAGE This is not a valid makefile. To build this project using NMAKE,
+!MESSAGE use the Export Makefile command and run
+!MESSAGE
+!MESSAGE NMAKE /f "MagicSine.mak".
+!MESSAGE
+!MESSAGE You can specify a configuration when running NMAKE
+!MESSAGE by defining the macro CFG on the command line. For example:
+!MESSAGE
+!MESSAGE NMAKE /f "MagicSine.mak" CFG="MagicSine - Win32 Debug"
+!MESSAGE
+!MESSAGE Possible choices for configuration are:
+!MESSAGE
+!MESSAGE "MagicSine - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE "MagicSine - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
+!MESSAGE
+
+# Begin Project
+# PROP AllowPerConfigDependencies 0
+# PROP Scc_ProjName ""
+# PROP Scc_LocalPath ""
+CPP=cl.exe
+MTL=midl.exe
+RSC=rc.exe
+
+!IF "$(CFG)" == "MagicSine - Win32 Release"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 0
+# PROP BASE Output_Dir "Release"
+# PROP BASE Intermediate_Dir "Release"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 0
+# PROP Output_Dir "Release"
+# PROP Intermediate_Dir "Release"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "MAGICSINE_EXPORTS" /Yu"stdafx.h" /FD /c
+# ADD CPP /nologo /MT /W3 /GX /O2 /I "..\chuck\include" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "__PLATFORM_WIN32__" /D "__WINDOWS_DS__" /FD /c
+# SUBTRACT CPP /YX /Yc /Yu
+# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "NDEBUG"
+# ADD RSC /l 0x409 /d "NDEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386 /out:"Release/MagicSine.chug"
+
+!ELSEIF "$(CFG)" == "MagicSine - Win32 Debug"
+
+# PROP BASE Use_MFC 0
+# PROP BASE Use_Debug_Libraries 1
+# PROP BASE Output_Dir "Debug"
+# PROP BASE Intermediate_Dir "Debug"
+# PROP BASE Target_Dir ""
+# PROP Use_MFC 0
+# PROP Use_Debug_Libraries 1
+# PROP Output_Dir "Debug"
+# PROP Intermediate_Dir "Debug"
+# PROP Ignore_Export_Lib 0
+# PROP Target_Dir ""
+# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "MAGICSINE_EXPORTS" /Yu"stdafx.h" /FD /GZ /c
+# ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\chuck\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "__PLATFORM_WIN32__" /D "__WINDOWS_DS__" /FD /GZ /c
+# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
+# ADD BASE RSC /l 0x409 /d "_DEBUG"
+# ADD RSC /l 0x409 /d "_DEBUG"
+BSC32=bscmake.exe
+# ADD BASE BSC32 /nologo
+# ADD BSC32 /nologo
+LINK32=link.exe
+# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
+# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /out:"Debug/MagicSine.chug" /pdbtype:sept
+
+!ENDIF
+
+# Begin Target
+
+# Name "MagicSine - Win32 Release"
+# Name "MagicSine - Win32 Debug"
+# Begin Group "Source Files"
+
+# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
+# Begin Source File
+
+SOURCE=.\MagicSine.cpp
+
+!IF "$(CFG)" == "MagicSine - Win32 Release"
+
+!ELSEIF "$(CFG)" == "MagicSine - Win32 Debug"
+
+# ADD CPP /D "__WINDOWS_DS__"
+
+!ENDIF
+
+# End Source File
+# End Group
+# Begin Group "Header Files"
+
+# PROP Default_Filter "h;hpp;hxx;hm;inl"
+# End Group
+# Begin Group "Resource Files"
+
+# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
+# End Group
+# End Target
+# End Project
View
@@ -0,0 +1,29 @@
+Microsoft Developer Studio Workspace File, Format Version 6.00
+# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
+
+###############################################################################
+
+Project: "MagicSine"=.\MagicSine.dsp - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+}}}
+
+###############################################################################
+
+Global:
+
+Package=<5>
+{{{
+}}}
+
+Package=<3>
+{{{
+}}}
+
+###############################################################################
+
View
62 chuginate/bootstrap.py 100755 → 100644
@@ -1,31 +1,31 @@
-#!/usr/bin/python
-
-import re
-import sys
-
-marker = dict()
-template = dict()
-
-marker['cpp'] = "\%\(CPP_CODE\)\%"
-marker['makefile'] = "\%\(MAKEFILE_CODE\)\%"
-marker['makefile.osx'] = "\%\(MAKEFILEOSX_CODE\)\%"
-marker['makefile.linux'] = "\%\(MAKEFILELINUX_CODE\)\%"
-marker['makefile.win32'] = "\%\(MAKEFILEWIN32_CODE\)\%"
-marker['.dsw'] = "\%\(DSW_CODE\)\%"
-marker['.dsp'] = "\%\(DSP_CODE\)\%"
-
-template['cpp'] = "template/ChuGin.cpp"
-template['makefile'] = "template/makefile"
-template['makefile.osx'] = "template/makefile.osx"
-template['makefile.linux'] = "template/makefile.linux"
-template['makefile.win32'] = "template/makefile.win32"
-template['.dsw'] = "template/ChuGin.dsw"
-template['.dsp'] = "template/ChuGin.dsp"
-
-code = sys.stdin.read()
-
-for key in marker:
- f = open(template[key], 'r')
- code = re.sub(marker[key], f.read(), code)
-
-sys.stdout.write(code)
+#!/usr/bin/python
+
+import re
+import sys
+
+marker = dict()
+template = dict()
+
+marker['cpp'] = "\%\(CPP_CODE\)\%"
+marker['makefile'] = "\%\(MAKEFILE_CODE\)\%"
+marker['makefile.osx'] = "\%\(MAKEFILEOSX_CODE\)\%"
+marker['makefile.linux'] = "\%\(MAKEFILELINUX_CODE\)\%"
+marker['makefile.win32'] = "\%\(MAKEFILEWIN32_CODE\)\%"
+marker['.dsw'] = "\%\(DSW_CODE\)\%"
+marker['.dsp'] = "\%\(DSP_CODE\)\%"
+
+template['cpp'] = "template/ChuGin.cpp"
+template['makefile'] = "template/makefile"
+template['makefile.osx'] = "template/makefile.osx"
+template['makefile.linux'] = "template/makefile.linux"
+template['makefile.win32'] = "template/makefile.win32"
+template['.dsw'] = "template/ChuGin.dsw"
+template['.dsp'] = "template/ChuGin.dsp"
+
+code = sys.stdin.read()
+
+for key in marker:
+ f = open(template[key], 'r')
+ code = re.sub(marker[key], f.read(), code)
+
+sys.stdout.write(code)
View
0 chuginate/chuginate 100755 → 100644
No changes.
View
148 chuginate/chuginate.py 100755 → 100644
@@ -1,74 +1,74 @@
-#!/usr/bin/python
-
-import sys
-import re
-import os
-import io
-
-if len(sys.argv) != 2 and len(sys.argv) != 3:
- print "usage: chugerate chugin_name [destination_directory]"
- sys.exit(-1)
-
-chugin_name = sys.argv[1]
-if len(sys.argv) >= 3:
- dest_dir = sys.argv[2]
-else:
- dest_dir = sys.argv[1]
- os.mkdir(dest_dir)
-
-chugin_lcname = chugin_name.lower()
-chugin_ucname = chugin_name.upper()
-chugin_initials = re.sub('[a-z]', '', chugin_name).lower()
-if len(chugin_initials) == 0:
- chugin_initials = chugin_name[0];
-
-def substitute(text):
- global chugin_name, chugin_lcname, chugin_ucname, chugin_initials
- text = re.sub('\%\(CHUGIN_NAME\)\%', chugin_name, text)
- text = re.sub('\%\(CHUGIN_LCNAME\)\%', chugin_lcname, text)
- text = re.sub('\%\(CHUGIN_UCNAME\)\%', chugin_ucname, text)
- text = re.sub('\%\(CHUGIN_INITIALS\)\%', chugin_initials, text)
- return text
-
-# print "name: %s lc: %s initials: %s" % (chugin_name, chugin_lcname, chugin_initials)
-
-code = dict()
-filepath = dict()
-newlines = dict()
-
-code['cpp'] = u'''%(CPP_CODE)%'''
-code['makefile'] = u'''%(MAKEFILE_CODE)%'''
-code['makefile.osx'] = u'''%(MAKEFILEOSX_CODE)%'''
-code['makefile.linux'] = u'''%(MAKEFILELINUX_CODE)%'''
-code['makefile.win32'] = u'''%(MAKEFILEWIN32_CODE)%'''
-code['.dsw'] = u'''%(DSW_CODE)%'''
-code['.dsp'] = u'''%(DSP_CODE)%'''
-
-filepath['cpp'] = "%s/%s.cpp" % (dest_dir, chugin_name)
-filepath['makefile'] = "%s/makefile" % (dest_dir)
-filepath['makefile.osx'] = "%s/makefile.osx" % (dest_dir)
-filepath['makefile.linux'] = "%s/makefile.linux" % (dest_dir)
-filepath['makefile.win32'] = "%s/makefile.win32" % (dest_dir)
-filepath['.dsw'] = "%s/%s.dsw" % (dest_dir, chugin_name)
-filepath['.dsp'] = "%s/%s.dsp" % (dest_dir, chugin_name)
-
-newlines['.dsw'] = '\r\n'
-newlines['.dsp'] = '\r\n'
-
-code['cpp'] = substitute(code['cpp'])
-code['makefile'] = substitute(code['makefile'])
-code['.dsw'] = substitute(code['.dsw'])
-code['.dsp'] = substitute(code['.dsp'])
-
-for key in code:
- if key in newlines:
- nl = newlines[key]
- else:
- nl = '\n'
- f = io.open(filepath[key], "wt", newline=nl)
- f.write(code[key])
- f.close()
-
-
-
-
+#!/usr/bin/python
+
+import sys
+import re
+import os
+import io
+
+if len(sys.argv) != 2 and len(sys.argv) != 3:
+ print "usage: chugerate chugin_name [destination_directory]"
+ sys.exit(-1)
+
+chugin_name = sys.argv[1]
+if len(sys.argv) >= 3:
+ dest_dir = sys.argv[2]
+else:
+ dest_dir = sys.argv[1]
+ os.mkdir(dest_dir)
+
+chugin_lcname = chugin_name.lower()
+chugin_ucname = chugin_name.upper()
+chugin_initials = re.sub('[a-z]', '', chugin_name).lower()
+if len(chugin_initials) == 0:
+ chugin_initials = chugin_name[0];
+
+def substitute(text):
+ global chugin_name, chugin_lcname, chugin_ucname, chugin_initials
+ text = re.sub('\%\(CHUGIN_NAME\)\%', chugin_name, text)
+ text = re.sub('\%\(CHUGIN_LCNAME\)\%', chugin_lcname, text)
+ text = re.sub('\%\(CHUGIN_UCNAME\)\%', chugin_ucname, text)
+ text = re.sub('\%\(CHUGIN_INITIALS\)\%', chugin_initials, text)
+ return text
+
+# print "name: %s lc: %s initials: %s" % (chugin_name, chugin_lcname, chugin_initials)
+
+code = dict()
+filepath = dict()
+newlines = dict()
+
+code['cpp'] = u'''%(CPP_CODE)%'''
+code['makefile'] = u'''%(MAKEFILE_CODE)%'''
+code['makefile.osx'] = u'''%(MAKEFILEOSX_CODE)%'''
+code['makefile.linux'] = u'''%(MAKEFILELINUX_CODE)%'''
+code['makefile.win32'] = u'''%(MAKEFILEWIN32_CODE)%'''
+code['.dsw'] = u'''%(DSW_CODE)%'''
+code['.dsp'] = u'''%(DSP_CODE)%'''
+
+filepath['cpp'] = "%s/%s.cpp" % (dest_dir, chugin_name)
+filepath['makefile'] = "%s/makefile" % (dest_dir)
+filepath['makefile.osx'] = "%s/makefile.osx" % (dest_dir)
+filepath['makefile.linux'] = "%s/makefile.linux" % (dest_dir)
+filepath['makefile.win32'] = "%s/makefile.win32" % (dest_dir)
+filepath['.dsw'] = "%s/%s.dsw" % (dest_dir, chugin_name)
+filepath['.dsp'] = "%s/%s.dsp" % (dest_dir, chugin_name)
+
+newlines['.dsw'] = '\r\n'
+newlines['.dsp'] = '\r\n'
+
+code['cpp'] = substitute(code['cpp'])
+code['makefile'] = substitute(code['makefile'])
+code['.dsw'] = substitute(code['.dsw'])
+code['.dsp'] = substitute(code['.dsp'])
+
+for key in code:
+ if key in newlines:
+ nl = newlines[key]
+ else:
+ nl = '\n'
+ f = io.open(filepath[key], "wt", newline=nl)
+ f.write(code[key])
+ f.close()
+
+
+
+
Oops, something went wrong.

0 comments on commit a8a5bfe

Please sign in to comment.