1 Dim g_g : Sub GetMainSetting( g ) : If not IsEmpty(g_g) Then Set g=g_g : Exit Sub
\r
2 Set g=CreateObject("Scripting.Dictionary") : Set g_g=g
\r
5 '==============================================================================
\r
7 '==============================================================================
\r
11 Sub Main( Opt, AppKey )
\r
12 Set w_=AppKey.NewWritable( "." ).Enable()
\r
15 Set mxp = new Mxp_Proj
\r
16 Setting_addRepository mxp, "Types"
\r
17 mxp.AddWorkFile "clib.h", "CHead_Type"
\r
18 mxp.AddWorkFile "clib.c", "C_Type"
\r
19 mxp.SetProj g("ExeName"), "Mxp_ProjType_VisualStudioWin32Console"
\r
21 Setting_addRepository mxp, "clib"
\r
29 Error4_str_stdio.Uses
\r
44 '--- start of vbslib include ------------------------------------------------------
\r
46 '//
\82±
\82±
\82Ì
\93à
\95\94\82©
\82ç Main
\8aÖ
\90\94\82ð
\8cÄ
\82Ñ
\8fo
\82µ
\82Ä
\82¢
\82Ü
\82·
\81B
\r
47 '//
\82Ü
\82½
\81Ascriptlib
\83t
\83H
\83\8b\83_
\81[
\82ð
\92T
\82µ
\82Ä
\81Avbslib
\82ð
\83C
\83\93\83N
\83\8b\81[
\83h
\82µ
\82Ä
\82¢
\82Ü
\82·
\r
49 '// vbslib include is provided under 3-clause BSD license.
\r
50 '// Copyright (C) Sofrware Design Gallery "Sage Plaisir 21" All Rights Reserved.
\r
52 Dim g_Vers : If IsEmpty( g_Vers ) Then
\r
53 Set g_Vers = CreateObject("Scripting.Dictionary") : g_Vers("vbslib") = 99.99
\r
54 Dim g_debug, g_debug_params, g_admin, g_vbslib_path, g_CommandPrompt, g_fs, g_sh, g_AppKey
\r
55 Dim g_MainPath, g_SrcPath, g_f, g_include_path, g_i, g_debug_tree, g_debug_process, g_is_compile_debug
\r
57 g_SrcPath = WScript.ScriptFullName : g_MainPath = g_SrcPath
\r
58 SetupVbslibParameters
\r
59 Set g_fs = CreateObject( "Scripting.FileSystemObject" )
\r
60 Set g_sh = WScript.CreateObject("WScript.Shell") : g_f = g_sh.CurrentDirectory
\r
61 g_sh.CurrentDirectory = g_fs.GetParentFolderName( WScript.ScriptFullName )
\r
62 For g_i = 20 To 1 Step -1 : If g_fs.FileExists(g_vbslib_path) Then Exit For
\r
63 g_vbslib_path = "..\" + g_vbslib_path : Next
\r
64 If g_fs.FileExists(g_vbslib_path) Then g_vbslib_path = g_fs.GetAbsolutePathName( g_vbslib_path )
\r
65 g_sh.CurrentDirectory = g_f
\r
66 If g_i=0 Then WScript.Echo "Not found " + g_fs.GetFileName( g_vbslib_path ) +vbCR+vbLF+_
\r
67 "Let's download vbslib and Copy scriptlib folder." : Stop : WScript.Quit 1
\r
68 Set g_f = g_fs.OpenTextFile( g_vbslib_path,,,-2 ): Execute g_f.ReadAll() : g_f = Empty
\r
69 If ResumePush Then On Error Resume Next
\r
71 ResumePop : On Error GoTo 0
\r
73 '---------------------------------------------------------------------------------
\r
75 Sub SetupDebugTools()
\r
77 SetBreakByFName Empty
\r
78 SetStartSectionTree ""
\r
81 Sub SetupVbslibParameters()
\r
82 '--- start of parameters for vbslib include -------------------------------
\r
83 g_Vers("vbslib") = 99.99
\r
84 '// g_Vers("OldMain") = 1
\r
85 g_vbslib_path = "scriptlib\vbs_inc.vbs"
\r
88 '--- end of parameters for vbslib include ---------------------------------
\r
90 '--- end of vbslib include --------------------------------------------------------
\r