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

Feature/build #42

Merged
merged 10 commits into from
Feb 2, 2019
Merged

Feature/build #42

merged 10 commits into from
Feb 2, 2019

Conversation

arfbtwn
Copy link
Owner

@arfbtwn arfbtwn commented Sep 10, 2017

Issues the current build system:

  1. a custom autogen.sh is required because autoreconf does not work;
  2. we require intltool, which is deprecated;
  3. ./configure often fails for optional dependencies; (although it does provide resolution instructions)
  4. each *.m4 file has custom style and implementation, raising the bar for new developers;
  5. auto-tools and MSBuild solutions are fairly isolated.

Goals:

  1. autoreconf -fvi should produce a working configure script;
  2. use GNU gettext;
  3. use a consistent style for (almost) all *.m4 files;
  4. ./configure should succeed if base dependencies are satisfied; (or can be configured with internal facsimilies)
  5. ./configure should enable all optional components where dependencies are satisfied;
  6. ./configure should configure solution and project files. e.g trivially LIBMTP_SIZEOF_T_64 but also the solution file build configuration.

Stretch:

  • .NET version agnostic, i.e. f9fb010 should never have been needed.

@arfbtwn
Copy link
Owner Author

arfbtwn commented Sep 10, 2017

Probably about time we extracted this one from feature/fixes too. I'll use the result of this in doing the auto-tools part of #4.

TODO: first commit in this series is huge, it needs cutting down into commits matching the goals in the description. Order is incorrect too - switching to gettext should come before the major refactor.

Now it's separated into distinct goals, I think we may have 1-4 done, 5 is on its way and 6 is pie-in-the-sky but definitely desirable - considering the stretch goal. (we could extend that to system libraries)

@arfbtwn arfbtwn mentioned this pull request Sep 10, 2017
@arfbtwn arfbtwn force-pushed the feature/build branch 2 times, most recently from 59e3195 to e3892c4 Compare September 10, 2017 15:15
@@ -23,6 +21,9 @@ desktopfiles_files = $(desktopfiles_in_files:.desktop.in=.desktop)
desktopfilesdir = $(datadir)/applications
desktopfiles_DATA = $(desktopfiles_files)

%.desktop: %.desktop.in
$(AM_V_GEN)$(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@

Copy link
Owner Author

Choose a reason for hiding this comment

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

I'm not 100% on this update in particular, worth a closer look

@@ -60,20 +60,22 @@ PROFILE_DEFAULT=--profile=log:time=fast,calls,noalloc,maxframes=5
PROFILE_HEAP=--profile=logging:heap=all,gc-dumps=-1
PROFILE_GUI=--profile=gui-thread-check

RUN_DEFAULT=--debug --uninstalled
Copy link
Owner Author

Choose a reason for hiding this comment

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

I actually wanted to get $* into here, IIRC I tried RUN_DEFAULT='--debug --uninstalled $*' at the time but it didn't work, although I don't recall what was passed through, worth a second look

@arfbtwn arfbtwn force-pushed the feature/build branch 2 times, most recently from 78fb743 to 0ff8672 Compare October 2, 2017 17:13
@arfbtwn arfbtwn force-pushed the feature/build branch 4 times, most recently from 64be04e to bb0c8da Compare November 12, 2017 08:58
@arfbtwn arfbtwn force-pushed the feature/build branch 5 times, most recently from c4edbbc to 71ef167 Compare November 19, 2017 16:50
Not really sure why we did this - I think some calculations were off
when doing the menu button.
There were a number of problems with the NowPlaying extension making its
behaviour, particularly with respect to GUI components, a bit confusing.
In addition there were a number fo hack comments indicating quality
issues. It appears to have suffered some bit-rot as functionality was
added and the extension was expanded.

We address a number of things:

- remove the unused substitute audio display;
- make NowPlayingContents default home in NowPlayingInterface;
- remove all unnecessary graphical programming;
- remove the OnShown timeout hack;
- re-work going fullscreen and back.

Finally we prevent background pattern clearing in the Gdk.Window we ask
GStreamer to draw on, this causes an XLib error on reparenting when the
HeaderBar is in use in the lite interface and the only reason I can find
for clearing the property is the original GStreamer C example code for
the video overlay.
This commit removes the ENABLE_TESTS define from B.WebBrowser to avoid
compilation errors from the NUnit shipped with mono, we'll need to move
NUnit to become a NuGet installable component.
leave the GETTEXTDATADIR commented out - prevents translation generation
regenerating the file names and stripping the ../ prefix.
@arfbtwn arfbtwn merged commit a14fa80 into master Feb 2, 2019
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.

1 participant