summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-08-11 17:21:55 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-08-11 17:21:55 -0700
commitc989da318c62fa0e2d88cfaae313cc00ee337eba (patch)
tree878ac62acd05167cf261a86fdab88caf9467f6aa
parentf95886fd75d6af7d7e959d08bd960006172b7f9f (diff)
MSVC project for Dalos-cli.
-rw-r--r--Dalos-cli.sln185
-rw-r--r--Dalos-cli.vcxproj210
-rw-r--r--Dalos-cli.vcxproj.filters30
-rw-r--r--LuaJIT-buildsub.bat116
-rw-r--r--LuaJIT.bat17
-rw-r--r--src/Dalos-cli.cc16
6 files changed, 563 insertions, 11 deletions
diff --git a/Dalos-cli.sln b/Dalos-cli.sln
new file mode 100644
index 0000000..fc7c8c3
--- /dev/null
+++ b/Dalos-cli.sln
@@ -0,0 +1,185 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.21126.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{36E20E70-21B1-11E4-8C21-0800200C9A66}") = "Dalos-cli", "Dalos-cli.vcxproj", "{579CA850-21B1-11E4-8C21-0800200C9A66}"
+EndProject
+Project("{36E20E70-21B1-11E4-8C21-0800200C9A66}") = "Balau", "Balau\win32\project\Balau.vcxproj", "{6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}"
+EndProject
+Project("{36E20E70-21B1-11E4-8C21-0800200C9A66}") = "c-ares", "Balau\win32\project\c-ares.vcxproj", "{4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Third Party", "Third Party", "{41A44AFD-7691-46CC-BCF3-EE8AB4A1F829}"
+EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Third Party - Balau", "Third Party - Balau", "{1F771FD4-C1C7-4220-89F8-1E0D5069E205}"
+EndProject
+Project("{36E20E70-21B1-11E4-8C21-0800200C9A66}") = "zlib", "Balau\win32\project\zlib.vcxproj", "{C98A6524-5AA7-4FFD-8DDA-679A1016D185}"
+EndProject
+Project("{36E20E70-21B1-11E4-8C21-0800200C9A66}") = "iconv", "Balau\win32\project\iconv.vcxproj", "{AA262ABD-09DF-4573-BF62-81DEA60E196C}"
+EndProject
+Project("{36E20E70-21B1-11E4-8C21-0800200C9A66}") = "pthreads", "Balau\win32\project\pthreads.vcxproj", "{E5B79C22-07B5-4830-8E28-224457C0FDB8}"
+EndProject
+Project("{36E20E70-21B1-11E4-8C21-0800200C9A66}") = "tommath", "Balau\win32\project\tommath.vcxproj", "{0C334D26-6F19-4959-BB14-B4FB81099E99}"
+EndProject
+Project("{36E20E70-21B1-11E4-8C21-0800200C9A66}") = "tomcrypt", "Balau\win32\project\tomcrypt.vcxproj", "{A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}"
+EndProject
+Project("{36E20E70-21B1-11E4-8C21-0800200C9A66}") = "libcurl", "Balau\win32\project\libcurl.vcxproj", "{DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Mixed Platforms = Debug|Mixed Platforms
+ Debug|Win32 = Debug|Win32
+ Debug|x64 = Debug|x64
+ Release|Mixed Platforms = Release|Mixed Platforms
+ Release|Win32 = Release|Win32
+ Release|x64 = Release|x64
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Debug|Win32.ActiveCfg = Debug|Win32
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Debug|Win32.Build.0 = Debug|Win32
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Debug|x64.ActiveCfg = Debug|x64
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Debug|x64.Build.0 = Debug|x64
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Release|Win32.ActiveCfg = Release|Win32
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Release|Win32.Build.0 = Release|Win32
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Release|x64.ActiveCfg = Release|x64
+ {579CA850-21B1-11E4-8C21-0800200C9A66}.Release|x64.Build.0 = Release|x64
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Debug|Win32.ActiveCfg = Debug|Win32
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Debug|Win32.Build.0 = Debug|Win32
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Debug|x64.ActiveCfg = Debug|x64
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Debug|x64.Build.0 = Debug|x64
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Release|Win32.ActiveCfg = Release|Win32
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Release|Win32.Build.0 = Release|Win32
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Release|x64.ActiveCfg = Release|x64
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30}.Release|x64.Build.0 = Release|x64
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Debug|Win32.ActiveCfg = Debug|Win32
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Debug|Win32.Build.0 = Debug|Win32
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Debug|x64.ActiveCfg = Debug|x64
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Debug|x64.Build.0 = Debug|x64
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Release|Win32.ActiveCfg = Release|Win32
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Release|Win32.Build.0 = Release|Win32
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Release|x64.ActiveCfg = Release|x64
+ {6E74C651-E02E-4BEC-ADDB-7E2A79E0F6F7}.Release|x64.Build.0 = Release|x64
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Debug|Win32.ActiveCfg = Debug|Win32
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Debug|Win32.Build.0 = Debug|Win32
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Debug|x64.ActiveCfg = Debug|x64
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Debug|x64.Build.0 = Debug|x64
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Release|Win32.ActiveCfg = Release|Win32
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Release|Win32.Build.0 = Release|Win32
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Release|x64.ActiveCfg = Release|x64
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662}.Release|x64.Build.0 = Release|x64
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Debug|Win32.ActiveCfg = Debug|Win32
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Debug|Win32.Build.0 = Debug|Win32
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Debug|x64.ActiveCfg = Debug|x64
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Debug|x64.Build.0 = Debug|x64
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Release|Win32.ActiveCfg = Release|Win32
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Release|Win32.Build.0 = Release|Win32
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Release|x64.ActiveCfg = Release|x64
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185}.Release|x64.Build.0 = Release|x64
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Debug|Win32.ActiveCfg = Debug|Win32
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Debug|Win32.Build.0 = Debug|Win32
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Debug|x64.ActiveCfg = Debug|x64
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Debug|x64.Build.0 = Debug|x64
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Release|Win32.ActiveCfg = Release|Win32
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Release|Win32.Build.0 = Release|Win32
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Release|x64.ActiveCfg = Release|x64
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C}.Release|x64.Build.0 = Release|x64
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Debug|Win32.ActiveCfg = Debug|Win32
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Debug|Win32.Build.0 = Debug|Win32
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Debug|x64.ActiveCfg = Debug|x64
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Debug|x64.Build.0 = Debug|x64
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Release|Win32.ActiveCfg = Release|Win32
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Release|Win32.Build.0 = Release|Win32
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Release|x64.ActiveCfg = Release|x64
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8}.Release|x64.Build.0 = Release|x64
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Debug|Win32.ActiveCfg = Debug|Win32
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Debug|Win32.Build.0 = Debug|Win32
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Debug|x64.ActiveCfg = Debug|x64
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Debug|x64.Build.0 = Debug|x64
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Release|Win32.ActiveCfg = Release|Win32
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Release|Win32.Build.0 = Release|Win32
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Release|x64.ActiveCfg = Release|x64
+ {0C334D26-6F19-4959-BB14-B4FB81099E99}.Release|x64.Build.0 = Release|x64
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Debug|Win32.ActiveCfg = Debug|Win32
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Debug|Win32.Build.0 = Debug|Win32
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Debug|x64.ActiveCfg = Debug|x64
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Debug|x64.Build.0 = Debug|x64
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Release|Win32.ActiveCfg = Release|Win32
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Release|Win32.Build.0 = Release|Win32
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Release|x64.ActiveCfg = Release|x64
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3}.Release|x64.Build.0 = Release|x64
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Debug|Win32.ActiveCfg = Debug|Win32
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Debug|Win32.Build.0 = Debug|Win32
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Debug|x64.ActiveCfg = Debug|x64
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Debug|x64.Build.0 = Debug|x64
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Release|Win32.ActiveCfg = Release|Win32
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Release|Win32.Build.0 = Release|Win32
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Release|x64.ActiveCfg = Release|x64
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC}.Release|x64.Build.0 = Release|x64
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Debug|Mixed Platforms.ActiveCfg = Debug|Win32
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Debug|Mixed Platforms.Build.0 = Debug|Win32
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Debug|Win32.ActiveCfg = Debug|Win32
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Debug|Win32.Build.0 = Debug|Win32
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Debug|x64.ActiveCfg = Debug|x64
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Debug|x64.Build.0 = Debug|x64
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Release|Mixed Platforms.ActiveCfg = Release|Win32
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Release|Mixed Platforms.Build.0 = Release|Win32
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Release|Win32.ActiveCfg = Release|Win32
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Release|Win32.Build.0 = Release|Win32
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Release|x64.ActiveCfg = Release|x64
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB}.Release|x64.Build.0 = Release|x64
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {3E283F37-A4ED-41B7-A3E6-A2D89D131A30} = {41A44AFD-7691-46CC-BCF3-EE8AB4A1F829}
+ {70EB01D2-EE71-4F7E-9D87-A91249F5E4AC} = {41A44AFD-7691-46CC-BCF3-EE8AB4A1F829}
+ {4D6AFE58-8573-4F3F-9CB7-EFF38BDC9662} = {1F771FD4-C1C7-4220-89F8-1E0D5069E205}
+ {C98A6524-5AA7-4FFD-8DDA-679A1016D185} = {1F771FD4-C1C7-4220-89F8-1E0D5069E205}
+ {AA262ABD-09DF-4573-BF62-81DEA60E196C} = {1F771FD4-C1C7-4220-89F8-1E0D5069E205}
+ {E5B79C22-07B5-4830-8E28-224457C0FDB8} = {1F771FD4-C1C7-4220-89F8-1E0D5069E205}
+ {0C334D26-6F19-4959-BB14-B4FB81099E99} = {1F771FD4-C1C7-4220-89F8-1E0D5069E205}
+ {A3AA0747-B12F-45BA-A1F5-0E0E6B45F3C3} = {1F771FD4-C1C7-4220-89F8-1E0D5069E205}
+ {DA6F56B4-06A4-441D-AD70-AC5A7D51FADB} = {1F771FD4-C1C7-4220-89F8-1E0D5069E205}
+ EndGlobalSection
+EndGlobal
diff --git a/Dalos-cli.vcxproj b/Dalos-cli.vcxproj
new file mode 100644
index 0000000..a186041
--- /dev/null
+++ b/Dalos-cli.vcxproj
@@ -0,0 +1,210 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|Win32">
+ <Configuration>Debug</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|Win32">
+ <Configuration>Release</Configuration>
+ <Platform>Win32</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>{579CA850-21B1-11E4-8C21-0800200C9A66}</ProjectGuid>
+ <Keyword>Win32Proj</Keyword>
+ <RootNamespace>Dalos-cli</RootNamespace>
+ <ProjectName>Dalos-cli</ProjectName>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v120</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>true</UseDebugLibraries>
+ <PlatformToolset>v120</PlatformToolset>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v120</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
+ <ConfigurationType>Application</ConfigurationType>
+ <UseDebugLibraries>false</UseDebugLibraries>
+ <PlatformToolset>v120</PlatformToolset>
+ <WholeProgramOptimization>true</WholeProgramOptimization>
+ <CharacterSet>Unicode</CharacterSet>
+ </PropertyGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+ <ImportGroup Label="ExtensionSettings">
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
+ <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+ </ImportGroup>
+ <PropertyGroup Label="UserMacros" />
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <LinkIncremental>true</LinkIncremental>
+ <OutDir>$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</OutDir>
+ <IntDir>$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <LinkIncremental>true</LinkIncremental>
+ <TargetExt>.exe</TargetExt>
+ <IntDir>$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
+ <OutDir>$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</OutDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <LinkIncremental>false</LinkIncremental>
+ <OutDir>$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</OutDir>
+ <IntDir>$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <LinkIncremental>false</LinkIncremental>
+ <IntDir>$(Platform)\$(ProjectName)\$(Configuration)\</IntDir>
+ <OutDir>$(SolutionDir)$(Platform)\$(ProjectName)\$(Configuration)\</OutDir>
+ </PropertyGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+ <ClCompile>
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <PreprocessorDefinitions>PTW32_STATIC_LIB;LTC_SOURCE;LTM_DESC;USE_LTM;LTC_NO_PROTOTYPES;__STDC_FORMAT_MACROS;_SCL_SECURE_NO_WARNINGS;CARES_STATICLIB;USE_ARES;_DEBUG;DEBUGBUILD;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories>.;src;Dalos-modules\includes;Balau\includes;Balau\includes\msc;Balau\libev;Balau\win32;Balau\win32\pthreads-win32;Balau\win32\iconv;Balau\win32\zlib;Balau\win32\getopt;Balau\win32\regex;Balau\win32\c-ares;Balau\win32\curl\include;Balau\win32\project\curl;Balau\LuaJIT\src;Balau\src\jsoncpp\include;Balau\libtommath;Balau\libtomcrypt\src\headers;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <DisableSpecificWarnings>4290;4800;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <ForcedIncludeFiles>$(SolutionDir)\Balau\msvc-config.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
+ <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>comctl32.lib;rpcrt4.lib;dbghelp.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;lua51_32d.lib</AdditionalDependencies>
+ <AdditionalLibraryDirectories>(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
+ <ClCompile>
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <WarningLevel>Level3</WarningLevel>
+ <Optimization>Disabled</Optimization>
+ <PreprocessorDefinitions>PTW32_STATIC_LIB;LTC_SOURCE;LTM_DESC;USE_LTM;LTC_NO_PROTOTYPES;__STDC_FORMAT_MACROS;_SCL_SECURE_NO_WARNINGS;CARES_STATICLIB;USE_ARES;_DEBUG;DEBUGBUILD;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories>.;src;Dalos-modules\includes;Balau\includes;Balau\includes\msc;Balau\libev;Balau\win32;Balau\win32\pthreads-win32;Balau\win32\iconv;Balau\win32\zlib;Balau\win32\getopt;Balau\win32\regex;Balau\win32\c-ares;Balau\win32\curl\include;Balau\win32\project\curl;Balau\LuaJIT\src;Balau\src\jsoncpp\include;Balau\libtommath;Balau\libtomcrypt\src\headers;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <DisableSpecificWarnings>4290;4800;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <ForcedIncludeFiles>$(SolutionDir)\Balau\msvc-config.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <AdditionalDependencies>comctl32.lib;rpcrt4.lib;dbghelp.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;lua51_64d.lib</AdditionalDependencies>
+ <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <PreprocessorDefinitions>PTW32_STATIC_LIB;LTC_SOURCE;LTM_DESC;USE_LTM;LTC_NO_PROTOTYPES;__STDC_FORMAT_MACROS;_SCL_SECURE_NO_WARNINGS;CARES_STATICLIB;USE_ARES;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories>.;src;Dalos-modules\includes;Balau\includes;Balau\includes\msc;Balau\libev;Balau\win32;Balau\win32\pthreads-win32;Balau\win32\iconv;Balau\win32\zlib;Balau\win32\getopt;Balau\win32\regex;Balau\win32\c-ares;Balau\win32\curl\include;Balau\win32\project\curl;Balau\LuaJIT\src;Balau\src\jsoncpp\include;Balau\libtommath;Balau\libtomcrypt\src\headers;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <DisableSpecificWarnings>4290;4800;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <ForcedIncludeFiles>$(SolutionDir)\Balau\msvc-config.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <AdditionalDependencies>comctl32.lib;rpcrt4.lib;dbghelp.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;lua51_32r.lib</AdditionalDependencies>
+ <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
+ <ClCompile>
+ <WarningLevel>Level3</WarningLevel>
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
+ <Optimization>MaxSpeed</Optimization>
+ <FunctionLevelLinking>true</FunctionLevelLinking>
+ <IntrinsicFunctions>true</IntrinsicFunctions>
+ <PreprocessorDefinitions>PTW32_STATIC_LIB;LTC_SOURCE;LTM_DESC;USE_LTM;LTC_NO_PROTOTYPES;__STDC_FORMAT_MACROS;_SCL_SECURE_NO_WARNINGS;CARES_STATICLIB;USE_ARES;NDEBUG;_CONSOLE;_LIB;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+ <AdditionalIncludeDirectories>.;src;Dalos-modules\includes;Balau\includes;Balau\includes\msc;Balau\libev;Balau\win32;Balau\win32\pthreads-win32;Balau\win32\iconv;Balau\win32\zlib;Balau\win32\getopt;Balau\win32\regex;Balau\win32\c-ares;Balau\win32\curl\include;Balau\win32\project\curl;Balau\LuaJIT\src;Balau\src\jsoncpp\include;Balau\libtommath;Balau\libtomcrypt\src\headers;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <DisableSpecificWarnings>4290;4800;%(DisableSpecificWarnings)</DisableSpecificWarnings>
+ <ForcedIncludeFiles>$(SolutionDir)\Balau\msvc-config.h;%(ForcedIncludeFiles)</ForcedIncludeFiles>
+ <SDLCheck>true</SDLCheck>
+ </ClCompile>
+ <Link>
+ <SubSystem>Console</SubSystem>
+ <GenerateDebugInformation>true</GenerateDebugInformation>
+ <EnableCOMDATFolding>true</EnableCOMDATFolding>
+ <OptimizeReferences>true</OptimizeReferences>
+ <AdditionalDependencies>comctl32.lib;rpcrt4.lib;dbghelp.lib;ws2_32.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;lua51_64r.lib</AdditionalDependencies>
+ <AdditionalLibraryDirectories>%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
+ </Link>
+ </ItemDefinitionGroup>
+ <ItemGroup>
+ <ProjectReference Include="Balau\win32\project\libcurl.vcxproj">
+ <Project>{da6f56b4-06a4-441d-ad70-ac5a7d51fadb}</Project>
+ </ProjectReference>
+ <ProjectReference Include="Balau\win32\project\pthreads.vcxproj">
+ <Project>{e5b79c22-07b5-4830-8e28-224457c0fdb8}</Project>
+ </ProjectReference>
+ <ProjectReference Include="Balau\win32\project\Balau.vcxproj">
+ <Project>{6e74c651-e02e-4bec-addb-7e2a79e0f6f7}</Project>
+ </ProjectReference>
+ <ProjectReference Include="Balau\win32\project\c-ares.vcxproj">
+ <Project>{4d6afe58-8573-4f3f-9cb7-eff38bdc9662}</Project>
+ </ProjectReference>
+ <ProjectReference Include="Balau\win32\project\iconv.vcxproj">
+ <Project>{aa262abd-09df-4573-bf62-81dea60e196c}</Project>
+ </ProjectReference>
+ <ProjectReference Include="Balau\win32\project\tomcrypt.vcxproj">
+ <Project>{a3aa0747-b12f-45ba-a1f5-0e0e6b45f3c3}</Project>
+ </ProjectReference>
+ <ProjectReference Include="Balau\win32\project\tommath.vcxproj">
+ <Project>{0c334d26-6f19-4959-bb14-b4fb81099e99}</Project>
+ </ProjectReference>
+ <ProjectReference Include="Balau\win32\project\zlib.vcxproj">
+ <Project>{c98a6524-5aa7-4ffd-8dda-679a1016d185}</Project>
+ </ProjectReference>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="Dalos-modules\src\LuaLoad.cc" />
+ <ClCompile Include="Dalos-modules\src\Readline.cc" />
+ <ClCompile Include="src\Dalos-cli.cc" />
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="Dalos-modules\includes\BReadline.h" />
+ <ClInclude Include="Dalos-modules\includes\LuaLoad.h" />
+ </ItemGroup>
+ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+ <ImportGroup Label="ExtensionTargets">
+ </ImportGroup>
+</Project> \ No newline at end of file
diff --git a/Dalos-cli.vcxproj.filters b/Dalos-cli.vcxproj.filters
new file mode 100644
index 0000000..5d2f512
--- /dev/null
+++ b/Dalos-cli.vcxproj.filters
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup>
+ <Filter Include="Source">
+ <UniqueIdentifier>{d557d81b-89dc-4275-a0f0-961b3cf41a6b}</UniqueIdentifier>
+ </Filter>
+ <Filter Include="Headers">
+ <UniqueIdentifier>{51cc51bb-e800-452c-b8d9-4dba017fe7e3}</UniqueIdentifier>
+ </Filter>
+ </ItemGroup>
+ <ItemGroup>
+ <ClCompile Include="src\Dalos-cli.cc">
+ <Filter>Source</Filter>
+ </ClCompile>
+ <ClCompile Include="Dalos-modules\src\LuaLoad.cc">
+ <Filter>Source</Filter>
+ </ClCompile>
+ <ClCompile Include="Dalos-modules\src\Readline.cc">
+ <Filter>Source</Filter>
+ </ClCompile>
+ </ItemGroup>
+ <ItemGroup>
+ <ClInclude Include="Dalos-modules\includes\BReadline.h">
+ <Filter>Headers</Filter>
+ </ClInclude>
+ <ClInclude Include="Dalos-modules\includes\LuaLoad.h">
+ <Filter>Headers</Filter>
+ </ClInclude>
+ </ItemGroup>
+</Project> \ No newline at end of file
diff --git a/LuaJIT-buildsub.bat b/LuaJIT-buildsub.bat
new file mode 100644
index 0000000..eaae84e
--- /dev/null
+++ b/LuaJIT-buildsub.bat
@@ -0,0 +1,116 @@
+@rem Script to build LuaJIT with MSVC.
+@rem Copyright (C) 2005-2014 Mike Pall. See Copyright Notice in luajit.h
+@rem
+@rem Either open a "Visual Studio .NET Command Prompt"
+@rem (Note that the Express Edition does not contain an x64 compiler)
+@rem -or-
+@rem Open a "Windows SDK Command Shell" and set the compiler environment:
+@rem setenv /release /x86
+@rem -or-
+@rem setenv /release /x64
+@rem
+@rem Then cd to this directory and run this script.
+
+@if not defined INCLUDE goto :FAIL
+
+@setlocal
+@set LJCOMPILE=cl /nologo /c /O2 /W3 /D_CRT_SECURE_NO_DEPRECATE
+@set LJLINK=link /nologo
+@set LJMT=mt /nologo
+@set LJLIB=lib /nologo /nodefaultlib
+@set DASMDIR=..\dynasm
+@set DASM=%DASMDIR%\dynasm.lua
+@set LJDLLNAME=lua51.dll
+@set LJLIBNAME=lua51.lib
+@set ALL_LIB=lib_base.c lib_math.c lib_bit.c lib_string.c lib_table.c lib_io.c lib_os.c lib_package.c lib_debug.c lib_jit.c lib_ffi.c
+
+%LJCOMPILE% host\minilua.c
+@if errorlevel 1 goto :BAD
+%LJLINK% /out:minilua.exe minilua.obj
+@if errorlevel 1 goto :BAD
+if exist minilua.exe.manifest^
+ %LJMT% -manifest minilua.exe.manifest -outputresource:minilua.exe
+
+@set DASMFLAGS=-D WIN -D JIT -D FFI -D P64
+@set LJARCH=x64
+@minilua
+@if errorlevel 8 goto :X64
+@set DASMFLAGS=-D WIN -D JIT -D FFI
+@set LJARCH=x86
+:X64
+minilua %DASM% -LN %DASMFLAGS% -o host\buildvm_arch.h vm_x86.dasc
+@if errorlevel 1 goto :BAD
+
+%LJCOMPILE% /I "." /I %DASMDIR% host\buildvm*.c
+@if errorlevel 1 goto :BAD
+%LJLINK% /out:buildvm.exe buildvm*.obj
+@if errorlevel 1 goto :BAD
+if exist buildvm.exe.manifest^
+ %LJMT% -manifest buildvm.exe.manifest -outputresource:buildvm.exe
+
+buildvm -m peobj -o lj_vm.obj
+@if errorlevel 1 goto :BAD
+buildvm -m bcdef -o lj_bcdef.h %ALL_LIB%
+@if errorlevel 1 goto :BAD
+buildvm -m ffdef -o lj_ffdef.h %ALL_LIB%
+@if errorlevel 1 goto :BAD
+buildvm -m libdef -o lj_libdef.h %ALL_LIB%
+@if errorlevel 1 goto :BAD
+buildvm -m recdef -o lj_recdef.h %ALL_LIB%
+@if errorlevel 1 goto :BAD
+buildvm -m vmdef -o jit\vmdef.lua %ALL_LIB%
+@if errorlevel 1 goto :BAD
+buildvm -m folddef -o lj_folddef.h lj_opt_fold.c
+@if errorlevel 1 goto :BAD
+
+@if "%1" neq "debug" goto :NODEBUG
+@shift
+@set LJCOMPILE=%LJCOMPILE% /MDd /Zi
+@set LJLINK=%LJLINK% /debug
+@goto :COMPILE
+:NODEBUG
+@set LJCOMPILE=%LJCOMPILE% /MD
+:COMPILE
+@if "%1"=="amalg" goto :AMALGDLL
+@if "%1"=="static" goto :STATIC
+%LJCOMPILE% /DLUA_BUILD_AS_DLL lj_*.c lib_*.c
+@if errorlevel 1 goto :BAD
+%LJLINK% /DLL /out:%LJDLLNAME% lj_*.obj lib_*.obj
+@if errorlevel 1 goto :BAD
+@goto :MTDLL
+:STATIC
+%LJCOMPILE% lj_*.c lib_*.c
+@if errorlevel 1 goto :BAD
+%LJLIB% /OUT:%LJLIBNAME% lj_*.obj lib_*.obj
+@if errorlevel 1 goto :BAD
+@goto :MTDLL
+:AMALGDLL
+%LJCOMPILE% /DLUA_BUILD_AS_DLL ljamalg.c
+@if errorlevel 1 goto :BAD
+%LJLINK% /DLL /out:%LJDLLNAME% ljamalg.obj lj_vm.obj
+@if errorlevel 1 goto :BAD
+:MTDLL
+if exist %LJDLLNAME%.manifest^
+ %LJMT% -manifest %LJDLLNAME%.manifest -outputresource:%LJDLLNAME%;2
+
+%LJCOMPILE% luajit.c
+@if errorlevel 1 goto :BAD
+%LJLINK% /out:luajit.exe luajit.obj %LJLIBNAME%
+@if errorlevel 1 goto :BAD
+if exist luajit.exe.manifest^
+ %LJMT% -manifest luajit.exe.manifest -outputresource:luajit.exe
+
+@del *.obj *.manifest minilua.exe buildvm.exe
+@echo.
+@echo === Successfully built LuaJIT for Windows/%LJARCH% ===
+
+@goto :END
+:BAD
+@echo.
+@echo *******************************************************
+@echo *** Build FAILED -- Please check the error messages ***
+@echo *******************************************************
+@goto :END
+:FAIL
+@echo You must open a "Visual Studio .NET Command Prompt" to run this script
+:END
diff --git a/LuaJIT.bat b/LuaJIT.bat
new file mode 100644
index 0000000..e51ff1f
--- /dev/null
+++ b/LuaJIT.bat
@@ -0,0 +1,17 @@
+@echo off
+
+cd Balau\LuaJIT\src
+
+call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" x86
+call ..\..\..\LuaJIT-buildsub.bat static
+copy lua51.lib ..\..\..\lua51_32r.lib
+call ..\..\..\LuaJIT-buildsub.bat debug static
+copy lua51.lib ..\..\..\lua51_32d.lib
+
+call "%VS120COMNTOOLS%\..\..\vc\vcvarsall.bat" x86_amd64
+call ..\..\..\LuaJIT-buildsub.bat static
+copy lua51.lib ..\..\..\lua51_64r.lib
+call ..\..\..\LuaJIT-buildsub.bat debug static
+copy lua51.lib ..\..\..\lua51_64d.lib
+
+cd ..\..\..
diff --git a/src/Dalos-cli.cc b/src/Dalos-cli.cc
index b331f15..f01a8de 100644
--- a/src/Dalos-cli.cc
+++ b/src/Dalos-cli.cc
@@ -11,16 +11,6 @@
using namespace Balau;
-int getopt_flag = 0;
-
-struct option long_options[] = {
- { "help", 0, NULL, 'h' },
- { "verbose", 0, NULL, 'v' },
- { "exec", 1, NULL, 'e' },
- { "interactive", 0, NULL, 'i' },
- { NULL, 0, NULL, 0 },
-};
-
static void showhelp(const char * binname, bool longhelp) {
Printer::print(
"Usage:\n"
@@ -62,7 +52,7 @@ void MainTask::Do() {
LuaMainTask * luaMainTask = TaskMan::registerTask(new LuaMainTask);
- while ((c = getopt_long(argc, argv, "Hhve:i", long_options, NULL)) != EOF) {
+ while ((c = getopt(argc, argv, "Hhve:i")) != EOF) {
switch (c) {
case 'h':
case 'H':
@@ -113,7 +103,11 @@ void MainTask::Do() {
return;
String line_read;
+#ifdef _WIN32
+ Readline rl("Dalos-cli", new Buffer());
+#else
Readline rl("Dalos-cli", new StdIN());
+#endif
for (;;) {
line_read = rl.gets();