forked from intel/IA-Hardware-Composer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
96 lines (79 loc) · 2.68 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
include Makefile.sources
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
AM_MAKEFLAGS = -s
SUBDIRS = \
common \
wsi \
. \
tests/third_party/json-c \
tests
MAINTAINERCLEANFILES = ChangeLog INSTALL
AM_CPP_INCLUDES = -I$(top_srcdir) -Ipublic -Ios -Ios/linux -Icommon/display/ -Icommon/core/ -Icommon/utils/ -Icommon/compositor/ -Iwsi -Iwsi/drm/
AM_CPPFLAGS = -std=c++11 -fPIC -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE -DHANDLE_OWNED_BY_BUFFER_MANAGER
AM_CPPFLAGS += $(AM_CPP_INCLUDES) $(CWARNFLAGS) $(DRM_CFLAGS) $(DEBUG_CFLAGS) -Wformat -Wformat-security
libhwcomposer_la_LIBADD = \
$(DRM_LIBS) \
$(GBM_LIBS) \
$(EGL_LIBS) \
$(top_builddir)/common/libhwcomposer_common.la \
$(top_builddir)/wsi/libhwcomposer_wsi.la \
-lm
libhwcomposer_la_LTLIBRARIES = libhwcomposer.la
libhwcomposer_la_SOURCES = $(hwc_SOURCES)
libhwcomposer_ladir = $(libdir)
libhwcomposer_la_LDFLAGS = -version-number 0:0:1 -no-undefined -shared
libhwcomposer_la_LDFLAGS += -Wl,--no-as-needed,-lva,-lva-drm,--as-needed
if ENABLE_DUMMY_COMPOSITOR
AM_CPPFLAGS += -DUSE_DC
else
if ENABLE_VULKAN
AM_CPP_INCLUDES += -Icommon/compositor/vk
AM_CPPFLAGS += -Icommon/compositor/vk -DUSE_VK -DDISABLE_EXPLICIT_SYNC
libhwcomposer_la_LDFLAGS += -Wl,--no-as-needed,-lvulkan,--as-needed
else
AM_CPP_INCLUDES += -Icommon/compositor/gl
AM_CPPFLAGS += -DUSE_GL
libhwcomposer_la_LIBADD += $(GLES2_LIBS)
endif
endif
if ENABLE_LINUX_FRONTEND
libhwcomposer_la_SOURCES += \
os/linux/iahwc.h \
os/linux/linux_frontend.h \
os/linux/linux_frontend.cpp
else
AM_CPPFLAGS += -DENABLE_RBC -DENABLE_DOUBLE_BUFFERING
endif
libiahwcincdir = $(includedir)/libiahwc
libiahwcinc_HEADERS = \
$(top_srcdir)/public/gpudevice.h \
$(top_srcdir)/public/hwcmeta.h \
$(top_srcdir)/public/hwcdefs.h \
$(top_srcdir)/public/hwclayer.h \
$(top_srcdir)/public/hwcrect.h \
$(top_srcdir)/public/nativebufferhandler.h \
$(top_srcdir)/public/nativedisplay.h \
$(top_srcdir)/public/spinlock.h \
$(top_srcdir)/os/linux/iahwc.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = iahwc.pc
.PHONY: ChangeLog INSTALL
INSTALL:
$(INSTALL_CMD)
ChangeLog:
$(CHANGELOG_CMD)
dist-hook: ChangeLog INSTALL