diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2016-06-03 21:29:40 +0900 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2016-06-03 21:29:40 +0900 |
commit | 18c18d139e7ba8251d6b6c3d62ef1407ff3fc4ad (patch) | |
tree | 4f6c5a75ccc92d382d01537f8f0e97352e0c5e8f | |
parent | c1b4b277053a8c45640a96158580ef0d8130db3d (diff) | |
download | libnsfb-18c18d139e7ba8251d6b6c3d62ef1407ff3fc4ad.tar.gz libnsfb-18c18d139e7ba8251d6b6c3d62ef1407ff3fc4ad.tar.bz2 |
Makefile: Add support for building surfaces for kolibrios
Fix CFLAGS for KolibriOS frontend in order to ignore warnings.
Enable RAM and Kolibri surfaces when building for Kolibri.
Do all of this without breaking support for existing frontends.
-rw-r--r-- | Makefile | 37 |
1 files changed, 26 insertions, 11 deletions
@@ -6,7 +6,7 @@ # Component settings COMPONENT := nsfb -COMPONENT_VERSION := 0.1.4 +COMPONENT_VERSION := 0.1.3 # Default to a static library COMPONENT_TYPE ?= lib-static @@ -26,6 +26,11 @@ WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \ ifneq ($(VARIANT),release) WARNFLAGS:= $(WARNFLAGS) -Werror endif + +ifeq ($(HOST),kolibrios) + WARNFLAGS := $(WARNFLAGS) -Wno-error +endif + # would like these flags but gcc earlier than 4.4 fail #-pedantic -Wno-overlength-strings # For nsglobe.c @@ -43,17 +48,27 @@ endif NSFB_XCB_PKG_NAMES := xcb xcb-icccm xcb-image xcb-keysyms xcb-atom # determine which surface handlers can be compiled based upon avalable library -$(eval $(call pkg_config_package_available,NSFB_VNC_AVAILABLE,libvncserver)) -$(eval $(call pkg_config_package_available,NSFB_SDL_AVAILABLE,sdl)) -$(eval $(call pkg_config_package_available,NSFB_XCB_AVAILABLE,$(NSFB_XCB_PKG_NAMES))) -$(eval $(call pkg_config_package_available,NSFB_WLD_AVAILABLE,wayland-client)) - -# surfaces not detectable via pkg-config -NSFB_ABLE_AVAILABLE := no -ifeq ($(findstring linux,$(HOST)),linux) - NSFB_LINUX_AVAILABLE := yes + +ifneq ($(HOST),kolibrios) + $(eval $(call pkg_config_package_available,NSFB_SDL_AVAILABLE,sdl)) + $(eval $(call pkg_config_package_available,NSFB_VNC_AVAILABLE,libvncserver)) + $(eval $(call pkg_config_package_available,NSFB_XCB_AVAILABLE,$(NSFB_XCB_PKG_NAMES))) + $(eval $(call pkg_config_package_available,NSFB_WLD_AVAILABLE,wayland-client)) + # surfaces not detectable via pkg-config + NSFB_ABLE_AVAILABLE := no + ifeq ($(findstring linux,$(HOST)),linux) + NSFB_LINUX_AVAILABLE := yes + else + NSFB_LINUX_AVAILABLE := no + endif else - NSFB_LINUX_AVAILABLE := no + NSFB_SDL_AVAILABLE := no + NSFB_ABLE_AVAILABLE := no + NSFB_RAM_AVAILABLE := yes + NSFB_KOLIBRI_AVAILABLE := yes + NSFB_VNC_AVAILABLE := no + NSFB_XCB_AVAILABLE := no + NSFB_WLD_AVAILABLE := no endif # Flags and setup for each support library |