Skip to content

AssetCompiler now writes a dep file #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged

Conversation

jlaumon
Copy link
Collaborator

@jlaumon jlaumon commented Mar 13, 2025

The lua function to create the texture rule becomes this (adding the DepFile line and the --dep command line option)

function CreateTextureRule(inRuleName)
    local rule =
    {
        Name = inRuleName,
        Version = 1,
        OutputPaths = { '{ Repo:Bin }{ Dir }{ File }.dds' },
        CommandLine = '{ Repo:Tools }binaries/asset_compiler/AssetCompiler.exe --input "{ Repo:Source }{ Path }" --output "{ Repo:Bin }{ Dir_NoTrailingSlash }" --dep "{ Repo:Intermediate }{ Dir }{ File }.dep"',
        InputFilters = {{ Repo = "Source", PathPattern = "*.texture" }},
        DepFile = { Path = '{ Repo:Intermediate }{ Dir }{ File }.dep', Format = 'AssetCooker' },
    }

    table.insert(Rule, rule)
end

Copy link
Collaborator

@gmodarelli gmodarelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@gmodarelli gmodarelli merged commit e5587d6 into main Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants