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

dependency on glibc 2.27 removed only on Linux x86/x64 architecture #1

Open
wants to merge 167 commits into
base: glibc-compatibility
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
167 commits
Select commit Hold shift + click to select a range
a9343d6
Start 3.3.1
elmindreda Apr 16, 2019
7650535
Update Travis CI build
elmindreda May 17, 2019
6648b3d
Documentation work
elmindreda Apr 27, 2019
2e3b4cf
Fix use of absolute path in INSTALL_INTERFACE
podsvirov Apr 18, 2019
e826f83
Update changelog and add credit
elmindreda May 2, 2019
9cc83cf
X11: Fix CMake not checking for XInput2 headers
elmindreda May 7, 2019
37cc51b
X11: Only check for headers at build time
elmindreda May 17, 2019
bc8b567
Move to the modern CMake project version option
elmindreda May 8, 2019
b596c79
Use CMakeDependentOption for dependent options
elmindreda May 8, 2019
d715917
Add descriptive names for Travis CI jobs
elmindreda May 17, 2019
73a3ef8
Format Travis CI inline script for readability
elmindreda May 17, 2019
80935c6
Remove cmake from Travis CI package list
elmindreda May 17, 2019
645b8c3
Add stable release branch to CI
elmindreda May 17, 2019
b383e70
X11: Fix CMake check for XInput headers
elmindreda May 17, 2019
4d99045
Add credit
elmindreda May 17, 2019
9f5c6c6
Add Vulkan 1.1 support to glfwinfo
elmindreda May 19, 2019
3afb2cc
Documentation work
elmindreda May 19, 2019
d263489
Add missing word
elmindreda May 19, 2019
0452258
Add C dialect reminders to each source file
elmindreda May 20, 2019
9739322
WGL: Fix misplaced block comment
elmindreda May 20, 2019
051424f
WGL: Add extension function macro aliases
elmindreda May 20, 2019
e01128f
Clarify difference between time and timer in docs
elmindreda May 20, 2019
15f078c
Win32: Remove stale comment
elmindreda May 2, 2019
ad3e7c7
Win32: Fix non-client actions for disabled cursor
elmindreda May 2, 2019
b436d8e
Remove pointless comments
elmindreda May 20, 2019
1618694
Clarify Doxyfile INPUT value generation
elmindreda May 20, 2019
5416e34
Enable CMake policy CMP0077 where available
elmindreda May 23, 2019
b962ef1
Improve (?) reference documentation for callbacks
elmindreda May 23, 2019
f2208ab
Explicitly disable inclusion for test and examples
elmindreda May 24, 2019
7b18f79
Rename legacy Vulkan triangle program
elmindreda May 24, 2019
71a4f2d
Replace some tabs with spaces
Luflosi Jun 7, 2019
66e06b0
Convert some declarations to C99 style
elmindreda Jun 4, 2019
e276f67
X11: Clean up EWMH feature detection
elmindreda Jun 4, 2019
1e12653
X11: Let the language initialize XEvent structs
elmindreda Jun 4, 2019
8542f8d
Win32: Cleanup pointer test in win32_window.c
tombsar May 28, 2019
eb466a0
Cocoa: Cleanup
elmindreda Jun 6, 2019
898b7f9
Remove unused function in tearing test
elmindreda Jun 4, 2019
633ba53
Fix typo
Luflosi Jun 7, 2019
84fa724
X11: Fix focus events not being filtered
elmindreda Jul 10, 2019
b3eb6dd
X11: Query and keep track of Xkb group index
db47h May 29, 2019
ff2c000
Cleanup
elmindreda Jul 11, 2019
95e7ad7
Update changelog
elmindreda Jul 11, 2019
248e827
Win32: Fix symbol redefinition warnings
elmindreda Jul 12, 2019
75b415c
Cleanup
elmindreda Jul 12, 2019
452a648
Fix typo in glfwGetRequiredInstanceExtensions docs
zann1x Jun 14, 2019
ce7cd3e
Add credits
elmindreda Jul 12, 2019
9fc035a
Win32: Fix cursor enter/position event order
TheMrMilchmann May 27, 2019
8e923e5
Documentation work
elmindreda Jul 12, 2019
cfd9359
Cocoa: Fix file-local function not declared static
elmindreda Jul 16, 2019
1daf9de
Cocoa: Fix internal symbol hiding for dylib
elmindreda Jul 16, 2019
d25e19b
CMake: remove -DGLFW_DLL on non-Windows targets
Jul 8, 2019
b1309dd
Add credit
elmindreda Jul 16, 2019
adcd306
Fix conflict with DEBUG macro defined by Bazel
elmindreda Jul 22, 2019
1e8dc83
Fix Vulkan triangle test segfault on resize
elmindreda Jul 25, 2019
116f4c8
Put fix in correct position
elmindreda Jul 25, 2019
30e6735
Win32: Fix GLFW_MAXIMIZED not maximizing window
elmindreda Aug 13, 2019
2d3f388
Win32: Fix initial state of maximized state cache
elmindreda Aug 14, 2019
c0d1249
Fix license copyright year and formatting
elmindreda Aug 15, 2019
2032a8f
Clarify comment
elmindreda Aug 15, 2019
79f4ec6
Unify key name string handling
elmindreda Aug 22, 2019
71cfafe
Win32: Fix VS static analysis false positive
elmindreda Aug 22, 2019
b2919dc
Fix comparison of video modes of equal area
httpdigest Aug 31, 2019
934f0e9
Update changelog and add credit
elmindreda Sep 1, 2019
649553c
Remove deprecated tags from Doxyfile.in
elmindreda Sep 6, 2019
a1b65e8
Cocoa: Fix glfwSetWindowSize anchor point
elmindreda Aug 29, 2019
13a4e4e
Fix typos
luzpaz Aug 12, 2019
613b169
Use the correct type in a for loop
Luflosi Jul 25, 2019
e30718e
Win32: Disable dynamic libgcc for MinGW DLL
elmindreda Oct 3, 2019
087110a
Win32: Cleanup keyboard input flag parsing
elmindreda Sep 12, 2019
e4e9581
Add VS 2010 and MinGW to AppVeyor build matrix
elmindreda Oct 2, 2019
3facbd2
Use the correct type for a struct member
Luflosi Sep 30, 2019
4a62820
Clean up monitors tool output
elmindreda Oct 10, 2019
3f0390b
Enable C99 explicitly with CMake where available
gracicot Sep 5, 2019
17f1cce
Add credit
elmindreda Oct 10, 2019
8579514
Use HTTPS for Discourse forum
elmindreda Oct 13, 2019
8c69091
Use the correct type in a for loop
Luflosi Oct 6, 2019
afcefcb
Fix -Wextra-semi warnings
Kangz Sep 15, 2019
3a8d97c
Allow AppVeyor to skip pure documentation updates
elmindreda Oct 16, 2019
161e9e1
Update changelog
elmindreda Oct 16, 2019
411d4dd
Fix CMake 3.0 - 3.6 support regression
papr Oct 24, 2019
91c6a54
Cleanup
elmindreda Oct 24, 2019
f9a9bb6
Remove stray characters from hardcoded CFLAGS
elmindreda Oct 24, 2019
1bf892f
X11: Fix decoration enabling after window creation
elmindreda Sep 26, 2019
399c082
X11: Fix content scale fallback value on KDE
elmindreda Oct 28, 2019
3484aa8
Fix order of words in window guide
elmindreda Nov 1, 2019
c5a870e
Win32: Change transparent framebuffer key color
elmindreda Nov 5, 2019
5f7e5cb
Remove mappings for GUID used by different devices
elmindreda Nov 5, 2019
11db404
Add canonical build directory to .gitignore
thewoz Nov 5, 2019
82effcb
Make events test output only UTF-8 in C locale
elmindreda Sep 26, 2019
8c46a3e
Set C standard at 99 for all test targets
gracicot Nov 4, 2019
7a10e64
Set C standard at 99 for all example targets
gracicot Nov 9, 2019
5ea34d6
Cleanup
elmindreda Nov 10, 2019
25af315
Cocoa: Add comments for Cocoa symbol macros
elmindreda Nov 6, 2019
129a5cc
Cocoa: Process events after window destruction
elmindreda Nov 6, 2019
b3c2023
Cocoa: Fix multiple methods warning
elmindreda Nov 6, 2019
e662492
Cocoa: Cleanup
elmindreda Nov 7, 2019
52b7703
Cocoa: Fix full screen window iconification
elmindreda Nov 12, 2019
7c33fb2
X11: Assume 96 DPI if RandR monitor size is zero
elmindreda Nov 5, 2019
b4cc610
Add initial .mailmap file
elmindreda Nov 13, 2019
0ecc841
Add initial GH support file
elmindreda Nov 14, 2019
e3c83f6
Add initial CODEOWNERS file
elmindreda Nov 14, 2019
4116db1
Cleanup .gitignore file somewhat
elmindreda Nov 14, 2019
2bac7ee
Update .gitignore file
elmindreda Nov 14, 2019
3a2c0aa
Wayland: Don’t reload the cursor on every pointer motion
linkmauve Nov 15, 2019
50218fb
Wayland: Don’t update cursor position in the frame
linkmauve Nov 21, 2019
df4bda4
Wayland: Fix pointing hand cursor shape
elmindreda May 17, 2019
9db0bd4
Wayland: Unset the cursor name on border exit
linkmauve Nov 28, 2019
58c1621
Add Xcode section to .gitignore file
elmindreda Nov 14, 2019
17d727c
Cocoa: Update outdated comment
elmindreda Nov 27, 2019
2da4adc
Cocoa: Fix pre-window-creation event processing
elmindreda Nov 27, 2019
e135210
NSGL: Fix disabling of Retina resolution
elmindreda Dec 9, 2019
b05d887
Fix .gitignore entries for VS with CMake
elmindreda Dec 5, 2019
5a1512a
Rename CMake variable for GUI-only programs
elmindreda Nov 25, 2019
8c1b59f
Remove dependency on platform header paths
elmindreda Nov 25, 2019
f650a89
Trust CMake to do the right thing for static libs
elmindreda Nov 26, 2019
bcd232e
Remove tab character
elmindreda Nov 26, 2019
82bd22e
Fix source list for -Wdeclaration-after-statement
elmindreda Nov 27, 2019
db2ff13
Fix source list for Objective-C fix
elmindreda Dec 3, 2019
f318ab7
Remove unneccessary example target property
elmindreda Nov 20, 2019
cd70e1b
Merge GCC/Clang specific CMake blocks
elmindreda Dec 7, 2019
03f2cde
Replace CMake generator expression with variable
elmindreda Dec 7, 2019
b5bccd1
Make target-specific define target-specific
elmindreda Dec 9, 2019
f25202f
Remove non-GUI binaries from GUI-only setup
elmindreda Dec 9, 2019
bf9c5fc
Gather all macOS specific CMake properties
elmindreda Dec 9, 2019
d864887
Remove reference to non-existent CMake variable
elmindreda Dec 9, 2019
365321a
Add dependency name hints to CMake error messages
elmindreda Dec 10, 2019
39c5e90
Fix typo
Luflosi Aug 28, 2019
2b1e2d2
Fix typo
elmindreda Dec 10, 2019
8c3d2f7
Cocoa: Fix duplicate conversion of title string
elmindreda Dec 10, 2019
9724f33
Formatting
elmindreda Dec 11, 2019
e8dab39
Fix use of CMake 3.13 command target_link_options
elmindreda Dec 15, 2019
dd00c6d
Win32: Enable Unicode mode for all compilers
elmindreda Dec 15, 2019
640e320
Win32: Add missing include for wcscmp
elmindreda Dec 15, 2019
8dd40f1
X11: Fix maximization of hidden windows
elmindreda Dec 16, 2019
5615c16
X11: Fix missing checks for EWMH attention atoms
elmindreda Dec 16, 2019
85a27e9
X11: Fix invalid read when clearing GLFW_FLOATING
elmindreda Dec 17, 2019
94bb2a1
X11: Fix updating GLFW_FLOATING on a hidden window
elmindreda Dec 16, 2019
4df0a2b
X11: Cleanup
elmindreda Dec 16, 2019
c3b8afc
X11: Cleanup
elmindreda Dec 17, 2019
7c9d008
Cocoa: Only create per-monitor display link once
elmindreda Dec 19, 2019
ccb54c3
NSGL: Remove problematic swap interval workaround
elmindreda Nov 7, 2019
bb8ed62
NSGL: Simulate vsync for occluded windows
elmindreda Nov 10, 2019
9fc5fd1
Cocoa: Replace display link with IOKit query
elmindreda Dec 25, 2019
cb49e18
Use the correct type in a for loop
Luflosi Oct 6, 2019
7f77530
X11: Cleanup
elmindreda Dec 22, 2019
e8d4cc3
X11: Fix IC event mask not being added to our window
elmindreda Dec 22, 2019
8218739
Set macOS deployment target in Travis CI build
elmindreda Dec 25, 2019
359f0e1
Update changelog and add credit
elmindreda Jan 1, 2020
ecda86f
X11: Fix no window position events during resize
elmindreda Jan 1, 2020
0938462
Start 3.3.2
elmindreda Jan 5, 2020
487e041
X11: Fix BadMatch focusing a window on non-EWMH WM
elmindreda Jan 5, 2020
fbe8ae9
X11: Fix parent window handle initialization
elmindreda Jan 12, 2020
977e2b5
Update changelog
elmindreda Jan 12, 2020
50f3979
Cocoa: Add support for VK_EXT_metal_surface
ByunghoonKim Jan 5, 2020
d330844
Cocoa: Select Vulkan surface extension at runtime
elmindreda Jan 16, 2020
8517270
Cocoa: Add fully dynamic loading of Vulkan loader
elmindreda Jan 16, 2020
8552152
Win32: Fix no Super key release event after Win+V
elmindreda Jan 15, 2020
0af3bf3
Win32: Use non-async key state for modifier hack
elmindreda Jan 15, 2020
ec28696
Check scancode before use in glfwGetKeyName
elmindreda Jan 15, 2020
e535380
Win32: Fix scancode when key message only had VK
elmindreda Jan 15, 2020
6a9fd2e
Win32: Add matching comment
elmindreda Jan 15, 2020
835dc3d
X11: Fix queries crashing if monitor disconnected
kovidgoyal Aug 21, 2018
ad12b97
Update changelog and add credit
elmindreda Jan 16, 2020
b1d4b6a
Remove AppVeyor skip commits setting
elmindreda Jan 16, 2020
0a49ef0
Update OpenGL bits of build documentation slightly
elmindreda Jan 19, 2020
8bc966b
remove dependency on glibc 2.27
yuanming-hu May 9, 2020
eba790a
dependency on glibc 2.27 removed only on Linux x86/x64 architecture (…
jobesu14 Jun 26, 2020
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
53 changes: 45 additions & 8 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,57 @@
image:
- Visual Studio 2015
- Visual Studio 2019
branches:
only:
- ci
- master
- 3.3-stable
skip_tags: true
environment:
CFLAGS: /WX
matrix:
- BUILD_SHARED_LIBS: ON
- BUILD_SHARED_LIBS: OFF
- GENERATOR: MinGW Makefiles
BUILD_SHARED_LIBS: ON
CFLAGS: -Werror
- GENERATOR: MinGW Makefiles
BUILD_SHARED_LIBS: OFF
CFLAGS: -Werror
- GENERATOR: Visual Studio 10 2010
BUILD_SHARED_LIBS: ON
CFLAGS: /WX
- GENERATOR: Visual Studio 10 2010
BUILD_SHARED_LIBS: OFF
CFLAGS: /WX
- GENERATOR: Visual Studio 16 2019
BUILD_SHARED_LIBS: ON
CFLAGS: /WX
- GENERATOR: Visual Studio 16 2019
BUILD_SHARED_LIBS: OFF
CFLAGS: /WX
matrix:
fast_finish: true
build_script:
- mkdir build
- cd build
- cmake -DCMAKE_VERBOSE_MAKEFILE=ON -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% ..
- cmake --build .
exclude:
- image: Visual Studio 2015
GENERATOR: Visual Studio 16 2019
- image: Visual Studio 2019
GENERATOR: Visual Studio 10 2010
- image: Visual Studio 2019
GENERATOR: MinGW Makefiles
for:
-
matrix:
except:
- GENERATOR: Visual Studio 10 2010
build_script:
- set PATH=%PATH:C:\Program Files\Git\usr\bin=C:\MinGW\bin%
- cmake -S . -B build -G "%GENERATOR%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS%
- cmake --build build
-
matrix:
only:
- GENERATOR: Visual Studio 10 2010
build_script:
- cmake -S . -B build -G "%GENERATOR%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS%
- cmake --build build --target glfw
notifications:
- provider: Email
to:
Expand Down
33 changes: 26 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,26 +1,45 @@
# External junk
.DS_Store
# The canonical out-of-tree build subdirectory
build

# Visual Studio clutter
_ReSharper*
*.opensdf
*.sdf
*.suo
*.dir
*.vcxproj*
*.sln
.vs/
.vs
CMakeSettings.json
Win32
x64
Debug
Release
MinSizeRel
RelWithDebInfo
*.xcodeproj
*.opensdf

# Xcode clutter
GLFW.build
GLFW.xcodeproj

# CMake files
# macOS clutter
.DS_Store

# Makefile generator clutter
Makefile

# Ninja generator clutter
build.ninja
rules.ninja
.ninja_deps
.ninja_log

# CMake clutter
CMakeCache.txt
CMakeFiles
CMakeScripts
CMakeDoxyfile.in
CMakeDoxygenDefaults.cmake
cmake_install.cmake
cmake_uninstall.cmake

Expand Down Expand Up @@ -80,6 +99,6 @@ tests/tearing
tests/threads
tests/timeout
tests/title
tests/vulkan
tests/triangle-vulkan
tests/windows

10 changes: 10 additions & 0 deletions .mailmap
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Camilla Löwy <elmindreda@glfw.org> <elmindreda@users.sourceforge.net>
Camilla Löwy <elmindreda@glfw.org> <elmindreda@elmindreda.org>
Camilla Löwy <elmindreda@glfw.org>

Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>

Marcus Geelnard <m@bitsnbites.eu> <marcus256@users.sourceforge.net>
Marcus Geelnard <m@bitsnbites.eu> <marcus@geelnards-pc.(none)>
Marcus Geelnard <m@bitsnbites.eu>

56 changes: 42 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,47 @@ branches:
only:
- ci
- master
sudo: false
dist: trusty
addons:
apt:
packages:
- cmake
- libxrandr-dev
- libxinerama-dev
- libxcursor-dev
- libxi-dev
- 3.3-stable
matrix:
include:
- os: linux
dist: xenial
sudo: false
name: "X11 shared library"
addons:
apt:
packages:
- libxrandr-dev
- libxinerama-dev
- libxcursor-dev
- libxi-dev
env:
- BUILD_SHARED_LIBS=ON
- CFLAGS=-Werror
- os: linux
dist: xenial
sudo: false
name: "X11 static library"
addons:
apt:
packages:
- libxrandr-dev
- libxinerama-dev
- libxcursor-dev
- libxi-dev
env:
- BUILD_SHARED_LIBS=OFF
- CFLAGS=-Werror
- os: linux
dist: xenial
sudo: required
name: "Wayland shared library"
addons:
apt:
sources:
- ppa:kubuntu-ppa/backports
packages:
- extra-cmake-modules
- libwayland-dev
- libxkbcommon-dev
- libegl1-mesa-dev
Expand All @@ -37,10 +53,15 @@ matrix:
- BUILD_SHARED_LIBS=ON
- CFLAGS=-Werror
- os: linux
dist: xenial
sudo: required
name: "Wayland static library"
addons:
apt:
sources:
- ppa:kubuntu-ppa/backports
packages:
- extra-cmake-modules
- libwayland-dev
- libxkbcommon-dev
- libegl1-mesa-dev
Expand All @@ -49,20 +70,27 @@ matrix:
- BUILD_SHARED_LIBS=OFF
- CFLAGS=-Werror
- os: osx
sudo: false
name: "Cocoa shared library"
env:
- BUILD_SHARED_LIBS=ON
- CFLAGS=-Werror
- MACOSX_DEPLOYMENT_TARGET=10.8
- os: osx
sudo: false
name: "Cocoa static library"
env:
- BUILD_SHARED_LIBS=OFF
- CFLAGS=-Werror
- MACOSX_DEPLOYMENT_TARGET=10.8
script:
- if grep -Inr '\s$' src include docs tests examples CMake *.md .gitattributes .gitignore; then echo Trailing whitespace found, aborting.; exit 1; fi
- if grep -Inr '\s$' src include docs tests examples CMake *.md .gitattributes .gitignore; then
echo Trailing whitespace found, aborting;
exit 1;
fi
- mkdir build
- cd build
- if test -n "${USE_WAYLAND}";
then wget https://mirrors.kernel.org/ubuntu/pool/universe/e/extra-cmake-modules/extra-cmake-modules_5.38.0a-0ubuntu1_amd64.deb;
sudo dpkg -i extra-cmake-modules_5.38.0a-0ubuntu1_amd64.deb;
- if test -n "${USE_WAYLAND}"; then
git clone git://anongit.freedesktop.org/wayland/wayland-protocols;
pushd wayland-protocols;
git checkout 1.15 && ./autogen.sh --prefix=/usr && make && sudo make install;
Expand Down
68 changes: 32 additions & 36 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
cmake_minimum_required(VERSION 3.0)

project(GLFW C)
project(GLFW VERSION 3.3.2 LANGUAGES C)

set(CMAKE_LEGACY_CYGWIN_WIN32 OFF)

if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()

set(GLFW_VERSION_MAJOR "3")
set(GLFW_VERSION_MINOR "3")
set(GLFW_VERSION_PATCH "0")
set(GLFW_VERSION_EXTRA "")
set(GLFW_VERSION "${GLFW_VERSION_MAJOR}.${GLFW_VERSION_MINOR}")
set(GLFW_VERSION_FULL "${GLFW_VERSION}.${GLFW_VERSION_PATCH}${GLFW_VERSION_EXTRA}")
if (POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()

set_property(GLOBAL PROPERTY USE_FOLDERS ON)

Expand All @@ -25,22 +22,16 @@ option(GLFW_INSTALL "Generate installation target" ON)
option(GLFW_VULKAN_STATIC "Assume the Vulkan loader is linked with the application" OFF)

include(GNUInstallDirs)
include(CMakeDependentOption)

if (UNIX)
option(GLFW_USE_OSMESA "Use OSMesa for offscreen context creation" OFF)
endif()

if (WIN32)
option(GLFW_USE_HYBRID_HPG "Force use of high-performance GPU on hybrid systems" OFF)
endif()

if (UNIX AND NOT APPLE)
option(GLFW_USE_WAYLAND "Use Wayland for window creation" OFF)
endif()

if (MSVC)
option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON)
endif()
cmake_dependent_option(GLFW_USE_OSMESA "Use OSMesa for offscreen context creation" OFF
"UNIX" OFF)
cmake_dependent_option(GLFW_USE_HYBRID_HPG "Force use of high-performance GPU on hybrid systems" OFF
"WIN32" OFF)
cmake_dependent_option(GLFW_USE_WAYLAND "Use Wayland for window creation" OFF
"UNIX;NOT APPLE" OFF)
cmake_dependent_option(USE_MSVC_RUNTIME_LIBRARY_DLL "Use MSVC runtime library DLL" ON
"MSVC" OFF)

if (BUILD_SHARED_LIBS)
set(_GLFW_BUILD_DLL 1)
Expand Down Expand Up @@ -80,7 +71,7 @@ if (MSVC)
include(CheckIncludeFile)
check_include_file(dinput.h DINPUT_H_FOUND)
if (NOT DINPUT_H_FOUND)
message(FATAL_ERROR "DirectX 9 SDK not found")
message(FATAL_ERROR "DirectX 9 headers not found; install DirectX 9 SDK")
endif()
# Workaround for VS 2008 not shipping with stdint.h
list(APPEND glfw_INCLUDE_DIRS "${GLFW_SOURCE_DIR}/deps/vs2008")
Expand Down Expand Up @@ -211,29 +202,35 @@ if (_GLFW_X11)
list(APPEND glfw_LIBRARIES "${X11_X11_LIB}" "${CMAKE_THREAD_LIBS_INIT}")

# Check for XRandR (modern resolution switching and gamma control)
if (NOT X11_Xrandr_FOUND)
message(FATAL_ERROR "The RandR headers were not found")
if (NOT X11_Xrandr_INCLUDE_PATH)
message(FATAL_ERROR "RandR headers not found; install libxrandr development package")
endif()

# Check for Xinerama (legacy multi-monitor support)
if (NOT X11_Xinerama_FOUND)
message(FATAL_ERROR "The Xinerama headers were not found")
if (NOT X11_Xinerama_INCLUDE_PATH)
message(FATAL_ERROR "Xinerama headers not found; install libxinerama development package")
endif()

# Check for Xkb (X keyboard extension)
if (NOT X11_Xkb_FOUND)
message(FATAL_ERROR "The X keyboard extension headers were not found")
if (NOT X11_Xkb_INCLUDE_PATH)
message(FATAL_ERROR "XKB headers not found; install X11 development package")
endif()

# Check for Xcursor (cursor creation from RGBA images)
if (NOT X11_Xcursor_FOUND)
message(FATAL_ERROR "The Xcursor headers were not found")
if (NOT X11_Xcursor_INCLUDE_PATH)
message(FATAL_ERROR "Xcursor headers not found; install libxcursor development package")
endif()

# Check for XInput (modern HID input)
if (NOT X11_Xi_INCLUDE_PATH)
message(FATAL_ERROR "XInput headers not found; install libxi development package")
endif()

list(APPEND glfw_INCLUDE_DIRS "${X11_Xrandr_INCLUDE_PATH}"
"${X11_Xinerama_INCLUDE_PATH}"
"${X11_Xkb_INCLUDE_PATH}"
"${X11_Xcursor_INCLUDE_PATH}")
"${X11_Xcursor_INCLUDE_PATH}"
"${X11_Xi_INCLUDE_PATH}")
endif()

#--------------------------------------------------------------------
Expand Down Expand Up @@ -285,11 +282,10 @@ if (_GLFW_COCOA)
list(APPEND glfw_LIBRARIES
"-framework Cocoa"
"-framework IOKit"
"-framework CoreFoundation"
"-framework CoreVideo")
"-framework CoreFoundation")

set(glfw_PKG_DEPS "")
set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation -framework CoreVideo")
set(glfw_PKG_LIBS "-framework Cocoa -framework IOKit -framework CoreFoundation")
endif()

#--------------------------------------------------------------------
Expand Down Expand Up @@ -322,7 +318,7 @@ configure_package_config_file(src/glfw3Config.cmake.in
NO_CHECK_REQUIRED_COMPONENTS_MACRO)

write_basic_package_version_file(src/glfw3ConfigVersion.cmake
VERSION ${GLFW_VERSION_FULL}
VERSION ${GLFW_VERSION}
COMPATIBILITY SameMajorVersion)

configure_file(src/glfw_config.h.in src/glfw_config.h @ONLY)
Expand Down
3 changes: 2 additions & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Copyright (c) 2002-2006 Marcus Geelnard
Copyright (c) 2006-2016 Camilla Löwy <elmindreda@glfw.org>

Copyright (c) 2006-2019 Camilla Löwy

This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
Expand Down
Loading