Repository: conan-io/conan

Issue:
premake generator output 'conanbuildinfo.lua' consider rename
`.lua` is not an extension unique to premake, but instead a lua script file.  I am currently working on a generator for another build system which uses `.lua` files, and the problem is obvious.  I suggest `conanbuildinfo.premake.lua`.  That's the convention I'll be using for the new generator. 

- [x] I've read the [CONTRIBUTING guide](https://github.com/conan-io/conan/blob/develop/.github/CONTRIBUTING.md).
- [x] I've specified the Conan version, operating system version and any tool that can be relevant.
- [x] I've explained the steps to reproduce the error or the motivation/use case of the question/suggestion.




Discussion:
Make sense, but would be breaking, so assigning it for 2.0
Ok, well at the same time, might as well also consider the following. 

The variable for preprocessor definitions has a rather unfortunate name: 

https://github.com/conan-io/conan/blob/develop/conans/client/generators/premake.py#L37

```
conan_cppdefines{dep} = {{{deps.defines}}}\n
conan_cppflags{dep} = {{{deps.cppflags}}}\n
```

These two variables mean the following: 

`conan_cppdefines` : "C Pre Processor Definitions"
`conan_cppflags` : "C Plus Plus Flags"

This variable "situation" is unspeakably bad for at least three reasons: 
1.  No other generator names the variable `cppdefines`.  The standard is simply `defines`. 
1. The conan variable it's being mapped from is `deps.defines`.  So, someone actually mapped the standard variable `defines` to this unique variable name: `cppdefines`.  
1. The two variables happen to be directly adjacent to each other, as if to draw attention to their terribly inconsistent and confusing names.  

 It would be funny, if these names didn't matter much, but they do.  When working on the `gnu_make` generator, I spent hours across many days being confused, misinterpreting, and then troubleshooting the inconsistent meanings of `cpp` and `cxx` between `Conan` and `Make`.  It could affect others in the future. 

Now, I think the `premake` generator was created and maintained by Conan team from day 1.  So, all of this together makes me wonder why this variable was named so uniquely.  I'm willing to believe there was some special reason `cppdefines` was used here instead of the normal `defines`.  However, I hope it was just a historical oversight that hasn't been corrected yet. 

I am aware of the unfortunate history of the naming of the variable `cpp_info.cppflags`, and that's something we'll all have to accept and live with long-term.   But, the `premake` generator is relatively new (as far as being an official generator), so hopefully we can rename the variable from `conan_cppdefines` to simply `conan_defines`  so this blemish doesn't have to stick around forever.  

I think we could change this as the generator was released as experimental https://docs.conan.io/en/latest/reference/generators/premake.html

So we could tackle both problems even before 2.0 @memsharded 
to summarize, I believe we should change:
1. `conanbuildinfo.lua` -> `conanbuildinfo.premake.lua`
2. `conan_cppdefines` -> `conan_defines`
3. `conan_cppflags` -> `conan_cxxflags`
as in GNU word, CPP usually stands for `C PreProcessor` instead of `C++`, and `CPPFLAGS` variable is used for C preprocessor flags instead of C++ compiler flags (which is `CXXFLAGS`). so, this may introduce lots of confusion for end users, let's use more obvious name.

Resolving patch:
diff --git a/conans/client/generators/premake.py b/conans/client/generators/premake.py
--- a/conans/client/generators/premake.py
+++ b/conans/client/generators/premake.py
@@ -34,8 +34,8 @@ def content(self):
                     'conan_libdirs{dep} = {{{deps.lib_paths}}}\n'
                     'conan_bindirs{dep} = {{{deps.bin_paths}}}\n'
                     'conan_libs{dep} = {{{deps.libs}}}\n'
-                    'conan_cppdefines{dep} = {{{deps.defines}}}\n'
-                    'conan_cppflags{dep} = {{{deps.cppflags}}}\n'
+                    'conan_defines{dep} = {{{deps.defines}}}\n'
+                    'conan_cxxflags{dep} = {{{deps.cppflags}}}\n'
                     'conan_cflags{dep} = {{{deps.cflags}}}\n'
                     'conan_sharedlinkflags{dep} = {{{deps.sharedlinkflags}}}\n'
                     'conan_exelinkflags{dep} = {{{deps.exelinkflags}}}\n')
@@ -65,7 +65,7 @@ def content(self):
             "    includedirs{conan_includedirs}\n"
             "    libdirs{conan_libdirs}\n"
             "    links{conan_libs}\n"
-            "    defines{conan_cppdefines}\n"
+            "    defines{conan_defines}\n"
             "    bindirs{conan_bindirs}\n"
             "end\n")
 
diff --git a/conans/paths.py b/conans/paths.py
--- a/conans/paths.py
+++ b/conans/paths.py
@@ -34,7 +34,7 @@ def path_shortener(x, _):
 BUILD_INFO_QBS = 'conanbuildinfo.qbs'
 BUILD_INFO_VISUAL_STUDIO = 'conanbuildinfo.props'
 BUILD_INFO_XCODE = 'conanbuildinfo.xcconfig'
