{"action":"created","issue":{"url":"https://api.github.com/repos/premake/premake-core/issues/551","repository_url":"https://api.github.com/repos/premake/premake-core","labels_url":"https://api.github.com/repos/premake/premake-core/issues/551/labels{/name}","comments_url":"https://api.github.com/repos/premake/premake-core/issues/551/comments","events_url":"https://api.github.com/repos/premake/premake-core/issues/551/events","html_url":"https://github.com/premake/premake-core/issues/551","id":167548332,"number":551,"title":"Properties for defining macros or variables","user":{"login":"utelle","id":11139874,"avatar_url":"https://avatars.githubusercontent.com/u/11139874?v=3","gravatar_id":"","url":"https://api.github.com/users/utelle","html_url":"https://github.com/utelle","followers_url":"https://api.github.com/users/utelle/followers","following_url":"https://api.github.com/users/utelle/following{/other_user}","gists_url":"https://api.github.com/users/utelle/gists{/gist_id}","starred_url":"https://api.github.com/users/utelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utelle/subscriptions","organizations_url":"https://api.github.com/users/utelle/orgs","repos_url":"https://api.github.com/users/utelle/repos","events_url":"https://api.github.com/users/utelle/events{/privacy}","received_events_url":"https://api.github.com/users/utelle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-26T08:25:22Z","updated_at":"2016-07-26T17:23:53Z","closed_at":null,"body":"For a Visual Studio project I have a `.props` file that defines certain configuration macros that are used at other places using the `$(macroname)` syntax.\r\n\r\nI found premake's `externalrule` for including external property files. However, this not only tries to include the external `.props` file, but also a `.target` file (which doesn't exist in my case). And it seems to be bound to handling files of a certain type.\r\n\r\nIs there a way to generate the necessary `import` syntax for an external `.props` file containing generic macros? If yes, how? If no, is it planned to add such a feature to premake?\r\n\r\nA similar mechanism would be useful for generated makefiles (gmake). In makefiles you can define variables like `FOO ?= foo` and can override the value of `FOO` by adding something like `FOO=bar` as a command line parameter on invoking make. Is this supported by premake? If yes, how? If no, is it planned to add such a feature?"},"comment":{"url":"https://api.github.com/repos/premake/premake-core/issues/comments/235341164","html_url":"https://github.com/premake/premake-core/issues/551#issuecomment-235341164","issue_url":"https://api.github.com/repos/premake/premake-core/issues/551","id":235341164,"user":{"login":"utelle","id":11139874,"avatar_url":"https://avatars.githubusercontent.com/u/11139874?v=3","gravatar_id":"","url":"https://api.github.com/users/utelle","html_url":"https://github.com/utelle","followers_url":"https://api.github.com/users/utelle/followers","following_url":"https://api.github.com/users/utelle/following{/other_user}","gists_url":"https://api.github.com/users/utelle/gists{/gist_id}","starred_url":"https://api.github.com/users/utelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/utelle/subscriptions","organizations_url":"https://api.github.com/users/utelle/orgs","repos_url":"https://api.github.com/users/utelle/repos","events_url":"https://api.github.com/users/utelle/events{/privacy}","received_events_url":"https://api.github.com/users/utelle/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T17:23:53Z","updated_at":"2016-07-26T17:23:53Z","body":"An `externalprops()` call would certainly be nice to have. Another (or additional) approach could be to allow to define such general properties with default values, and to generate a `.props` file for Visual Studio (or to add appropriate definition lines at the beginning of a makefile)."}}
{"actor":{"display_login":"utelle"}}