1#!/usr/bin/env python3 2# AppDepGen.py - produce a make dependencies file for SciTE 3# Copyright 2019 by Neil Hodgson <neilh@scintilla.org> 4# The License.txt file describes the conditions under which this software may be distributed. 5# Requires Python 3.6 or later 6 7import sys 8 9srcRoot = "../.." 10 11sys.path.append(srcRoot + "/scintilla") 12 13from scripts import Dependencies 14 15topComment = "# Created by AppDepGen.py. To recreate, run AppDepGen.py.\n" 16 17def Generate(): 18 sciteSources = ["../src/*.cxx", "../lua/src/*.c"] 19 sciteIncludes = ["../../scintilla/include", "../src", "../lua/src"] 20 21 deps = Dependencies.FindDependencies(["../gtk/*.cxx"] + sciteSources, ["../gtk"] + sciteIncludes, ".o", "../gtk/") 22 Dependencies.UpdateDependencies("../gtk/deps.mak", deps, topComment) 23 24if __name__ == "__main__": 25 Generate()