mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
New stuff
This commit is contained in:
parent
32c064a1be
commit
5e01db8809
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
|
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
|
||||||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="C:\ProgramData\chocolatey\lib\lua51\tools\lua5.1.exe"/>
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="C:\ProgramData\chocolatey\lib\lua51\tools\lua5.1.exe"/>
|
||||||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value=""Moose Setup\Moose_Create.lua" "D" "LOCAL" "${resource_loc:/MOOSE/Moose Development/Moose}" "${resource_loc:/MOOSE/Moose Setup}" "${resource_loc:/MOOSE/Moose Development/Moose}""/>
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value=""Moose Setup\Moose_Create.lua" "D" "LOCAL" "${resource_loc:/MOOSE/Moose Development/Moose}" "${resource_loc:/MOOSE/Moose Setup}""/>
|
||||||
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/MOOSE}"/>
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/MOOSE}"/>
|
||||||
</launchConfiguration>
|
</launchConfiguration>
|
||||||
6
Moose Setup/Eclipse/Moose Loader Static.launch
Normal file
6
Moose Setup/Eclipse/Moose Loader Static.launch
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramLaunchConfigurationType">
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="C:\ProgramData\chocolatey\lib\lua51\tools\lua5.1.exe"/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value=""Moose Setup\Moose_Create.lua" "S" "LOCAL" "${resource_loc:/MOOSE/Moose Development/Moose}" "${resource_loc:/MOOSE/Moose Setup}""/>
|
||||||
|
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_WORKING_DIRECTORY" value="${workspace_loc:/MOOSE}"/>
|
||||||
|
</launchConfiguration>
|
||||||
@ -18,3 +18,5 @@ __Moose.Include = function( IncludeFile )
|
|||||||
end
|
end
|
||||||
|
|
||||||
__Moose.Includes = {}
|
__Moose.Includes = {}
|
||||||
|
|
||||||
|
__Moose.Include( 'Scripts/Moose/Modules.lua' )
|
||||||
|
|||||||
22
Moose Setup/Moose.lua
Normal file
22
Moose Setup/Moose.lua
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
env.info( '*** MOOSE DYNAMIC INCLUDE START *** ' )
|
||||||
|
|
||||||
|
local base = _G
|
||||||
|
|
||||||
|
__Moose = {}
|
||||||
|
|
||||||
|
__Moose.Include = function( IncludeFile )
|
||||||
|
if not __Moose.Includes[ IncludeFile ] then
|
||||||
|
__Moose.Includes[IncludeFile] = IncludeFile
|
||||||
|
local f = assert( base.loadfile( IncludeFile ) )
|
||||||
|
if f == nil then
|
||||||
|
error ("Moose: Could not load Moose file " .. IncludeFile )
|
||||||
|
else
|
||||||
|
env.info( "Moose: " .. IncludeFile .. " dynamically loaded." )
|
||||||
|
return f()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
__Moose.Includes = {}
|
||||||
|
|
||||||
|
__Moose.Include( "Modules.lua" )
|
||||||
@ -10,13 +10,11 @@ print( "Moose (D)ynamic (S)tatic : " .. MooseDynamicStatic )
|
|||||||
print( "Commit Hash ID : " .. MooseCommitHash )
|
print( "Commit Hash ID : " .. MooseCommitHash )
|
||||||
print( "Moose development path : " .. MooseDevelopmentPath )
|
print( "Moose development path : " .. MooseDevelopmentPath )
|
||||||
print( "Moose setup path : " .. MooseSetupPath )
|
print( "Moose setup path : " .. MooseSetupPath )
|
||||||
print( "Moose target path : " .. MooseTargetPath )
|
|
||||||
|
|
||||||
local MooseSourcesFilePath = MooseSetupPath .. "/Moose.files"
|
local MooseModulesFilePath = MooseDevelopmentPath .. "/Modules.lua"
|
||||||
local LoaderFilePath = MooseTargetPath.."/Moose.lua"
|
local LoaderFilePath = MooseSetupPath .. "/Moose.lua"
|
||||||
local MooseFilePath = MooseTargetPath .. "/Modules.lua"
|
|
||||||
|
|
||||||
print( "Reading Moose source list : " .. MooseSourcesFilePath )
|
print( "Reading Moose source list : " .. MooseModulesFilePath )
|
||||||
|
|
||||||
local LoaderFile = io.open( LoaderFilePath, "w" )
|
local LoaderFile = io.open( LoaderFilePath, "w" )
|
||||||
|
|
||||||
@ -32,28 +30,26 @@ if MooseDynamicStatic == "S" then
|
|||||||
MooseLoaderPath = MooseSetupPath .. "/Moose Templates/Moose_Static_Loader.lua"
|
MooseLoaderPath = MooseSetupPath .. "/Moose Templates/Moose_Static_Loader.lua"
|
||||||
end
|
end
|
||||||
|
|
||||||
local MooseFile = io.open( MooseFilePath, "w" )
|
|
||||||
|
|
||||||
local MooseLoader = io.open( MooseLoaderPath, "r" )
|
local MooseLoader = io.open( MooseLoaderPath, "r" )
|
||||||
local MooseLoaderText = MooseLoader:read( "*a" )
|
local MooseLoaderText = MooseLoader:read( "*a" )
|
||||||
MooseLoader:close()
|
MooseLoader:close()
|
||||||
|
|
||||||
LoaderFile:write( MooseLoaderText )
|
LoaderFile:write( MooseLoaderText )
|
||||||
LoaderFile:write( "__Moose.Include( 'Scripts/Moose/Modules.lua' ) \n" )
|
|
||||||
|
|
||||||
local MooseSourcesFile = io.open( MooseSourcesFilePath, "r" )
|
local MooseSourcesFile = io.open( MooseModulesFilePath, "r" )
|
||||||
local MooseSource = MooseSourcesFile:read("*l")
|
local MooseSource = MooseSourcesFile:read("*l")
|
||||||
|
|
||||||
|
_, _, MooseSource = string.find( MooseSource, "Scripts/Moose/(.+)'" )
|
||||||
|
|
||||||
while( MooseSource ) do
|
while( MooseSource ) do
|
||||||
|
|
||||||
if MooseSource ~= "" then
|
if MooseSource ~= "" then
|
||||||
local MooseFilePath = MooseDevelopmentPath .. "/" .. MooseSource
|
local MooseFilePath = MooseDevelopmentPath .. "/" .. MooseSource
|
||||||
if MooseDynamicStatic == "D" then
|
if MooseDynamicStatic == "D" then
|
||||||
print( "Load dynamic: " .. MooseSource )
|
print( "Load dynamic: " .. MooseFilePath )
|
||||||
MooseFile:write( "__Moose.Include( 'Scripts/Moose/" .. MooseSource .. "' )\n" )
|
|
||||||
end
|
end
|
||||||
if MooseDynamicStatic == "S" then
|
if MooseDynamicStatic == "S" then
|
||||||
print( "Load static: " .. MooseSource )
|
print( "Load static: " .. MooseFilePath )
|
||||||
local MooseSourceFile = io.open( MooseFilePath, "r" )
|
local MooseSourceFile = io.open( MooseFilePath, "r" )
|
||||||
local MooseSourceFileText = MooseSourceFile:read( "*a" )
|
local MooseSourceFileText = MooseSourceFile:read( "*a" )
|
||||||
MooseSourceFile:close()
|
MooseSourceFile:close()
|
||||||
@ -63,6 +59,7 @@ while( MooseSource ) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
MooseSource = MooseSourcesFile:read("*l")
|
MooseSource = MooseSourcesFile:read("*l")
|
||||||
|
_, _, MooseSource = string.find( MooseSource, "Scripts/Moose/(.+)'" )
|
||||||
end
|
end
|
||||||
|
|
||||||
if MooseDynamicStatic == "D" then
|
if MooseDynamicStatic == "D" then
|
||||||
@ -76,4 +73,3 @@ LoaderFile:write( "env.info( '*** MOOSE INCLUDE END *** ' )\n" )
|
|||||||
|
|
||||||
MooseSourcesFile:close()
|
MooseSourcesFile:close()
|
||||||
LoaderFile:close()
|
LoaderFile:close()
|
||||||
MooseFile:close()
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user