-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.am
80 lines (66 loc) · 2.3 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
#
# 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 = \
. \
tests/third_party/json-c \
tests
MAINTAINERCLEANFILES = ChangeLog INSTALL
AM_CPP_INCLUDES = -I$(top_srcdir) -Ipublic -Icommon -Icommon/core -Icommon/utils -Icommon/utils/log -Icommon/compositor -Icommon/display -Ios/linux -Icommon/compositor/gl -Itests/common -Idrm
AM_CPP_INCLUDES += -Icommon/buffer -Icommon/filter -Icommon/composer
AM_CPPFLAGS = -std=c++11 -fPIC -O2 -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fPIE
AM_CPPFLAGS += $(AM_CPP_INCLUDES) $(CWARNFLAGS) $(DRM_CFLAGS) $(DEBUG_CFLAGS) -Wformat -Wformat-security
if !ENABLE_GBM
AM_CPPFLAGS += -DUSE_MINIGBM
endif
libhwcomposer_la_LIBADD = \
$(DRM_LIBS) \
$(GBM_LIBS) \
$(EGL_LIBS) \
$(GLES2_LIBS) \
-lrt \
-lm
libhwcomposer_la_LTLIBRARIES = libhwcomposer.la
libhwcomposer_la_SOURCES = $(common_SOURCES)
if ENABLE_VULKAN
libhwcomposer_la_SOURCES += $(vk_SOURCES)
AM_CPPFLAGS += -Icommon/compositor/vk -DUSE_VK -DDISABLE_EXPLICIT_SYNC
libhwcomposer_la_LIBADD += -lvulkan
else
libhwcomposer_la_SOURCES += $(gl_SOURCES)
AM_CPPFLAGS += -DUSE_GL
endif
libhwcomposer_ladir = $(libdir)
libhwcomposer_la_LDFLAGS = -version-number 0:0:1 -no-undefined -shared
libhwcincdir = $(includedir)/libhwc
libhwcinc_HEADERS = \
$(top_srcdir)/public/gpudevice.h \
$(top_srcdir)/public/hwcbuffer.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/nativefence.h \
$(top_srcdir)/public/scopedfd.h \
$(top_srcdir)/public/spinlock.h
.PHONY: ChangeLog INSTALL
INSTALL:
$(INSTALL_CMD)
ChangeLog:
$(CHANGELOG_CMD)
dist-hook: ChangeLog INSTALL