コード例 #1
0
def Generate():
	lexilla = os.path.join("..")
	sources = [
		os.path.join(lexilla, "src", "Lexilla.cxx"),
		os.path.join(lexilla, "lexlib", "*.cxx"),
		os.path.join(lexilla, "lexers", "*.cxx")]
	includes = [
		os.path.join(lexilla, "include"),
		os.path.join(scintilla, "include"),
		os.path.join(lexilla, "lexlib")]

	# Create the dependencies file for g++
	deps = Dependencies.FindDependencies(sources,  includes, ".o", "../lexilla/")

	# Place the objects in $(DIR_O)
	deps = [["$(DIR_O)/"+obj, headers] for obj, headers in deps]

	Dependencies.UpdateDependencies(os.path.join(lexilla, "src", "deps.mak"), deps, topComment)

	# Create the dependencies file for MSVC

	# Place the objects in $(DIR_O) and change extension from ".o" to ".obj"
	deps = [["$(DIR_O)/"+Dependencies.PathStem(obj)+".obj", headers] for obj, headers in deps]

	Dependencies.UpdateDependencies(os.path.join(lexilla, "src", "nmdeps.mak"), deps, topComment)
コード例 #2
0
def Generate():
    sciteSources = ["../src/*.cxx", "../lua/src/*.c"]
    sciteIncludes = ["../../scintilla/include", "../src", "../lua/src"]

    deps = Dependencies.FindDependencies(["../gtk/*.cxx"] + sciteSources,
                                         ["../gtk"] + sciteIncludes, ".o",
                                         "../gtk/")
    Dependencies.UpdateDependencies("../gtk/deps.mak", deps, topComment)
コード例 #3
0
def Generate():
    sources = ["../src/*.cxx", "../lexlib/*.cxx", "../lexers/*.cxx"]
    includes = ["../include", "../src", "../lexlib"]

    deps = Dependencies.FindDependencies(["../gtk/*.cxx"] + sources,
                                         ["../gtk"] + includes, ".o",
                                         "../gtk/")
    Dependencies.UpdateDependencies("../gtk/deps.mak", deps, topComment)
コード例 #4
0
ファイル: DepGen.py プロジェクト: xsak/Notepad3
def Generate():
	sources = ["../src/*.cxx"]
	includes = ["../include", "../src"]

	# Create the dependencies file for g++
	deps = Dependencies.FindDependencies(["../win32/*.cxx"] + sources,  ["../win32"] + includes, ".o", "../win32/")

	Dependencies.UpdateDependencies("../win32/deps.mak", deps, topComment)

	# Create the dependencies file for MSVC

	# Place the objects in $(DIR_O) and change extension from ".o" to ".obj"
	deps = [["$(DIR_O)/"+Dependencies.PathStem(obj)+".obj", headers] for obj, headers in deps]

	Dependencies.UpdateDependencies("../win32/nmdeps.mak", deps, topComment)
コード例 #5
0
ファイル: DepGen.py プロジェクト: sukumarsat/gitahead
def Generate():
	sources = ["../src/*.cxx", "../lexlib/*.cxx", "../lexers/*.cxx"]
	includes = ["../include", "../src", "../lexlib"]

	# Create the dependencies file for g++
	deps = Dependencies.FindDependencies(["../win32/*.cxx"] + sources,  ["../win32"] + includes, ".o", "../win32/")

	# Add ScintillaBaseL as the same as ScintillaBase
	deps = Dependencies.InsertSynonym(deps, "ScintillaBase.o", "ScintillaBaseL.o")

	Dependencies.UpdateDependencies("../win32/deps.mak", deps, topComment)

	# Create the dependencies file for MSVC

	# Place the objects in $(DIR_O) and change extension from ".o" to ".obj"
	deps = [["$(DIR_O)/"+Dependencies.PathStem(obj)+".obj", headers] for obj, headers in deps]

	Dependencies.UpdateDependencies("../win32/nmdeps.mak", deps, topComment)
コード例 #6
0
ファイル: AppDepGen.py プロジェクト: dejbug/scite-mod
def Generate():
    sciteSources = ["../src/*.cxx", "../lua/src/*.c"]
    sciteIncludes = ["../../scintilla/include", "../src", "../lua/src"]

    # Header magically injected into Lua builds on Win32 to make Unicode file names work
    luaSubsts = {"LUA_USER_H": "scite_lua_win.h"}

    # Create the dependencies file for g++
    deps = Dependencies.FindDependencies(["../win32/*.cxx"] + sciteSources,
                                         ["../win32"] + sciteIncludes, ".o",
                                         "../win32/", luaSubsts)

    # Add Sc1 as the same as SciTEWin
    deps = Dependencies.InsertSynonym(deps, "SciTEWin.o", "Sc1.o")

    Dependencies.UpdateDependencies("../win32/deps.mak", deps, topComment)

    # Create the dependencies file for MSVC

    # Change extension from ".o" to ".obj"
    deps = [[Dependencies.PathStem(obj) + ".obj", headers]
            for obj, headers in deps]

    Dependencies.UpdateDependencies("../win32/nmdeps.mak", deps, topComment)