-BUILD_INFO_PREMAKE = 'conanbuildinfo.lua'
+BUILD_INFO_PREMAKE = 'conanbuildinfo.premake.lua'
 BUILD_INFO_MAKE = 'conanbuildinfo.mak'
 CONANINFO = "conaninfo.txt"
 CONANENV = "conanenv.txt"
diff --git a/conans/paths/__init__.py b/conans/paths/__init__.py
--- a/conans/paths/__init__.py
+++ b/conans/paths/__init__.py
@@ -39,7 +39,7 @@ def is_case_insensitive_os():
 BUILD_INFO_QBS = 'conanbuildinfo.qbs'
 BUILD_INFO_VISUAL_STUDIO = 'conanbuildinfo.props'
 BUILD_INFO_XCODE = 'conanbuildinfo.xcconfig'
-BUILD_INFO_PREMAKE = 'conanbuildinfo.lua'
+BUILD_INFO_PREMAKE = 'conanbuildinfo.premake.lua'
 BUILD_INFO_MAKE = 'conanbuildinfo.mak'
 CONANINFO = "conaninfo.txt"
 CONANENV = "conanenv.txt"


Test patch:
diff --git a/conans/test/functional/generators/premake_test.py b/conans/test/functional/generators/premake_test.py
--- a/conans/test/functional/generators/premake_test.py
+++ b/conans/test/functional/generators/premake_test.py
@@ -20,7 +20,7 @@ def setUp(self):
         premake
         """)
         premake = textwrap.dedent("""
-        include("conanbuildinfo.lua")
+        include("conanbuildinfo.premake.lua")
 
         workspace("example")
             conan_basic_setup()
diff --git a/conans/test/unittests/client/generators/premake_test.py b/conans/test/unittests/client/generators/premake_test.py
--- a/conans/test/unittests/client/generators/premake_test.py
+++ b/conans/test/unittests/client/generators/premake_test.py
@@ -26,8 +26,8 @@ class PremakeGeneratorTest(unittest.TestCase):
     conan_bindirs = {{"{bin1}",
     "{bin2}"}}
     conan_libs = {{"libfoo", "libbar"}}
-    conan_cppdefines = {{"MYDEFINE2", "MYDEFINE1"}}
-    conan_cppflags = {{"-march=native", "-fPIE"}}
+    conan_defines = {{"MYDEFINE2", "MYDEFINE1"}}
+    conan_cxxflags = {{"-march=native", "-fPIE"}}
     conan_cflags = {{"-mtune=native", "-fPIC"}}
     conan_sharedlinkflags = {{"-framework AudioFoundation", "-framework Cocoa"}}
     conan_exelinkflags = {{"-framework VideoToolbox", "-framework QuartzCore"}}
@@ -36,8 +36,8 @@ class PremakeGeneratorTest(unittest.TestCase):
     conan_libdirs_MyPkg1 = {{"{lib1}"}}
     conan_bindirs_MyPkg1 = {{"{bin1}"}}
     conan_libs_MyPkg1 = {{"libfoo"}}
-    conan_cppdefines_MyPkg1 = {{"MYDEFINE1"}}
-    conan_cppflags_MyPkg1 = {{"-fPIE"}}
+    conan_defines_MyPkg1 = {{"MYDEFINE1"}}
+    conan_cxxflags_MyPkg1 = {{"-fPIE"}}
     conan_cflags_MyPkg1 = {{"-fPIC"}}
     conan_sharedlinkflags_MyPkg1 = {{"-framework Cocoa"}}
     conan_exelinkflags_MyPkg1 = {{"-framework QuartzCore"}}
@@ -47,8 +47,8 @@ class PremakeGeneratorTest(unittest.TestCase):
     conan_libdirs_MyPkg2 = {{"{lib2}"}}
     conan_bindirs_MyPkg2 = {{"{bin2}"}}
     conan_libs_MyPkg2 = {{"libbar"}}
-    conan_cppdefines_MyPkg2 = {{"MYDEFINE2"}}
-    conan_cppflags_MyPkg2 = {{"-march=native"}}
+    conan_defines_MyPkg2 = {{"MYDEFINE2"}}
+    conan_cxxflags_MyPkg2 = {{"-march=native"}}
     conan_cflags_MyPkg2 = {{"-mtune=native"}}
     conan_sharedlinkflags_MyPkg2 = {{"-framework AudioFoundation"}}
     conan_exelinkflags_MyPkg2 = {{"-framework VideoToolbox"}}
@@ -60,7 +60,7 @@ class PremakeGeneratorTest(unittest.TestCase):
         includedirs{{conan_includedirs}}
         libdirs{{conan_libdirs}}
         links{{conan_libs}}
-        defines{{conan_cppdefines}}
+        defines{{conan_defines}}
         bindirs{{conan_bindirs}}
     end
     """)