Skip to content

Commit

Permalink
Update build scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjs committed Jun 17, 2021
1 parent 3cc37b2 commit 899447d
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 33 deletions.
33 changes: 33 additions & 0 deletions make-win-msvc-2019.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
@echo off
SETLOCAL

SET BUILD_DIR=build-win-msvc-2019

IF NOT EXIST %BUILD_DIR% MKDIR %BUILD_DIR%

CALL :NORMALIZEPATH "./%BUILD_DIR%"
SET BUILD_PATH=%RETVAL%

CALL :NORMALIZEPATH "./%BUILD_DIR%/out"
SET INSTALL_PATH=%RETVAL%

CALL :NORMALIZEPATH "./data"
SET DATA_DIR=%RETVAL%

CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64

meson --prefix=%INSTALL_PATH% --default-library=static -Ddebug=false -Doptimization=s --wrap-mode=nodownload -Dintrospection=disabled -Dglib:default_library=shared -Dglib:tests=false -Dgst-plugins-good:cairo=disabled -Dgst-plugins-base:gl=disabled -Dgst-plugins-bad:gl=disabled -Dgst-plugins-good:soup=disabled -Dgst-plugins-good:tests=disabled -Dgst-plugins-good:dv=disabled -Dgst-plugins-bad:openh264=disabled -Dgst-plugins-bad:openjpeg=disabled -Dgst-plugins-bad:tests=disabled -Dgst-plugins-base:pango=disabled -DFFmpeg:libfreetype=disabled -Dcairo:freetype=disabled -Dlibsoup:tests=false -Dugly=disabled -Dpython=disabled -Ddevtools=disabled -Dgst-examples=disabled -Dtls=disabled -Dqt5=disabled -Dtests=disabled -Dexamples=disabled -Dc_args="-DG_INTL_STATIC_COMPILATION -DFFI_STATIC_BUILD -DORC_STATIC_COMPILATION -DPSL_STATIC -DLIBXML_STATIC -DOPJ_STATIC -DPCRE_STATIC" -Dcpp_args="-DG_INTL_STATIC_COMPILATION -DFFI_STATIC_BUILD -DORC_STATIC_COMPILATION -DPSL_STATIC -DLIBXML_STATIC -DOPJ_STATIC -DPCRE_STATIC" %BUILD_DIR%
cd %BUILD_DIR%
ninja

:: == Have to do this to avoid install error. ==
XCOPY /Q /Y "%DATA_DIR%\intl.lib" "%BUILD_PATH%\subprojects\proxy-libintl\"

ninja install

:: ========== FUNCTIONS ==========
EXIT /B

:NORMALIZEPATH
SET RETVAL=%~f1
EXIT /B
33 changes: 0 additions & 33 deletions make.bat

This file was deleted.

18 changes: 18 additions & 0 deletions make.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

BUILD_DIR=build
INSTALL_DIR=build/out
CUR_DIR=$(pwd)

export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

mkdir -p $INSTALL_DIR
INSTALL_PATH=$(cd $INSTALL_DIR; pwd)
cd $CUR_DIR

meson --prefix=$INSTALL_PATH --default-library=static -Ddebug=false -Doptimization=s -Dintrospection=disabled -Dglib:default_library=shared -Dglib:tests=false -Dgst-plugins-good:cairo=disabled -Dgst-plugins-good:soup=disabled -Dgst-plugins-good:tests=disabled -Dgst-plugins-good:dv=disabled -Dgst-plugins-bad:openh264=disabled -Dgst-plugins-bad:openjpeg=disabled -Dgst-plugins-bad:tests=disabled -Dgst-plugins-base:pango=disabled -DFFmpeg:libfreetype=disabled -Dcairo:freetype=disabled -Dlibsoup:tests=false -Dugly=disabled -Dpython=disabled -Ddevtools=disabled -Dgst-examples=disabled -Dtls=disabled -Dqt5=disabled -Dtests=disabled -Dexamples=disabled -Dc_args="-DG_INTL_STATIC_COMPILATION -DFFI_STATIC_BUILD -DORC_STATIC_COMPILATION -DPSL_STATIC -DLIBXML_STATIC -DOPJ_STATIC -DPCRE_STATIC" -Dcpp_args="-DG_INTL_STATIC_COMPILATION -DFFI_STATIC_BUILD -DORC_STATIC_COMPILATION -DPSL_STATIC -DLIBXML_STATIC -DOPJ_STATIC -DPCRE_STATIC" -Dgst-full-version-script="" $BUILD_DIR
cd $BUILD_DIR
ninja
ninja install
cd $CUR_DIR

0 comments on commit 899447d

Please sign in to comment.