-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from LostInKadath/buildscripts/automake-for-gi…
…thub-actions Buildscripts/automake for GitHub actions
- Loading branch information
Showing
5 changed files
with
56 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.sh -crlf | ||
*.ac -crlf | ||
*.am -crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Automake CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: check dependencies | ||
run: | | ||
if [[ "${{ matrix.os}}" == "macos-latest" ]]; then | ||
brew install automake autoconf libtool | ||
else | ||
sudo apt-get update | ||
sudo apt-get install autoconf libtool build-essential | ||
fi | ||
- name: autoreconf | ||
run: | | ||
autoupdate -f | ||
autoreconf -i -f | ||
- name: configure | ||
run: ./configure | ||
- name: make | ||
run: make | ||
- name: make check | ||
run: make check | ||
- name: make distcheck | ||
run: make distcheck | ||
- name: test | ||
run: | | ||
./h264_analyze samples/JM_cqm_cabac.264 > tmp1.out | ||
diff -u samples/JM_cqm_cabac.out tmp1.out | ||
./h264_analyze samples/x264_test.264 > tmp2.out | ||
diff -u samples/x264_test.out tmp2.out | ||
./h264_analyze samples/riverbed-II-360p-48961.264 > tmp3.out | ||
diff -u samples/riverbed-II-360p-48961.out tmp3.out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
AC_INIT(h264bitstream, 0.2.0, [email protected]) | ||
AC_INIT([h264bitstream],[0.2.0],[[email protected]]) | ||
|
||
AC_CONFIG_SRCDIR(./h264_stream.c) | ||
|
||
|
@@ -11,9 +11,9 @@ AC_CANONICAL_TARGET | |
EXTRA_CFLAGS='-std=c99 -Wno-error' | ||
|
||
if test ${target_os%%.*} = darwin9; then | ||
EXTRA_CFLAGS="-force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -arch ppc -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" | ||
CFLAGS+=${EXTRA_CFLAGS} | ||
am_cv_CC_dependencies_compiler_type=gcc | ||
EXTRA_CFLAGS="-force_cpusubtype_ALL -mmacosx-version-min=10.4 -arch i386 -arch ppc -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.4u.sdk" | ||
CFLAGS+=${EXTRA_CFLAGS} | ||
am_cv_CC_dependencies_compiler_type=gcc | ||
fi | ||
|
||
|
||
|
@@ -23,9 +23,10 @@ AM_INIT_AUTOMAKE([foreign]) | |
|
||
AC_PROG_CC | ||
AM_PROG_CC_C_O | ||
AC_PROG_LD | ||
AC_PROG_INSTALL | ||
AC_PROG_LIBTOOL | ||
|
||
LT_INIT | ||
LT_PATH_LD | ||
|
||
AC_CHECK_FUNCS(getopt_long, , AC_MSG_WARN(getopt_long not found. Long options will not work.) ) | ||
|
||
|