| ... | @@ -2,7 +2,7 @@ The project is now ready to build VLC 3 and VLC 4. |
... | @@ -2,7 +2,7 @@ The project is now ready to build VLC 3 and VLC 4. |
|
|
|
|
|
|
|
### Build VLC 4 from Android studio
|
|
### Build VLC 4 from Android studio
|
|
|
|
|
|
|
|
To build vlc-android with VLC 4, gradle needs a property: `-PforceVlc4=true`.
|
|
To build vlc-android with VLC 4, gradle needs a property: `-PforceVlc4=true`.
|
|
|
|
|
|
|
|
It can be directly added to the gradle task command line or in Android Studio globally.
|
|
It can be directly added to the gradle task command line or in Android Studio globally.
|
|
|
|
|
|
| ... | @@ -25,12 +25,14 @@ For example: `./buildsystem/compile.sh -vlc4 run` |
... | @@ -25,12 +25,14 @@ For example: `./buildsystem/compile.sh -vlc4 run` |
|
|
You will also have to launch `gradle clean`.
|
|
You will also have to launch `gradle clean`.
|
|
|
|
|
|
|
|
Note that the NDK requirements are different on VLC 3 and VLC 4.
|
|
Note that the NDK requirements are different on VLC 3 and VLC 4.
|
|
|
|
|
|
|
- VLC 3: you'll need NDK 21
|
|
- VLC 3: you'll need NDK 21
|
|
|
- VLC 4: You'll need NDK 25
|
|
- VLC 4: You'll need NDK 25
|
|
|
|
|
|
|
|
You can download both here: https://developer.android.com/ndk/downloads
|
|
You can download both here: https://developer.android.com/ndk/downloads
|
|
|
|
|
|
|
|
You'll also have to set a different environment variable depending on the version you want to build:
|
|
You'll also have to set a different environment variable depending on the version you want to build:
|
|
|
|
|
|
|
- VLC 3: `export ANDROID_NDK=/path/to/android-ndk-r21`
|
|
- VLC 3: `export ANDROID_NDK=/path/to/android-ndk-r21`
|
|
|
- VLC 4: `export ANDROID_NDK=/path/to/android-ndk-r25`
|
|
- VLC 4: `export ANDROID_NDK=/path/to/android-ndk-r25`
|
|
|
|
|
|
| ... | @@ -53,10 +55,14 @@ This is done using this line in the `build.gradle` files of `:application:vlc-an |
... | @@ -53,10 +55,14 @@ This is done using this line in the `build.gradle` files of `:application:vlc-an |
|
|
java.srcDirs = rootProject.ext.vlcMajorVersion == 4 ? ['src', 'vlc4/src'] : ['src', 'vlc3/src']
|
|
java.srcDirs = rootProject.ext.vlcMajorVersion == 4 ? ['src', 'vlc4/src'] : ['src', 'vlc3/src']
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
The code in these directories is then applied at compile time depending on the VLC version we want to build.
|
|
The code in these directories is then applied at compile time depending on the VLC version we want to build.
|
|
|
|
|
|
|
|
Keep in mind that any change in one of these two directories has to be replicated in the other one and that the signatures have to be the same. If you fail to do that, it should trigger a pipeline fail in your Merge request.
|
|
Keep in mind that any change in one of these two directories has to be replicated in the other one and that the signatures have to be the same. If you fail to do that, it should trigger a pipeline fail in your Merge request.
|
|
|
|
|
|
|
|
### Nightlies
|
|
### Nightlies
|
|
|
|
|
|
|
|
For now, only vlc3 nightlies are generated. But everything is ready to do VLC 4 nightlies as well (only a new schedule is needed) |
|
For now, only vlc3 nightlies are generated. But everything is ready to do VLC 4 nightlies as well (only a new schedule is needed)
|
|
\ No newline at end of file |
|
|
|
|
|
### In-Depth presentation
|
|
|
|
|
|
|
|
[Migration_to_VLC_4.pdf](uploads/b0efefd0d8b1b4fbb6f7f402c02e1efc/Migration_to_VLC_4.pdf) |
|
|
|
\ No newline at end of file |