Skip to content

Commit

Permalink
linux: build SDL2 from sources
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed May 24, 2020
1 parent f3bff62 commit f21c12c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis/linux/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
#!/bin/bash -ex
# Run by run-container.sh, builds Avocado in Docker container and runs tests

function buildSDL2 {
pushd externals/SDL2

./configure
make -j4
make install

popd
}

cd /home/build

export OS=linux64
Expand All @@ -14,6 +24,8 @@ export CXX="ccache c++ -fcolor-diagnostics"
# Configure cache
ccache --set-config=sloppiness=pch_defines,time_macros

buildSDL2

# Generate Makefile
premake5 gmake

Expand Down
1 change: 1 addition & 0 deletions src/platform/windows/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "system.h"
#include "system_tools.h"
#include "utils/file.h"
#include "version.h"

#ifdef _WIN32
#include <direct.h>
Expand Down

0 comments on commit f21c12c

Please sign in to comment.