Skip to content
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

Add 'tags' filter api. #789

Merged
merged 1 commit into from
May 25, 2017
Merged

Add 'tags' filter api. #789

merged 1 commit into from
May 25, 2017

Conversation

tvandijck
Copy link
Contributor

This is just an API that can contain a arbitrary set of values, which you can then filter on.
for example:

workspace 'foobar'
    configurations { 'release-std', 'debug-std', 'release-blz', 'debug-blz' }

   filter { 'configuration:*-std' }
        tags { 'use-std' }
   filter { 'configuration:*-blz' }
        tags { 'use-blz' }

   project 'test'
        filter { 'tags:use-blz' }
            includedependencies { 'blz' }
            defines { 'USE_BLZ' }

        filter { 'tags:use-std' }
            defines { 'USE_STD' }

It allows authors to expose features in libraries through tags, and users to enable/disable said features.

Copy link
Member

@starkos starkos left a comment

Choose a reason for hiding this comment

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

Huh, interesting. Yes, I'm good with this.

@tvandijck tvandijck merged commit 4a872d6 into premake:master May 25, 2017
@tvandijck tvandijck deleted the tags-api branch May 25, 2017 15:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants