Ankit Meel
b53cc653ea
meson: create vlc-cache-gen & plugins.dat
2 years ago
Fatih Uzunoglu
4baa098d90
raise minimum required mingw64 version from 5.0 to 6.0
DirectX 12 sdk provided by MinGW 8.0.1 is required for Qt 6,
and patching MinGW 5.0 to include d3d12 sdk requires sheer
amount of effort.
2 years ago
Thomas Guillem
70dc1f9480
bin: use libvlc_Internal API directly
2 years ago
Steve Lhomme
82f3c43340
winvlc: remove libvlc_add_intf for globalhotkeys
It will be added automatically with the default interface autorun.
2 years ago
Steve Lhomme
6e87bfd484
winvlc: use the enum policy when it's known
At some point HAVE_PROCESS_MITIGATION_IMAGE_LOAD_POLICY will go away
since we will only support mingw-w64 versions that have it.
36d7b92bbc
2 years ago
Steve Lhomme
b10437cbc2
winvlc: don't define locally HeapEnableTerminationOnCorruption
It's supported in all the mingw-w64 version we support:
92a31baf45
2 years ago
Steve Lhomme
8c250b6fdc
winvlc: avoid FromWide conversion for the language
We can keep the original wide char and use %ls to generate the LANG environment.
2 years ago
Steve Lhomme
53d8a81b30
winvlc: avoid FromWide conversion on static strings
2 years ago
Steve Lhomme
1040e9a7ff
breakpad: fix potential char used with _snwprintf()
The whole Breakpad API on Windows uses wstring.
2 years ago
Steve Lhomme
3e3292a58d
winvlc: don't keep the crash path forever in memory
It's copied internally by breakpad.
2 years ago
Steve Lhomme
520c9e9291
winvlc: don't attempt to send crash dumps if the path can't be found
2 years ago
Steve Lhomme
787eba6fa3
winvlc: fix potential buffer overflow in crashdump path
2 years ago
Steve Lhomme
af5e87f41c
build: ignore macOS build files
2 years ago
Khalid Masum
a40c987a54
buildsystem: -sMAIN_MODULE for compiling executables
3 years ago
Alexandre Janniaux
84dab2a431
bin: Makefile.am: use EXTRA_%_DEPENDENCIES
Setting the target DEPENDENCIES might lead to confusing behaviour where
dependencies added to LDADD are not propagated correctly. The automake
manual suggest using `EXTRA_%_DEPENDENCIES` when the goal is to augment
the automake-generated `%_DEPENDENCIES` instead.
3 years ago
Alexandre Janniaux
dde449ee98
bin: Makefile.am: use abs_top_* variables directly
There's no need for an ad-hoc realpath call since autotools already
provides the absolute path for those variables.
3 years ago
Steve Lhomme
0767bc491c
winvlc: call SetProcessDEPPolicy directly
We build for Win7+, the function is always there.
And no need to define PROCESS_DEP_ENABLE. It's available in mingw-w64 since 4.0.
3 years ago
Steve Lhomme
603e9f1a61
vlc-cache-gen: get the absolute path of modules in a portable way
realpath doesn't exist on macOS.
3 years ago
Alexandre Janniaux
748f6e6a11
bin: meson.build: conditionnally build binaries
Neither vlc.c nor darwinvlc.m can be compiled against iOS SDK currently
so only build them on other platforms than iOS and tvOS.
3 years ago
Johannes Kauffmann
f81f7cc5e9
meson: disable binaries if vlc isn't build
Plugin cache gen still needs to be done here.
3 years ago
Steve Lhomme
f05aa36d9d
meson: fix the Windows type of the vlc executable
The entry point is WinMain(), not main().
3 years ago
Steve Lhomme
780cfad471
winvlc: clean function pointer definition
3 years ago
Steve Lhomme
b321e59e01
winvlc: remove useless _WIN32_IE value
It's restricting available code to Windows XP that we don't support.
The value should be the minimum OS we support. It's automatically
picked based on _WIN32_WINNT.
3 years ago
Marvin Scholz
d5f07af209
meson: add initial meson build system
Co-authored-by: Tanguy Dubroca <tanguy.dubroca@lse.epita.fr>
Co-authored-by: Hugo Beauzée-Luyssen <hugo@beauzee.fr>
Co-authored-by: Alexandre Janniaux <ajanni@videolabs.io>
7 years ago
Rémi Denis-Courmont
d2ef799a6f
override: use X_DISPLAY_MISSING
4 years ago
Marvin Scholz
ffaadb57c6
macosx: add rpath for Frameworks
The Frameworks folder was missing in the rpath, leading to Frameworks
like Sparkle requiring change of the install_name after it was built
instead of just using rpath properly.
4 years ago
KO Myung-Hun
e3f60a38d4
bin: fix linkage on OS/2
Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
5 years ago
Tristan Matthews
53b73bede0
rootwrap: make setsockopt 1 usage consistent
5 years ago
Rémi Denis-Courmont
c96462163e
xcb/global: use autorun to start
5 years ago
Rémi Denis-Courmont
0c2d3c673d
hotkeys: use autorun to start
5 years ago
Marvin Scholz
8aadaf3db1
macosx: move breakpad initialization and allow opt-out
Move the breakpad initialization right to the start of the program
and do not initialize breakpad if the VLC_DISABLE_BREAKPAD env variable
is set.
6 years ago
Alexandre Janniaux
81c60915f7
winvlc: silence unused warnings
If breakpad is not used, the crash_handling variable is not used too,
but as it's used otherwise this should be silenced.
6 years ago
Marvin Scholz
b39f2f1c52
macosx: check type of preference entry before using
6 years ago
Marvin Scholz
565e21f4d0
macosx: remove support for the language argument
6 years ago
David Fuhrmann
358a3be3b0
macOS packaging: Use DESTDIR install for packaging
This gets rid of a prefix inside our build dir, and uses DESTDIR
when installing the content. This way, the install directory
can be reused for further packaging introduced in the next commits.
7 years ago
Steve Lhomme
260ee399c5
winvlc: fix warnings
7 years ago
Steve Lhomme
cd61b872fc
winvlc: use WCHAR instead of TCHAR
We were already using FromWide on this variable. It cannot work if TCHAR is
not wide.
7 years ago
David Fuhrmann
5b8554d5ea
darwinvlc: Set rpath appliciable for POSIX installation
This enables us to just run the vlc executable from an installed
directory like on any other POSIX installation. All modules should
work, apart the macOS interface module which requires the bundle
structure.
7 years ago
David Fuhrmann
e7120799cc
src: darwin/dirs: Implement fallbacks for posix style installations
For posix-style installations, use the defined directories
for libraries and data.
With that, running vlc from the install dirs works fine in principle.
What is left to do currently is to adapt the RPATH to find the
libvlc libraries.
7 years ago
David Fuhrmann
965c4a0294
src: darwin/dirs: Package libraries and modules into Frameworks directory
This is the correct place for bundling shared libraries (even if
they are not in the Framework structure).
7 years ago
Steve Lhomme
5363279805
remove the $Id$ in the source code
7 years ago
Marvin Scholz
d75d12bee2
darwinvlc: Use FromCFString
8 years ago
Martin Storsjö
9edf62844f
bin: win32: Link vlc.exe and vlc-cache-gen.exe with -static
This prevents these executables from linking to a shared
libssp-0.dll if both a static and shared version is available
of this library.
Since these refer to the dynamically linked libvlc via libvlc.la,
it will still pick up the correct shared version of those, instead
of refusing to link to a dynamic library (as it does for any
library specified via -l<name>).
The same use of -Wc,-static is present in a few other Makefile.am
already.
8 years ago
Steve Lhomme
769f745315
bin:override: fix unsigned format modifier
8 years ago
Rémi Denis-Courmont
902dd36bbd
configure: remove LIBPTHREAD
POSIX threads are always enabled implicitly.
8 years ago
Rémi Denis-Courmont
d78eef5211
winvlc: use exit handler
8 years ago
Rémi Denis-Courmont
31f34113ae
cachegen: remove wrong/misleading error message
8 years ago
Rémi Denis-Courmont
1d233ef6be
lib: remove unused libvlc_playlist_play() parameters
8 years ago
David Fuhrmann
724747fab5
darwinvlc: Print out if no interface can be found
Analog to 20bd2ef03b .
8 years ago
KO Myung-Hun
68c70c11a3
os2: fix crash and memory leaks at exit
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago