Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b802971d
Commit
b802971d
authored
Aug 30, 2017
by
Clément Bœsch
Committed by
Clément Bœsch
Sep 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: treat sdl2 like other autodetected libraries
parent
778fa635
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
configure
configure
+8
-6
No files found.
configure
View file @
b802971d
...
...
@@ -6027,20 +6027,22 @@ if enabled gcrypt; then
fi
fi
if
!
dis
abled sdl2
;
then
if
en
abled sdl2
;
then
SDL2_CONFIG
=
"
${
cross_prefix
}
sdl2-config"
if
check_pkg_config sdl2 SDL_events.h SDL_PollEvent
;
then
check_cpp_condition SDL.h
"(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x020001"
$sdl2_cflags
&&
check_cpp_condition SDL.h
"(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) < 0x020100"
$sdl2_cflags
&&
check_func SDL_Init
$sdl2_extralibs
$sdl2_cflags
&&
enable
sdl2
else
if
"
${
SDL2_CONFIG
}
"
--version
>
/dev/null 2>&1
;
then
check_func SDL_Init
$sdl2_extralibs
$sdl2_cflags
||
disable sdl2
el
if
"
${
SDL2_CONFIG
}
"
--version
>
/dev/null 2>&1
;
then
sdl2_cflags
=
$(
"
${
SDL2_CONFIG
}
"
--cflags
)
sdl2_extralibs
=
$(
"
${
SDL2_CONFIG
}
"
--libs
)
check_cpp_condition SDL.h
"(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) >= 0x020001"
$sdl2_cflags
&&
check_cpp_condition SDL.h
"(SDL_MAJOR_VERSION<<16 | SDL_MINOR_VERSION<<8 | SDL_PATCHLEVEL) < 0x020100"
$sdl2_cflags
&&
check_func SDL_Init
$sdl2_extralibs
$sdl2_cflags
&&
enable
sdl2
fi
check_func SDL_Init
$sdl2_extralibs
$sdl2_cflags
||
disable sdl2
else
disable sdl2
fi
if
test
$target_os
=
"mingw32"
;
then
sdl2_extralibs
=
"
$sdl2_extralibs
-mconsole"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment