Initial commit
This commit is contained in:
44
BuildConfig/DetectWinSys.rules
Normal file
44
BuildConfig/DetectWinSys.rules
Normal file
@@ -0,0 +1,44 @@
|
||||
# BuildConfig/DetectWinSys.rules
|
||||
# Author: Patrick Baggett <ptbaggett@762studios.com>
|
||||
# Created: 1/18/2013
|
||||
#
|
||||
# Purpose:
|
||||
#
|
||||
# Windowing system detection
|
||||
#
|
||||
# License:
|
||||
#
|
||||
# This program is free software. It comes without any warranty, to
|
||||
# the extent permitted by applicable law. You can redistribute it
|
||||
# and/or modify it under the terms of the Do What The Fuck You Want
|
||||
# To Public License, Version 2, as published by Sam Hocevar. See
|
||||
# http://sam.zoy.org/wtfpl/COPYING for more details.
|
||||
|
||||
# This detects a default windowing system (WINSYS) based upon OS. The
|
||||
# user may override it by setting $WINSYS ahead of time, in which case
|
||||
# these rules act as a no-op
|
||||
|
||||
ifeq ($(WINSYS),)
|
||||
|
||||
#Windows uses...Win32 APIs
|
||||
ifeq ($(OS),Windows)
|
||||
WINSYS := Win32
|
||||
endif
|
||||
|
||||
#MacOS X uses...MacOS X APIs
|
||||
ifeq ($(OS),Darwin)
|
||||
WINSYS := MacOSX
|
||||
endif
|
||||
|
||||
#Android uses...Android APIs
|
||||
ifeq ($(OS),Android)
|
||||
WINSYS := Android
|
||||
endif
|
||||
|
||||
#No specific rules, so default to Xlib
|
||||
ifeq ($(WINSYS),)
|
||||
WINSYS := Xlib
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user