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

Expat 2.3.0 #739

Merged
merged 10 commits into from
Mar 31, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add expat-2.3.0
  • Loading branch information
artemp committed Mar 30, 2021
commit e0f2b7d88a1ed272422b9d9c54d1e8809514e62d
19 changes: 19 additions & 0 deletions scripts/expat/2.3.0/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
language: generic

matrix:
include:
- os: osx
osx_image: xcode12.0
compiler: clang
- os: linux
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++-6-dev

script:
- ./mason build ${MASON_NAME} ${MASON_VERSION}
- ./mason publish ${MASON_NAME} ${MASON_VERSION}
50 changes: 50 additions & 0 deletions scripts/expat/2.3.0/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/usr/bin/env bash

MASON_NAME=expat
MASON_VERSION=2.3.0
MASON_VERSION2="R_${MASON_VERSION//./_}"
MASON_LIB_FILE=lib/libexpat.a
MASON_PKGCONFIG_FILE=lib/pkgconfig/expat.pc

. ${MASON_DIR}/mason.sh

function mason_load_source {
mason_download \
https://github.com/libexpat/libexpat/archive/${MASON_VERSION2}.tar.gz \
b1a5faaad5f4801d550df43baeba127ddc6233d4

mason_extract_tar_gz

export MASON_BUILD_PATH=${MASON_ROOT}/.build/libexpat-${MASON_VERSION2}
}

function mason_compile {
cd expat
./buildconf.sh
# Add optimization flags since CFLAGS overrides the default (-g -O2)
export CFLAGS="${CFLAGS} -O3 -DNDEBUG"
./configure \
--prefix=${MASON_PREFIX} \
${MASON_HOST_ARG} \
--without-xmlwf \
--enable-static \
--disable-shared \
--disable-dependency-tracking

make install -j${MASON_CONCURRENCY}
}

function mason_cflags {
echo -I${MASON_PREFIX}/include
}

function mason_ldflags {
echo -L${MASON_PREFIX}/lib -lexpat
}


function mason_clean {
make clean
}

mason_run "$@"