-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Makefile #1735
base: master
Are you sure you want to change the base?
add Makefile #1735
Conversation
It's more efficient if you work with the person who has reviewed your PR instead of opening another PR. |
I am absolutely working with @tolot27: I wrote this code per their request! I made a new PR because the new commits that I made didn't show up in Github UI on the other PR. I guess that was because the PR was closed. |
This was in his last message:
Which means, he is suggesting we don't need this. |
There is no need to remind me of that. Nevertheless, I made the requested changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing my requests. It looks much better than before. I still have some suggestions.
Since you have claimed not using xDrip, what is your intention to open this PR? Do you develop some automated deployment pipelines for xDrip or do you plan to address existing issues?
To share the code that I wrote to build xDrip. Can I ask you a question: what is your intention to ask me all of these questions? Why do you care about the "code style" of the I wrote the entire file and it is in my typical style. It is the only file in that language in the repository. So it should be in my style, as the sole author in that language in the project. In my style, variables that hold the names of commands are lowercase for consistency with other commands. |
|
My personal view is that this PR adds negative value and should not be merged. The reason it adds negative value is that it duplicates some assumptions such as Android SDK version with which the project can be build, and gradle target names. Every time those change in future, one would then have to make a corresponding change in the makefile, or else the makefile would undergo bitrot. Since we already have a build system (gradle) and since not even the author of this PR needs this since they don't use xDrip, this seems to not solve any problem that anyone has, while creating new problems as per my previous paragraph. |
I would not call it a negative value as long as it has no negative impact. |
But what are the benefits for us? We already have an established build system and if we like to build it using Linux, I would simply install travis and using the existing
Because we appreciate contributions but have to identify the benefits for us and the impact of a PR rejection.
You are free to use your code style in your fork. But we like to have a common code style in the main repository. That are our rules and we recommend to follow common code styles and apply code formatting. |
The negative impact that I was referring to was the fact that it adds duplication of the names of gradle build targets and version numbers of Android SDK and build tools, which already exist in gradle files. This only adds a little bit of work towards changing these (because now the makefile needs to be changed and tested as well), but it sounded like no one is actually using the makefile, not even the original author? Note that I don't feel strongly. There are much, much bigger problems in this project's code health than the potential duplication added by this PR. |
The makefile allows a new user to build the project with:
Building the project is the first thing users do BEFORE they write any code and become contributors. Furthermore, without any Even a non-working But I'm not being asked to address a non-working Makefile. Instead, I'm being asked to go read a style guide that I HEAVILY SUSPECT does not include any references to the Make language. |
How is the non-working makefile of less value than a non-existent makefile? Suppose we assign the values like this:
Why is |
I totally accept a 0 for the sake of argument though. But negative? How??? |
Let me just throw on another advantage. If a developer wanted to do automated builds for tests but not on Microsoft servers, the Makefile would enable that. It reduces dependency on Github and Microsoft testing servers. You've got code that's incomplete, non-portable, runs only on one system, Travis. Now I add code that does the same thing but works on MY system, and is sure to work on MORE systems than the build system you guys had. Somehow my more portable solution is the problem, and especially the casing of its variables? Maybe it is a problem in YOUR mind. Syndrome called NIHS? |
I got xdrip to build on a system it could not build on until I added those capabilities. Why? That was the system I was using. Why submit it here? Because it is more useful to have a more portable build system. Not just to me. More portable is objectively better. Many other people have systems that will not run . I share my work with them for their benefit. You people here stand in the way of me sharing my free work with other users. To no benefit to you or me or anyone whatsoever to block my makefile nor to have any of these arguments. What are you trying to do? Gatekeep? Drive me away? This is not helping xdrip or anyone else in the world. Unlike the makefile. The makefile can help someone with a system like mine accomplish the build that I accomplished but withot performing the work I performed. |
This allows the project to be built in a single command (
make
). TheMakefile
handles downloading and installing the SDKs in an essentially identical way to the.travis.yml
, then builds withgradle
.This is an updated version of PR #903 which incorporates the requested change by @tolot27 (obtain version strings from
.travis.yml
) and uses a new .zip forsdkmanager
.Also related #768.